hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 59 + + 73
----
14

query I rowsort
SELECT - - 34
----
34

query I rowsort
SELECT - 72 * 7 * - - ( + 67 )
----
-33768

query I rowsort
SELECT ALL + - 46 * - 47
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT - CASE + 79 WHEN + 1 - - 6 THEN + - 77 - - 70 * + 51 + - + 3 ELSE NULL END + + 17 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4
SELECT - CASE + 79 WHEN + 1 - - 6 THEN + - 77 - - 70 * + 51 + - + 3 ELSE NULL END + + 17 - - COUNT ( * )
----
NULL

query II rowsort
SELECT + 83 col2, 68 * 86
----
83
5848

query I rowsort
SELECT DISTINCT + 94 * - 5 + - - ( 40 ) + 70 AS col2
----
-360

query I rowsort
SELECT ALL - ( - 11 ) AS col0
----
11

query I rowsort
SELECT ALL + 13 * + 33 * - 20 * - 40
----
343200

query I rowsort
SELECT DISTINCT - 96 AS col2
----
-96

query I rowsort
SELECT ALL - 37 AS col1
----
-37

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

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

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

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

query I rowsort
SELECT 56 * - 8 * - 56
----
25088

query I rowsort
SELECT ALL - 27 AS col1
----
-27

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

skipif mysql # not compatible
query I rowsort label-16
SELECT ( + - 6 ) / + - 66 - + - COUNT ( * ) * + 17
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT MAX( - + 53 ) * 29 + + - CAST( + + 85 AS SIGNED )
----
-1622

skipif mysql # not compatible
query I rowsort label-18
SELECT MAX ( - + 53 ) * 29 + + - CAST ( + + 85 AS INTEGER )
----
-1622

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL COUNT( * ) * 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL COUNT ( * ) * 73 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT 82 * COALESCE ( - 80, - COUNT( * ) * + + COUNT( * ), + - ( + + CAST( - 48 AS SIGNED ) ) - + 22 ) col2
----
-6560

skipif mysql # not compatible
query I rowsort label-20
SELECT 82 * COALESCE ( - 80, - COUNT ( * ) * + + COUNT ( * ), + - ( + + CAST ( - 48 AS INTEGER ) ) - + 22 ) col2
----
-6560

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

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

query I rowsort
SELECT ALL - 56 AS col0
----
-56

query I rowsort
SELECT + 91 col1
----
91

query I rowsort
SELECT DISTINCT - 96 + 95 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL MIN( DISTINCT + 34 ) + 58 + + 20 * - + ( + ( + 15 ) ) AS col2
----
-208

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL MIN ( DISTINCT + 34 ) + 58 + + 20 * - + ( + ( + 15 ) ) AS col2
----
-208

query II rowsort
SELECT ALL 86 * - + 60 AS col1, - COALESCE ( 0, + 25 * + + 30 ) + - - 91 * + - 34 AS col2
----
-5160
-3094

query I rowsort
SELECT ALL - 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT - NULLIF ( + 39, + 20 * + + ( + MAX( ALL ( - + 71 ) ) ) ) - - ( COALESCE ( + + 89, + 82 + - COUNT( * ) ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-29
SELECT - NULLIF ( + 39, + 20 * + + ( + MAX ( ALL ( - + 71 ) ) ) ) - - ( COALESCE ( + + 89, + 82 + - COUNT ( * ) ) ) AS col1
----
50

query I rowsort
SELECT - 87 * - 92
----
8004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-31
SELECT ALL 57 + 61 * 54 / - - CAST( NULL AS SIGNED ) * + - ( - SUM( + - 22 ) ) + - - AVG ( ALL + - 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL 57 + 61 * 54 / - - CAST ( NULL AS INTEGER ) * + - ( - SUM ( + - 22 ) ) + - - AVG ( ALL + - 35 ) AS col1
----
NULL

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

query I rowsort
SELECT ALL 71 + + 89 AS col1
----
160

query I rowsort
SELECT DISTINCT + 11 + - 3 AS col1
----
8

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

skipif mysql # not compatible
query I rowsort label-35
SELECT - 54 / - 93
----
0

query I rowsort
SELECT + 63 * + ( - + 85 ) AS col1
----
-5355

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT DISTINCT 41 + 29 + + MIN( DISTINCT - 60 )
----
10

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT 41 + 29 + + MIN ( DISTINCT - 60 )
----
10

query I rowsort
SELECT ALL 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + + 23 * - + CASE - + 53 WHEN ( + COUNT( * ) ) THEN 37 WHEN - 82 THEN NULL ELSE 30 END AS col0
----
-690

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + + 23 * - + CASE - + 53 WHEN ( + COUNT ( * ) ) THEN 37 WHEN - 82 THEN NULL ELSE 30 END AS col0
----
-690

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

skipif mysql # not compatible
query II rowsort label-40
SELECT + + 23 / COUNT ( * ) AS col0, 48 AS col1
----
23
48

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - - COUNT( 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-41
SELECT - - COUNT ( 74 ) AS col2
----
1

query I rowsort
SELECT - - 59
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-43
SELECT ALL + COUNT( * ) * + + 25 + 37 + + 81 DIV 68, CASE + - COUNT( * ) WHEN - + 26 THEN NULL WHEN + - 56 DIV 13 + ( 54 ) + 72 + 31 - + - COUNT( * ) * - 67 * + 0 + - 67 - - 76 * 76 * - 36 THEN - 20 + - + ( + 42 ) - + 67 END col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-43
SELECT ALL + COUNT ( * ) * + + 25 + 37 + + 81 / 68, CASE + - COUNT ( * ) WHEN - + 26 THEN NULL WHEN + - 56 / 13 + ( 54 ) + 72 + 31 - + - COUNT ( * ) * - 67 * + 0 + - 67 - - 76 * 76 * - 36 THEN - 20 + - + ( + 42 ) - + 67 END col0
----
63
NULL

query I rowsort
SELECT ALL 77 col0
----
77

query I rowsort
SELECT + 56 + + - 41 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT + 70 + + CAST( - 37 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-46
SELECT + 70 + + CAST ( - 37 AS INTEGER )
----
33

query II rowsort
SELECT DISTINCT 44 * 1 + + + COALESCE ( 0, 75 ) AS col0, - 58
----
44
-58

query I rowsort
SELECT ALL + 65 * - 95
----
-6175

query I rowsort
SELECT ALL - 1 - + 68 AS col1
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-51
SELECT DISTINCT 56 AS col1, CAST( + 94 AS SIGNED )
----
56
94

skipif mysql # not compatible
query II rowsort label-51
SELECT DISTINCT 56 AS col1, CAST ( + 94 AS INTEGER )
----
56
94

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT - MIN( DISTINCT + 31 ) - - 23 * + + 11
----
222

skipif mysql # not compatible
query I rowsort label-52
SELECT - MIN ( DISTINCT + 31 ) - - 23 * + + 11
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-53
SELECT ALL + COALESCE ( 60, - COUNT( * ) + - - 13 + + - 49 * + 92 DIV - COUNT( * ) + + 69 * - ( - ( + - 81 ) ) + - - 40 )
----
60

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + COALESCE ( 60, - COUNT ( * ) + - - 13 + + - 49 * + 92 / - COUNT ( * ) + + 69 * - ( - ( + - 81 ) ) + - - 40 )
----
60

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

query II rowsort
SELECT ALL + 11 AS col1, NULLIF ( - 38, 70 / - 70 + + - 44 + + 49 ) AS col2
----
11
-38

query I rowsort
SELECT + 15 col0
----
15

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

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

query I rowsort
SELECT ALL + 82 * 41 AS col0
----
3362

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

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT + MAX( ALL + 37 ) * 92 + - + 33 AS col0
----
3371

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + MAX ( ALL + 37 ) * 92 + - + 33 AS col0
----
3371

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

query I rowsort
SELECT ALL + 55 * - 29 AS col0
----
-1595

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-64
SELECT NULLIF ( 47, - + CAST( - - 30 AS SIGNED ) * COUNT( * ) + + - 46 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-64
SELECT NULLIF ( 47, - + CAST ( - - 30 AS INTEGER ) * COUNT ( * ) + + - 46 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT ALL 92 * + ( + CAST( + - ( 38 ) AS SIGNED ) ) + 29 - 27
----
-3494

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL 92 * + ( + CAST ( + - ( 38 ) AS INTEGER ) ) + 29 - 27
----
-3494

query II rowsort
SELECT + 89, - 99 AS col1
----
89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL + 53 * + COUNT( * ) * 93 + + + ( - + 88 ) AS col2
----
4841

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + 53 * + COUNT ( * ) * 93 + + + ( - + 88 ) AS col2
----
4841

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT NULLIF ( CASE + 52 WHEN + + COUNT( * ) / - 52 + + - 61 + + + 28 THEN 27 WHEN + 90 THEN + + 95 END, - + 64 * ( - 91 ) * - 87 - + + 21 - + 8 ), + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-68
SELECT NULLIF ( CASE + 52 WHEN + + COUNT ( * ) / - 52 + + - 61 + + + 28 THEN 27 WHEN + 90 THEN + + 95 END, - + 64 * ( - 91 ) * - 87 - + + 21 - + 8 ), + COUNT ( * ) AS col1
----
NULL
1

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

query I rowsort
SELECT - 45 + 59 + + + 97 * - 94 + - 98 + - 24
----
-9226

query I rowsort
SELECT + + 62 - - + 67 AS col2
----
129

query I rowsort
SELECT - 63 * + 46 * - + 31 + + 52 AS col2
----
89890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT + - ( + - COUNT( + 99 ) ) * - - COALESCE ( - MIN( ALL 52 ), - CAST( - + 43 AS SIGNED ) * + - 9 ) + - - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-73
SELECT + - ( + - COUNT ( + 99 ) ) * - - COALESCE ( - MIN ( ALL 52 ), - CAST ( - + 43 AS INTEGER ) * + - 9 ) + - - COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-74
SELECT ALL - + 47 * + COUNT( - + 69 ) + + 20 + + 34 + - 21 * 44 - - 24 + + 66 DIV + 83 col1
----
-893

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - + 47 * + COUNT ( - + 69 ) + + 20 + + 34 + - 21 * 44 - - 24 + + 66 / + 83 col1
----
-893

query I rowsort
SELECT ALL + 24 * - 93
----
-2232

query I rowsort
SELECT - + 18 + ( - - 70 ) * + 22
----
1522

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

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - 98 * - COUNT ( * ) + 65 AS col1
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT DISTINCT - ( + - 38 ) * - + CASE - + ( + 47 ) WHEN + ( + + 32 ) THEN + + ( 90 ) WHEN - 86 * - + ( - - CAST( + 33 AS SIGNED ) ) THEN COALESCE ( + AVG ( + + 95 ), - 0, - SUM( - 30 ) * - + 53 ) WHEN - + 17 THEN NULL END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT - ( + - 38 ) * - + CASE - + ( + 47 ) WHEN + ( + + 32 ) THEN + + ( 90 ) WHEN - 86 * - + ( - - CAST ( + 33 AS INTEGER ) ) THEN COALESCE ( + AVG ( + + 95 ), - 0, - SUM ( - 30 ) * - + 53 ) WHEN - + 17 THEN NULL END * - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-80
SELECT ALL + CASE - 63 WHEN - COUNT( * ) / - + 61 / 12 THEN - MAX( DISTINCT + 86 ) WHEN - - 59 * + + 82 * - + NULLIF ( + AVG ( DISTINCT + NULLIF ( - 2, + 93 ) ), + + 90 ) + - COUNT( * ) THEN NULL END AS col0, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-80
SELECT ALL + CASE - 63 WHEN - COUNT ( * ) / - + 61 / 12 THEN - MAX ( DISTINCT + 86 ) WHEN - - 59 * + + 82 * - + NULLIF ( + AVG ( DISTINCT + NULLIF ( - 2, + 93 ) ), + + 90 ) + - COUNT ( * ) THEN NULL END AS col0, 41
----
NULL
41

query I rowsort
SELECT ALL + + 55 * - 14 AS col0
----
-770

query II rowsort
SELECT ALL + 51, 27 AS col0
----
51
27

query I rowsort
SELECT + 74 + + - 34 * - 54 + - - 94 AS col1
----
2004

query I rowsort
SELECT ALL 44 - + 97
----
-53

query I rowsort
SELECT - + 66 * - + 65 AS col0
----
4290

onlyif mysql # aggregate syntax: 
query II rowsort label-86
SELECT ALL - 15 AS col1, MIN( 36 )
----
-15
36

skipif mysql # not compatible
query II rowsort label-86
SELECT ALL - 15 AS col1, MIN ( 36 )
----
-15
36

query II rowsort
SELECT ALL 33, 61 AS col1
----
33
61

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT 75 - + + COUNT( * ) + 1 * + ( 57 ) * 80 AS col2
----
4634

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT 75 - + + COUNT ( * ) + 1 * + ( 57 ) * 80 AS col2
----
4634

onlyif mysql # aggregate syntax: 
query II rowsort label-89
SELECT 97 AS col2, 21 * COUNT( * ) AS col0
----
97
21

skipif mysql # not compatible
query II rowsort label-89
SELECT 97 AS col2, 21 * COUNT ( * ) AS col0
----
97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT - MAX( ALL - - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-90
SELECT - MAX ( ALL - - 87 ) AS col2
----
-87

query I rowsort
SELECT ALL 39 AS col1
----
39

query I rowsort
SELECT ALL + NULLIF ( + 64, - 57 * - - 5 )
----
64

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

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

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

query I rowsort
SELECT ALL 20 * - - 89 AS col0
----
1780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-96
SELECT ALL MIN( DISTINCT + 45 ) DIV - - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL MIN ( DISTINCT + 45 ) / - - COUNT ( * )
----
45

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT + 59 + + + 4 + - + 95 + - + 98 AS col0, 77 + - + CASE WHEN - NULLIF ( + - 74, 92 ) BETWEEN 31 * + 52 * - + 84 + - 50 + - COUNT( * ) AND - 76 * + 40 - ( + 34 ) THEN - 36 ELSE NULL END
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-99
SELECT + 59 + + + 4 + - + 95 + - + 98 AS col0, 77 + - + CASE WHEN - NULLIF ( + - 74, 92 ) BETWEEN 31 * + 52 * - + 84 + - 50 + - COUNT ( * ) AND - 76 * + 40 - ( + 34 ) THEN - 36 ELSE NULL END
----
-130
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + 94 * + + ( - COUNT( * ) ) * - 22 * - 57
----
-117876

skipif mysql # not compatible
query I rowsort label-100
SELECT + 94 * + + ( - COUNT ( * ) ) * - 22 * - 57
----
-117876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-101
SELECT ALL CAST( 8 AS SIGNED ) DIV - 19 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL CAST ( 8 AS INTEGER ) / - 19 + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-102
SELECT DISTINCT 57 / + + CAST( NULL AS SIGNED ) / + COALESCE ( - + COUNT( * ), + + 46 + - CAST( 57 AS DECIMAL ) ) + + MIN( - 70 ) AS col1, 79 + + 39
----
NULL
118

skipif mysql # not compatible
query II rowsort label-102
SELECT DISTINCT 57 / + + CAST ( NULL AS INTEGER ) / + COALESCE ( - + COUNT ( * ), + + 46 + - CAST ( 57 AS REAL ) ) + + MIN ( - 70 ) AS col1, 79 + + 39
----
NULL
118

query I rowsort
SELECT - 81 + 11
----
-70

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL + MAX( DISTINCT - + 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + MAX ( DISTINCT - + 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT ( - NULLIF ( + - 76, 75 + + + CAST( + ( - 78 ) AS SIGNED ) / - + 83 ) ) col0
----
76

skipif mysql # not compatible
query I rowsort label-107
SELECT ( - NULLIF ( + - 76, 75 + + + CAST ( + ( - 78 ) AS INTEGER ) / - + 83 ) ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT 15 * - 41 * - 31 + - - 74 + COUNT( * ) + - 37 AS col2
----
19103

skipif mysql # not compatible
query I rowsort label-108
SELECT 15 * - 41 * - 31 + - - 74 + COUNT ( * ) + - 37 AS col2
----
19103

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT ALL - 15 DIV - + 91 DIV 23 * - 97 + 19 + + + 8 + 81 * + 32 * 12 - - 66 AS col1
----
31197

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL - 15 / - + 91 / 23 * - 97 + 19 + + + 8 + 81 * + 32 * 12 - - 66 AS col1
----
31197

query I rowsort
SELECT + - 40
----
-40

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

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - + CAST ( - 90 AS INTEGER ) - 81
----
9

query I rowsort
SELECT + + 86
----
86

query I rowsort
SELECT ALL - - 75 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL - 50 * 79 * + - 85 + 10 * - CAST( - + 57 AS SIGNED ) * - 95 * - 24 + + - 14 + + 47 + - - SUM( ALL + + 23 ) + 8 AS col0
----
1635414

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - 50 * 79 * + - 85 + 10 * - CAST ( - + 57 AS INTEGER ) * - 95 * - 24 + + - 14 + + 47 + - - SUM ( ALL + + 23 ) + 8 AS col0
----
1635414

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

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

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

query I rowsort
SELECT DISTINCT - - 33
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-119
SELECT - 2 * - 45 + - 90 + + CASE ( - 23 ) WHEN ( + CAST( NULL AS DECIMAL ) ) THEN 83 + + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT - 2 * - 45 + - 90 + + CASE ( - 23 ) WHEN ( + CAST ( NULL AS REAL ) ) THEN 83 + + 63 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + 31 * - 61 * COUNT( * ) * 1 - - 28 + 40 col0
----
-1823

skipif mysql # not compatible
query I rowsort label-121
SELECT + 31 * - 61 * COUNT ( * ) * 1 - - 28 + 40 col0
----
-1823

query I rowsort
SELECT ( 85 ) * + 39
----
3315

query I rowsort
SELECT ALL 89 AS col1
----
89

query II rowsort
SELECT + 94 * 98 AS col2, + 89 * - 94 AS col1
----
9212
-8366

query II rowsort
SELECT ALL - + 39 * - + 30 AS col1, CASE - 9 WHEN + 78 THEN + 39 WHEN - + 68 * ( + - 80 ) THEN + 32 + - - 84 ELSE NULL END col1
----
1170
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT 20 DIV ( + 47 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT 20 / ( + 47 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT - 18 * + 1 - + - MAX( DISTINCT - - 55 )
----
37

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT - 18 * + 1 - + - MAX ( DISTINCT - - 55 )
----
37

query I rowsort
SELECT - 74 - - 75 + - 22 + + + 82 * + + 39 + + 15 * 93 * + + 8 col2
----
14337

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

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

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

query I rowsort
SELECT + 27 * + NULLIF ( - 65, + 90 ) + 87 * + 27
----
594

query II rowsort
SELECT ( - 77 ) * + 44 + + 38, 25 + - 42 AS col0
----
-3350
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT 57 + - + 95 * - ( MIN( ALL 1 ) )
----
152

skipif mysql # not compatible
query I rowsort label-133
SELECT 57 + - + 95 * - ( MIN ( ALL 1 ) )
----
152

query I rowsort
SELECT 72 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT 66 + + + COALESCE ( + 39, + + COUNT( * ) )
----
105

skipif mysql # not compatible
query I rowsort label-135
SELECT 66 + + + COALESCE ( + 39, + + COUNT ( * ) )
----
105

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

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - 82 + - COUNT ( * ) AS col1
----
-83

query I rowsort
SELECT DISTINCT 64 + - 51 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT - 22 col1, MAX( 2 ) + + 0 AS col2
----
-22
2

skipif mysql # not compatible
query II rowsort label-138
SELECT - 22 col1, MAX ( 2 ) + + 0 AS col2
----
-22
2

query I rowsort
SELECT ALL 99 + - 54
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-140
SELECT ALL CASE COUNT( * ) WHEN - 18 + + - 89 / - 39 * + - COALESCE ( - CAST( NULL AS SIGNED ), + ( + MIN( DISTINCT - + 9 ) ) ) * + CAST( + - 21 AS DECIMAL ) * + 34 - NULLIF ( 67, - NULLIF ( - + 3, + - 50 * + 16 ) ) * + - 96 * + - COUNT( * ) / - 65 * + MIN( DISTINCT + 74 ) + 90 THEN - + 85 * + CAST( NULL AS SIGNED ) ELSE 89 * 87 * 48 END + + 78
----
371742

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL CASE COUNT ( * ) WHEN - 18 + + - 89 / - 39 * + - COALESCE ( - CAST ( NULL AS INTEGER ), + ( + MIN ( DISTINCT - + 9 ) ) ) * + CAST ( + - 21 AS REAL ) * + 34 - NULLIF ( 67, - NULLIF ( - + 3, + - 50 * + 16 ) ) * + - 96 * + - COUNT ( * ) / - 65 * + MIN ( DISTINCT + 74 ) + 90 THEN - + 85 * + CAST ( NULL AS INTEGER ) ELSE 89 * 87 * 48 END + + 78
----
371742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT ( + 90 ) + + COALESCE ( + CAST( - 58 AS SIGNED ), - - ( 8 ) + + - 71 )
----
32

skipif mysql # not compatible
query I rowsort label-141
SELECT ( + 90 ) + + COALESCE ( + CAST ( - 58 AS INTEGER ), - - ( 8 ) + + - 71 )
----
32

query I rowsort
SELECT ALL - 36 AS col1
----
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT 11 + + CASE 60 WHEN - + 43 THEN NULL ELSE 71 + 57 + - 29 + + + ( - 42 ) END + - MAX( DISTINCT - 51 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-144
SELECT 11 + + CASE 60 WHEN - + 43 THEN NULL ELSE 71 + 57 + - 29 + + + ( - 42 ) END + - MAX ( DISTINCT - 51 ) AS col1
----
119

query I rowsort
SELECT DISTINCT - 49
----
-49

query I rowsort
SELECT ALL 63 + 16 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT 88 - + COUNT( - 41 ) * - SUM( - + 8 ) + + ( - 75 )
----
5

skipif mysql # not compatible
query I rowsort label-147
SELECT 88 - + COUNT ( - 41 ) * - SUM ( - + 8 ) + + ( - 75 )
----
5

query II rowsort
SELECT + 87 AS col2, 76 AS col1
----
87
76

query II rowsort
SELECT 96 AS col2, + 1 AS col0
----
96
1

query I rowsort
SELECT ( 13 ) * + 68 * 49 AS col1
----
43316

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

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

query I rowsort
SELECT 36 * + 36 AS col2
----
1296

query I rowsort
SELECT 82 AS col2
----
82

query I rowsort
SELECT ALL 4 * - 19 * + + 84 * + 52
----
-331968

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT 23 - - + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-155
SELECT 23 - - + COUNT ( * ) AS col2
----
24

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

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

query I rowsort
SELECT DISTINCT - 73 col1
----
-73

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

query I rowsort
SELECT - 82 * + 42
----
-3444

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

query I rowsort
SELECT + + 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT COUNT( * ) * + + 48 * - 55
----
-2640

skipif mysql # not compatible
query I rowsort label-162
SELECT COUNT ( * ) * + + 48 * - 55
----
-2640

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

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

query I rowsort
SELECT ALL - - 92 AS col1
----
92

query I rowsort
SELECT + COALESCE ( + 86, 78, + - 80 + 33 ) AS col1
----
86

query I rowsort
SELECT 4 + 72
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL COUNT( * ) * - + COALESCE ( ( - - 58 ), - 50, - 48 ) + + - MIN( ALL - + 22 ) + - 42
----
-78

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL COUNT ( * ) * - + COALESCE ( ( - - 58 ), - 50, - 48 ) + + - MIN ( ALL - + 22 ) + - 42
----
-78

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

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

query I rowsort
SELECT ( 38 ) + 98
----
136

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

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

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

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

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

query I rowsort
SELECT - - 14
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-175
SELECT - 81 DIV 17
----
-4

skipif mysql # not compatible
query I rowsort label-175
SELECT - 81 / 17
----
-4

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

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + - COUNT ( * ) + - + 3 AS col2
----
-4

query I rowsort
SELECT - 63 AS col0
----
-63

query I rowsort
SELECT 66 * 2
----
132

query I rowsort
SELECT 2 + 13 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT 72 DIV 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-180
SELECT 72 / 30 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT + 50 + - 79 + - CAST( 80 AS SIGNED ) DIV + - 90 * 86 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT + 50 + - 79 + - CAST ( 80 AS INTEGER ) / + - 90 * 86 AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-182
SELECT ALL - 96 + - CAST( 46 AS SIGNED ) + 71 + + 40 + + 94 * - 82 - 66
----
-7805

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - 96 + - CAST ( 46 AS INTEGER ) + 71 + + 40 + + 94 * - 82 - 66
----
-7805

query II rowsort
SELECT DISTINCT - 51 + - + 94 AS col1, - 56 AS col2
----
-145
-56

query I rowsort
SELECT 91 * + 87 AS col2
----
7917

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

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL MAX ( ALL - 78 )
----
-78

query I rowsort
SELECT ALL 58 + - + 92
----
-34

query I rowsort
SELECT DISTINCT 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL 76 * COUNT( ALL - 49 )
----
76

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 76 * COUNT ( ALL - 49 )
----
76

query II rowsort
SELECT ALL CASE COALESCE ( + - NULLIF ( 40, - - 76 * + 95 ), + 95 + + 60 ) WHEN - 19 THEN + 82 WHEN + 99 THEN NULL ELSE NULL END col2, - 20
----
NULL
-20

query I rowsort
SELECT ALL - 33 + 10 + - + ( 58 ) AS col0
----
-81

query I rowsort
SELECT 97 + + 7 * 12 AS col2
----
181

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT DISTINCT 57 - + COUNT( * ), - 87 + + - 30 AS col2
----
56
-117

skipif mysql # not compatible
query II rowsort label-192
SELECT DISTINCT 57 - + COUNT ( * ), - 87 + + - 30 AS col2
----
56
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL - ( - - MIN( - + 78 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL - ( - - MIN ( - + 78 ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT ALL COUNT( * ) * NULLIF ( + - 67, 60 * + NULLIF ( ( - 31 ), 37 ) ) - + + 4
----
-71

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL COUNT ( * ) * NULLIF ( + - 67, 60 * + NULLIF ( ( - 31 ), 37 ) ) - + + 4
----
-71

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT COUNT( + 45 ) DIV - 7 * + - 24 + + 51 + - - 62 + - - 88 + CASE 65 WHEN + 46 * + 76 THEN NULL ELSE 70 END * - 44 AS col0
----
-2879

skipif mysql # not compatible
query I rowsort label-196
SELECT COUNT ( + 45 ) / - 7 * + - 24 + + 51 + - - 62 + - - 88 + CASE 65 WHEN + 46 * + 76 THEN NULL ELSE 70 END * - 44 AS col0
----
-2879

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

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

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

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

query I rowsort
SELECT + 27 + - 18 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT ALL 97 DIV 73 DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL 97 / 73 / 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT ALL + 90, + 98 + COUNT( * ) AS col2
----
90
99

skipif mysql # not compatible
query II rowsort label-201
SELECT ALL + 90, + 98 + COUNT ( * ) AS col2
----
90
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-202
SELECT + + 34 AS col2, CAST( NULL AS SIGNED ) * 44 AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-202
SELECT + + 34 AS col2, CAST ( NULL AS INTEGER ) * 44 AS col0
----
34
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-203
SELECT + COUNT( ALL + 95 ) DIV - 33 col0
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT + COUNT ( ALL + 95 ) / - 33 col0
----
0

query II rowsort
SELECT DISTINCT + + 33 AS col2, - 51
----
33
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-205
SELECT 47 AS col0, CAST( NULL AS DECIMAL ) + + + 85
----
47
NULL

skipif mysql # not compatible
query II rowsort label-205
SELECT 47 AS col0, CAST ( NULL AS REAL ) + + + 85
----
47
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT + - 29 DIV + 91 + - 8 * - ( 2 )
----
16

skipif mysql # not compatible
query I rowsort label-206
SELECT + - 29 / + 91 + - 8 * - ( 2 )
----
16

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

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

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

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

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + 49 * + + 22 * + + 22 + - 17 * - - COUNT ( * )
----
23699

query II rowsort
SELECT DISTINCT + - 82, 29 * + 51 - 75 + - 5 * + 80 AS col1
----
-82
1004

query I rowsort
SELECT + 35 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL 80 * 2 + + + COUNT( * ) col2
----
161

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL 80 * 2 + + + COUNT ( * ) col2
----
161

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT 77 * + 95 * - - 65 - - COUNT( * ) * + 62 AS col2
----
475537

skipif mysql # not compatible
query I rowsort label-214
SELECT 77 * + 95 * - - 65 - - COUNT ( * ) * + 62 AS col2
----
475537

onlyif mysql # aggregate syntax: 
query II rowsort label-215
SELECT - COUNT( * ) col2, MAX( DISTINCT 58 )
----
-1
58

skipif mysql # not compatible
query II rowsort label-215
SELECT - COUNT ( * ) col2, MAX ( DISTINCT 58 )
----
-1
58

query II rowsort
SELECT ALL + 16, + COALESCE ( 34, - 75 + - 64 ) AS col1
----
16
34

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT + NULLIF ( - ( - 92 ), + ( + 12 ) + - CASE WHEN - 72 IS NULL THEN - 83 ELSE ( - + 71 ) * - 61 * - - 65 END ) - + COUNT( * ) * ( - - COUNT( + COALESCE ( + 60, 0 * - 53 ) ) ) col1
----
91

skipif mysql # not compatible
query I rowsort label-217
SELECT + NULLIF ( - ( - 92 ), + ( + 12 ) + - CASE WHEN - 72 IS NULL THEN - 83 ELSE ( - + 71 ) * - 61 * - - 65 END ) - + COUNT ( * ) * ( - - COUNT ( + COALESCE ( + 60, 0 * - 53 ) ) ) col1
----
91

query II rowsort
SELECT - 81, 58 * + 73 AS col2
----
-81
4234

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

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ALL 1 + + 54 * 4 * + + COUNT( * ) * - 9 col1
----
-1943

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL 1 + + 54 * 4 * + + COUNT ( * ) * - 9 col1
----
-1943

query I rowsort
SELECT - 6 AS col1
----
-6

query I rowsort
SELECT - 9 AS col2
----
-9

query I rowsort
SELECT ALL 53 * - 2
----
-106

query I rowsort
SELECT - 65 - + - 26 * 15 - + 82 * - 82 + - ( + - 8 )
----
7057

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

query I rowsort
SELECT + 35 + - 59 * + - 31 AS col2
----
1864

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

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

query I rowsort
SELECT ALL + 1 - + 27 AS col0
----
-26

query I rowsort
SELECT + ( - 92 ) + - 52
----
-144

query I rowsort
SELECT - 34 * - COALESCE ( + + COALESCE ( + 13, - 16 ), - 40 + 21 ) AS col1
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL CASE - 65 WHEN - - 72 THEN - 30 WHEN - COUNT( * ) THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL CASE - 65 WHEN - - 72 THEN - 30 WHEN - COUNT ( * ) THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT - 5 + - CASE - ( - 53 ) WHEN + - 29 / + - 38 * + 54 THEN 39 WHEN + ( - + 58 ) THEN NULL WHEN - 31 THEN + - COUNT( * ) END + 19 + - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT - 5 + - CASE - ( - 53 ) WHEN + - 29 / + - 38 * + 54 THEN 39 WHEN + ( - + 58 ) THEN NULL WHEN - 31 THEN + - COUNT ( * ) END + 19 + - - 48
----
NULL

query II rowsort
SELECT ALL ( 68 ) AS col1, + 80 col2
----
68
80

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - 81 + - - 93 + - SUM( DISTINCT + 84 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-234
SELECT - 81 + - - 93 + - SUM ( DISTINCT + 84 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-235
SELECT - 98 * CASE - MAX( DISTINCT - 55 ) WHEN + + ( - + 38 ) THEN NULL ELSE + NULLIF ( - 89, + 44 ) END * + - 15 AS col0, - ( - - 85 ) AS col0
----
-130830
-85

skipif mysql # not compatible
query II rowsort label-235
SELECT - 98 * CASE - MAX ( DISTINCT - 55 ) WHEN + + ( - + 38 ) THEN NULL ELSE + NULLIF ( - 89, + 44 ) END * + - 15 AS col0, - ( - - 85 ) AS col0
----
-130830
-85

query I rowsort
SELECT ALL + 57 * 25
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT DISTINCT + 75 * + + 56 * + COUNT( - 42 ) col2
----
4200

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT + 75 * + + 56 * + COUNT ( - 42 ) col2
----
4200

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + 3 * SUM( ALL + 99 ) AS col0
----
297

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + 3 * SUM ( ALL + 99 ) AS col0
----
297

query I rowsort
SELECT + 25 * - - 16
----
400

query I rowsort
SELECT - - 83 - - 26 + + + 68 AS col2
----
177

query I rowsort
SELECT + - COALESCE ( + 69, + 51 )
----
-69

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

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

query I rowsort
SELECT DISTINCT + - CASE 32 WHEN + 85 + 54 THEN - ( + + 6 ) + 86 + - + NULLIF ( - - 51, - 43 ) + - 15 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT + 14 - - 26 + + 50 DIV - 87
----
40

skipif mysql # not compatible
query I rowsort label-247
SELECT + 14 - - 26 + + 50 / - 87
----
40

query I rowsort
SELECT + - 87
----
-87

query I rowsort
SELECT ALL + + 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - - MAX( 96 ) + - 78
----
18

skipif mysql # not compatible
query I rowsort label-250
SELECT - - MAX ( 96 ) + - 78
----
18

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

query I rowsort
SELECT + CASE - 59 WHEN 42 THEN - 82 ELSE + + 8 END AS col0
----
8

query I rowsort
SELECT DISTINCT + 95 * 96 + + 64 AS col1
----
9184

query I rowsort
SELECT ALL 66 * + 24 + + 47 * - - 88
----
5720

query I rowsort
SELECT + - ( + + 39 ) - - - 94 - + + 24
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT + - SUM( + 31 ) * 57 * - 31 * + 54 + + 55 * - 40 * 23
----
2907358

skipif mysql # not compatible
query I rowsort label-256
SELECT + - SUM ( + 31 ) * 57 * - 31 * + 54 + + 55 * - 40 * 23
----
2907358

query I rowsort
SELECT + 30 * 61 AS col0
----
1830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-258
SELECT + CASE 31 WHEN + + 71 THEN NULL ELSE - 12 END + - + 42 * - 17 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-258
SELECT + CASE 31 WHEN + + 71 THEN NULL ELSE - 12 END + - + 42 * - 17 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT SUM( - - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT SUM ( - - 89 ) AS col0
----
89

query I rowsort
SELECT + 41 + + 66 AS col2
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-261
SELECT ALL 41 * - CAST( + 91 AS SIGNED ) - 48 * 6
----
-4019

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL 41 * - CAST ( + 91 AS INTEGER ) - 48 * 6
----
-4019

query I rowsort
SELECT + 17 + - 19
----
-2

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

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

query I rowsort
SELECT - 11 + + 73 AS col1
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT DISTINCT + 88 * NULLIF ( - COUNT( * ), 32 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT + 88 * NULLIF ( - COUNT ( * ), 32 ) AS col2
----
-88

query II rowsort
SELECT - 30, + 43 * + 83 AS col2
----
-30
3569

query II rowsort
SELECT ALL 31 AS col0, 67 AS col2
----
31
67

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL + ( + + COUNT( * ) ) * + 43 + COALESCE ( 99, 88, 8 + + 21 - + 53 - 69 ) * + COUNT( + ( - - 86 ) )
----
142

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + ( + + COUNT ( * ) ) * + 43 + COALESCE ( 99, 88, 8 + + 21 - + 53 - 69 ) * + COUNT ( + ( - - 86 ) )
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT CAST( NULL AS SIGNED ) * + CASE - 44 WHEN - AVG ( + - 51 ) THEN NULL ELSE + 66 / + + 47 END * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT CAST ( NULL AS INTEGER ) * + CASE - 44 WHEN - AVG ( + - 51 ) THEN NULL ELSE + 66 / + + 47 END * - - 33
----
NULL

query I rowsort
SELECT ALL 87 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT ( + + 34 ) * + - COUNT( * ) + 30 * - COUNT( * ) * - 55 AS col0
----
1616

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT ( + + 34 ) * + - COUNT ( * ) + 30 * - COUNT ( * ) * - 55 AS col0
----
1616

query II rowsort
SELECT - 41, + 33 AS col2
----
-41
33

query I rowsort
SELECT ALL 43 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT CAST( NULL AS SIGNED ) / - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-275
SELECT CAST ( NULL AS INTEGER ) / - 89 AS col1
----
NULL

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

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

query I rowsort
SELECT + 62 + - 23
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT ALL - + 81 DIV - 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - + 81 / - 76 AS col2
----
1

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

query I rowsort
SELECT 9 * + 24 AS col1
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-281
SELECT ALL 59 + - 36 + CAST( - 79 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL 59 + - 36 + CAST ( - 79 AS INTEGER )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-282
SELECT + ( 29 ) * + CAST( COUNT( - 31 ) AS SIGNED ) * - 35 * 30 + + 8
----
-30442

skipif mysql # not compatible
query I rowsort label-282
SELECT + ( 29 ) * + CAST ( COUNT ( - 31 ) AS INTEGER ) * - 35 * 30 + + 8
----
-30442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT DISTINCT + - 68 * + - COUNT( * ) + - 57 + - 56 DIV - ( + ( COALESCE ( + ( - 76 ), - COUNT( * ) * + - ( + 53 ) ) ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + - 68 * + - COUNT ( * ) + - 57 + - 56 / - ( + ( COALESCE ( + ( - 76 ), - COUNT ( * ) * + - ( + 53 ) ) ) ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL - - 5 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - - 5 + + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT + 11 + 37 DIV + MAX( - 91 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-285
SELECT + 11 + 37 / + MAX ( - 91 ) AS col1
----
11

query I rowsort
SELECT 89 * - + 66
----
-5874

query I rowsort
SELECT + 25 + - - 56 + 58
----
139

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT - MAX( DISTINCT 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-290
SELECT - MAX ( DISTINCT 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL + + 26 * + 8 * - - 72 * + COUNT( * ) * - 56 AS col1
----
-838656

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL + + 26 * + 8 * - - 72 * + COUNT ( * ) * - 56 AS col1
----
-838656

query I rowsort
SELECT ALL - 71 AS col1
----
-71

query I rowsort
SELECT ALL 44 + 13 AS col0
----
57

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

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

query I rowsort
SELECT DISTINCT - + 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT ALL - 48 AS col2, + COUNT( * ) * - - 14 AS col2
----
-48
14

skipif mysql # not compatible
query II rowsort label-296
SELECT ALL - 48 AS col2, + COUNT ( * ) * - - 14 AS col2
----
-48
14

query I rowsort
SELECT - 32 AS col1
----
-32

query I rowsort
SELECT ALL - 37 AS col0
----
-37

query I rowsort
SELECT ALL + 64 - 63 * 45 AS col2
----
-2771

query I rowsort
SELECT 22 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL - 1 - - + COALESCE ( + - COALESCE ( - 82, + + 59 ), - ( + COUNT( * ) ) * NULLIF ( + + 22, + MIN( DISTINCT + 42 ) * + 62 + - + 38 + + SUM( 84 ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL - 1 - - + COALESCE ( + - COALESCE ( - 82, + + 59 ), - ( + COUNT ( * ) ) * NULLIF ( + + 22, + MIN ( DISTINCT + 42 ) * + 62 + - + 38 + + SUM ( 84 ) ) )
----
81

query I rowsort
SELECT 82 * + 36
----
2952

query I rowsort
SELECT 17 * - - 71 * - 36 * - - 87
----
-3780324

query I rowsort
SELECT DISTINCT 65 * - 68 AS col2
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT + 87 * + 23 - - 85 - + 59 * - COUNT( * ) col2
----
2145

skipif mysql # not compatible
query I rowsort label-305
SELECT + 87 * + 23 - - 85 - + 59 * - COUNT ( * ) col2
----
2145

query I rowsort
SELECT 1 - - 88 col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT 36 DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-307
SELECT 36 / + 27
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT 7 * 38, - CASE - 64 WHEN - 44 + + 46 THEN + SUM( - + 87 ) ELSE NULL END col2
----
266
NULL

skipif mysql # not compatible
query II rowsort label-308
SELECT 7 * 38, - CASE - 64 WHEN - 44 + + 46 THEN + SUM ( - + 87 ) ELSE NULL END col2
----
266
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL ( + 76 ) - + + NULLIF ( COUNT( * ), - 24 ) + + COUNT( * ) + + 11 * - 99
----
-1013

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL ( + 76 ) - + + NULLIF ( COUNT ( * ), - 24 ) + + COUNT ( * ) + + 11 * - 99
----
-1013

query I rowsort
SELECT DISTINCT 24 AS col2
----
24

query I rowsort
SELECT DISTINCT 32 col2
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT COUNT( * ) - + 19 col1
----
-18

skipif mysql # not compatible
query I rowsort label-314
SELECT COUNT ( * ) - + 19 col1
----
-18

query I rowsort
SELECT ALL 38 AS col2
----
38

query I rowsort
SELECT DISTINCT 90 col1
----
90

query I rowsort
SELECT ALL 41 AS col0
----
41

query I rowsort
SELECT ALL 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ( - + 62 ) * - COUNT( * ) * 53 * 90
----
295740

skipif mysql # not compatible
query I rowsort label-319
SELECT ( - + 62 ) * - COUNT ( * ) * 53 * 90
----
295740

query I rowsort
SELECT ALL 49 AS col0
----
49

query I rowsort
SELECT DISTINCT + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL 3 * + 46 * + 30 + + + COUNT( * ) + + - 50 col0
----
4091

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL 3 * + 46 * + 30 + + + COUNT ( * ) + + - 50 col0
----
4091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT DISTINCT CAST( 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT CAST ( 66 AS INTEGER ) AS col2
----
66

query I rowsort
SELECT - - 24 AS col2
----
24

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

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

query I rowsort
SELECT - - CASE + 4 WHEN 6 THEN - + NULLIF ( + 2, - + 29 * - + 27 ) WHEN 61 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT + ( - 20 ) + - COALESCE ( - - 0, 5, 98 DIV - 54 + + + 40 + + 5 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + ( - 20 ) + - COALESCE ( - - 0, 5, 98 / - 54 + + + 40 + + 5 ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL + 61 * - + NULLIF ( - + NULLIF ( 28, NULLIF ( - - 78, - 29 ) ), + + CASE + 96 WHEN ( - 88 ) THEN - COUNT( * ) / + 82 ELSE + - COUNT( * ) END ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL + 61 * - + NULLIF ( - + NULLIF ( 28, NULLIF ( - - 78, - 29 ) ), + + CASE + 96 WHEN ( - 88 ) THEN - COUNT ( * ) / + 82 ELSE + - COUNT ( * ) END ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT + COUNT( 71 ) * - + 23 DIV + COUNT( * ) + - SUM( 70 )
----
-93

skipif mysql # not compatible
query I rowsort label-329
SELECT + COUNT ( 71 ) * - + 23 / + COUNT ( * ) + - SUM ( 70 )
----
-93

query I rowsort
SELECT + 67 * 70 AS col1
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ( + 3 ) * - - NULLIF ( + 86, - 31 ) + - 7 - + COUNT( * ) + + - 82 * 34
----
-2538

skipif mysql # not compatible
query I rowsort label-331
SELECT ( + 3 ) * - - NULLIF ( + 86, - 31 ) + - 7 - + COUNT ( * ) + + - 82 * 34
----
-2538

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

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL 73 * + 46 + + 8 + - 98 * + 37 - - + COUNT( * ) AS col1
----
-259

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL 73 * + 46 + + 8 + - 98 * + 37 - - + COUNT ( * ) AS col1
----
-259

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-334
SELECT ALL - 46 * ( - 88 ) * - CASE - 65 WHEN COUNT( * ) * + - 83 THEN - 97 ELSE NULL END + - COALESCE ( + 35, + 39 * - COUNT( DISTINCT + 94 ) / - COUNT( * ), + 29, + - AVG ( ALL CAST( NULL AS DECIMAL ) ) ) AS col2, - 54 + + CASE - 57 WHEN - + 31 + - 20 + + + 47 - - 95 THEN 93 * + 67 END * 31 * + 81
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-334
SELECT ALL - 46 * ( - 88 ) * - CASE - 65 WHEN COUNT ( * ) * + - 83 THEN - 97 ELSE NULL END + - COALESCE ( + 35, + 39 * - COUNT ( DISTINCT + 94 ) / - COUNT ( * ), + 29, + - AVG ( ALL CAST ( NULL AS REAL ) ) ) AS col2, - 54 + + CASE - 57 WHEN - + 31 + - 20 + + + 47 - - 95 THEN 93 * + 67 END * 31 * + 81
----
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT ALL 72 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL 72 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT DISTINCT ( - 43 ) * - CASE - - 40 WHEN + + 46 THEN - 34 * 1 * 76 + - - 48 END / + 7 + - + COUNT( * ) * + 34 - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT ( - 43 ) * - CASE - - 40 WHEN + + 46 THEN - 34 * 1 * 76 + - - 48 END / + 7 + - + COUNT ( * ) * + 34 - + 54
----
NULL

query I rowsort
SELECT ALL + 54 * - 65 AS col2
----
-3510

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

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL + COUNT ( * ) * - 52 - - COUNT ( * ) - - 66 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-340
SELECT ALL - - CAST( NULL AS SIGNED ) * + NULLIF ( + + ( + 66 ), 75 * - 70 * - ( + ( + 20 ) ) ) + + 15 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - - CAST ( NULL AS INTEGER ) * + NULLIF ( + + ( + 66 ), 75 * - 70 * - ( + ( + 20 ) ) ) + + 15 + - 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-341
SELECT + 52, - COALESCE ( - COUNT( * ), 96, - - 88 DIV + NULLIF ( + 29, 66 ) ) * + MIN( + 85 ) AS col0
----
52
85

skipif mysql # not compatible
query II rowsort label-341
SELECT + 52, - COALESCE ( - COUNT ( * ), 96, - - 88 / + NULLIF ( + 29, 66 ) ) * + MIN ( + 85 ) AS col0
----
52
85

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

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

query I rowsort
SELECT ALL - 6 * 48 AS col1
----
-288

query I rowsort
SELECT 91 + + 93
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT 27 * - COUNT( * ) * 73 AS col2
----
-1971

skipif mysql # not compatible
query I rowsort label-345
SELECT 27 * - COUNT ( * ) * 73 AS col2
----
-1971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-346
SELECT ALL - CASE + 65 WHEN - 88 + - 20 + 95 * + CAST( NULL AS SIGNED ) * - + MIN( + 81 ) * 47 / - 1 THEN NULL WHEN + + 67 / - 46 + + COUNT( * ) THEN + 65 + - + 68 - - ( CAST( MAX( + 2 ) AS SIGNED ) ) + 7 + ( 45 ) / + 13 / + CASE 14 WHEN 61 THEN - 47 * 78 * 13 + COUNT( * ) + 60 WHEN + - CASE 94 WHEN 2 * 97 * 48 THEN - 85 ELSE - + 90 * - COUNT( * ) * + 52 END * - 42 THEN COUNT( * ) + + + 83 * - 83 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - CASE + 65 WHEN - 88 + - 20 + 95 * + CAST ( NULL AS INTEGER ) * - + MIN ( + 81 ) * 47 / - 1 THEN NULL WHEN + + 67 / - 46 + + COUNT ( * ) THEN + 65 + - + 68 - - ( CAST ( MAX ( + 2 ) AS INTEGER ) ) + 7 + ( 45 ) / + 13 / + CASE 14 WHEN 61 THEN - 47 * 78 * 13 + COUNT ( * ) + 60 WHEN + - CASE 94 WHEN 2 * 97 * 48 THEN - 85 ELSE - + 90 * - COUNT ( * ) * + 52 END * - 42 THEN COUNT ( * ) + + + 83 * - 83 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT - 21 * + - ( + 56 ) + + - COUNT( * ) + 81 * - 79 * + 30
----
-190795

skipif mysql # not compatible
query I rowsort label-347
SELECT - 21 * + - ( + 56 ) + + - COUNT ( * ) + 81 * - 79 * + 30
----
-190795

query I rowsort
SELECT ALL + CASE - + 70 WHEN - 9 * + - 76 / 52 THEN NULL WHEN - - 46 * + COALESCE ( 4, - 78, - ( - 23 ) ) THEN - 51 END
----
NULL

query I rowsort
SELECT - 82 + 64
----
-18

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-352
SELECT DISTINCT + 87, 7 * - COALESCE ( - + NULLIF ( + + 95, + COUNT( * ) * - 31 ), 44 DIV - 78 ) AS col0
----
87
665

skipif mysql # not compatible
query II rowsort label-352
SELECT DISTINCT + 87, 7 * - COALESCE ( - + NULLIF ( + + 95, + COUNT ( * ) * - 31 ), 44 / - 78 ) AS col0
----
87
665

query I rowsort
SELECT ALL 74 col2
----
74

query I rowsort
SELECT ALL 46 * - 65 AS col1
----
-2990

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT - 52 + - 78 + + COALESCE ( + 22, - - 33 DIV + 93 ) col2
----
-108

skipif mysql # not compatible
query I rowsort label-355
SELECT - 52 + - 78 + + COALESCE ( + 22, - - 33 / + 93 ) col2
----
-108

query I rowsort
SELECT ALL COALESCE ( 21, - - 70 - 56, - 48 + 45 * + - 76 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT - 63 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-357
SELECT - 63 / - 68 AS col0
----
0

query I rowsort
SELECT + 69 * - - 43 * + - 58
----
-172086

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - 82 * 35 * + MIN( + 46 ) + 5 * - COUNT( * ) + + 75 * 21 + + COUNT( * ) AS col2
----
-130449

skipif mysql # not compatible
query I rowsort label-359
SELECT - 82 * 35 * + MIN ( + 46 ) + 5 * - COUNT ( * ) + + 75 * 21 + + COUNT ( * ) AS col2
----
-130449

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-360
SELECT DISTINCT - CAST( + - 98 AS SIGNED ) DIV + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT - CAST ( + - 98 AS INTEGER ) / + 74 AS col0
----
1

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

query II rowsort
SELECT - 33 + - 20 * - - 81 AS col2, 52
----
-1653
52

query I rowsort
SELECT ALL 4 * - 14
----
-56

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

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

query I rowsort
SELECT ALL 80 + 86 AS col0
----
166

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

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

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

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

query II rowsort
SELECT DISTINCT + - 97 + - COALESCE ( - 54, 65, - 51 ) AS col2, 74 + - 55 AS col2
----
-43
19

query I rowsort
SELECT ALL - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT + 80 + + + 64 - + NULLIF ( - 87, 60 ) - - - COUNT( * ) * 2 AS col1
----
229

skipif mysql # not compatible
query I rowsort label-370
SELECT + 80 + + + 64 - + NULLIF ( - 87, 60 ) - - - COUNT ( * ) * 2 AS col1
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + - MIN( + - 56 ) * - - 49 + + 13 col2
----
2757

skipif mysql # not compatible
query I rowsort label-371
SELECT + - MIN ( + - 56 ) * - - 49 + + 13 col2
----
2757

query III rowsort
SELECT ALL 48 AS col1, + 35 + - 81, - 82 AS col2
----
48
-46
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT COUNT( ALL 32 )
----
1

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT COUNT ( ALL 32 )
----
1

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

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

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

query I rowsort
SELECT ALL 32 col1
----
32

query I rowsort
SELECT + 51 - - ( + - CASE 77 WHEN + 18 THEN - 9 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 95 + + 23 * 24 + - 22 + - 78 AS col1
----
547

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT + 64 - + COUNT( * ) * 27
----
37

skipif mysql # not compatible
query I rowsort label-379
SELECT + 64 - + COUNT ( * ) * 27
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL 4 * - 12 + COALESCE ( - MIN( - 23 ), + - 24 ) * + 6 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL 4 * - 12 + COALESCE ( - MIN ( - 23 ), + - 24 ) * + 6 AS col1
----
90

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-384
SELECT + + 45 DIV 68 DIV - 49 * - 84 + 65 AS col0, - COALESCE ( + 42, - COUNT( * ) * + - MAX( DISTINCT - 19 ) DIV 70 DIV + COUNT( * ) + 89 + - - MIN( DISTINCT + 5 ) ) * + 2 + 25
----
65
-59

skipif mysql # not compatible
query II rowsort label-384
SELECT + + 45 / 68 / - 49 * - 84 + 65 AS col0, - COALESCE ( + 42, - COUNT ( * ) * + - MAX ( DISTINCT - 19 ) / 70 / + COUNT ( * ) + 89 + - - MIN ( DISTINCT + 5 ) ) * + 2 + 25
----
65
-59

query I rowsort
SELECT DISTINCT + - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL + + COALESCE ( COUNT( * ), - 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + + COALESCE ( COUNT ( * ), - 19 ) AS col1
----
1

query I rowsort
SELECT + 10 + + - 6 * + 45 * + 16 + + 13 col2
----
-4297

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-388
SELECT + - 51 AS col0, - CAST( NULL AS SIGNED ) * - 53 + + CAST( - 63 AS DECIMAL ) AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-388
SELECT + - 51 AS col0, - CAST ( NULL AS INTEGER ) * - 53 + + CAST ( - 63 AS REAL ) AS col0
----
-51
NULL

query I rowsort
SELECT - 37 * 74
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL + - NULLIF ( + 17, 88 - - 17 + + + 95 / COALESCE ( - - COALESCE ( + 14, + 22 ), - 13, 33 ) * 45 * + COUNT( * ) * 31 )
----
-17

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + - NULLIF ( + 17, 88 - - 17 + + + 95 / COALESCE ( - - COALESCE ( + 14, + 22 ), - 13, 33 ) * 45 * + COUNT ( * ) * 31 )
----
-17

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

query I rowsort
SELECT - 54 * + 29 + - 97 AS col2
----
-1663

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

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT ALL + ( + 98 ) DIV 83
----
1

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + ( + 98 ) / 83
----
1

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

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

query I rowsort
SELECT ALL + 46 col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-397
SELECT CASE 75 WHEN - - 41 THEN 43 END AS col1, COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) / 87
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-397
SELECT CASE 75 WHEN - - 41 THEN 43 END AS col1, COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) / 87
----
NULL
NULL

query I rowsort
SELECT ALL + 91 col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT + 16, 50 * + - ( SUM( + 22 ) ) col2
----
16
-1100

skipif mysql # not compatible
query II rowsort label-399
SELECT + 16, 50 * + - ( SUM ( + 22 ) ) col2
----
16
-1100

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

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL 91 * + COUNT( * ) + + MAX( 87 ) + COUNT( * ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL 91 * + COUNT ( * ) + + MAX ( 87 ) + COUNT ( * ) AS col0
----
179

query I rowsort
SELECT - 52 * - - 15
----
-780

query II rowsort
SELECT + 22 * 66, - 91 AS col0
----
1452
-91

query I rowsort
SELECT NULLIF ( + 99, 41 )
----
99

query I rowsort
SELECT ALL - 47 * 80 * - 50 + 69 + + + 97 + 20
----
188186

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - SUM( - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-406
SELECT - SUM ( - 56 ) AS col0
----
56

query I rowsort
SELECT - 92 + - 99 AS col0
----
-191

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT DISTINCT ( CASE + + 23 WHEN + 95 + - 14 / - - 59 * 53 * + CAST( NULL AS SIGNED ) * - CAST( + - 93 AS SIGNED ) + CASE + ( - 38 ) WHEN + 3 THEN NULL WHEN + 16 THEN - - 11 ELSE NULL END + + 88 + - - 0 * + 16 + + 23 THEN 58 WHEN + - ( - 43 ) THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT ( CASE + + 23 WHEN + 95 + - 14 / - - 59 * 53 * + CAST ( NULL AS INTEGER ) * - CAST ( + - 93 AS INTEGER ) + CASE + ( - 38 ) WHEN + 3 THEN NULL WHEN + 16 THEN - - 11 ELSE NULL END + + 88 + - - 0 * + 16 + + 23 THEN 58 WHEN + - ( - 43 ) THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 70 * 52 + + 56 AS col2
----
3696

query I rowsort
SELECT DISTINCT + 67 + + 94 + - - 97
----
258

query I rowsort
SELECT ALL - 13 + 5
----
-8

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

query I rowsort
SELECT 27
----
27

query II rowsort
SELECT - - 38 AS col0, 93 + - 75 col0
----
38
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT DISTINCT - COUNT( * ) + + - 44 * - - 13 - - NULLIF ( 96, + ( CAST( NULL AS SIGNED ) ) / 54 ) - - 97 + 84 * 48 + + 62 * - 20 * + + 33 - 3 AS col2
----
-37271

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - COUNT ( * ) + + - 44 * - - 13 - - NULLIF ( 96, + ( CAST ( NULL AS INTEGER ) ) / 54 ) - - 97 + 84 * 48 + + 62 * - 20 * + + 33 - 3 AS col2
----
-37271

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

query I rowsort
SELECT - 35 + 61 AS col2
----
26

query I rowsort
SELECT - 49 + 42 AS col1
----
-7

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

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

query I rowsort
SELECT ALL - 9 - + 72 AS col2
----
-81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-423
SELECT + 83, + SUM( - - 41 ) * COALESCE ( - + 8, - 87, - 55 * + - 14 ) col2
----
83
-328

skipif mysql # not compatible
query II rowsort label-423
SELECT + 83, + SUM ( - - 41 ) * COALESCE ( - + 8, - 87, - 55 * + - 14 ) col2
----
83
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-424
SELECT ALL + 18 * - 49 + - + ( COUNT( * ) ) * - 59 * - COUNT( * ) + - 28 * 73 + + COUNT( * ) DIV - COUNT( * ) + 8, + 94 + + 79 AS col1
----
-2978
173

skipif mysql # not compatible
query II rowsort label-424
SELECT ALL + 18 * - 49 + - + ( COUNT ( * ) ) * - 59 * - COUNT ( * ) + - 28 * 73 + + COUNT ( * ) / - COUNT ( * ) + 8, + 94 + + 79 AS col1
----
-2978
173

query I rowsort
SELECT - - 87 AS col2
----
87

query I rowsort
SELECT + 98 + 70 AS col0
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT - - 21 + 84 + + 75 * + NULLIF ( COUNT( * ), 78 ), 11 col0
----
180
11

skipif mysql # not compatible
query II rowsort label-427
SELECT - - 21 + 84 + + 75 * + NULLIF ( COUNT ( * ), 78 ), 11 col0
----
180
11

onlyif mysql # aggregate syntax: 
query II rowsort label-428
SELECT + + 82 AS col0, 33 - - COUNT( * ) - + + COUNT( DISTINCT - - 63 ) AS col2
----
82
33

skipif mysql # not compatible
query II rowsort label-428
SELECT + + 82 AS col0, 33 - - COUNT ( * ) - + + COUNT ( DISTINCT - - 63 ) AS col2
----
82
33

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT 10 + + 47 + - 27 + - ( - - 94 ) * + - 58 + + 1 * 77 DIV NULLIF ( 48, - 86 ) AS col0
----
5483

skipif mysql # not compatible
query I rowsort label-429
SELECT 10 + + 47 + - 27 + - ( - - 94 ) * + - 58 + + 1 * 77 / NULLIF ( 48, - 86 ) AS col0
----
5483

query I rowsort
SELECT ALL - 46 AS col2
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL SUM( + 76 ) * 93 AS col0
----
7068

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL SUM ( + 76 ) * 93 AS col0
----
7068

query I rowsort
SELECT + 71 AS col2
----
71

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

query I rowsort
SELECT DISTINCT 40 + - + 42 + 17 + + COALESCE ( - 60, - 20 )
----
-45

query I rowsort
SELECT ALL - 9 AS col0
----
-9

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

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 93 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 22 AS col2
----
-22

query I rowsort
SELECT ALL + 81 + + + 90 AS col1
----
171

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT 9 * SUM( 80 ) + + + ( CASE 84 WHEN + - 14 THEN - 25 + - 45 + - 86 * 24 WHEN + COUNT( * ) THEN NULL END ) AS col2, COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-443
SELECT 9 * SUM ( 80 ) + + + ( CASE 84 WHEN + - 14 THEN - 25 + - 45 + - 86 * 24 WHEN + COUNT ( * ) THEN NULL END ) AS col2, COUNT ( * ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT 53 * + - 32 * - + MIN( + 45 ) AS col2
----
76320

skipif mysql # not compatible
query I rowsort label-444
SELECT 53 * + - 32 * - + MIN ( + 45 ) AS col2
----
76320

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

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

query I rowsort
SELECT ( + + 5 ) * - 67
----
-335

query I rowsort
SELECT - 28 + + 55 + - 97 * - 32 AS col2
----
3131

query I rowsort
SELECT DISTINCT 98 * + + 3 * + 10 + 67
----
3007

query I rowsort
SELECT DISTINCT ( - 10 ) AS col0
----
-10

query I rowsort
SELECT 78 * - + 74
----
-5772

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

query I rowsort
SELECT ALL 45 col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-453
SELECT DISTINCT CASE 37 WHEN 46 * + + 29 + + - CAST( - + CAST( ( + 72 ) AS SIGNED ) AS SIGNED ) THEN - 32 WHEN + 99 - 63 THEN - - 22 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT CASE 37 WHEN 46 * + + 29 + + - CAST ( - + CAST ( ( + 72 ) AS INTEGER ) AS INTEGER ) THEN - 32 WHEN + 99 - 63 THEN - - 22 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - 6 col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT 1 + CASE + - 99 WHEN + COALESCE ( + - ( - + 16 ), + COUNT( * ) ) THEN NULL WHEN - 60 * - COUNT( * ) THEN 70 * - COUNT( * ) ELSE NULL END * + CAST( NULL AS SIGNED ) / - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT 1 + CASE + - 99 WHEN + COALESCE ( + - ( - + 16 ), + COUNT ( * ) ) THEN NULL WHEN - 60 * - COUNT ( * ) THEN 70 * - COUNT ( * ) ELSE NULL END * + CAST ( NULL AS INTEGER ) / - 44 AS col1
----
NULL

query I rowsort
SELECT ALL 68 col0
----
68

query I rowsort
SELECT - CASE - + 63 WHEN + AVG ( + 68 ) THEN NULL WHEN 36 + - - 55 * - 28 + + 39 THEN - - 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT - MIN( 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-458
SELECT - MIN ( 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT 50 - SUM( DISTINCT 3 ) + + 48
----
95

skipif mysql # not compatible
query I rowsort label-459
SELECT 50 - SUM ( DISTINCT 3 ) + + 48
----
95

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-461
SELECT ALL + - 0 * - 77 DIV - 63 AS col0, + 13 AS col2
----
0
13

skipif mysql # not compatible
query II rowsort label-461
SELECT ALL + - 0 * - 77 / - 63 AS col0, + 13 AS col2
----
0
13

query I rowsort
SELECT - - 27 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT ALL 71 + + CAST( + 28 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL 71 + + CAST ( + 28 AS INTEGER )
----
99

query I rowsort
SELECT 47 AS col0
----
47

query I rowsort
SELECT ALL + 84 * 45 * 39 AS col0
----
147420

query I rowsort
SELECT 0 * 57
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-468
SELECT 45 DIV 72 DIV + + 1 * + + 60 DIV - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-468
SELECT 45 / 72 / + + 1 * + + 60 / - + 55 AS col2
----
0

query I rowsort
SELECT 34 AS col0
----
34

query I rowsort
SELECT 26 * + 80
----
2080

onlyif mysql # aggregate syntax: 
query II rowsort label-471
SELECT 77, COUNT( * ) - 53 AS col2
----
77
-52

skipif mysql # not compatible
query II rowsort label-471
SELECT 77, COUNT ( * ) - 53 AS col2
----
77
-52

query I rowsort
SELECT ALL - 0 col0
----
0

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

query I rowsort
SELECT ALL - 9 AS col1
----
-9

query II rowsort
SELECT + 77, + 57 AS col2
----
77
57

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL 81 + - + COUNT( - 57 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL 81 + - + COUNT ( - 57 ) col0
----
80

query I rowsort
SELECT + 80 col1
----
80

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

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

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

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

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

query II rowsort
SELECT ALL - 32 AS col2, 38
----
-32
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT ( - COUNT( * ) ) * COUNT( * ) AS col0, 43 * + 37
----
-1
1591

skipif mysql # not compatible
query II rowsort label-483
SELECT ( - COUNT ( * ) ) * COUNT ( * ) AS col0, 43 * + 37
----
-1
1591

query I rowsort
SELECT ALL 21 - 39 * 84
----
-3255

onlyif mysql # aggregate syntax: 
query II rowsort label-485
SELECT + 4 - - SUM( + + 9 ), - 11 AS col1
----
13
-11

skipif mysql # not compatible
query II rowsort label-485
SELECT + 4 - - SUM ( + + 9 ), - 11 AS col1
----
13
-11

query I rowsort
SELECT 68 * - 26
----
-1768

query I rowsort
SELECT ALL 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT 55 * + MIN( + + 46 )
----
2530

skipif mysql # not compatible
query I rowsort label-488
SELECT 55 * + MIN ( + + 46 )
----
2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-489
SELECT DISTINCT CAST( - COALESCE ( COUNT( * ), 97 / - COUNT( * ) ) AS SIGNED ) * + - COUNT( + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT CAST ( - COALESCE ( COUNT ( * ), 97 / - COUNT ( * ) ) AS INTEGER ) * + - COUNT ( + 55 )
----
1

query I rowsort
SELECT ALL 87 - - + 34
----
121

query I rowsort
SELECT DISTINCT + 73 col2
----
73

query I rowsort
SELECT 16 + - 5
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT 47 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-493
SELECT 47 / - 94
----
0

query I rowsort
SELECT - 53 - - + 38 * + 13
----
441

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT DISTINCT - CASE COUNT( * ) WHEN + 38 THEN 2 WHEN - + 3 THEN NULL ELSE + - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - CASE COUNT ( * ) WHEN + 38 THEN 2 WHEN - + 3 THEN NULL ELSE + - COUNT ( * ) END
----
1

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

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

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

query I rowsort
SELECT - COALESCE ( + 0, - 91 + + 37, 65 - - - 20 )
----
0

query I rowsort
SELECT + + 46 + - + 5 + 4 AS col0
----
45

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

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

query II rowsort
SELECT ALL + 98, 43 * + 19 + - 17 AS col2
----
98
800

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL - SUM( ALL 35 ) + NULLIF ( + 73, - - 6 * + - 92 ) + 16 * + 40 * + 59
----
37798

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL - SUM ( ALL 35 ) + NULLIF ( + 73, - - 6 * + - 92 ) + 16 * + 40 * + 59
----
37798

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

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL - COUNT ( * ) + + + 17 + - COUNT ( * ) AS col2
----
15

query I rowsort
SELECT - 41 + + 3
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT 80 * - 17 + 24 + AVG ( DISTINCT - + 20 ) * - 65 * - CAST( NULL AS SIGNED ) + COALESCE ( COUNT( * ), + 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT 80 * - 17 + 24 + AVG ( DISTINCT - + 20 ) * - 65 * - CAST ( NULL AS INTEGER ) + COALESCE ( COUNT ( * ), + 54 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT - 23 * MIN( - + 47 )
----
1081

skipif mysql # not compatible
query I rowsort label-508
SELECT - 23 * MIN ( - + 47 )
----
1081

query I rowsort
SELECT + 64 col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-510
SELECT - 29 DIV - 8 + COUNT( - 84 ) + + 87 AS col0, - CAST( NULL AS SIGNED ) AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-510
SELECT - 29 / - 8 + COUNT ( - 84 ) + + 87 AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
91
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-511
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + ( - + 0 ) * + 14
----
NULL

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

query I rowsort
SELECT NULLIF ( + 6, - 0 - + 27 ) AS col0
----
6

query I rowsort
SELECT 17 * + 48 + ( + 41 ) + 7 * - 21 col1
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-514
SELECT ALL SUM( DISTINCT + - ( - 50 ) ) * COUNT( - CAST( NULL AS DECIMAL ) ) * + CASE 66 WHEN + - 39 + 97 THEN + + 52 WHEN - 89 + + 92 THEN NULL END * - 9 - 97 * - CASE + 80 WHEN - CAST( NULL AS SIGNED ) + 19 THEN + - 22 * + 11 / + 72 WHEN + + 94 THEN + ( + - 13 ) ELSE + 43 * 53 + + COALESCE ( - - COUNT( * ), COALESCE ( - 74, 77, + + 14 * + + CAST( NULL AS SIGNED ) ) * - + 11 ) END + - - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL SUM ( DISTINCT + - ( - 50 ) ) * COUNT ( - CAST ( NULL AS REAL ) ) * + CASE 66 WHEN + - 39 + 97 THEN + + 52 WHEN - 89 + + 92 THEN NULL END * - 9 - 97 * - CASE + 80 WHEN - CAST ( NULL AS INTEGER ) + 19 THEN + - 22 * + 11 / + 72 WHEN + + 94 THEN + ( + - 13 ) ELSE + 43 * 53 + + COALESCE ( - - COUNT ( * ), COALESCE ( - 74, 77, + + 14 * + + CAST ( NULL AS INTEGER ) ) * - + 11 ) END + - - 3 AS col0
----
NULL

query I rowsort
SELECT - 51 * 53
----
-2703

query I rowsort
SELECT COALESCE ( - 81, - - 5 ) AS col0
----
-81

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

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

query I rowsort
SELECT 18 * - ( 31 ) * + 31 + - 84 AS col1
----
-17382

query I rowsort
SELECT ALL + 34 AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-520
SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX( - CAST( NULL AS SIGNED ) ) AS col1
----
693
NULL

skipif mysql # not compatible
query II rowsort label-520
SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
693
NULL

query I rowsort
SELECT ALL + 82 AS col0
----
82

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

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

query I rowsort
SELECT ALL + 59 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL + + MAX( - ( 30 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + + MAX ( - ( 30 ) ) AS col0
----
-30

query I rowsort
SELECT + + 11 + 3 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-526
SELECT - CASE + + 36 WHEN - 58 THEN - - 28 * - 98 + 72 + - + AVG ( 73 ) WHEN - + 44 THEN NULL WHEN + - 81 THEN 80 * + 51 END * + COUNT( * ) * + 41 AS col1, 44 + + - 33 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-526
SELECT - CASE + + 36 WHEN - 58 THEN - - 28 * - 98 + 72 + - + AVG ( 73 ) WHEN - + 44 THEN NULL WHEN + - 81 THEN 80 * + 51 END * + COUNT ( * ) * + 41 AS col1, 44 + + - 33 AS col0
----
NULL
11

query I rowsort
SELECT - ( - 1 )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT + COUNT( * ) * - 10 - - + COUNT( * ) - COALESCE ( + 52, + + COALESCE ( - SUM( ALL - 53 ), + 79 * - CAST( NULL AS SIGNED ) ) ) + - - 75 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-529
SELECT + COUNT ( * ) * - 10 - - + COUNT ( * ) - COALESCE ( + 52, + + COALESCE ( - SUM ( ALL - 53 ), + 79 * - CAST ( NULL AS INTEGER ) ) ) + - - 75 AS col0
----
14

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

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

query I rowsort
SELECT ALL 43 * 41 * ( + 47 ) * + 25 AS col0
----
2071525

query I rowsort
SELECT - + 87
----
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-533
SELECT + + 59 + - + CAST( NULL AS SIGNED ) AS col1, + ( 65 ) DIV + + 17 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-533
SELECT + + 59 + - + CAST ( NULL AS INTEGER ) AS col1, + ( 65 ) / + + 17 AS col1
----
NULL
3

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

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

query I rowsort
SELECT DISTINCT 19 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT ALL - AVG ( DISTINCT + 75 ) + CAST( NULL AS SIGNED ) + - 7 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL - AVG ( DISTINCT + 75 ) + CAST ( NULL AS INTEGER ) + - 7 + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT - 46 + 73 + + 36 * + MAX( DISTINCT - 23 ) AS col2
----
-801

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - 46 + 73 + + 36 * + MAX ( DISTINCT - 23 ) AS col2
----
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT + - COUNT( * ) * - 16 * + - 88 * CAST( - 25 AS SIGNED ) * + 19 + 29
----
668829

skipif mysql # not compatible
query I rowsort label-538
SELECT + - COUNT ( * ) * - 16 * + - 88 * CAST ( - 25 AS INTEGER ) * + 19 + 29
----
668829

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT + CASE + COUNT( * ) WHEN + 48 THEN NULL ELSE 4 END + + COUNT( * ) + - 19
----
-14

skipif mysql # not compatible
query I rowsort label-539
SELECT + CASE + COUNT ( * ) WHEN + 48 THEN NULL ELSE 4 END + + COUNT ( * ) + - 19
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-540
SELECT ALL 46 + CAST( NULL AS SIGNED ), ( COUNT( - 35 ) ) + - + 52 * 35 AS col0
----
NULL
-1819

skipif mysql # not compatible
query II rowsort label-540
SELECT ALL 46 + CAST ( NULL AS INTEGER ), ( COUNT ( - 35 ) ) + - + 52 * 35 AS col0
----
NULL
-1819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT ALL CASE CAST( - CASE - COUNT( * ) WHEN 73 THEN NULL ELSE + 91 END AS SIGNED ) WHEN - COUNT( * ) * - - 91 * + - 91 THEN + NULLIF ( + 65, + 48 - - + 40 ) WHEN - 91 THEN - 12 END
----
-12

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL CASE CAST ( - CASE - COUNT ( * ) WHEN 73 THEN NULL ELSE + 91 END AS INTEGER ) WHEN - COUNT ( * ) * - - 91 * + - 91 THEN + NULLIF ( + 65, + 48 - - + 40 ) WHEN - 91 THEN - 12 END
----
-12

query I rowsort
SELECT - ( - 6 ) col0
----
6

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

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

query I rowsort
SELECT - 53 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT ALL COALESCE ( + 69, - - 3, NULLIF ( - COALESCE ( 67, + 31, + 38 ), + - 57 ) DIV + 48 * + - CASE + - 31 WHEN + 37 + - - 71 * 84 THEN NULL ELSE + 14 END * + 43 - - 84 * + - COUNT( ALL - + 14 ), + CASE + + COUNT( * ) WHEN + 60 THEN 12 * 41 * + - 8 + - 37 ELSE 87 - + + 3 * + + COUNT( * ) END DIV - 10 ) * 12 * + MAX( - 66 ) col0
----
-54648

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL COALESCE ( + 69, - - 3, NULLIF ( - COALESCE ( 67, + 31, + 38 ), + - 57 ) / + 48 * + - CASE + - 31 WHEN + 37 + - - 71 * 84 THEN NULL ELSE + 14 END * + 43 - - 84 * + - COUNT ( ALL - + 14 ), + CASE + + COUNT ( * ) WHEN + 60 THEN 12 * 41 * + - 8 + - 37 ELSE 87 - + + 3 * + + COUNT ( * ) END / - 10 ) * 12 * + MAX ( - 66 ) col0
----
-54648

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT + 17 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT + 17 / - 68
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-548
SELECT ALL - 12 - - 80 * + CASE - - CAST( NULL AS SIGNED ) WHEN 84 + - 19 THEN NULL ELSE + - 90 END AS col1
----
-7212

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - 12 - - 80 * + CASE - - CAST ( NULL AS INTEGER ) WHEN 84 + - 19 THEN NULL ELSE + - 90 END AS col1
----
-7212

query I rowsort
SELECT DISTINCT 17 * - 42
----
-714

query I rowsort
SELECT DISTINCT + COALESCE ( - - 4, 69 + + - 14 - ( 59 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-551
SELECT CAST( NULL AS SIGNED ), COUNT( + 79 ) + - 18 AS col2
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-551
SELECT CAST ( NULL AS INTEGER ), COUNT ( + 79 ) + - 18 AS col2
----
NULL
-17

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT CAST( 98 AS SIGNED ) col2
----
98

skipif mysql # not compatible
query I rowsort label-554
SELECT CAST ( 98 AS INTEGER ) col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT + 10 * - 22 * CAST( + + ( - 3 ) AS SIGNED ) * - 43 * + 82 AS col2
----
-2327160

skipif mysql # not compatible
query I rowsort label-555
SELECT + 10 * - 22 * CAST ( + + ( - 3 ) AS INTEGER ) * - 43 * + 82 AS col2
----
-2327160

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT DISTINCT - 77 DIV 31 * + ( - - 59 ) col0
----
-118

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT - 77 / 31 * + ( - - 59 ) col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT ALL + 59 * - COUNT( DISTINCT ( + ( 65 ) ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + 59 * - COUNT ( DISTINCT ( + ( 65 ) ) ) AS col0
----
-59

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-560
SELECT 60 * + 71 + + 14 DIV COUNT( * ) AS col0
----
4274

skipif mysql # not compatible
query I rowsort label-560
SELECT 60 * + 71 + + 14 / COUNT ( * ) AS col0
----
4274

query I rowsort
SELECT ( ( 83 ) )
----
83

query I rowsort
SELECT ALL - 87 * 5 col1
----
-435

query I rowsort
SELECT ( ( + 78 ) ) col1
----
78

query I rowsort
SELECT - 43 * 7
----
-301

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

skipif mysql # not compatible
query I rowsort label-565
SELECT COUNT ( * ) * 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT + 41 * 79 - COUNT( * ) AS col2
----
3238

skipif mysql # not compatible
query I rowsort label-566
SELECT + 41 * 79 - COUNT ( * ) AS col2
----
3238

query I rowsort
SELECT 53 AS col1
----
53

query I rowsort
SELECT ALL - CASE 93 WHEN + 3 THEN + 69 WHEN 50 + + 52 THEN NULL WHEN 25 THEN 5 END + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT 95 + NULLIF ( + MIN( ALL - 40 ), + 57 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-569
SELECT 95 + NULLIF ( + MIN ( ALL - 40 ), + 57 ) AS col2
----
55

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

query I rowsort
SELECT 4 + 10 * - 46
----
-456

query I rowsort
SELECT ALL 75 col2
----
75

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

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

query I rowsort
SELECT 39 + 65 AS col0
----
104

query I rowsort
SELECT ALL - 25 * 35 AS col2
----
-875

query I rowsort
SELECT DISTINCT 92 col2
----
92

query I rowsort
SELECT - 96
----
-96

query I rowsort
SELECT ALL 98 AS col1
----
98

query I rowsort
SELECT 29 + - 73 * - 5 AS col2
----
394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT 6 - COALESCE ( 28, CASE - CAST( + 84 AS SIGNED ) WHEN ( COUNT( * ) ) THEN NULL ELSE 99 * + 80 END DIV 73 + - 92 DIV 80 )
----
-22

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT 6 - COALESCE ( 28, CASE - CAST ( + 84 AS INTEGER ) WHEN ( COUNT ( * ) ) THEN NULL ELSE 99 * + 80 END / 73 + - 92 / 80 )
----
-22

query I rowsort
SELECT DISTINCT + 8 * 19 col0
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT ALL 58 DIV - 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL 58 / - 7 AS col0
----
-8

query I rowsort
SELECT 77 AS col0
----
77

query I rowsort
SELECT 35 + 20 AS col0
----
55

query I rowsort
SELECT - 20 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT ALL 5 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL 5 / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT NULLIF ( 32, 96 ) * - ( + COUNT( * ) * + 96 ) AS col1
----
-3072

skipif mysql # not compatible
query I rowsort label-587
SELECT NULLIF ( 32, 96 ) * - ( + COUNT ( * ) * + 96 ) AS col1
----
-3072

query I rowsort
SELECT ( - 0 ) * 25 AS col2
----
0

query I rowsort
SELECT 54 * + 99
----
5346

query I rowsort
SELECT ALL - 25 col2
----
-25

query I rowsort
SELECT 54 * + 10 + 79 col0
----
619

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT ALL - COALESCE ( 80, 59 + COUNT( * ) * 62 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL - COALESCE ( 80, 59 + COUNT ( * ) * 62 ) AS col1
----
-80

query I rowsort
SELECT + 88 col0
----
88

query I rowsort
SELECT DISTINCT - 12
----
-12

query I rowsort
SELECT ALL 62 * - 53 AS col2
----
-3286

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

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL + 91 + - COUNT ( * ) AS col1
----
90

query I rowsort
SELECT 2 * - 83 col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - 49 * + 91 + + 24 * + COUNT( * )
----
-4435

skipif mysql # not compatible
query I rowsort label-598
SELECT - 49 * + 91 + + 24 * + COUNT ( * )
----
-4435

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

query I rowsort
SELECT DISTINCT + 72 + 93 AS col1
----
165

query I rowsort
SELECT + 47 + ( - 22 ) * 65 AS col1
----
-1383

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL + COUNT( * ) + + ( - 75 + 71 ) * - 64
----
257

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL + COUNT ( * ) + + ( - 75 + 71 ) * - 64
----
257

query I rowsort
SELECT + - 71
----
-71

query I rowsort
SELECT ALL - - 39
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + 13 DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-605
SELECT + 13 / + 74 AS col2
----
0

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

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

query I rowsort
SELECT ALL - - 61 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT ALL - SUM( - 30 ) + 73 * ( ( CAST( + ( 38 ) AS SIGNED ) ) )
----
2804

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL - SUM ( - 30 ) + 73 * ( ( CAST ( + ( 38 ) AS INTEGER ) ) )
----
2804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT - COUNT( * ) + + 9 * + CAST( 56 + CAST( 20 + MIN( DISTINCT - 67 ) AS SIGNED ) * COUNT( * ) AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-609
SELECT - COUNT ( * ) + + 9 * + CAST ( 56 + CAST ( 20 + MIN ( DISTINCT - 67 ) AS INTEGER ) * COUNT ( * ) AS INTEGER ) AS col2
----
80

query I rowsort
SELECT - 60 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT CASE + 82 WHEN 83 + 46 * 29 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT CASE + 82 WHEN 83 + 46 * 29 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT - 82 * 52 + - CASE - 14 + 99 WHEN - ( - 51 ) * COUNT( * ) THEN NULL WHEN - 95 + 9 THEN 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT - 82 * 52 + - CASE - 14 + 99 WHEN - ( - 51 ) * COUNT ( * ) THEN NULL WHEN - 95 + 9 THEN 5 END
----
NULL

query I rowsort
SELECT + 89 * 3
----
267

query I rowsort
SELECT - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT - MIN( ALL 60 ) + 8 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-615
SELECT - MIN ( ALL 60 ) + 8 AS col2
----
-52

query I rowsort
SELECT - 11 + + 64 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT 19 DIV NULLIF ( + 29, 50 + + 20 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT 19 / NULLIF ( + 29, 50 + + 20 ) col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT 61 + + 25 + + 13 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-620
SELECT 61 + + 25 + + 13 * COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT MAX( + NULLIF ( - COALESCE ( - 31, - 9 ), 9 ) ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT MAX ( + NULLIF ( - COALESCE ( - 31, - 9 ), 9 ) ) * 0
----
0

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

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

query I rowsort
SELECT 35 * 11 col2
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT MIN( + + 70 ) + 34
----
104

skipif mysql # not compatible
query I rowsort label-624
SELECT MIN ( + + 70 ) + 34
----
104

query I rowsort
SELECT - 15 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT + 76 * - COUNT( * ) * + 9 AS col0
----
-684

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + 76 * - COUNT ( * ) * + 9 AS col0
----
-684

query I rowsort
SELECT DISTINCT 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT DISTINCT + 77 * + + SUM( + 28 ) AS col1
----
2156

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT + 77 * + + SUM ( + 28 ) AS col1
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL + 59 + MAX( DISTINCT - 35 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + 59 + MAX ( DISTINCT - 35 ) col1
----
24

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

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

query I rowsort
SELECT ALL - 24 * 40 + 91 * 62
----
4682

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

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

query I rowsort
SELECT 8 AS col0
----
8

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

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

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

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

query I rowsort
SELECT ALL 34 * + 77 + + 22 col0
----
2640

query I rowsort
SELECT DISTINCT - - ( ( 60 ) ) * + 6 + - 36
----
324

query I rowsort
SELECT ALL - - 57 * - + 74 * - 96 + + 28
----
404956

query I rowsort
SELECT ALL - 16 * - 95
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT MIN( DISTINCT - + ( 3 ) ) * 84 + 36
----
-216

skipif mysql # not compatible
query I rowsort label-641
SELECT MIN ( DISTINCT - + ( 3 ) ) * 84 + 36
----
-216

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL + COUNT( * ) * + COALESCE ( 2, COALESCE ( COUNT( DISTINCT - 11 ), 21 + 66 ) * 87 ) * - ( COUNT( * ) ) - 39
----
-41

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL + COUNT ( * ) * + COALESCE ( 2, COALESCE ( COUNT ( DISTINCT - 11 ), 21 + 66 ) * 87 ) * - ( COUNT ( * ) ) - 39
----
-41

query I rowsort
SELECT - 56 * - - 14 AS col0
----
-784

query I rowsort
SELECT DISTINCT 94
----
94

query I rowsort
SELECT DISTINCT 11 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - COUNT( * ) * - 67 * COUNT( * ) - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-648
SELECT - COUNT ( * ) * - 67 * COUNT ( * ) - COUNT ( * )
----
66

query I rowsort
SELECT ALL + 53 * + + 73
----
3869

query I rowsort
SELECT + 17 + 89 AS col1
----
106

query I rowsort
SELECT 31 AS col0
----
31

query I rowsort
SELECT ALL CASE 6 WHEN 76 + - 99 * 53 THEN - 69 WHEN - 63 / + ( ( 25 ) ) THEN NULL ELSE - 56 END
----
-56

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT - CASE - - 49 WHEN + 32 * 79 THEN NULL ELSE + 53 * - 16 END * - COUNT( * )
----
-848

skipif mysql # not compatible
query I rowsort label-656
SELECT - CASE - - 49 WHEN + 32 * 79 THEN NULL ELSE + 53 * - 16 END * - COUNT ( * )
----
-848

query I rowsort
SELECT ALL + 91 + - 41 * 18 col1
----
-647

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL - SUM( - 69 ) + - + 95
----
-26

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - SUM ( - 69 ) + - + 95
----
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - COUNT( * ) + + - MIN( DISTINCT 69 )
----
-70

skipif mysql # not compatible
query I rowsort label-661
SELECT - COUNT ( * ) + + - MIN ( DISTINCT 69 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT - 92 AS col2, COALESCE ( MAX( 94 ), 1 )
----
-92
94

skipif mysql # not compatible
query II rowsort label-662
SELECT - 92 AS col2, COALESCE ( MAX ( 94 ), 1 )
----
-92
94

query I rowsort
SELECT + 3 * + + 57
----
171

query I rowsort
SELECT + 66 * - 79 + 32 - + 47 * NULLIF ( 69, - 87 )
----
-8425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT DISTINCT - 19 DIV + 87 + + - NULLIF ( 17, + COUNT( * ) ) * NULLIF ( - 40, - 42 - 9 * 35 ) AS col1
----
680

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - 19 / + 87 + + - NULLIF ( 17, + COUNT ( * ) ) * NULLIF ( - 40, - 42 - 9 * 35 ) AS col1
----
680

query I rowsort
SELECT DISTINCT + + 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL - 76 / + 49 * + CASE + NULLIF ( AVG ( - 45 ), + 87 ) WHEN + 29 + - 27 THEN + ( 83 ) WHEN COUNT( * ) THEN + NULLIF ( + 7, + 79 ) END + - NULLIF ( - ( - 39 ) + 83, + 84 * 72 ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - 76 / + 49 * + CASE + NULLIF ( AVG ( - 45 ), + 87 ) WHEN + 29 + - 27 THEN + ( 83 ) WHEN COUNT ( * ) THEN + NULLIF ( + 7, + 79 ) END + - NULLIF ( - ( - 39 ) + 83, + 84 * 72 ) / COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - - COUNT( * ) * + + NULLIF ( - 3, 59 ) * - 49
----
147

skipif mysql # not compatible
query I rowsort label-668
SELECT - - COUNT ( * ) * + + NULLIF ( - 3, 59 ) * - 49
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + MIN( + - 29 ) + 51 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-669
SELECT + MIN ( + - 29 ) + 51 AS col2
----
22

query II rowsort
SELECT ALL + + 60, - 97 * - 3 AS col0
----
60
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT + COALESCE ( - CAST( - 46 AS SIGNED ), - 73 * - 94 )
----
46

skipif mysql # not compatible
query I rowsort label-671
SELECT + COALESCE ( - CAST ( - 46 AS INTEGER ), - 73 * - 94 )
----
46

query I rowsort
SELECT 51 * - - 65 + - 45 AS col2
----
3270

query I rowsort
SELECT - 44 * + 35 * - + 55 AS col2
----
84700

query I rowsort
SELECT DISTINCT + - 83
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-675
SELECT 16, COALESCE ( + COUNT( * ), + 35, 79 * 53 ) DIV + 42 AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-675
SELECT 16, COALESCE ( + COUNT ( * ), + 35, 79 * 53 ) / + 42 AS col2
----
16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - - NULLIF ( ( 86 ), 62 ) * COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-676
SELECT - - NULLIF ( ( 86 ), 62 ) * COUNT ( * )
----
86

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-678
SELECT ALL COUNT( * ) DIV - 86 * + ( + 53 ) + + 26
----
26

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL COUNT ( * ) / - 86 * + ( + 53 ) + + 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT + 71 DIV + - 83 * + 23 * + 91
----
0

skipif mysql # not compatible
query I rowsort label-679
SELECT + 71 / + - 83 * + 23 * + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT + COALESCE ( + 91, 98, 95 + 35 ) DIV 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-680
SELECT + COALESCE ( + 91, 98, 95 + 35 ) / 78 AS col2
----
1

query I rowsort
SELECT ALL - 5 * + 15 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT + + COUNT( DISTINCT - 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-682
SELECT + + COUNT ( DISTINCT - 94 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL MAX( + 2 ) * + 64
----
128

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL MAX ( + 2 ) * + 64
----
128

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

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

query I rowsort
SELECT ALL + + 51 AS col0
----
51

query I rowsort
SELECT + + 49 * 32
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL + 44 * + COUNT( * ) * - 68
----
-2992

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + 44 * + COUNT ( * ) * - 68
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT + NULLIF ( + + MIN( - 36 ), - COUNT( * ) + 1 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-688
SELECT + NULLIF ( + + MIN ( - 36 ), - COUNT ( * ) + 1 ) AS col2
----
-36

query I rowsort
SELECT CASE - 6 WHEN - - 92 + - - 49 THEN + 27 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT CASE - ( + - COUNT( DISTINCT + - 67 ) ) WHEN 75 + + 13 THEN - 0 + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT CASE - ( + - COUNT ( DISTINCT + - 67 ) ) WHEN 75 + + 13 THEN - 0 + 7 ELSE NULL END
----
NULL

query I rowsort
SELECT - 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT - 74 * + - ( + COUNT( * ) ) * 42 + 13
----
3121

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - 74 * + - ( + COUNT ( * ) ) * 42 + 13
----
3121

query I rowsort
SELECT ALL - 31 * - + ( - 25 )
----
-775

query I rowsort
SELECT + 81 * + 46
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL 87 + - COUNT( * ) * - - 77 * + 13
----
-914

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL 87 + - COUNT ( * ) * - - 77 * + 13
----
-914

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL + COUNT( ALL + 72 ) + COALESCE ( + 67, - 45 * + 49 + + 57 ) * + 96
----
6433

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + COUNT ( ALL + 72 ) + COALESCE ( + 67, - 45 * + 49 + + 57 ) * + 96
----
6433

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL - 5 + - 0 + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - 5 + - 0 + - COUNT ( * )
----
-6

query I rowsort
SELECT ALL 39 * - 21
----
-819

query I rowsort
SELECT - 51 + 76
----
25

query I rowsort
SELECT - 81 AS col0
----
-81

query I rowsort
SELECT ALL + 60 + - 99 AS col1
----
-39

query I rowsort
SELECT - 37
----
-37

query I rowsort
SELECT AVG ( DISTINCT - + 94 ) / + + CASE - 41 WHEN 32 THEN - 96 * - CASE 35 WHEN - 65 THEN 83 ELSE 70 END ELSE NULL END + + 82 * 63 AS col0
----
NULL

query I rowsort
SELECT 98 col0
----
98

query I rowsort
SELECT ALL + 41 + 64 AS col2
----
105

query I rowsort
SELECT DISTINCT + 51
----
51

query I rowsort
SELECT ALL - 60 - + 27
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT - MIN( - 64 ) * - - 43 AS col0
----
2752

skipif mysql # not compatible
query I rowsort label-708
SELECT - MIN ( - 64 ) * - - 43 AS col0
----
2752

query I rowsort
SELECT ALL - + 49 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT - 41 * - + NULLIF ( - - COUNT( * ), + AVG ( DISTINCT + 19 ) / - 77 + - 72 ) + 88 * 33 AS col0
----
2945

skipif mysql # not compatible
query I rowsort label-710
SELECT - 41 * - + NULLIF ( - - COUNT ( * ), + AVG ( DISTINCT + 19 ) / - 77 + - 72 ) + 88 * 33 AS col0
----
2945

query I rowsort
SELECT + + 92
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT - + 63 / + 58 * - - CASE - 80 WHEN + 66 / CASE 67 * 45 WHEN - 8 * 3 THEN COUNT( * ) / NULLIF ( - COALESCE ( ( 57 ), 40, 17 ), 61 ) ELSE NULL END THEN NULL WHEN 78 THEN CAST( 85 AS SIGNED ) + + ( 55 ) * 94 END + 64 - CAST( 13 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT - + 63 / + 58 * - - CASE - 80 WHEN + 66 / CASE 67 * 45 WHEN - 8 * 3 THEN COUNT ( * ) / NULLIF ( - COALESCE ( ( 57 ), 40, 17 ), 61 ) ELSE NULL END THEN NULL WHEN 78 THEN CAST ( 85 AS INTEGER ) + + ( 55 ) * 94 END + 64 - CAST ( 13 AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - + 62 * + COALESCE ( 10, + + 8 ) AS col1
----
-620

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

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

query I rowsort
SELECT DISTINCT - - 17
----
17

query I rowsort
SELECT DISTINCT - - 12 * + + 22 AS col0
----
264

query I rowsort
SELECT ALL - 46 AS col0
----
-46

query I rowsort
SELECT 79 * + - ( NULLIF ( - + 46, 48 + + 34 ) ) - - 54 * 91 AS col0
----
8548

query I rowsort
SELECT ALL - - 74 AS col0
----
74

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

query I rowsort
SELECT - 63 AS col2
----
-63

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

query I rowsort
SELECT DISTINCT + 90 + + - 93 + - ( + 37 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT + 0 AS col0, 38 * - COUNT( * ) AS col0
----
0
-38

skipif mysql # not compatible
query II rowsort label-725
SELECT + 0 AS col0, 38 * - COUNT ( * ) AS col0
----
0
-38

query I rowsort
SELECT NULLIF ( 96, + 37 + - 0 ) * + + 49 + + 55
----
4759

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

query I rowsort
SELECT ALL - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-729
SELECT ALL + ( + 48 ) DIV MAX( ALL + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + ( + 48 ) / MAX ( ALL + 33 )
----
1

query I rowsort
SELECT 73 + + 1 AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT ALL - 72 + - - 86 DIV 93 * - 56
----
-72

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - 72 + - - 86 / 93 * - 56
----
-72

query I rowsort
SELECT DISTINCT + 18 * 94
----
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT ALL COUNT( * ) + - MAX( DISTINCT 1 ) DIV 90 + - - 46 * + 84
----
3865

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT 1 ) / 90 + - - 46 * + 84
----
3865

query I rowsort
SELECT - 69 AS col0
----
-69

query I rowsort
SELECT - 71 AS col0
----
-71

query I rowsort
SELECT 63 * - 7 AS col1
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT 99 + COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-737
SELECT 99 + COUNT ( * ) AS col1
----
100

query I rowsort
SELECT ALL 33 + + - 62
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL SUM( + 9 ) + 56 + - COUNT( * ) * - COUNT( DISTINCT + 42 ) * ( 66 + + NULLIF ( 66 + + 14, ( - 52 ) / MAX( ( - 71 ) ) ) )
----
211

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL SUM ( + 9 ) + 56 + - COUNT ( * ) * - COUNT ( DISTINCT + 42 ) * ( 66 + + NULLIF ( 66 + + 14, ( - 52 ) / MAX ( ( - 71 ) ) ) )
----
211

query I rowsort
SELECT - 80 AS col1
----
-80

query I rowsort
SELECT CASE - - 49 WHEN + - 6 + - 69 THEN 51 END - 45
----
NULL

query I rowsort
SELECT 88 * + - 78 AS col0
----
-6864

query I rowsort
SELECT ALL 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL 97 - - 11 + COUNT( + - 47 ) - + - 30 + + 46
----
185

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 97 - - 11 + COUNT ( + - 47 ) - + - 30 + + 46
----
185

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

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

query I rowsort
SELECT 22 - + 69 + + + 68 * + 89 + 87
----
6092

query I rowsort
SELECT DISTINCT + 73 * - 17
----
-1241

query I rowsort
SELECT 25 + - 11 AS col1
----
14

query I rowsort
SELECT 71 * 92 col0
----
6532

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

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

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

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

query I rowsort
SELECT - + 17
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT - 19 * + COUNT( * ) + + COUNT( * ) + - 91 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-754
SELECT - 19 * + COUNT ( * ) + + COUNT ( * ) + - 91 AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT CAST( COALESCE ( + SUM( ALL 94 ), 5 ) AS SIGNED ) * 83 col2
----
7802

skipif mysql # not compatible
query I rowsort label-755
SELECT CAST ( COALESCE ( + SUM ( ALL 94 ), 5 ) AS INTEGER ) * 83 col2
----
7802

query I rowsort
SELECT DISTINCT - - 78
----
78

query I rowsort
SELECT ALL - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT - + 2 DIV - - COUNT( * ) + - 22 col1
----
-24

skipif mysql # not compatible
query I rowsort label-758
SELECT - + 2 / - - COUNT ( * ) + - 22 col1
----
-24

query I rowsort
SELECT ALL - 68 * + 15 + - - 18 * + + 57
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT ALL - - 6 AS col2, + 12 - - MIN( DISTINCT + 66 ) AS col0
----
6
78

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL - - 6 AS col2, + 12 - - MIN ( DISTINCT + 66 ) AS col0
----
6
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-763
SELECT - 89 + + CAST( - 43 AS SIGNED ) AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-763
SELECT - 89 + + CAST ( - 43 AS INTEGER ) AS col0
----
-132

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

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT + 56 DIV - 7 + - ( 0 ) + - 47 + + 39 * + 94 AS col0
----
3611

skipif mysql # not compatible
query I rowsort label-765
SELECT + 56 / - 7 + - ( 0 ) + - 47 + + 39 * + 94 AS col0
----
3611

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT ALL + + NULLIF ( 62, + 84 ) + 76 + 23 DIV - 63
----
138

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + + NULLIF ( 62, + 84 ) + 76 + 23 / - 63
----
138

query I rowsort
SELECT 69 col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-768
SELECT 83 + - + 29 + - + MIN( ALL ( + 25 ) ) * - 1 DIV + 98
----
54

skipif mysql # not compatible
query I rowsort label-768
SELECT 83 + - + 29 + - + MIN ( ALL ( + 25 ) ) * - 1 / + 98
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-769
SELECT COUNT( * ), SUM( + - 51 ) + + - MAX( + 4 ) + + 75 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-769
SELECT COUNT ( * ), SUM ( + - 51 ) + + - MAX ( + 4 ) + + 75 AS col0
----
1
20

query I rowsort
SELECT ALL - 31 * 31 AS col1
----
-961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-771
SELECT ALL + 77 + - 42 * COALESCE ( - 82, - 77 + 91 + - NULLIF ( 71, + 87 ) * 12 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL + 77 + - 42 * COALESCE ( - 82, - 77 + 91 + - NULLIF ( 71, + 87 ) * 12 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 50 * - + 96
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT 73 * - NULLIF ( + NULLIF ( + COALESCE ( + - 3, + 7, + 50 ), - CASE 77 WHEN COUNT( * ) * COUNT( * ) + - 15 THEN COUNT( ALL + 8 ) + 63 / 41 ELSE NULL END ), 53 ) col0
----
219

skipif mysql # not compatible
query I rowsort label-773
SELECT 73 * - NULLIF ( + NULLIF ( + COALESCE ( + - 3, + 7, + 50 ), - CASE 77 WHEN COUNT ( * ) * COUNT ( * ) + - 15 THEN COUNT ( ALL + 8 ) + 63 / 41 ELSE NULL END ), 53 ) col0
----
219

query I rowsort
SELECT ALL + 4 + 98 AS col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT + 58 AS col0, - 9 / - 9 + COUNT( * ) - CASE 83 WHEN 12 THEN - 48 WHEN 90 THEN NULL END
----
58
NULL

skipif mysql # not compatible
query II rowsort label-775
SELECT + 58 AS col0, - 9 / - 9 + COUNT ( * ) - CASE 83 WHEN 12 THEN - 48 WHEN 90 THEN NULL END
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL - 77 + CASE - MIN( ALL + 33 ) WHEN + - 65 * - 2 * 6 THEN 70 + 32 ELSE NULL END + - 40 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - 77 + CASE - MIN ( ALL + 33 ) WHEN + - 65 * - 2 * 6 THEN 70 + 32 ELSE NULL END + - 40 * + 70
----
NULL

query II rowsort
SELECT 42, + 67 AS col2
----
42
67

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT + 14 AS col1, 74 + + + COUNT( DISTINCT 86 ) + + 72 + + 94 * 15 * COUNT( * )
----
14
1557

skipif mysql # not compatible
query II rowsort label-778
SELECT + 14 AS col1, 74 + + + COUNT ( DISTINCT 86 ) + + 72 + + 94 * 15 * COUNT ( * )
----
14
1557

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL - COUNT( * ) + ( 53 )
----
52

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - COUNT ( * ) + ( 53 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT - 16 + - + NULLIF ( + SUM( 83 ), - + 69 + + 18 + + 15 ) + + 39 * COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-780
SELECT - 16 + - + NULLIF ( + SUM ( 83 ), - + 69 + + 18 + + 15 ) + + 39 * COUNT ( * ) AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-781
SELECT - CAST( + 19 AS SIGNED ) + + 40 DIV - 95 + 40
----
21

skipif mysql # not compatible
query I rowsort label-781
SELECT - CAST ( + 19 AS INTEGER ) + + 40 / - 95 + 40
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-782
SELECT ALL + MAX( - 26 ) - CASE - 53 WHEN - + 88 * - CAST( + SUM( - 29 ) AS SIGNED ) + - 26 THEN NULL ELSE + 26 * - CAST( NULL AS DECIMAL ) + 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL + MAX ( - 26 ) - CASE - 53 WHEN - + 88 * - CAST ( + SUM ( - 29 ) AS INTEGER ) + - 26 THEN NULL ELSE + 26 * - CAST ( NULL AS REAL ) + 92 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT DISTINCT + 87 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT + 87 / + 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT ALL 80 * - 65 * - COUNT( DISTINCT - 92 ) col2, COUNT( * ) AS col2
----
5200
1

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL 80 * - 65 * - COUNT ( DISTINCT - 92 ) col2, COUNT ( * ) AS col2
----
5200
1

query I rowsort
SELECT ALL + 70 * - 74
----
-5180

query I rowsort
SELECT DISTINCT - 15 * ( 22 )
----
-330

query II rowsort
SELECT + 48 * + 59 * + - 36 + - 86 AS col0, ( - 56 )
----
-102038
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + + ( MAX( DISTINCT + + 19 ) ) + + MIN( DISTINCT 9 ) + 75 * - 16
----
-1172

skipif mysql # not compatible
query I rowsort label-788
SELECT + + ( MAX ( DISTINCT + + 19 ) ) + + MIN ( DISTINCT 9 ) + 75 * - 16
----
-1172

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + SUM( DISTINCT - - 68 ) + + + 69
----
137

skipif mysql # not compatible
query I rowsort label-789
SELECT + SUM ( DISTINCT - - 68 ) + + + 69
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT + 50 * CASE - + 17 WHEN + 24 + - + 96 THEN NULL WHEN - ( + 12 ) THEN 23 + COUNT( * ) WHEN COUNT( * ) - 73 * + 56 THEN + COUNT( DISTINCT 45 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT + 50 * CASE - + 17 WHEN + 24 + - + 96 THEN NULL WHEN - ( + 12 ) THEN 23 + COUNT ( * ) WHEN COUNT ( * ) - 73 * + 56 THEN + COUNT ( DISTINCT 45 ) END
----
NULL

query I rowsort
SELECT ALL ( + - 91 ) * + - 28
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT + CASE - ( - COUNT( * ) ) WHEN + 26 THEN ( - 70 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + CASE - ( - COUNT ( * ) ) WHEN + 26 THEN ( - 70 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-793
SELECT ALL 34 + - 43 + + + ( COALESCE ( + - COUNT( * ), 18 + - 5, - COALESCE ( 92, 1 DIV 94 + 7 ) * ( - COUNT( * ) ), 42 * 77 ) ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL 34 + - 43 + + + ( COALESCE ( + - COUNT ( * ), 18 + - 5, - COALESCE ( 92, 1 / 94 + 7 ) * ( - COUNT ( * ) ), 42 * 77 ) ) col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT DISTINCT 38 DIV - + 14 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT 38 / - + 14 AS col1
----
-2

query I rowsort
SELECT + + 68 * + 25 * 53 AS col2
----
90100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-796
SELECT ALL + COUNT( DISTINCT 84 ) * 84 * - MAX( + 63 ) * 52 * CAST( + 20 * - 50 AS SIGNED ) + 3
----
275184003

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + COUNT ( DISTINCT 84 ) * 84 * - MAX ( + 63 ) * 52 * CAST ( + 20 * - 50 AS INTEGER ) + 3
----
275184003

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

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

query I rowsort
SELECT + - 34
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-799
SELECT - 25 AS col0, - COUNT( + 92 ) * - 49 col0
----
-25
49

skipif mysql # not compatible
query II rowsort label-799
SELECT - 25 AS col0, - COUNT ( + 92 ) * - 49 col0
----
-25
49

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT + 12 DIV 9 + + 66 - + 4 + - 77 + + 3 DIV + 67 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-800
SELECT + 12 / 9 + + 66 - + 4 + - 77 + + 3 / + 67 AS col2
----
-14

query I rowsort
SELECT + - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL COUNT( * ) * + 15 * + - 32 * - 62 + + - 62 AS col2
----
29698

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL COUNT ( * ) * + 15 * + - 32 * - 62 + + - 62 AS col2
----
29698

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-803
SELECT ( 79 ) AS col0, - COUNT( * ) DIV + 27 * - 56
----
79
0

skipif mysql # not compatible
query II rowsort label-803
SELECT ( 79 ) AS col0, - COUNT ( * ) / + 27 * - 56
----
79
0

onlyif mysql # DIV for integer division: 
query II rowsort label-804
SELECT ALL + 59 * - 1 + + - ( - ( - + 25 ) ), 96 + 16 + 34 DIV 80 AS col0
----
-84
112

skipif mysql # not compatible
query II rowsort label-804
SELECT ALL + 59 * - 1 + + - ( - ( - + 25 ) ), 96 + 16 + 34 / 80 AS col0
----
-84
112

query I rowsort
SELECT DISTINCT + 2
----
2

query I rowsort
SELECT DISTINCT 88 * + + 17
----
1496

query I rowsort
SELECT - 58 * 39 AS col2
----
-2262

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

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

query I rowsort
SELECT + 5 + 85 + - - 20 AS col0
----
110

query I rowsort
SELECT - 87 * 42 AS col0
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ( - 95 ) * - MAX( DISTINCT - ( + 80 ) ) * + 23 + - 94
----
-174894

skipif mysql # not compatible
query I rowsort label-811
SELECT ( - 95 ) * - MAX ( DISTINCT - ( + 80 ) ) * + 23 + - 94
----
-174894

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-814
SELECT - CAST( + + ( + + 56 ) AS SIGNED ) + + 77 DIV 45 DIV 99 * - 30 DIV COALESCE ( 80, 45 ) + 23
----
-33

skipif mysql # not compatible
query I rowsort label-814
SELECT - CAST ( + + ( + + 56 ) AS INTEGER ) + + 77 / 45 / 99 * - 30 / COALESCE ( 80, 45 ) + 23
----
-33

query I rowsort
SELECT ALL 20 * 89 - 42 * NULLIF ( - 12, - + 7 / - - 61 * 57 )
----
2284

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT DISTINCT + 83 * 71 DIV 63 * 91 col1
----
8463

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT + 83 * 71 / 63 * 91 col1
----
8463

query I rowsort
SELECT DISTINCT + 34 * 21 - + 21 AS col1
----
693

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT DISTINCT ( - 74 ) col1, 34 * + 80 * - + SUM( - 94 ) - + 97 AS col1
----
-74
255583

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT ( - 74 ) col1, 34 * + 80 * - + SUM ( - 94 ) - + 97 AS col1
----
-74
255583

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-821
SELECT ALL - - 48 DIV + - 63 AS col1, 82 + + + CAST( NULL AS SIGNED ) * + + 40
----
0
NULL

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL - - 48 / + - 63 AS col1, 82 + + + CAST ( NULL AS INTEGER ) * + + 40
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-822
SELECT - CAST( NULL AS SIGNED ) + - 22 + + 73 AS col0, + 17 + + + MIN( + - CAST( NULL AS SIGNED ) ) + + + 10 + + 88 * + 79 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-822
SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2
----
NULL
NULL

query I rowsort
SELECT - - 0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL - 52 + - COUNT( 49 )
----
-53

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL - 52 + - COUNT ( 49 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT + 48 * + 89 + SUM( DISTINCT 35 ) + 2 + + - SUM( - + 10 ) + 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT + 48 * + 89 + SUM ( DISTINCT 35 ) + 2 + + - SUM ( - + 10 ) + 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-828
SELECT ALL + + 68 + - CAST( + 69 AS SIGNED ), - 53 AS col2
----
-1
-53

skipif mysql # not compatible
query II rowsort label-828
SELECT ALL + + 68 + - CAST ( + 69 AS INTEGER ), - 53 AS col2
----
-1
-53

query I rowsort
SELECT DISTINCT - + 6 + + 22 * + 92 * + + 47
----
95122

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-830
SELECT DISTINCT + + 43 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT - - 97 + + COUNT( * ) - + - 18 * + - ( - + ( COUNT( * ) ) )
----
116

skipif mysql # not compatible
query I rowsort label-831
SELECT - - 97 + + COUNT ( * ) - + - 18 * + - ( - + ( COUNT ( * ) ) )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL 41 + - - ( + COUNT( * ) ) * COUNT( * ) * + + 54 * - MAX( ALL - - 53 ) * 15
----
-42889

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL 41 + - - ( + COUNT ( * ) ) * COUNT ( * ) * + + 54 * - MAX ( ALL - - 53 ) * 15
----
-42889

query I rowsort
SELECT ALL + 27 * - + 43 * - 90
----
104490

query I rowsort
SELECT - 14 AS col1
----
-14

query I rowsort
SELECT ALL 68 + + 77 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT + NULLIF ( - COUNT( * ), + 28 ) + CASE - 49 WHEN - 15 + COUNT( * ) THEN 27 * 12 ELSE NULL END - 16 * COALESCE ( - NULLIF ( + 66, 41 - COUNT( * ) ) * COALESCE ( + 11, SUM( ALL - ( 98 ) ) * + 48 + 23 ), 7 * - 74 ) * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT + NULLIF ( - COUNT ( * ), + 28 ) + CASE - 49 WHEN - 15 + COUNT ( * ) THEN 27 * 12 ELSE NULL END - 16 * COALESCE ( - NULLIF ( + 66, 41 - COUNT ( * ) ) * COALESCE ( + 11, SUM ( ALL - ( 98 ) ) * + 48 + 23 ), 7 * - 74 ) * + 54 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT ALL + 14 DIV - + 71 + - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + 14 / - + 71 + - + 93
----
-93

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT ALL 41 DIV 78 * + + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL 41 / 78 * + + 65 AS col0
----
0

query II rowsort
SELECT 53 AS col0, 49 AS col1
----
53
49

query I rowsort
SELECT ALL 17 - - - 71
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT 76 * + - MAX( ALL + + 79 ) * - + 94 AS col0
----
564376

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT 76 * + - MAX ( ALL + + 79 ) * - + 94 AS col0
----
564376

query II rowsort
SELECT 61, 7 AS col1
----
61
7

onlyif mysql # DIV for integer division: 
query III rowsort label-846
SELECT 14 DIV - + 62 + 1 * + - 54 AS col2, - ( + + 96 ) AS col0, - + 44 + + - 25
----
-54
-96
-69

skipif mysql # not compatible
query III rowsort label-846
SELECT 14 / - + 62 + 1 * + - 54 AS col2, - ( + + 96 ) AS col0, - + 44 + + - 25
----
-54
-96
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-847
SELECT 79 * - NULLIF ( - CAST( - ( COUNT( * ) ) AS SIGNED ), - - 20 + - + 19 * + - CAST( NULL AS SIGNED ) + COUNT( * ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-847
SELECT 79 * - NULLIF ( - CAST ( - ( COUNT ( * ) ) AS INTEGER ), - - 20 + - + 19 * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) ) AS col0
----
-79

query I rowsort
SELECT 15 * + 9 * + ( - 28 ) * + 76
----
-287280

query I rowsort
SELECT ALL 10 * - - 39 AS col2
----
390

query I rowsort
SELECT ALL - 53 AS col0
----
-53

query I rowsort
SELECT + 65 col0
----
65

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

query I rowsort
SELECT DISTINCT 40 * - + ( + + 7 ) * 74
----
-20720

query I rowsort
SELECT ALL - 69 AS col2
----
-69

query I rowsort
SELECT 4 * - - 70 * 19
----
5320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-856
SELECT ALL - 40 col0, CAST( NULL AS SIGNED ) * 63
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-856
SELECT ALL - 40 col0, CAST ( NULL AS INTEGER ) * 63
----
-40
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT - SUM( ALL + 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - SUM ( ALL + 43 ) AS col0
----
-43

query I rowsort
SELECT 94 * - 93 col0
----
-8742

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

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

skipif mysql # not compatible
query I rowsort label-861
SELECT CAST ( NULL AS INTEGER ) * 66 AS col1
----
NULL

query I rowsort
SELECT 39 * 69 AS col0
----
2691

query I rowsort
SELECT - - 66 AS col1
----
66

query II rowsort
SELECT DISTINCT 63 AS col2, + 44
----
63
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-865
SELECT ALL + COUNT( * ) AS col1, 64 * + 34 - + + 3 + 94 + 39 DIV - - 69 col2
----
1
2267

skipif mysql # not compatible
query II rowsort label-865
SELECT ALL + COUNT ( * ) AS col1, 64 * + 34 - + + 3 + 94 + 39 / - - 69 col2
----
1
2267

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT DISTINCT - COUNT( - + 84 ) * + 85 col1, - 93 + - 84 - 31 * ( + 46 ) * 27
----
-85
-38679

skipif mysql # not compatible
query II rowsort label-867
SELECT DISTINCT - COUNT ( - + 84 ) * + 85 col1, - 93 + - 84 - 31 * ( + 46 ) * 27
----
-85
-38679

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT ALL NULLIF ( COUNT( * ), + 40 / + - 10 ) AS col0, + 80
----
1
80

skipif mysql # not compatible
query II rowsort label-868
SELECT ALL NULLIF ( COUNT ( * ), + 40 / + - 10 ) AS col0, + 80
----
1
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT ALL + CAST( + 33 AS SIGNED ) + - 84 + 74 * + + 26 * - 15 col1
----
-28911

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + CAST ( + 33 AS INTEGER ) + - 84 + 74 * + + 26 * - 15 col1
----
-28911

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

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

query I rowsort
SELECT - 42 + - + 18 + + 52 AS col2
----
-8

query I rowsort
SELECT DISTINCT - 90 + - ( + 10 )
----
-100

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

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

query I rowsort
SELECT 69 + - ( + 70 ) AS col2
----
-1

query I rowsort
SELECT - + 71 AS col2
----
-71

query I rowsort
SELECT + 8 * 3 AS col2
----
24

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 7 + + - 43 AS col1
----
-50

query I rowsort
SELECT ALL - 7 col0
----
-7

query I rowsort
SELECT ALL 99 AS col1
----
99

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

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

query I rowsort
SELECT ALL + 5 + 47
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT - 46 - + MAX( + + 89 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - 46 - + MAX ( + + 89 ) AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT CASE - + ( 41 ) WHEN + + 76 * + ( + + 45 ) + - - 47 + + COUNT( * ) THEN 13 * 93 ELSE NULL END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT CASE - + ( 41 ) WHEN + + 76 * + ( + + 45 ) + - - 47 + + COUNT ( * ) THEN 13 * 93 ELSE NULL END * 79
----
NULL

query I rowsort
SELECT ALL 42 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT 89 DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-888
SELECT 89 / - 86
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-889
SELECT ALL - 73 * COALESCE ( - COUNT( ALL - - 46 ), 46 DIV COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL - 73 * COALESCE ( - COUNT ( ALL - - 46 ), 46 / COUNT ( * ) )
----
73

query I rowsort
SELECT ALL + 18 * - 52 * 81 AS col1
----
-75816

query I rowsort
SELECT 70 * 84 * - + 97
----
-570360

query I rowsort
SELECT DISTINCT - 0 * + - 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT 89 - - 56 + CASE WHEN NULL < ( - NULLIF ( - - 36, + MIN( - - 4 ) ) ) THEN + MIN( DISTINCT 43 ) END * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT 89 - - 56 + CASE WHEN NULL < ( - NULLIF ( - - 36, + MIN ( - - 4 ) ) ) THEN + MIN ( DISTINCT 43 ) END * - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL - 10 * + + 69 * - COUNT( * ) col2
----
690

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL - 10 * + + 69 * - COUNT ( * ) col2
----
690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-895
SELECT DISTINCT - NULLIF ( + NULLIF ( - - 11, 46 ), + - 47 + + 63 + 26 + 74 - - + CAST( NULL AS DECIMAL ) / - 74 * - 24 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT - NULLIF ( + NULLIF ( - - 11, 46 ), + - 47 + + 63 + 26 + 74 - - + CAST ( NULL AS REAL ) / - 74 * - 24 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT - COUNT( * ) * 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT - COUNT ( * ) * 62 AS col1
----
-62

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

query I rowsort
SELECT DISTINCT - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT - ( + + SUM( DISTINCT + NULLIF ( + 33, - 18 + + - 20 ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT - ( + + SUM ( DISTINCT + NULLIF ( + 33, - 18 + + - 20 ) ) )
----
-33

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

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

query I rowsort
SELECT 44 AS col2
----
44

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

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

query I rowsort
SELECT ALL 21 + + 32 AS col0
----
53

query I rowsort
SELECT ALL - 78 AS col1
----
-78

query I rowsort
SELECT 23 + 36 * - 39
----
-1381

query I rowsort
SELECT ALL 67 * 46 * 68
----
209576

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT CASE NULLIF ( 98, MAX( 39 ) ) WHEN - - 27 * - 71 * + 0 - - 69 THEN + 88 END + 28 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT CASE NULLIF ( 98, MAX ( 39 ) ) WHEN - - 27 * - 71 * + 0 - - 69 THEN + 88 END + 28 * 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL 59 + 52 * 58 * + + SUM( - 93 ) AS col0
----
-280429

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL 59 + 52 * 58 * + + SUM ( - 93 ) AS col0
----
-280429

query I rowsort
SELECT DISTINCT + 89 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL + - 80 + NULLIF ( CAST( NULL AS SIGNED ), 31 + - 88 ) + - ( + ( - - 44 ) ) * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL + - 80 + NULLIF ( CAST ( NULL AS INTEGER ), 31 + - 88 ) + - ( + ( - - 44 ) ) * 56 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT DISTINCT - 2 + + COUNT( * ) AS col0, + 42
----
-1
42

skipif mysql # not compatible
query II rowsort label-913
SELECT DISTINCT - 2 + + COUNT ( * ) AS col0, + 42
----
-1
42

query I rowsort
SELECT - 92 AS col2
----
-92

query I rowsort
SELECT ALL - 69 + 64
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-916
SELECT 71 - - COUNT( * ) * CAST( + MIN( 13 ) AS SIGNED ) AS col1, 49 DIV 49 AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-916
SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1
----
84
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT - - MIN( 43 ) * 91 + - SUM( ALL ( + + 30 ) ) + + 37 + - + 87 AS col2
----
3833

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT - - MIN ( 43 ) * 91 + - SUM ( ALL ( + + 30 ) ) + + 37 + - + 87 AS col2
----
3833

query I rowsort
SELECT DISTINCT 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT - CASE - - NULLIF ( + 15, + AVG ( ALL + - 71 ) / 8 ) WHEN + 85 * NULLIF ( - - 35, 22 ) + 49 * + 41 THEN NULL WHEN NULLIF ( + 48, 16 ) THEN + COUNT( * ) * COALESCE ( - 29, COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT - CASE - - NULLIF ( + 15, + AVG ( ALL + - 71 ) / 8 ) WHEN + 85 * NULLIF ( - - 35, 22 ) + 49 * + 41 THEN NULL WHEN NULLIF ( + 48, 16 ) THEN + COUNT ( * ) * COALESCE ( - 29, COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL COUNT( * ) * - CASE - - 22 WHEN - 30 THEN - 36 * + - 24 - - 34 * - 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL COUNT ( * ) * - CASE - - 22 WHEN - 30 THEN - 36 * + - 24 - - 34 * - 73 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 75 - + 36 + 78 AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT DISTINCT 12 * 30 DIV + 96 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT 12 * 30 / + 96 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT + 86 + MIN( + 16 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-924
SELECT + 86 + MIN ( + 16 ) AS col0
----
102

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

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

query I rowsort
SELECT ALL - - 34 * - + 72 * + 28 + + + 85 + 82
----
-68377

query I rowsort
SELECT - 69 + - NULLIF ( + - 9, + 96 ) AS col1
----
-60

query I rowsort
SELECT 0 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-929
SELECT - 88 + + + 68 - - COUNT ( * ) AS col0
----
-19

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

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

query I rowsort
SELECT - 64 * + 35 AS col1
----
-2240

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

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

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

query I rowsort
SELECT ALL + 24 * - 96 * - 71 * - 74 AS col0
----
-12105216

onlyif mysql # DIV for integer division: 
query I rowsort label-935
SELECT ALL + 51 DIV NULLIF ( + 93, ( + 49 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL + 51 / NULLIF ( + 93, ( + 49 ) ) AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-937
SELECT ALL + 42 * NULLIF ( + COUNT( * ), - CASE 68 WHEN + - 23 THEN COALESCE ( COALESCE ( COUNT( * ), - 3 ), 45, + 26 * + 49 ) WHEN 11 / ( + 11 ) + + COUNT( * ) THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL + 42 * NULLIF ( + COUNT ( * ), - CASE 68 WHEN + - 23 THEN COALESCE ( COALESCE ( COUNT ( * ), - 3 ), 45, + 26 * + 49 ) WHEN 11 / ( + 11 ) + + COUNT ( * ) THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER ) )
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-938
SELECT 15 * + CAST( NULL AS DECIMAL ) * 68 + - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT 15 * + CAST ( NULL AS REAL ) * 68 + - + 29 AS col0
----
NULL

query I rowsort
SELECT - 33 * - 19 AS col0
----
627

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT - 2 * NULLIF ( + - 62, + 18 * - + 4 ) + - COUNT( * ) + + 84 * 7
----
711

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT - 2 * NULLIF ( + - 62, + 18 * - + 4 ) + - COUNT ( * ) + + 84 * 7
----
711

onlyif mysql # aggregate syntax: 
query II rowsort label-942
SELECT ALL + COUNT( * ) * + 73 * - - 98 + 0 + 51 * - COUNT( * ), - 43 * - 86 + - 6 col2
----
7103
3692

skipif mysql # not compatible
query II rowsort label-942
SELECT ALL + COUNT ( * ) * + 73 * - - 98 + 0 + 51 * - COUNT ( * ), - 43 * - 86 + - 6 col2
----
7103
3692

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-943
SELECT NULLIF ( + 85, NULLIF ( + + 49, - 15 * 30 * - COUNT( - + 81 ) ) * CAST( + 86 AS DECIMAL ) )
----
85

skipif mysql # not compatible
query I rowsort label-943
SELECT NULLIF ( + 85, NULLIF ( + + 49, - 15 * 30 * - COUNT ( - + 81 ) ) * CAST ( + 86 AS REAL ) )
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-944
SELECT DISTINCT - 86 * - + CAST( NULL AS DECIMAL ) + - 45
----
NULL

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

query I rowsort
SELECT ALL + 94 AS col0
----
94

query I rowsort
SELECT - 79 + 97
----
18

query I rowsort
SELECT ALL - 42 * - 95 + 35 * - 21 + 99 + 75 * + 25 * + 65
----
125229

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT - 10 * + + 17 + + COUNT( * ) + - 9 + COUNT( + - 29 ) * - + 73 * COALESCE ( - 97, MAX( DISTINCT 73 ), 13 ) * - COUNT( * )
----
-7259

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT - 10 * + + 17 + + COUNT ( * ) + - 9 + COUNT ( + - 29 ) * - + 73 * COALESCE ( - 97, MAX ( DISTINCT 73 ), 13 ) * - COUNT ( * )
----
-7259

query I rowsort
SELECT ALL + - 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT - 78 * - 92 - + - COUNT( DISTINCT + + 68 )
----
7177

skipif mysql # not compatible
query I rowsort label-951
SELECT - 78 * - 92 - + - COUNT ( DISTINCT + + 68 )
----
7177

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT + COALESCE ( + 5, COUNT( * ) * 68 + 22 ) * + 31 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-952
SELECT + COALESCE ( + 5, COUNT ( * ) * 68 + 22 ) * + 31 AS col2
----
155

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

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

query I rowsort
SELECT + + 79 + - 19 AS col1
----
60

query I rowsort
SELECT DISTINCT ( COALESCE ( - 90, + - 98, + ( 94 ) + - 1 * 84 ) ) * 15 * - 22 + 82
----
29782

query I rowsort
SELECT + - 4 + + 26
----
22

query I rowsort
SELECT ALL 86 * + 27 + - 15
----
2307

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT + + COALESCE ( - COUNT( * ), 6, - 64 * + + COUNT( DISTINCT - 0 ) ) * 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-958
SELECT + + COALESCE ( - COUNT ( * ), 6, - 64 * + + COUNT ( DISTINCT - 0 ) ) * 41 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT + 90 + COUNT( * ) + + 36 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-959
SELECT + 90 + COUNT ( * ) + + 36 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-960
SELECT + - 60 - + + 99 / CAST( NULL AS SIGNED ) + + 21 + COALESCE ( - 73, + 77, 20 + + NULLIF ( - - 51, - 94 + COUNT( * ) / 72 ) + 80 / - 75, 75 + 18 ) + 14 * - 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT + - 60 - + + 99 / CAST ( NULL AS INTEGER ) + + 21 + COALESCE ( - 73, + 77, 20 + + NULLIF ( - - 51, - 94 + COUNT ( * ) / 72 ) + 80 / - 75, 75 + 18 ) + 14 * - 9 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT + 17 * + + 59 + - 60 - + 68 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT + 17 * + + 59 + - 60 - + 68 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 65 AS col2
----
-65

query I rowsort
SELECT ALL 83 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-964
SELECT - CASE + + 75 WHEN - 80 THEN + + 30 + - + 21 * + 37 END, + CAST( NULL AS SIGNED ) + - 34 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-964
SELECT - CASE + + 75 WHEN - 80 THEN + + 30 + - + 21 * + 37 END, + CAST ( NULL AS INTEGER ) + - 34 AS col1
----
NULL
NULL

query I rowsort
SELECT + - 77 + 70
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT + 44 DIV 18 col2
----
2

skipif mysql # not compatible
query I rowsort label-966
SELECT + 44 / 18 col2
----
2

query I rowsort
SELECT + + 2 + - 43
----
-41

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

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

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

query I rowsort
SELECT - - 47 AS col0
----
47

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

query I rowsort
SELECT - 6 * 80 * + 38 AS col1
----
-18240

query I rowsort
SELECT DISTINCT 45
----
45

query I rowsort
SELECT 91 col0
----
91

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

skipif mysql # not compatible
query II rowsort label-975
SELECT ALL 51, COUNT ( * ) * COUNT ( * ) AS col2
----
51
1

query I rowsort
SELECT DISTINCT 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-977
SELECT - CAST( NULL AS SIGNED ) AS col2, ( - COUNT( DISTINCT + 75 ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-977
SELECT - CAST ( NULL AS INTEGER ) AS col2, ( - COUNT ( DISTINCT + 75 ) ) AS col1
----
NULL
-1

query I rowsort
SELECT - 5 * - 60 col1
----
300

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

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL COUNT ( * ) + 21 AS col2
----
22

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-981
SELECT + 69 DIV + 2, CAST( NULL AS SIGNED ) AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-981
SELECT + 69 / + 2, CAST ( NULL AS INTEGER ) AS col2
----
34
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT - CAST( NULL AS SIGNED ) / - 20 * CAST( 1 AS SIGNED ) - - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT - CAST ( NULL AS INTEGER ) / - 20 * CAST ( 1 AS INTEGER ) - - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-983
SELECT DISTINCT - 31 DIV 92 + - 82 DIV 95 DIV + 56 * + COUNT( * ) + 32 - SUM( DISTINCT - 10 ) * + 40 * ( 65 ) AS col2
----
26032

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - 31 / 92 + - 82 / 95 / + 56 * + COUNT ( * ) + 32 - SUM ( DISTINCT - 10 ) * + 40 * ( 65 ) AS col2
----
26032

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-985
SELECT - 15 * - - CAST( - 28 AS SIGNED ) + - 36 + + - 95 - - 51 DIV - 76 * + 62 AS col2
----
289

skipif mysql # not compatible
query I rowsort label-985
SELECT - 15 * - - CAST ( - 28 AS INTEGER ) + - 36 + + - 95 - - 51 / - 76 * + 62 AS col2
----
289

query I rowsort
SELECT - 15 * - 16 AS col1
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT ALL 46 DIV + 48 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL 46 / + 48 + - 35
----
-35

query II rowsort
SELECT ALL + 84, - 42 + - 88 AS col1
----
84
-130

query I rowsort
SELECT - - 30 + + 26
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT + 30 DIV - - 83 - + - 2
----
2

skipif mysql # not compatible
query I rowsort label-990
SELECT + 30 / - - 83 - + - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT DISTINCT - 60 * + + 24 + MIN( ALL - ( 90 ) ) + - 83 * - 90 AS col2
----
5940

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - 60 * + + 24 + MIN ( ALL - ( 90 ) ) + - 83 * - 90 AS col2
----
5940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT - 51 * + 32 * - 36 + + 99 * + + 33 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT - 51 * + 32 * - 36 + + 99 * + + 33 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 49 - + 89
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL COUNT( * ) * - COUNT( * ) + + 37 * - - 50 * + CASE 43 WHEN - - ( + 48 ) THEN + NULLIF ( 25, - + 94 * 45 ) + 49 ELSE + 94 END + - 5 * + 58
----
173609

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + 37 * - - 50 * + CASE 43 WHEN - - ( + 48 ) THEN + NULLIF ( 25, - + 94 * 45 ) + 49 ELSE + 94 END + - 5 * + 58
----
173609

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

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

query I rowsort
SELECT ALL + 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT + 98 * - + COUNT( DISTINCT + + 80 ) - + + CASE 19 WHEN 89 THEN + ( - ( - 20 ) ) END * + + ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + 98 * - + COUNT ( DISTINCT + + 80 ) - + + CASE 19 WHEN 89 THEN + ( - ( - 20 ) ) END * + + ( 47 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL + 67 * MIN( DISTINCT - - 8 ) - - 42 AS col1
----
578

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + 67 * MIN ( DISTINCT - - 8 ) - - 42 AS col1
----
578

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

query I rowsort
SELECT ALL - 33
----
-33

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL 45 - + + COUNT ( * )
----
44

query I rowsort
SELECT 92 * - 16
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1005
SELECT ALL ( + 35 ) AS col1, - 12 - + + SUM( CAST( NULL AS SIGNED ) )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-1005
SELECT ALL ( + 35 ) AS col1, - 12 - + + SUM ( CAST ( NULL AS INTEGER ) )
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT - + NULLIF ( - 56, - COUNT( * ) + + 68 + + + ( + 11 ) / + + 14 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1006
SELECT - + NULLIF ( - 56, - COUNT ( * ) + + 68 + + + ( + 11 ) / + + 14 ) AS col2
----
56

query I rowsort
SELECT + 68 + 15
----
83

query II rowsort
SELECT - 12 AS col1, ( - 59 )
----
-12
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT ALL - 68 * + + 12 + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
-816

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - 68 * + + 12 + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
-816

query I rowsort
SELECT - + 18 col2
----
-18

query I rowsort
SELECT - 4 + 63
----
59

query I rowsort
SELECT ( - 10 ) + 20
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL + 51 * + - ( - 52 ) * - + CASE + + 99 WHEN - - 57 * + + 81 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + 51 * + - ( - 52 ) * - + CASE + + 99 WHEN - - 57 * + + 81 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT MIN( ALL - 38 ) * + + 76 + + 43
----
-2845

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT MIN ( ALL - 38 ) * + + 76 + + 43
----
-2845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT ALL COUNT( * ) + - CASE - - 75 WHEN - 54 / + - 69 - - AVG ( ALL CAST( NULL AS SIGNED ) ) THEN NULL WHEN - + 34 THEN - 51 END + COALESCE ( 69, 74 + 88 ) + 98 / COUNT( * ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL COUNT ( * ) + - CASE - - 75 WHEN - 54 / + - 69 - - AVG ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - + 34 THEN - 51 END + COALESCE ( 69, 74 + 88 ) + 98 / COUNT ( * ) * - 60
----
NULL

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

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

query I rowsort
SELECT DISTINCT 52 AS col0
----
52

query I rowsort
SELECT ALL 11 + - 85
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1019
SELECT 88 + - - ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + 44 AS col0, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-1019
SELECT 88 + - - ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + 44 AS col0, 80 AS col1
----
NULL
80

query I rowsort
SELECT 24 + - 71 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1021
SELECT COUNT( + - 24 ) * + 25 - + CASE - ( + - COUNT( * ) ) WHEN ( CAST( NULL AS SIGNED ) ) * + 95 THEN NULL WHEN + 43 THEN NULL ELSE + - 40 + 19 END AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1021
SELECT COUNT ( + - 24 ) * + 25 - + CASE - ( + - COUNT ( * ) ) WHEN ( CAST ( NULL AS INTEGER ) ) * + 95 THEN NULL WHEN + 43 THEN NULL ELSE + - 40 + 19 END AS col2
----
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT DISTINCT 63 DIV + 90 * - + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT 63 / + 90 * - + 20 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1024
SELECT 43 + - 42 col0, 57 * + CASE + - 73 WHEN - + 7 THEN + + COUNT( * ) + - 74 WHEN - 56 THEN NULL ELSE NULL END * - CAST( - 54 AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1024
SELECT 43 + - 42 col0, 57 * + CASE + - 73 WHEN - + 7 THEN + + COUNT ( * ) + - 74 WHEN - 56 THEN NULL ELSE NULL END * - CAST ( - 54 AS REAL ) AS col1
----
1
NULL

query I rowsort
SELECT 14 + - - 11 + - 23 * + - 91
----
2118

query I rowsort
SELECT DISTINCT 19 col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1027
SELECT ALL ( - - 17 ) + + - CAST( NULL AS SIGNED ) * - ( - CAST( NULL AS SIGNED ) ) * - - NULLIF ( - 65, 6 * 60 / - 58 ) / - 94 + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL ( - - 17 ) + + - CAST ( NULL AS INTEGER ) * - ( - CAST ( NULL AS INTEGER ) ) * - - NULLIF ( - 65, 6 * 60 / - 58 ) / - 94 + + 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 75 col2
----
-75

query II rowsort
SELECT ALL + 89 + - 58 AS col2, 70 AS col2
----
31
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( + 57, + + 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + 57, + + 92 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 87 AS col1
----
-87

query I rowsort
SELECT + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT CASE MIN( - - 65 ) WHEN - + 42 - + 37 THEN - 14 + + 8 - 8 / - + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT CASE MIN ( - - 65 ) WHEN - + 42 - + 37 THEN - 14 + + 8 - 8 / - + 53 END
----
NULL

query I rowsort
SELECT + + 94 * - 23 + - 94 AS col1
----
-2256

onlyif mysql # DIV for integer division: 
query II rowsort label-1035
SELECT ALL 66 - - 75 DIV 97 * + - 41 * + 40, 94 + - 56 AS col1
----
66
38

skipif mysql # not compatible
query II rowsort label-1035
SELECT ALL 66 - - 75 / 97 * + - 41 * + 40, 94 + - 56 AS col1
----
66
38

query II rowsort
SELECT - 10 + + - 30 col1, + 58
----
-40
58

query I rowsort
SELECT ALL - 79 col1
----
-79

query I rowsort
SELECT + 59 + - 95 * 82
----
-7731

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT - MAX( DISTINCT - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - MAX ( DISTINCT - 43 )
----
43

query I rowsort
SELECT + 86 * - + 21 + 30
----
-1776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL - - 19 * 77 * COUNT( * )
----
1463

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - - 19 * 77 * COUNT ( * )
----
1463

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

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

query I rowsort
SELECT - 8 + + 81 + 68
----
141

query II rowsort
SELECT DISTINCT - 30 * + 84, 55 * - 64 AS col1
----
-2520
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT 38 + - - 67 + 52 - - + 28 * + 98 * + - COUNT( * ) AS col0
----
-2587

skipif mysql # not compatible
query I rowsort label-1046
SELECT 38 + - - 67 + 52 - - + 28 * + 98 * + - COUNT ( * ) AS col0
----
-2587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT - 66 DIV - COUNT( * ) + ( 10 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1047
SELECT - 66 / - COUNT ( * ) + ( 10 ) AS col0
----
76

query I rowsort
SELECT - 35 + + 54 + - CASE + - ( + 96 ) WHEN + ( 53 ) THEN NULL WHEN - 90 THEN NULL ELSE + 99 * - 1 END
----
118

query I rowsort
SELECT - COALESCE ( + 71, 12, - - 43 ) AS col1
----
-71

query I rowsort
SELECT DISTINCT 62 AS col2
----
62

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

query II rowsort
SELECT - 93 - + 86 AS col2, 61 col1
----
-179
61

query II rowsort
SELECT ALL 91 AS col1, - ( NULLIF ( - - 93, 55 ) ) AS col0
----
91
-93

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

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

query I rowsort
SELECT ALL + 55 + + - 20 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT COUNT( * ) + 36 * NULLIF ( - 40, + 48 - + MIN( DISTINCT - - ( - 94 ) ) * - + 44 )
----
-1439

skipif mysql # not compatible
query I rowsort label-1056
SELECT COUNT ( * ) + 36 * NULLIF ( - 40, + 48 - + MIN ( DISTINCT - - ( - 94 ) ) * - + 44 )
----
-1439

query I rowsort
SELECT ALL - 92 + - - 14 + + 53 * - 14 * + - 62 * + 92
----
4232290

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

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL + 83 + CAST ( + ( + - 61 ) AS INTEGER )
----
22

query I rowsort
SELECT 33 * + - 23
----
-759

query I rowsort
SELECT ALL - 20 + - + 13 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL SUM( DISTINCT + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL SUM ( DISTINCT + 86 ) AS col2
----
86

query I rowsort
SELECT 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT - 58, MIN( + + 70 ) + + COUNT( * ) * + + 80 * + COUNT( 52 ) AS col2
----
-58
150

skipif mysql # not compatible
query II rowsort label-1063
SELECT - 58, MIN ( + + 70 ) + + COUNT ( * ) * + + 80 * + COUNT ( 52 ) AS col2
----
-58
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL 57 + - NULLIF ( + SUM( DISTINCT - 28 ), 56 ) * + COUNT( * ) - - 83
----
168

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 57 + - NULLIF ( + SUM ( DISTINCT - 28 ), 56 ) * + COUNT ( * ) - - 83
----
168

query I rowsort
SELECT 23 * + 10 AS col1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL - COUNT( * ) + 81 * - + 10 AS col2
----
-811

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - COUNT ( * ) + 81 * - + 10 AS col2
----
-811

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

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

query I rowsort
SELECT ALL 51 + 23
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT SUM( ALL 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT SUM ( ALL 22 ) AS col1
----
22

query I rowsort
SELECT 49 * + 80 AS col2
----
3920

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT 70 AS col2, 13 - + - CASE ( - - ( 91 ) ) WHEN COALESCE ( + 64, + + 67 ) THEN 19 * + + 64 + COUNT( * ) END
----
70
NULL

skipif mysql # not compatible
query II rowsort label-1071
SELECT 70 AS col2, 13 - + - CASE ( - - ( 91 ) ) WHEN COALESCE ( + 64, + + 67 ) THEN 19 * + + 64 + COUNT ( * ) END
----
70
NULL

query I rowsort
SELECT ALL 79 AS col2
----
79

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1074
SELECT ( + - 10 ) * - 98 * - - 78 * 20 + + 54 AS col0, 12 * COUNT( * ) + + - 94 * - - COUNT( * )
----
1528854
-82

skipif mysql # not compatible
query II rowsort label-1074
SELECT ( + - 10 ) * - 98 * - - 78 * 20 + + 54 AS col0, 12 * COUNT ( * ) + + - 94 * - - COUNT ( * )
----
1528854
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1075
SELECT CASE - 70 WHEN - NULLIF ( - 3, + AVG ( DISTINCT - CAST( + 83 AS SIGNED ) ) ) * - ( + + NULLIF ( 46, CASE - 57 WHEN 67 THEN + 80 / + 12 END ) ) + - 89 / 11 THEN + ( 28 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT CASE - 70 WHEN - NULLIF ( - 3, + AVG ( DISTINCT - CAST ( + 83 AS INTEGER ) ) ) * - ( + + NULLIF ( 46, CASE - 57 WHEN 67 THEN + 80 / + 12 END ) ) + - 89 / 11 THEN + ( 28 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT ALL COALESCE ( + - 2, + 29, - 23 ) * + - 17 - - 45 + 6 DIV - 85 + - 33 - + - 95 * + 39 * 76 + + 28 AS col0
----
281654

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL COALESCE ( + - 2, + 29, - 23 ) * + - 17 - - 45 + 6 / - 85 + - 33 - + - 95 * + 39 * 76 + + 28 AS col0
----
281654

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT 39 DIV - - 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1077
SELECT 39 / - - 18 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT DISTINCT - 86 DIV + 8
----
-10

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT - 86 / + 8
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1079
SELECT - - 18 DIV - - 97 - ( 13 ) + + 19 * + 27
----
500

skipif mysql # not compatible
query I rowsort label-1079
SELECT - - 18 / - - 97 - ( 13 ) + + 19 * + 27
----
500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT + CAST( - ( ( + NULLIF ( - + NULLIF ( + - 76, 78 * + + 30 + 0 - MIN( DISTINCT + 11 ) + + 79 ), + 31 * 13 ) ) ) AS SIGNED ) * 72
----
-5472

skipif mysql # not compatible
query I rowsort label-1080
SELECT + CAST ( - ( ( + NULLIF ( - + NULLIF ( + - 76, 78 * + + 30 + 0 - MIN ( DISTINCT + 11 ) + + 79 ), + 31 * 13 ) ) ) AS INTEGER ) * 72
----
-5472

query II rowsort
SELECT ALL + - 40 AS col0, 63 AS col0
----
-40
63

query II rowsort
SELECT ALL + 42, - 54 col0
----
42
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT + 27 + - 61 + - 4 + - NULLIF ( COUNT( * ), + 68 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1083
SELECT + 27 + - 61 + - 4 + - NULLIF ( COUNT ( * ), + 68 ) AS col1
----
-39

query II rowsort
SELECT + ( - 69 ) - + 53 AS col0, 82 col1
----
-122
82

query I rowsort
SELECT - - 90 * - + 58
----
-5220

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 16 + - 77
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-1092
SELECT DISTINCT + 51 + + - 4 + + 79 + - 41 col0, 7 + + 6 DIV + 12 AS col2
----
85
7

skipif mysql # not compatible
query II rowsort label-1092
SELECT DISTINCT + 51 + + - 4 + + 79 + - 41 col0, 7 + + 6 / + 12 AS col2
----
85
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1093
SELECT ALL - CASE + + 40 WHEN - - 67 THEN - CASE - 27 WHEN - - 63 * + COUNT( * ) THEN NULL WHEN + 46 + - 69 + + 58 - - 40 THEN - 76 - + CAST( NULL AS SIGNED ) * + - 94 * CAST( NULL AS SIGNED ) ELSE 43 END ELSE 43 END * - 44 col2
----
1892

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - CASE + + 40 WHEN - - 67 THEN - CASE - 27 WHEN - - 63 * + COUNT ( * ) THEN NULL WHEN + 46 + - 69 + + 58 - - 40 THEN - 76 - + CAST ( NULL AS INTEGER ) * + - 94 * CAST ( NULL AS INTEGER ) ELSE 43 END ELSE 43 END * - 44 col2
----
1892

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

skipif mysql # not compatible
query I rowsort label-1094
SELECT - 99 / 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL - NULLIF ( + SUM( + 33 ), - 34 / + 59 * + COUNT( * ) - + 3 + 83 ) * - - 6
----
-198

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - NULLIF ( + SUM ( + 33 ), - 34 / + 59 * + COUNT ( * ) - + 3 + 83 ) * - - 6
----
-198

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1097
SELECT - 87 + - 94 - + + 25 DIV - ( - 31 ) * + 33 * MIN( ALL - - 74 ) - - 43 * - 58 * - - 8 * - 47 + + MAX( DISTINCT 41 ) + 55 AS col2
----
937659

skipif mysql # not compatible
query I rowsort label-1097
SELECT - 87 + - 94 - + + 25 / - ( - 31 ) * + 33 * MIN ( ALL - - 74 ) - - 43 * - 58 * - - 8 * - 47 + + MAX ( DISTINCT 41 ) + 55 AS col2
----
937659

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

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

query I rowsort
SELECT ALL - 89 - 23 + - 5
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT - 57 * - - 43, ( - COUNT( DISTINCT + 74 ) ) + MIN( DISTINCT + 94 ) + - - 49 AS col1
----
-2451
142

skipif mysql # not compatible
query II rowsort label-1100
SELECT - 57 * - - 43, ( - COUNT ( DISTINCT + 74 ) ) + MIN ( DISTINCT + 94 ) + - - 49 AS col1
----
-2451
142

query I rowsort
SELECT DISTINCT COALESCE ( + - 53, - 75 + + 97 * + 24 + + 13, + + 90 )
----
-53

query I rowsort
SELECT DISTINCT ( + 6 ) col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL - 89 - 92 * COUNT( * )
----
-181

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - 89 - 92 * COUNT ( * )
----
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT - 21 * + + CAST( - + 56 AS SIGNED ) AS col2
----
1176

skipif mysql # not compatible
query I rowsort label-1104
SELECT - 21 * + + CAST ( - + 56 AS INTEGER ) AS col2
----
1176

query I rowsort
SELECT DISTINCT - 71 * + 24
----
-1704

query I rowsort
SELECT - 56 * - 98 AS col1
----
5488

query I rowsort
SELECT + 62 + + - ( + + CASE + + 74 WHEN + ( + 89 ) + - 47 + 73 * + ( - + 79 ) THEN 94 ELSE 1 END ) * - + 2 + - 45
----
19

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

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

query I rowsort
SELECT - 73 + + 16 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1110
SELECT ALL COALESCE ( - - COUNT( * ), + - 56 DIV 1 * - 10, - + 60 * - + 2 + 31 * CAST( ( + - 15 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL COALESCE ( - - COUNT ( * ), + - 56 / 1 * - 10, - + 60 * - + 2 + 31 * CAST ( ( + - 15 ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1111
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col2, 29 * + CASE - 1 WHEN 97 THEN NULL WHEN 39 + + MAX( DISTINCT - 88 ) * 19 * CASE - - 41 WHEN - 23 THEN NULL ELSE + + 40 END + COUNT( * ) THEN + 29 - - 66 * + COUNT( * ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1111
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, 29 * + CASE - 1 WHEN 97 THEN NULL WHEN 39 + + MAX ( DISTINCT - 88 ) * 19 * CASE - - 41 WHEN - 23 THEN NULL ELSE + + 40 END + COUNT ( * ) THEN + 29 - - 66 * + COUNT ( * ) END AS col1
----
-1
NULL

query I rowsort
SELECT - + 76 + - - 10 AS col1
----
-66

query I rowsort
SELECT ALL - 19
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1114
SELECT ALL + - CASE - COALESCE ( + + 50, - 65, - 61 ) WHEN - 15 THEN NULL ELSE - - 69 * 0 * - + ( - 0 ) * 9 + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + - CASE - COALESCE ( + + 50, - 65, - 61 ) WHEN - 15 THEN NULL ELSE - - 69 * 0 * - + ( - 0 ) * 9 + CAST ( NULL AS REAL ) END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1116
SELECT + 54 DIV - 73 + - 82 + COUNT( ALL - 12 )
----
-81

skipif mysql # not compatible
query I rowsort label-1116
SELECT + 54 / - 73 + - 82 + COUNT ( ALL - 12 )
----
-81

query I rowsort
SELECT ALL - + 10 * + 49 * + 0 + + 53 col2
----
53

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT 99 * - 9 + - ( - COUNT( DISTINCT 2 ) ) AS col0
----
-890

skipif mysql # not compatible
query I rowsort label-1120
SELECT 99 * - 9 + - ( - COUNT ( DISTINCT 2 ) ) AS col0
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - 12 * 2 * + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-1121
SELECT - 12 * 2 * + + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT + COUNT( * ) * + 38 + - 43 + - ( - COALESCE ( 48, - 9 + + - COUNT( * ) DIV - - 31 ) ) * + 34 AS col0
----
1627

skipif mysql # not compatible
query I rowsort label-1122
SELECT + COUNT ( * ) * + 38 + - 43 + - ( - COALESCE ( 48, - 9 + + - COUNT ( * ) / - - 31 ) ) * + 34 AS col0
----
1627

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT ALL + MIN( 56 ) AS col2, - 43
----
56
-43

skipif mysql # not compatible
query II rowsort label-1123
SELECT ALL + MIN ( 56 ) AS col2, - 43
----
56
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT + ( - 5 ) DIV 20 + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1124
SELECT + ( - 5 ) / 20 + 95 AS col1
----
95

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

query I rowsort
SELECT + - 44 * - 99 AS col0
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL + 27 * 15 - - ( - ( - - 23 ) ) * COUNT( * ) + + 25 + - 82 * COUNT( * ) * - 28 * 79
----
181791

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + 27 * 15 - - ( - ( - - 23 ) ) * COUNT ( * ) + + 25 + - 82 * COUNT ( * ) * - 28 * 79
----
181791

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT + CASE + COUNT( ALL + 82 ) WHEN COUNT( * ) - - - NULLIF ( - 30, 66 + - 90 ) THEN - 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT + CASE + COUNT ( ALL + 82 ) WHEN COUNT ( * ) - - - NULLIF ( - 30, 66 + - 90 ) THEN - 22 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL COUNT( * ) * + ( + + 72 ) * - + 85 + + + 9 + CAST( NULL AS SIGNED ) * ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL COUNT ( * ) * + ( + + 72 ) * - + 85 + + + 9 + CAST ( NULL AS INTEGER ) * ( 7 )
----
NULL

query I rowsort
SELECT ALL + - 14
----
-14

query II rowsort
SELECT DISTINCT - 56 * + 63, + 74 AS col0
----
-3528
74

query I rowsort
SELECT 38 col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT + + COUNT( * ) * + 37, + 91 col1
----
37
91

skipif mysql # not compatible
query II rowsort label-1134
SELECT + + COUNT ( * ) * + 37, + 91 col1
----
37
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT - - 63 * 75 * + 89 - + 11 + - 61 + + COUNT( * ) * 43
----
420496

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT - - 63 * 75 * + 89 - + 11 + - 61 + + COUNT ( * ) * 43
----
420496

onlyif mysql # aggregate syntax: 
query II rowsort label-1136
SELECT ALL + 62 AS col0, - ( - 31 ) * + - 95 * - 14 - - 23 + COUNT( DISTINCT + 21 ) * 57 * CASE + 91 WHEN COALESCE ( + - 17, - 77 + + COUNT( * ) ) THEN COUNT( * ) * 51 WHEN - COUNT( * ) THEN - 29 - - COALESCE ( + 48 - 91, 41 ) * + 84 END
----
62
NULL

skipif mysql # not compatible
query II rowsort label-1136
SELECT ALL + 62 AS col0, - ( - 31 ) * + - 95 * - 14 - - 23 + COUNT ( DISTINCT + 21 ) * 57 * CASE + 91 WHEN COALESCE ( + - 17, - 77 + + COUNT ( * ) ) THEN COUNT ( * ) * 51 WHEN - COUNT ( * ) THEN - 29 - - COALESCE ( + 48 - 91, 41 ) * + 84 END
----
62
NULL

query I rowsort
SELECT CASE + + 91 WHEN - 89 + 3 THEN NULL ELSE + ( - 39 ) END
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT COUNT( * ) * + - 64 * 99 + 4 DIV 43 AS col0
----
-6336

skipif mysql # not compatible
query I rowsort label-1138
SELECT COUNT ( * ) * + - 64 * 99 + 4 / 43 AS col0
----
-6336

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

query I rowsort
SELECT + 87 * - - 4 * - 55
----
-19140

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT 25 * - 1 + - + COUNT( * ) + + 36
----
10

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT 25 * - 1 + - + COUNT ( * ) + + 36
----
10

query I rowsort
SELECT ALL 0 AS col2
----
0

query I rowsort
SELECT DISTINCT + 82 * 55 - - + 48
----
4558

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

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

query I rowsort
SELECT ALL 57 AS col1
----
57

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

query I rowsort
SELECT DISTINCT + 48 * + 94
----
4512

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT SUM( - - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1149
SELECT SUM ( - - 12 ) AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL COALESCE ( 38, + - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL COALESCE ( 38, + - COUNT ( * ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1152
SELECT - CAST( NULL AS SIGNED ) col0, - COUNT( * ) * + 12
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-1152
SELECT - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * + 12
----
NULL
-12

query I rowsort
SELECT DISTINCT - 85 * - 10 AS col2
----
850

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

query I rowsort
SELECT ALL ( + - 50 ) * - 33 * + 87
----
143550

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT DISTINCT CAST( - 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT CAST ( - 61 AS INTEGER ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1158
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 53 * - COUNT( * ) AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-1158
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 53 * - COUNT ( * ) AS col1
----
NULL
-53

query I rowsort
SELECT ALL 87
----
87

query II rowsort
SELECT - 88 AS col0, 14 AS col1
----
-88
14

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

query I rowsort
SELECT 36 * + ( 70 )
----
2520

query I rowsort
SELECT - ( - 91 )
----
91

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - ( + + MAX( DISTINCT 97 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-1166
SELECT - ( + + MAX ( DISTINCT 97 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + COUNT( - ( - 65 ) ) * - 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1167
SELECT + COUNT ( - ( - 65 ) ) * - 38 AS col2
----
-38

query II rowsort
SELECT + + 46, 26 AS col0
----
46
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL - COUNT( * ) + + - 4
----
-5

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - COUNT ( * ) + + - 4
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1170
SELECT COUNT( * ) DIV - 70 + + 6 + - + 95 - + COUNT( * ) DIV + 25 * + 41 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1170
SELECT COUNT ( * ) / - 70 + + 6 + - + 95 - + COUNT ( * ) / + 25 * + 41 AS col2
----
-89

query I rowsort
SELECT ALL - - 2 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT - COUNT( * ) + + ( - - 39 ) + - ( - + 30 ) * + + 21 * 88 + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) * COUNT( * ) ) - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT - COUNT ( * ) + + ( - - 39 ) + - ( - + 30 ) * + + 21 * 88 + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) * COUNT ( * ) ) - 35
----
NULL

query I rowsort
SELECT ALL 85 * 84
----
7140

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT DISTINCT 89 + + 78 + - + 10 + - SUM( - 36 ) * - 89 AS col2, + 14
----
-3047
14

skipif mysql # not compatible
query II rowsort label-1174
SELECT DISTINCT 89 + + 78 + - + 10 + - SUM ( - 36 ) * - 89 AS col2, + 14
----
-3047
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT MIN( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-1175
SELECT MIN ( 54 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT + 12 + 3 + + 54 + - - 98 + 43 DIV + 53
----
167

skipif mysql # not compatible
query I rowsort label-1176
SELECT + 12 + 3 + + 54 + - - 98 + 43 / + 53
----
167

query I rowsort
SELECT 61 * + 28
----
1708

query I rowsort
SELECT ALL - + 51 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT + 95 - - - CASE 12 WHEN - 2 THEN ( - 4 ) * 43 + - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) / - + ( - 46 ) * AVG ( ALL + 29 ) THEN + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + 95 - - - CASE 12 WHEN - 2 THEN ( - 4 ) * 43 + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / - + ( - 46 ) * AVG ( ALL + 29 ) THEN + 88 END
----
NULL

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

query I rowsort
SELECT ALL 74 + + + 94
----
168

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1183
SELECT ALL CAST( - 58 AS SIGNED ) DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL CAST ( - 58 AS INTEGER ) / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT COUNT( * ) DIV - + ( 3 ) * 70 * - - 42 + + - ( + 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-1184
SELECT COUNT ( * ) / - + ( 3 ) * 70 * - - 42 + + - ( + 77 ) col0
----
-77

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

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - MIN ( - 99 )
----
99

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

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

query I rowsort
SELECT DISTINCT 93 * - + 99 AS col1
----
-9207

query I rowsort
SELECT ALL + 7 - + 87 + - - 25 * - COALESCE ( 46, + 28 ) * + + 98
----
-112780

query III rowsort
SELECT DISTINCT - 10 AS col0, 93 * - 74 * - 81, + 47 AS col1
----
-10
557442
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1191
SELECT DISTINCT COALESCE ( - COALESCE ( + - NULLIF ( 71, - 41 ), + + 81, 11 ), - + COUNT( * ) DIV - 62 + + 11 ) * - - 92
----
6532

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT COALESCE ( - COALESCE ( + - NULLIF ( 71, - 41 ), + + 81, 11 ), - + COUNT ( * ) / - 62 + + 11 ) * - - 92
----
6532

query I rowsort
SELECT ALL 10 AS col2
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT COUNT( * ) + - + COUNT( * ) + - - 82 + - + 63 - - 78
----
97

skipif mysql # not compatible
query I rowsort label-1194
SELECT COUNT ( * ) + - + COUNT ( * ) + - - 82 + - + 63 - - 78
----
97

query I rowsort
SELECT - 66 col0
----
-66

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1197
SELECT ALL ( - + NULLIF ( + - CAST( NULL AS DECIMAL ), - - 61 ) ) * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL ( - + NULLIF ( + - CAST ( NULL AS REAL ), - - 61 ) ) * + 64 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 27 AS col2, 49
----
27
49

query I rowsort
SELECT 67 + - 96
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT CAST( + COUNT( * ) AS SIGNED ) + 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1200
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + 57 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT + 36 + + 61 * + 42 * + COUNT( * )
----
2598

skipif mysql # not compatible
query I rowsort label-1201
SELECT + 36 + + 61 * + 42 * + COUNT ( * )
----
2598

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT ALL 6 DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL 6 / - + 62
----
0

query I rowsort
SELECT ALL - 4 + - 52 * + - 87 AS col2
----
4520

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

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

query II rowsort
SELECT - 80 col1, + ( + 97 )
----
-80
97

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

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

query I rowsort
SELECT 28 + - - 91 AS col2
----
119

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT - CASE + 78 WHEN + 37 * COUNT( * ) THEN NULL ELSE COUNT( * ) * - - ( + - 56 ) END + ( + MIN( - - 78 ) ) * COUNT( * ) DIV - 72 + - 66
----
-11

skipif mysql # not compatible
query I rowsort label-1209
SELECT - CASE + 78 WHEN + 37 * COUNT ( * ) THEN NULL ELSE COUNT ( * ) * - - ( + - 56 ) END + ( + MIN ( - - 78 ) ) * COUNT ( * ) / - 72 + - 66
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT ALL + - 80 + - 46 DIV + 66 - + 95 + + COALESCE ( + COUNT( * ), MAX( ALL - + 71 ) )
----
-174

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + - 80 + - 46 / + 66 - + 95 + + COALESCE ( + COUNT ( * ), MAX ( ALL - + 71 ) )
----
-174

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT - COUNT( * ) + 72 * - MIN( DISTINCT 99 ) * + + 85
----
-605881

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - COUNT ( * ) + 72 * - MIN ( DISTINCT 99 ) * + + 85
----
-605881

query I rowsort
SELECT + COALESCE ( + ( 9 ), 58 + + 51, 64 )
----
9

query I rowsort
SELECT DISTINCT - - 92 AS col0
----
92

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1217
SELECT 93 AS col2, 14 DIV - 20
----
93
0

skipif mysql # not compatible
query II rowsort label-1217
SELECT 93 AS col2, 14 / - 20
----
93
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL - - COALESCE ( - - 6, CAST( NULL AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - - COALESCE ( - - 6, CAST ( NULL AS INTEGER ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1219
SELECT - + 25 * - 1 + - CAST( NULL AS SIGNED ) - ( + 35 ) + + - COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT - + 25 * - 1 + - CAST ( NULL AS INTEGER ) - ( + 35 ) + + - COUNT ( * ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT ALL - + 1 - CASE - COUNT( * ) WHEN + - 93 + - + 16 THEN + 69 ELSE NULL END col0, 74 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1220
SELECT ALL - + 1 - CASE - COUNT ( * ) WHEN + - 93 + - + 16 THEN + 69 ELSE NULL END col0, 74 AS col2
----
NULL
74

query I rowsort
SELECT ALL + 62 - - 71 AS col1
----
133

query I rowsort
SELECT 56 * - 15
----
-840

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

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - MAX ( 54 )
----
-54

query II rowsort
SELECT DISTINCT + 48 * 17 AS col0, - 25 * + ( + - 23 ) AS col2
----
816
575

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT - ( COUNT( * ) ) * + - 10 + - - 48 - + 4 - - 69 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-1227
SELECT - ( COUNT ( * ) ) * + - 10 + - - 48 - + 4 - - 69 AS col2
----
123

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

query I rowsort
SELECT + 7 col2
----
7

query II rowsort
SELECT 32 * - 84, - 22 AS col1
----
-2688
-22

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

query I rowsort
SELECT 42 * - - ( - 18 ) AS col0
----
-756

query I rowsort
SELECT 39 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1234
SELECT ALL 45 DIV - SUM( DISTINCT - 16 )
----
2

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL 45 / - SUM ( DISTINCT - 16 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1235
SELECT + NULLIF ( 58, + CAST( NULL AS SIGNED ) * - 50 * - - COUNT( * ) ) * - 66
----
-3828

skipif mysql # not compatible
query I rowsort label-1235
SELECT + NULLIF ( 58, + CAST ( NULL AS INTEGER ) * - 50 * - - COUNT ( * ) ) * - 66
----
-3828

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

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

query I rowsort
SELECT ALL 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - NULLIF ( - - 56, + COUNT( * ) + 67 )
----
-56

skipif mysql # not compatible
query I rowsort label-1238
SELECT - NULLIF ( - - 56, + COUNT ( * ) + 67 )
----
-56

query I rowsort
SELECT - - 53 AS col1
----
53

query I rowsort
SELECT 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1241
SELECT ALL COUNT( * ) + 15, + 12 + 31 AS col2
----
16
43

skipif mysql # not compatible
query II rowsort label-1241
SELECT ALL COUNT ( * ) + 15, + 12 + 31 AS col2
----
16
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT + 61 DIV - 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1243
SELECT + 61 / - 43 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT 79 + + + CASE + COUNT( * ) WHEN - + 40 - + 73 THEN + 73 WHEN - ( - 61 ) THEN + 79 END + - 42 * - 53 * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT 79 + + + CASE + COUNT ( * ) WHEN - + 40 - + 73 THEN + 73 WHEN - ( - 61 ) THEN + 79 END + - 42 * - 53 * 2 AS col1
----
NULL

query I rowsort
SELECT ALL + 82 + + 39 - + 12 + 74 + + 24 AS col1
----
207

query I rowsort
SELECT + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT + COUNT( * ) * - + 86 * - ( - 89 ) + 85 - + 78 * + 61 * + - MAX( ALL 29 ) AS col2
----
130413

skipif mysql # not compatible
query I rowsort label-1247
SELECT + COUNT ( * ) * - + 86 * - ( - 89 ) + 85 - + 78 * + 61 * + - MAX ( ALL 29 ) AS col2
----
130413

query I rowsort
SELECT ALL 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT + 50 - + CASE 99 WHEN + + 77 THEN MAX( ALL + - 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT + 50 - + CASE 99 WHEN + + 77 THEN MAX ( ALL + - 29 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1250
SELECT - MIN( DISTINCT 90 ) DIV 66 * + 36 * - COALESCE ( COUNT( * ), - - 70 - 23 ) * - + 14 * - ( + 8 ) AS col0
----
4032

skipif mysql # not compatible
query I rowsort label-1250
SELECT - MIN ( DISTINCT 90 ) / 66 * + 36 * - COALESCE ( COUNT ( * ), - - 70 - 23 ) * - + 14 * - ( + 8 ) AS col0
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + + 35 * - COUNT( * ) * + + 39
----
-1365

skipif mysql # not compatible
query I rowsort label-1251
SELECT + + 35 * - COUNT ( * ) * + + 39
----
-1365

query I rowsort
SELECT - 78 / CASE 30 WHEN - 24 - 53 + 82 THEN NULL WHEN 27 * + 3 THEN - 68 ELSE NULL END + - + 86 + - + 72 + + + 50 + + ( + + 54 ) * + 30 + - - 60 * - 8 + + 39 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1253
SELECT DISTINCT 51 * ( + 20 ) - - CAST( 51 AS SIGNED ) AS col1
----
1071

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT 51 * ( + 20 ) - - CAST ( 51 AS INTEGER ) AS col1
----
1071

query I rowsort
SELECT + + 86 + + + 28
----
114

query I rowsort
SELECT ALL + 11 AS col0
----
11

query II rowsort
SELECT + 39 * - + 39 AS col0, 27
----
-1521
27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1258
SELECT ALL 0 * SUM( ALL - 40 ) - + + 91 * COUNT( * ) - CAST( NULL AS SIGNED ), 83 + - + 54 + - 62 col0
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-1258
SELECT ALL 0 * SUM ( ALL - 40 ) - + + 91 * COUNT ( * ) - CAST ( NULL AS INTEGER ), 83 + - + 54 + - 62 col0
----
NULL
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT + NULLIF ( COUNT( * ), CASE + + COUNT( * ) WHEN - + 31 THEN SUM( COALESCE ( + 55, + 29 ) ) ELSE NULL END * + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-1259
SELECT + NULLIF ( COUNT ( * ), CASE + + COUNT ( * ) WHEN - + 31 THEN SUM ( COALESCE ( + 55, + 29 ) ) ELSE NULL END * + 54 )
----
1

query I rowsort
SELECT + 87 + + 19
----
106

query I rowsort
SELECT + 5 * 5
----
25

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

query I rowsort
SELECT - 45 + + NULLIF ( - 49, - - 55 ) col2
----
-94

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

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

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

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

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

query I rowsort
SELECT - 27 * - - 77
----
-2079

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

query I rowsort
SELECT ALL 24 * + + 90 * - + 39 + + - 99
----
-84339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT - 36 * COUNT( * ) + - 6 DIV - 61 * + NULLIF ( - 9, 58 ) * - 94 DIV - 14 + + 13 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1270
SELECT - 36 * COUNT ( * ) + - 6 / - 61 * + NULLIF ( - 9, 58 ) * - 94 / - 14 + + 13 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT - ( CASE CAST( - + 67 AS SIGNED ) WHEN 27 * + CAST( NULL AS SIGNED ) * + 35 * + 45 * + 22 THEN - ( + 99 ) / - 67 * CAST( - - 40 AS SIGNED ) * + + 30 - - - 83 END ) - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1271
SELECT - ( CASE CAST ( - + 67 AS INTEGER ) WHEN 27 * + CAST ( NULL AS INTEGER ) * + 35 * + 45 * + 22 THEN - ( + 99 ) / - 67 * CAST ( - - 40 AS INTEGER ) * + + 30 - - - 83 END ) - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - 9 * + COUNT( * ) * - 4
----
36

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - 9 * + COUNT ( * ) * - 4
----
36

query I rowsort
SELECT - 91 + + + 67 col2
----
-24

query I rowsort
SELECT + 73 * + - 23 AS col2
----
-1679

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

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + COUNT ( * ) + 92 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT DISTINCT + - 47 + + - 85 DIV - 1 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + - 47 + + - 85 / - 1 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT DISTINCT 24 DIV + 47 col0
----
0

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT 24 / + 47 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT - - NULLIF ( - + 93, - - 15 ) + - + 33 + + ( - 97 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT - - NULLIF ( - + 93, - - 15 ) + - + 33 + + ( - 97 ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT ALL + + 97 + - ( - 87 ) - 59 DIV 41 AS col0
----
183

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + + 97 + - ( - 87 ) - 59 / 41 AS col0
----
183

query I rowsort
SELECT ALL 51 - - 50
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT - CASE 71 WHEN - COALESCE ( 29, + COUNT( * ) ) THEN - 28 END * - - 59 * - - NULLIF ( + 80, - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - CASE 71 WHEN - COALESCE ( 29, + COUNT ( * ) ) THEN - 28 END * - - 59 * - - NULLIF ( + 80, - 91 )
----
NULL

query I rowsort
SELECT - - 36
----
36

query I rowsort
SELECT + 16 col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL - 70 - + COALESCE ( CAST( NULL AS SIGNED ), + - 98 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL - 70 - + COALESCE ( CAST ( NULL AS INTEGER ), + - 98 ) AS col2
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL + 95 * MAX( ALL + 84 ) + + COALESCE ( ( + COUNT( * ) ), COALESCE ( - 18, - 26 ) ) AS col2
----
7981

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL + 95 * MAX ( ALL + 84 ) + + COALESCE ( ( + COUNT ( * ) ), COALESCE ( - 18, - 26 ) ) AS col2
----
7981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1287
SELECT - - 90 * - SUM( DISTINCT 93 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT - - 90 * - SUM ( DISTINCT 93 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + - ( - COUNT( 44 ) ) * - + 33 * - + 24 + 29 + ( + + 69 )
----
890

skipif mysql # not compatible
query I rowsort label-1288
SELECT + - ( - COUNT ( 44 ) ) * - + 33 * - + 24 + 29 + ( + + 69 )
----
890

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT ALL - 80 AS col2, - COUNT( * ) + - - 85
----
-80
84

skipif mysql # not compatible
query II rowsort label-1289
SELECT ALL - 80 AS col2, - COUNT ( * ) + - - 85
----
-80
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL COUNT( ALL 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL COUNT ( ALL 33 ) col0
----
1

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

query II rowsort
SELECT 3 AS col1, - 28 AS col0
----
3
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1293
SELECT DISTINCT + CAST( + 88 AS SIGNED ) DIV + 53 + + 49 * - 47
----
-2302

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + CAST ( + 88 AS INTEGER ) / + 53 + + 49 * - 47
----
-2302

query I rowsort
SELECT + NULLIF ( + 59, + NULLIF ( + 99, 60 * - + 2 + - - 60 ) )
----
59

query I rowsort
SELECT + 5 * - 83
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + 11 * + COUNT( * ) * 6 * + - 97 * 60 AS col1
----
-384120

skipif mysql # not compatible
query I rowsort label-1296
SELECT + 11 * + COUNT ( * ) * 6 * + - 97 * 60 AS col1
----
-384120

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

skipif mysql # not compatible
query II rowsort label-1297
SELECT DISTINCT COUNT ( * ) / - 18 AS col2, + COUNT ( * ) - 60 AS col1
----
0
-59

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1301
SELECT CAST( - 29 AS SIGNED ), 9 AS col1
----
-29
9

skipif mysql # not compatible
query II rowsort label-1301
SELECT CAST ( - 29 AS INTEGER ), 9 AS col1
----
-29
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT ALL 8 DIV - 30 + 86
----
86

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL 8 / - 30 + 86
----
86

query I rowsort
SELECT + 75 + + - 55 + + - 8 AS col0
----
12

query I rowsort
SELECT ALL - 40 * 29 AS col1
----
-1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT CASE + + COUNT( * ) WHEN + - 36 + - 99 + + 42 * + + MIN( ALL + CAST( NULL AS SIGNED ) ) * 4 THEN + 45 + + 3 WHEN - COUNT( * ) * + 27 * 92 + + - 9 - + 76 THEN NULL END * + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT CASE + + COUNT ( * ) WHEN + - 36 + - 99 + + 42 * + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) * 4 THEN + 45 + + 3 WHEN - COUNT ( * ) * + 27 * 92 + + - 9 - + 76 THEN NULL END * + + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT DISTINCT 74 * + + COUNT( * ) AS col0, + 54
----
74
54

skipif mysql # not compatible
query II rowsort label-1306
SELECT DISTINCT 74 * + + COUNT ( * ) AS col0, + 54
----
74
54

query I rowsort
SELECT ALL + 67 + - 82 col1
----
-15

query I rowsort
SELECT ALL 9 * - 72 col0
----
-648

query I rowsort
SELECT 67 * + 42 + + - 6
----
2808

query I rowsort
SELECT 10 col0
----
10

query I rowsort
SELECT 93 + - + 42 AS col2
----
51

query I rowsort
SELECT ALL - 31 AS col1
----
-31

query I rowsort
SELECT + 28 col2
----
28

query II rowsort
SELECT 2 + + + 95 AS col2, - 84
----
97
-84

query I rowsort
SELECT DISTINCT - 44 AS col0
----
-44

query I rowsort
SELECT 1 col0
----
1

query I rowsort
SELECT ALL 39 + 36
----
75

query I rowsort
SELECT ALL - + 74 * 57 + - 36 AS col2
----
-4254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1319
SELECT DISTINCT + 93 + + MIN( - CAST( 78 AS SIGNED ) ) AS col1, - 39 AS col1
----
15
-39

skipif mysql # not compatible
query II rowsort label-1319
SELECT DISTINCT + 93 + + MIN ( - CAST ( 78 AS INTEGER ) ) AS col1, - 39 AS col1
----
15
-39

query I rowsort
SELECT ALL - 34 - 2
----
-36

query II rowsort
SELECT DISTINCT - NULLIF ( + 28, - + 1 ) * - - 21, 18 AS col1
----
-588
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1322
SELECT ALL + - 61 - + COUNT( * ) AS col0, COUNT( * ) * - 95 - 75 * COALESCE ( - - SUM( - 75 ), - 48 ) * + COUNT( * ) DIV COUNT( * )
----
-62
5530

skipif mysql # not compatible
query II rowsort label-1322
SELECT ALL + - 61 - + COUNT ( * ) AS col0, COUNT ( * ) * - 95 - 75 * COALESCE ( - - SUM ( - 75 ), - 48 ) * + COUNT ( * ) / COUNT ( * )
----
-62
5530

query I rowsort
SELECT - 22 AS col2
----
-22

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

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

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

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

query I rowsort
SELECT ALL - - 69 - 61 col1
----
8

query I rowsort
SELECT + 5 col1
----
5

query II rowsort
SELECT 85 * - 55 AS col1, 96
----
-4675
96

query I rowsort
SELECT 15 - - 54 AS col1
----
69

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - + 29
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1333
SELECT ALL + 75 DIV CAST( 23 AS SIGNED ) * - - 80 + 57 AS col1
----
297

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL + 75 / CAST ( 23 AS INTEGER ) * - - 80 + 57 AS col1
----
297

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL - 83 * - COUNT( * ) * - - CAST( + 72 AS SIGNED ) + - - 94
----
6070

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - 83 * - COUNT ( * ) * - - CAST ( + 72 AS INTEGER ) + - - 94
----
6070

query I rowsort
SELECT - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + ( - CASE - - 80 WHEN COUNT( * ) THEN - 41 * + + ( 83 ) END ) + - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT + ( - CASE - - 80 WHEN COUNT ( * ) THEN - 41 * + + ( 83 ) END ) + - + 91
----
NULL

query I rowsort
SELECT 26 + - + 77
----
-51

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

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

query I rowsort
SELECT 68 * + NULLIF ( ( - 82 ), - 94 * + + 99 )
----
-5576

query II rowsort
SELECT DISTINCT 11 * 62 * - 68, + 83 AS col0
----
-46376
83

query II rowsort
SELECT ALL 28 + - + 95 + - 63, 35 AS col0
----
-130
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT 52 + + ( - - 1 ) + 46 * + CAST( - + 56 AS SIGNED ) - 14
----
-2537

skipif mysql # not compatible
query I rowsort label-1344
SELECT 52 + + ( - - 1 ) + 46 * + CAST ( - + 56 AS INTEGER ) - 14
----
-2537

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

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL + COUNT ( * ) * 85 * 25 / COUNT ( * ) AS col1
----
2125

query I rowsort
SELECT ALL - 72 + + 69 * - + 47 + + - 59
----
-3374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT ALL 98 + - COUNT( * ) * COALESCE ( - 33, + 78 + + 96 + - 31 * + 0 * 76, - COUNT( * ) DIV COUNT( * ) * - 87 )
----
131

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 98 + - COUNT ( * ) * COALESCE ( - 33, + 78 + + 96 + - 31 * + 0 * 76, - COUNT ( * ) / COUNT ( * ) * - 87 )
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-1348
SELECT 48 DIV 3
----
16

skipif mysql # not compatible
query I rowsort label-1348
SELECT 48 / 3
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT 27 + + MIN( ALL + 3 )
----
30

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT 27 + + MIN ( ALL + 3 )
----
30

query II rowsort
SELECT 49, 21 AS col2
----
49
21

query I rowsort
SELECT + 18 col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1352
SELECT ALL 62 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL 62 / + 58
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT SUM( DISTINCT + COALESCE ( - ( + + 33 ), 71 ) ) * - + 7
----
231

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT SUM ( DISTINCT + COALESCE ( - ( + + 33 ), 71 ) ) * - + 7
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1354
SELECT ALL - 47 AS col2, - COUNT( * ) * - + CASE + + 42 WHEN + 21 THEN 0 ELSE NULL END * - CAST( - + CASE + - 10 WHEN 38 + + 8 - - + ( - MIN( 58 ) ) * 55 + - - 88 THEN + COUNT( * ) WHEN - 14 * - 85 THEN - 67 + - COUNT( * ) WHEN - 60 / + 93 THEN NULL END AS SIGNED ) + 23
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-1354
SELECT ALL - 47 AS col2, - COUNT ( * ) * - + CASE + + 42 WHEN + 21 THEN 0 ELSE NULL END * - CAST ( - + CASE + - 10 WHEN 38 + + 8 - - + ( - MIN ( 58 ) ) * 55 + - - 88 THEN + COUNT ( * ) WHEN - 14 * - 85 THEN - 67 + - COUNT ( * ) WHEN - 60 / + 93 THEN NULL END AS INTEGER ) + 23
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT CASE - + COUNT( * ) WHEN 27 + + - 56 + - 25 + - ( - - 4 ) THEN NULL WHEN - SUM( ALL - 62 ) + + - 33 THEN - 92 END * 81 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT CASE - + COUNT ( * ) WHEN 27 + + - 56 + - 25 + - ( - - 4 ) THEN NULL WHEN - SUM ( ALL - 62 ) + + - 33 THEN - 92 END * 81 + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT DISTINCT 67 - + CAST( + CASE - + 76 WHEN - 89 + + + COUNT( * ) THEN NULL WHEN - - 0 THEN + - 13 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT 67 - + CAST ( + CASE - + 76 WHEN - 89 + + + COUNT ( * ) THEN NULL WHEN - - 0 THEN + - 13 ELSE NULL END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 26 * - 0 AS col2
----
0

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

query I rowsort
SELECT DISTINCT + 64 - + - 48
----
112

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1361
SELECT ALL - MAX( 44 ) * + 8 AS col0, 33
----
-352
33

skipif mysql # not compatible
query II rowsort label-1361
SELECT ALL - MAX ( 44 ) * + 8 AS col0, 33
----
-352
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT + MAX( DISTINCT ( ( + - 26 ) ) ) * + 81 + 17 * + + 33 AS col0
----
-1545

skipif mysql # not compatible
query I rowsort label-1362
SELECT + MAX ( DISTINCT ( ( + - 26 ) ) ) * + 81 + 17 * + + 33 AS col0
----
-1545

query I rowsort
SELECT - 3 - 27 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT 20 * - 20 * MIN( + 60 )
----
-24000

skipif mysql # not compatible
query I rowsort label-1364
SELECT 20 * - 20 * MIN ( + 60 )
----
-24000

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT 7 + - ( 35 ) + - COUNT( - + 44 )
----
-29

skipif mysql # not compatible
query I rowsort label-1365
SELECT 7 + - ( 35 ) + - COUNT ( - + 44 )
----
-29

query I rowsort
SELECT 38 * - 26 AS col1
----
-988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1367
SELECT COALESCE ( + COUNT( ALL ( - 12 ) ), + - 45, + + 99 + 56, 37 * + - COALESCE ( - 54, - ( - COUNT( * ) ), COUNT( * ) DIV - + 87 * + 94 * - 21 + - - 4 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1367
SELECT COALESCE ( + COUNT ( ALL ( - 12 ) ), + - 45, + + 99 + 56, 37 * + - COALESCE ( - 54, - ( - COUNT ( * ) ), COUNT ( * ) / - + 87 * + 94 * - 21 + - - 4 ) ) AS col0
----
1

query I rowsort
SELECT - 69 + - + 58
----
-127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1369
SELECT 99 * + + 50 + CAST( 17 AS SIGNED ) + 95 DIV - ( + 50 ) AS col2
----
4966

skipif mysql # not compatible
query I rowsort label-1369
SELECT 99 * + + 50 + CAST ( 17 AS INTEGER ) + 95 / - ( + 50 ) AS col2
----
4966

query I rowsort
SELECT ALL 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT COUNT( * ) + 6 * - + MIN( ALL - 32 ) * SUM( - 34 ) + - 95 + - CASE + 16 WHEN + 30 * + 81 + + - 83 THEN + + 67 WHEN - 96 THEN - 88 * 60 WHEN 2 THEN NULL ELSE NULL END + - CASE + 71 WHEN + - 72 THEN NULL ELSE + 73 + 32 * - 69 END + 56 * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT COUNT ( * ) + 6 * - + MIN ( ALL - 32 ) * SUM ( - 34 ) + - 95 + - CASE + 16 WHEN + 30 * + 81 + + - 83 THEN + + 67 WHEN - 96 THEN - 88 * 60 WHEN 2 THEN NULL ELSE NULL END + - CASE + 71 WHEN + - 72 THEN NULL ELSE + 73 + 32 * - 69 END + 56 * 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT 76 + ( + 96 ) - - 79 + - ( + COUNT( * ) ) DIV - ( - 37 )
----
251

skipif mysql # not compatible
query I rowsort label-1372
SELECT 76 + ( + 96 ) - - 79 + - ( + COUNT ( * ) ) / - ( - 37 )
----
251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1373
SELECT + 10 + - + ( - CASE CASE + + CAST( NULL AS SIGNED ) WHEN NULLIF ( - NULLIF ( - 96, - 77 + - 87 + - 56 ), - CAST( NULL AS SIGNED ) ) THEN + 11 WHEN - 9 - 81 * + + CAST( NULL AS DECIMAL ) THEN 25 WHEN + COUNT( + + 4 ) THEN NULL END WHEN + 17 * MAX( ALL - 51 * + 47 ) THEN NULL ELSE - 52 * - CAST( NULL AS SIGNED ) END ) - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT + 10 + - + ( - CASE CASE + + CAST ( NULL AS INTEGER ) WHEN NULLIF ( - NULLIF ( - 96, - 77 + - 87 + - 56 ), - CAST ( NULL AS INTEGER ) ) THEN + 11 WHEN - 9 - 81 * + + CAST ( NULL AS REAL ) THEN 25 WHEN + COUNT ( + + 4 ) THEN NULL END WHEN + 17 * MAX ( ALL - 51 * + 47 ) THEN NULL ELSE - 52 * - CAST ( NULL AS INTEGER ) END ) - 46
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 23, + 78 ) * - 7
----
-161

query I rowsort
SELECT - - 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1376
SELECT - - SUM( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT - - SUM ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT 99 + + + COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1377
SELECT 99 + + + COUNT ( * ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT - 69 AS col1, - COUNT( * ) * - ( - 61 ) AS col0
----
-69
-61

skipif mysql # not compatible
query II rowsort label-1378
SELECT - 69 AS col1, - COUNT ( * ) * - ( - 61 ) AS col0
----
-69
-61

query I rowsort
SELECT + 76 * + + 6
----
456

query I rowsort
SELECT 45 + + + 91 col2
----
136

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT ( + - CAST ( + MAX ( DISTINCT - 23 ) AS INTEGER ) )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT 76 DIV - COUNT( * ) AS col0
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT + 3 + + COALESCE ( + 57, 86 + + COALESCE ( - + 15, - 47 ) * COUNT( * ) ) col2
----
60

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + 3 + + COALESCE ( + 57, 86 + + COALESCE ( - + 15, - 47 ) * COUNT ( * ) ) col2
----
60

query I rowsort
SELECT ALL + 85 + - - ( + NULLIF ( ( + 3 ), + + 33 + - 85 + 48 ) ) AS col1
----
88

query II rowsort
SELECT - NULLIF ( + 55, - - ( 84 ) + + - 29 * - 66 ) * - 40 col1, - CASE + 84 WHEN 45 THEN + + 78 + - 11 + + 15 * - 99 / + - 72 WHEN 29 * + 64 THEN 52 END AS col1
----
2200
NULL

query I rowsort
SELECT ALL 93 AS col1
----
93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1388
SELECT - 47 AS col1, 35 + - COUNT( * ) AS col1
----
-47
34

skipif mysql # not compatible
query II rowsort label-1388
SELECT - 47 AS col1, 35 + - COUNT ( * ) AS col1
----
-47
34

query I rowsort
SELECT ALL NULLIF ( - 36, - - 67 - + 6 - 3 + - + 70 + + - 28 )
----
-36

query I rowsort
SELECT DISTINCT 81 * - + 18 * 22 AS col0
----
-32076

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT - 87 DIV 79 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 87 / 79 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - 4 * COALESCE ( + MAX( DISTINCT + 66 ), + + 34 ) AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-1392
SELECT - 4 * COALESCE ( + MAX ( DISTINCT + 66 ), + + 34 ) AS col0
----
-264

query I rowsort
SELECT COALESCE ( + - 80, + 48 + + - 51 * + 90 ) AS col2
----
-80

query I rowsort
SELECT + ( - 53 ) + - + 39 AS col2
----
-92

query I rowsort
SELECT NULLIF ( 0, + 33 * 41 + - 13 + + 54 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1396
SELECT + COUNT( * ), + 13 + + 4 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1396
SELECT + COUNT ( * ), + 13 + + 4 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1397
SELECT + 33 * MIN( ALL - 95 ) / + 42 * + CAST( NULL AS SIGNED ) * + COUNT( * ) + - ( + - COUNT( + 96 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 33 * MIN ( ALL - 95 ) / + 42 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - ( + - COUNT ( + 96 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL SUM( ALL + 19 ) * - - 55
----
1045

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL SUM ( ALL + 19 ) * - - 55
----
1045

query I rowsort
SELECT - ( 90 ) + - + 98 + - - 96 AS col2
----
-92

query I rowsort
SELECT 86 * 11 - - 26
----
972

query I rowsort
SELECT DISTINCT + 96 * 80 AS col0
----
7680

query I rowsort
SELECT DISTINCT + 33 * - 87 - - 70 - + ( + 52 )
----
-2853

onlyif mysql # aggregate syntax: 
query II rowsort label-1403
SELECT + 14 * 10 * - - 69 * 51 AS col0, - COUNT( * ) - + COUNT( * ) * + + 24
----
492660
-25

skipif mysql # not compatible
query II rowsort label-1403
SELECT + 14 * 10 * - - 69 * 51 AS col0, - COUNT ( * ) - + COUNT ( * ) * + + 24
----
492660
-25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1405
SELECT CASE - ( 11 ) WHEN + ( - CASE 13 WHEN + 99 THEN 64 * 64 WHEN - 92 * COALESCE ( CAST( NULL AS DECIMAL ), + 4 * - COUNT( * ) * COALESCE ( + 15, - 78 + 67 ) + + 33, 35 * + 14 - 79 + CAST( NULL AS SIGNED ) * COUNT( * ) ) + - 99 THEN 75 END ) * 6 + + 33 THEN 2 + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT CASE - ( 11 ) WHEN + ( - CASE 13 WHEN + 99 THEN 64 * 64 WHEN - 92 * COALESCE ( CAST ( NULL AS REAL ), + 4 * - COUNT ( * ) * COALESCE ( + 15, - 78 + 67 ) + + 33, 35 * + 14 - 79 + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) + - 99 THEN 75 END ) * 6 + + 33 THEN 2 + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1406
SELECT ( - COUNT( DISTINCT - - 67 ) ) * - - COUNT( * ) + - + 19 * - NULLIF ( - CAST( AVG ( DISTINCT 32 ) AS SIGNED ), CAST( NULL AS SIGNED ) + + 79 + - + 81 + COUNT( * ) * - 16 ) * + - CAST( + 60 AS SIGNED ) DIV + COUNT( * ) col2
----
36479

skipif mysql # not compatible
query I rowsort label-1406
SELECT ( - COUNT ( DISTINCT - - 67 ) ) * - - COUNT ( * ) + - + 19 * - NULLIF ( - CAST ( AVG ( DISTINCT 32 ) AS INTEGER ), CAST ( NULL AS INTEGER ) + + 79 + - + 81 + COUNT ( * ) * - 16 ) * + - CAST ( + 60 AS INTEGER ) / + COUNT ( * ) col2
----
36479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1407
SELECT DISTINCT - - 55 * - 65 - + COUNT( * ) + 94 + - 21 + + - 70 DIV + 87 DIV - 1 col2
----
-3503

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - - 55 * - 65 - + COUNT ( * ) + 94 + - 21 + + - 70 / + 87 / - 1 col2
----
-3503

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

query I rowsort
SELECT + + 22
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT + - CASE + 32 WHEN - COUNT( ALL + + 67 ) + - 29 * - + 93 THEN NULL WHEN - 48 THEN - 11 * - 54 END AS col1, - 18 * + - 86
----
NULL
1548

skipif mysql # not compatible
query II rowsort label-1411
SELECT + - CASE + 32 WHEN - COUNT ( ALL + + 67 ) + - 29 * - + 93 THEN NULL WHEN - 48 THEN - 11 * - 54 END AS col1, - 18 * + - 86
----
NULL
1548

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + - ( COUNT( * ) ) * + 40 + + + 59 + - 50 + - 5 + + 81 * + 41 * - 71
----
-235827

skipif mysql # not compatible
query I rowsort label-1413
SELECT + - ( COUNT ( * ) ) * + 40 + + + 59 + - 50 + - 5 + + 81 * + 41 * - 71
----
-235827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT DISTINCT - 91 * - 13 * + CASE MIN( ALL - 96 ) WHEN - 78 THEN - 66 WHEN + ( - AVG ( + CAST( + - 50 AS SIGNED ) ) ) - - + COALESCE ( - 76, - 32 / - 23 * - 15 + - - ( + 57 ) ) * MIN( ALL + + 23 ) * + 85 + + 44 - 4 THEN + 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT - 91 * - 13 * + CASE MIN ( ALL - 96 ) WHEN - 78 THEN - 66 WHEN + ( - AVG ( + CAST ( + - 50 AS INTEGER ) ) ) - - + COALESCE ( - 76, - 32 / - 23 * - 15 + - - ( + 57 ) ) * MIN ( ALL + + 23 ) * + 85 + + 44 - 4 THEN + 53 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 47 + 91 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT - SUM( + 6 ) * + - 19
----
114

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - SUM ( + 6 ) * + - 19
----
114

query I rowsort
SELECT + 47 + - 59
----
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT DISTINCT + 64 + + - 2 DIV + 87 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + 64 + + - 2 / + 87 AS col0
----
64

query I rowsort
SELECT ALL - 6 + 94 AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT ALL - MIN( ALL - 52 ) AS col0, 13 + + COUNT( * ) + 14 * 26
----
52
378

skipif mysql # not compatible
query II rowsort label-1422
SELECT ALL - MIN ( ALL - 52 ) AS col0, 13 + + COUNT ( * ) + 14 * 26
----
52
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT ALL - 53 + MIN( + - CAST( NULL AS SIGNED ) ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - 53 + MIN ( + - CAST ( NULL AS INTEGER ) ) * - 84
----
NULL

query I rowsort
SELECT + 34 - + 90 col1
----
-56

query I rowsort
SELECT ALL NULLIF ( - 34, - + 98 )
----
-34

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

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

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

query I rowsort
SELECT - 45 col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT ALL 93 + + + 59 * CASE + 67 WHEN - 82 + AVG ( - 25 ) THEN NULL WHEN + - COUNT( * ) THEN NULLIF ( - CAST( NULL AS SIGNED ), 17 * - + MAX( + - 83 ) + + 1 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL 93 + + + 59 * CASE + 67 WHEN - 82 + AVG ( - 25 ) THEN NULL WHEN + - COUNT ( * ) THEN NULLIF ( - CAST ( NULL AS INTEGER ), 17 * - + MAX ( + - 83 ) + + 1 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT + 99 + + + SUM( ALL - 79 ) + MAX( ALL - 22 ) * - + 99
----
2198

skipif mysql # not compatible
query I rowsort label-1430
SELECT + 99 + + + SUM ( ALL - 79 ) + MAX ( ALL - 22 ) * - + 99
----
2198

query I rowsort
SELECT - 81 - + 38 + + + 29 * - ( - 25 ) col1
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT DISTINCT CASE 49 WHEN 46 THEN 1 + - - 16 + + 31 + - 89 + - 78 * - + COALESCE ( CASE - 83 WHEN - 50 THEN ( + - 17 ) END, + 88 ) + - 72 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT CASE 49 WHEN 46 THEN 1 + - - 16 + + 31 + - 89 + - 78 * - + COALESCE ( CASE - 83 WHEN - 50 THEN ( + - 17 ) END, + 88 ) + - 72 * COUNT ( * ) END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1434
SELECT - CAST( + + 46 AS SIGNED ), 77 AS col2
----
-46
77

skipif mysql # not compatible
query II rowsort label-1434
SELECT - CAST ( + + 46 AS INTEGER ), 77 AS col2
----
-46
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT ALL 52 DIV + - 10 - + - 73 * - 34 * COUNT( ALL - NULLIF ( 20, + 9 ) ) * 92
----
-228349

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL 52 / + - 10 - + - 73 * - 34 * COUNT ( ALL - NULLIF ( 20, + 9 ) ) * 92
----
-228349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT - 45 * CASE 24 WHEN - - CAST( + + 26 AS SIGNED ) THEN NULL WHEN - 3 THEN - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 45 * CASE 24 WHEN - - CAST ( + + 26 AS INTEGER ) THEN NULL WHEN - 3 THEN - 37 END
----
NULL

query I rowsort
SELECT ALL 50 * + - 69 AS col2
----
-3450

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1439
SELECT ALL - 18 DIV 61 * + CAST( + 36 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL - 18 / 61 * + CAST ( + 36 AS INTEGER )
----
0

query I rowsort
SELECT - 15 * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL - 10 * - COUNT( * ) * 86 * + + 29 AS col0
----
24940

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - 10 * - COUNT ( * ) * 86 * + + 29 AS col0
----
24940

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT + ( + - 63 ) * - - 26 + + + COUNT( * )
----
-1637

skipif mysql # not compatible
query I rowsort label-1442
SELECT + ( + - 63 ) * - - 26 + + + COUNT ( * )
----
-1637

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

query I rowsort
SELECT + + 57 AS col2
----
57

query I rowsort
SELECT + 89 + - - ( - 29 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT - + 23 * + 41, MIN( ALL - + 52 ) AS col0
----
-943
-52

skipif mysql # not compatible
query II rowsort label-1446
SELECT - + 23 * + 41, MIN ( ALL - + 52 ) AS col0
----
-943
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL + COALESCE ( + + 72, + + 21 + - - MAX( DISTINCT - 6 ) ) * 90
----
6480

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL + COALESCE ( + + 72, + + 21 + - - MAX ( DISTINCT - 6 ) ) * 90
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT - - 6 - 73 * + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1449
SELECT - - 6 - 73 * + COUNT ( * ) AS col0
----
-67

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

query I rowsort
SELECT DISTINCT + - CASE ( + 44 ) WHEN + 50 * 40 + - 1 THEN - 4 WHEN + + 54 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 70 col0
----
70

query I rowsort
SELECT - 65 * + 58 + - - 82
----
-3688

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL - COUNT( * ) * - 97 + - + 72 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL - COUNT ( * ) * - 97 + - + 72 * COUNT ( * )
----
25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + + 90 - 46 * + - 16 + - 90 + - COUNT( * ) * + 51 * NULLIF ( + 80, - - 19 ) + + - ( - ( - 79 ) ) - + 3 AS col0
----
-3426

skipif mysql # not compatible
query I rowsort label-1458
SELECT + + 90 - 46 * + - 16 + - 90 + - COUNT ( * ) * + 51 * NULLIF ( + 80, - - 19 ) + + - ( - ( - 79 ) ) - + 3 AS col0
----
-3426

query I rowsort
SELECT - + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL + SUM( + 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL + SUM ( + 13 ) col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT + - 70 * 33 DIV COUNT( * ) + 88 AS col2
----
-2222

skipif mysql # not compatible
query I rowsort label-1461
SELECT + - 70 * 33 / COUNT ( * ) + 88 AS col2
----
-2222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1462
SELECT COUNT( * ) DIV - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1462
SELECT COUNT ( * ) / - 34 AS col1
----
0

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

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

query II rowsort
SELECT - ( + 42 ) col1, 37
----
-42
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1465
SELECT ALL COALESCE ( + - 63, + - 9 * - + 64 - 61 + + - CASE 18 WHEN - 15 + + 39 * + 37 * 98 + + + 35 + + + COUNT( * ) DIV 34 THEN 48 WHEN 65 * - + COALESCE ( - 1, COUNT( * ), 53, 20 ) * + - COUNT( * ) * + 62 + 19 DIV 2 - - COUNT( * ) THEN - 9 + 36 WHEN + SUM( ALL 22 ) THEN NULL ELSE + 22 + + 82 DIV ( + 54 + 72 ) END DIV 94, + COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL COALESCE ( + - 63, + - 9 * - + 64 - 61 + + - CASE 18 WHEN - 15 + + 39 * + 37 * 98 + + + 35 + + + COUNT ( * ) / 34 THEN 48 WHEN 65 * - + COALESCE ( - 1, COUNT ( * ), 53, 20 ) * + - COUNT ( * ) * + 62 + 19 / 2 - - COUNT ( * ) THEN - 9 + 36 WHEN + SUM ( ALL 22 ) THEN NULL ELSE + 22 + + 82 / ( + 54 + 72 ) END / 94, + COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT + 81 + + 76 + 2 * COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-1466
SELECT + 81 + + 76 + 2 * COUNT ( * )
----
159

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL 20 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 61 + 12
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT ALL COUNT( * ) + + - 7 + - CASE + 88 WHEN + MIN( DISTINCT + 55 ) THEN NULL ELSE - 91 * 1 DIV + ( + COUNT( * ) ) + + COUNT( * ) DIV - 11 * + 96 * - ( - ( + 34 ) ) + - ( - - 14 ) END col1
----
99

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL COUNT ( * ) + + - 7 + - CASE + 88 WHEN + MIN ( DISTINCT + 55 ) THEN NULL ELSE - 91 * 1 / + ( + COUNT ( * ) ) + + COUNT ( * ) / - 11 * + 96 * - ( - ( + 34 ) ) + - ( - - 14 ) END col1
----
99

query I rowsort
SELECT ( - 7 ) + + - 36 + - - 72 * + 81
----
5789

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT ALL 10 * + CAST( 22 AS SIGNED ) AS col1
----
220

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL 10 * + CAST ( 22 AS INTEGER ) AS col1
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT COUNT( DISTINCT + 0 ) + 92 AS col1, 5 * - + 69 + + 49 - 32 + - 5 col0
----
93
-333

skipif mysql # not compatible
query II rowsort label-1473
SELECT COUNT ( DISTINCT + 0 ) + 92 AS col1, 5 * - + 69 + + 49 - 32 + - 5 col0
----
93
-333

query I rowsort
SELECT - 48 AS col2
----
-48

query I rowsort
SELECT 96 + + 38 + + + NULLIF ( - 39, + 19 ) * + 69
----
-2557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1476
SELECT 67 * + NULLIF ( - + 86, - 25 ) * CAST( - CAST( - - 54 AS SIGNED ) AS SIGNED ) col2
----
311148

skipif mysql # not compatible
query I rowsort label-1476
SELECT 67 * + NULLIF ( - + 86, - 25 ) * CAST ( - CAST ( - - 54 AS INTEGER ) AS INTEGER ) col2
----
311148

query II rowsort
SELECT 73 AS col2, - 64
----
73
-64

query I rowsort
SELECT 92 + 71
----
163

query I rowsort
SELECT - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT - CASE + 91 WHEN + - SUM( DISTINCT - 58 ) THEN - 18 WHEN - 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - CASE + 91 WHEN + - SUM ( DISTINCT - 58 ) THEN - 18 WHEN - 68 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 97 * + 46
----
4462

query I rowsort
SELECT 82 * - 22
----
-1804

query I rowsort
SELECT DISTINCT 32 * + 51 AS col2
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT - COUNT( ALL - + 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT - COUNT ( ALL - + 98 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT + 13 DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 13 / - 14
----
0

query I rowsort
SELECT + 83 * 10
----
830

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT 90 AS col2, + COUNT( * ) - + 32 + COALESCE ( + + 98, + 4, + 87, + 30 )
----
90
67

skipif mysql # not compatible
query II rowsort label-1487
SELECT 90 AS col2, + COUNT ( * ) - + 32 + COALESCE ( + + 98, + 4, + 87, + 30 )
----
90
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1488
SELECT DISTINCT - 13 + ( 47 ) DIV NULLIF ( NULLIF ( - 36, + COUNT( * ) ), + 65 * - 7 ), ( - SUM( ALL - 31 ) ) AS col2
----
-14
31

skipif mysql # not compatible
query II rowsort label-1488
SELECT DISTINCT - 13 + ( 47 ) / NULLIF ( NULLIF ( - 36, + COUNT ( * ) ), + 65 * - 7 ), ( - SUM ( ALL - 31 ) ) AS col2
----
-14
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT 2 * + - CAST( NULL AS SIGNED ) - - COALESCE ( + + 19, 30 * COUNT( * ) + 84, - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT 2 * + - CAST ( NULL AS INTEGER ) - - COALESCE ( + + 19, 30 * COUNT ( * ) + 84, - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1491
SELECT - ( CAST( - 70 AS SIGNED ) ) DIV - + COALESCE ( 91, + - MIN( + + 77 ) * - 52 + - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT - ( CAST ( - 70 AS INTEGER ) ) / - + COALESCE ( 91, + - MIN ( + + 77 ) * - 52 + - 60 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1492
SELECT ALL 19 + + 82 - 3, 38 + ( + COUNT( * ) ) AS col2
----
98
39

skipif mysql # not compatible
query II rowsort label-1492
SELECT ALL 19 + + 82 - 3, 38 + ( + COUNT ( * ) ) AS col2
----
98
39

query I rowsort
SELECT ALL 23 + + 6 AS col1
----
29

query I rowsort
SELECT DISTINCT + 58 + 19 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT ALL + - 56 DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + - 56 / - 44
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1496
SELECT + 16 DIV 1 * - + 72 + + - 62 AS col1, + 89 AS col2
----
-1214
89

skipif mysql # not compatible
query II rowsort label-1496
SELECT + 16 / 1 * - + 72 + + - 62 AS col1, + 89 AS col2
----
-1214
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT DISTINCT + + ( + 17 ) + + COUNT( - 44 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT + + ( + 17 ) + + COUNT ( - 44 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL - + 43 + - COALESCE ( - ( + COUNT( * ) ), ( + 13 ) * + CASE - COUNT( * ) WHEN + 12 THEN + - 12 + - + COUNT( * ) WHEN + 93 / - 79 THEN 49 * + COUNT( DISTINCT + 26 ) END * - 38 + - MAX( + - 21 ) + 20 + 7, + 72 ) + - 25 + - 44
----
-111

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - + 43 + - COALESCE ( - ( + COUNT ( * ) ), ( + 13 ) * + CASE - COUNT ( * ) WHEN + 12 THEN + - 12 + - + COUNT ( * ) WHEN + 93 / - 79 THEN 49 * + COUNT ( DISTINCT + 26 ) END * - 38 + - MAX ( + - 21 ) + 20 + 7, + 72 ) + - 25 + - 44
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1499
SELECT + CAST( NULL AS SIGNED ) AS col1, ( MIN( DISTINCT 71 ) ) DIV COUNT( * )
----
NULL
71

skipif mysql # not compatible
query II rowsort label-1499
SELECT + CAST ( NULL AS INTEGER ) AS col1, ( MIN ( DISTINCT 71 ) ) / COUNT ( * )
----
NULL
71

query II rowsort
SELECT ALL - 43, + 99 + - 91 AS col0
----
-43
8

query I rowsort
SELECT ALL + 4 - 45 + - 90
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT DISTINCT - - 1 * + 7 * + COUNT( * ) * 86 AS col1
----
602

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT - - 1 * + 7 * + COUNT ( * ) * 86 AS col1
----
602

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

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

query I rowsort
SELECT 42 - 2 * + 45 AS col0
----
-48

query I rowsort
SELECT 77 * 1
----
77

query I rowsort
SELECT 51 col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1507
SELECT 51 + - + 28 + - 95 DIV - + SUM( - 92 ) + 53 * 47 + 86 + + - 68 * + - 82
----
8175

skipif mysql # not compatible
query I rowsort label-1507
SELECT 51 + - + 28 + - 95 / - + SUM ( - 92 ) + 53 * 47 + 86 + + - 68 * + - 82
----
8175

query I rowsort
SELECT 56 col1
----
56

query I rowsort
SELECT 26 col2
----
26

query I rowsort
SELECT ALL - 54 - + 40 + - ( - 44 ) AS col1
----
-50

query I rowsort
SELECT 67 * - + ( + - 90 ) AS col0
----
6030

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

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

query I rowsort
SELECT 77 - - 99 - + 67
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT ALL + 63 DIV 12
----
5

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + 63 / 12
----
5

query I rowsort
SELECT 86 - + NULLIF ( + 39, + 21 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT MAX( DISTINCT + + 85 ) * 96 AS col0
----
8160

skipif mysql # not compatible
query I rowsort label-1516
SELECT MAX ( DISTINCT + + 85 ) * 96 AS col0
----
8160

query I rowsort
SELECT 96 + + ( - 24 ) - - 25 * - 97
----
-2353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT COALESCE ( - 88, - 27 + + ( CAST( NULL AS SIGNED ) ) + + + 69 ) * 60 * 60
----
-316800

skipif mysql # not compatible
query I rowsort label-1518
SELECT COALESCE ( - 88, - 27 + + ( CAST ( NULL AS INTEGER ) ) + + + 69 ) * 60 * 60
----
-316800

query I rowsort
SELECT 86 + - - 10 + - - 33 - - 83 AS col0
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT 21 - - + ( + - 48 ) * + CASE - + 78 WHEN - ( + - 92 ) THEN - 99 END * + + 92 + + 35 / - 35 + + COUNT( * ) + CAST( - + 78 AS SIGNED ) + + 37 / - + CASE - - 26 WHEN + + AVG ( - 46 ) * - AVG ( + ( 8 ) ) + 93 THEN SUM( 92 ) ELSE NULL END * - AVG ( + ( NULLIF ( + ( 34 ), 35 * 22 ) ) * 39 + 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT 21 - - + ( + - 48 ) * + CASE - + 78 WHEN - ( + - 92 ) THEN - 99 END * + + 92 + + 35 / - 35 + + COUNT ( * ) + CAST ( - + 78 AS INTEGER ) + + 37 / - + CASE - - 26 WHEN + + AVG ( - 46 ) * - AVG ( + ( 8 ) ) + 93 THEN SUM ( 92 ) ELSE NULL END * - AVG ( + ( NULLIF ( + ( 34 ), 35 * 22 ) ) * 39 + 61 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT 27 * + + MIN( DISTINCT - 30 ) AS col1
----
-810

skipif mysql # not compatible
query I rowsort label-1521
SELECT 27 * + + MIN ( DISTINCT - 30 ) AS col1
----
-810

query I rowsort
SELECT DISTINCT 91 + + 75
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT 92 DIV 3 + 24 * - 48 AS col1
----
-1122

skipif mysql # not compatible
query I rowsort label-1523
SELECT 92 / 3 + 24 * - 48 AS col1
----
-1122

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

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

query I rowsort
SELECT + 37 * + 62 * 72 * + ( + 48 ) + COALESCE ( 90, 56 ) AS col2
----
7928154

query II rowsort
SELECT ALL + 63 * - 21 + + 79 + - - 96, 4 AS col1
----
-1148
4

query I rowsort
SELECT DISTINCT - - 12 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT CAST( NULL AS SIGNED ) * - - 3 + - - 4 / + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT CAST ( NULL AS INTEGER ) * - - 3 + - - 4 / + 53 AS col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT - 7 DIV + 90 + 48 + - 45 * + 25 col2
----
-1077

skipif mysql # not compatible
query I rowsort label-1531
SELECT - 7 / + 90 + 48 + - 45 * + 25 col2
----
-1077

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT 20 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT 20 / + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL + CASE CASE + MIN( + 21 ) WHEN - CASE 71 WHEN 88 THEN - 29 WHEN + - 16 THEN + 82 ELSE NULL END THEN NULL ELSE - - COUNT( * ) END WHEN + 38 THEN + 40 + + - ( - - 36 ) ELSE + 33 END
----
33

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + CASE CASE + MIN ( + 21 ) WHEN - CASE 71 WHEN 88 THEN - 29 WHEN + - 16 THEN + 82 ELSE NULL END THEN NULL ELSE - - COUNT ( * ) END WHEN + 38 THEN + 40 + + - ( - - 36 ) ELSE + 33 END
----
33

query I rowsort
SELECT + 40 * 85
----
3400

query I rowsort
SELECT ALL + - 80
----
-80

query I rowsort
SELECT ALL - 76 * - - 30 * - + 61 * 41 + - - 22 - - - 8 col0
----
5702294

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1538
SELECT ALL - 27 - + 46 AS col1, 5 DIV - ( - 72 ) + + 14 + - 61 + - + COUNT( * ) + 50
----
-73
2

skipif mysql # not compatible
query II rowsort label-1538
SELECT ALL - 27 - + 46 AS col1, 5 / - ( - 72 ) + + 14 + - 61 + - + COUNT ( * ) + 50
----
-73
2

query I rowsort
SELECT DISTINCT + 20
----
20

query I rowsort
SELECT - - 4 * 2 + 76 * - - 47 * 61
----
217900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT - 86 - CASE + + CAST( - 8 AS SIGNED ) WHEN 97 THEN + NULLIF ( 14, + + 10 * - 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT - 86 - CASE + + CAST ( - 8 AS INTEGER ) WHEN 97 THEN + NULLIF ( 14, + + 10 * - 2 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL MAX( ALL 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL MAX ( ALL 71 ) AS col1
----
71

query I rowsort
SELECT 4 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - COUNT( * ) + - 64 col2
----
-65

skipif mysql # not compatible
query I rowsort label-1546
SELECT - COUNT ( * ) + - 64 col2
----
-65

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

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

query I rowsort
SELECT - 15 * + 31 col2
----
-465

query I rowsort
SELECT - 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT ALL + COUNT( * ) + + 20 * 81 AS col0
----
1621

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + COUNT ( * ) + + 20 * 81 AS col0
----
1621

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT + 44 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-1552
SELECT + 44 + COUNT ( * )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1553
SELECT ALL - MAX( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST( NULL AS SIGNED ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1
----
NULL
-2765

skipif mysql # not compatible
query II rowsort label-1553
SELECT ALL - MAX ( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1
----
NULL
-2765

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT + 6 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + 6 / + 52 AS col2
----
0

query I rowsort
SELECT ALL + 33 + + + 38 + + 65 AS col2
----
136

query I rowsort
SELECT ALL ( 36 ) * 8 + + 12 AS col2
----
300

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

skipif mysql # not compatible
query I rowsort label-1557
SELECT - 49 + + CAST ( NULL AS INTEGER ) * - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * - 23 + - - 1 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * - 23 + - - 1 AS col0
----
-21

query I rowsort
SELECT ALL - 61 + + 59 * - 99 AS col0
----
-5902

query I rowsort
SELECT ALL + 22 col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT - MIN( DISTINCT 55 ) DIV + - 39
----
1

skipif mysql # not compatible
query I rowsort label-1561
SELECT - MIN ( DISTINCT 55 ) / + - 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + 93 * CASE 29 WHEN + + 90 / - 11 + 97 + - 58 THEN NULL WHEN + 96 * + - 51 THEN COUNT( + 90 ) * - + 92 + + CASE + 49 WHEN 78 * + 61 THEN 5 WHEN + 25 THEN NULL WHEN 28 THEN NULL END + 48 WHEN 25 THEN + ( + - COUNT( * ) ) + + + 45 + + 18 * 87 END * 21 - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 93 * CASE 29 WHEN + + 90 / - 11 + 97 + - 58 THEN NULL WHEN + 96 * + - 51 THEN COUNT ( + 90 ) * - + 92 + + CASE + 49 WHEN 78 * + 61 THEN 5 WHEN + 25 THEN NULL WHEN 28 THEN NULL END + 48 WHEN 25 THEN + ( + - COUNT ( * ) ) + + + 45 + + 18 * 87 END * 21 - + 20
----
NULL

query I rowsort
SELECT + + 99 col2
----
99

query I rowsort
SELECT + 54 + - 25 * - 25 AS col1
----
679

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1565
SELECT DISTINCT - COUNT( ALL + 29 ) DIV + 13 + - 81 + + 44 AS col0, + 87 * - + SUM( - ( - ( + 33 ) ) ) + - MIN( - 9 ) DIV + 83 AS col1
----
-37
-2871

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT - COUNT ( ALL + 29 ) / + 13 + - 81 + + 44 AS col0, + 87 * - + SUM ( - ( - ( + 33 ) ) ) + - MIN ( - 9 ) / + 83 AS col1
----
-37
-2871

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

query I rowsort
SELECT + 72 * - 25 col2
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-1568
SELECT ALL 1 DIV 14 + - - 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL 1 / 14 + - - 30 AS col0
----
30

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

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

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

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

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

query I rowsort
SELECT ALL + + 8 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1574
SELECT ALL + + 91 AS col0, - CASE + + CAST( NULL AS SIGNED ) WHEN - 89 THEN + CAST( + 26 AS SIGNED ) ELSE NULL END * 57 - - 6 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-1574
SELECT ALL + + 91 AS col0, - CASE + + CAST ( NULL AS INTEGER ) WHEN - 89 THEN + CAST ( + 26 AS INTEGER ) ELSE NULL END * 57 - - 6 AS col2
----
91
NULL

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

query II rowsort
SELECT ALL + 4, + 29 AS col1
----
4
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT ( - 58 ) * - + CAST( NULL AS SIGNED ) - - - 64 + - - COUNT( * ) / - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT ( - 58 ) * - + CAST ( NULL AS INTEGER ) - - - 64 + - - COUNT ( * ) / - 23 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1578
SELECT ALL CAST( + 14 AS SIGNED ) * + 26 + - - 13 AS col0
----
377

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL CAST ( + 14 AS INTEGER ) * + 26 + - - 13 AS col0
----
377

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + ( - MIN( DISTINCT 9 ) ) * 63 - + + 38
----
-605

skipif mysql # not compatible
query I rowsort label-1580
SELECT + ( - MIN ( DISTINCT 9 ) ) * 63 - + + 38
----
-605

query I rowsort
SELECT ALL 52 * + + 31 col0
----
1612

query II rowsort
SELECT ALL + 22, 20 AS col2
----
22
20

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1584
SELECT ALL + 91 DIV 42, 55 + 44 AS col0
----
2
99

skipif mysql # not compatible
query II rowsort label-1584
SELECT ALL + 91 / 42, 55 + 44 AS col0
----
2
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + 62 + - COUNT( * ) + + 37
----
98

skipif mysql # not compatible
query I rowsort label-1586
SELECT + 62 + - COUNT ( * ) + + 37
----
98

query I rowsort
SELECT - 68 * 13
----
-884

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT DISTINCT MIN( NULLIF ( + - 34, - 76 ) ) + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT MIN ( NULLIF ( + - 34, - 76 ) ) + - COUNT ( * )
----
-35

query I rowsort
SELECT ALL + 1 + 37 AS col1
----
38

query I rowsort
SELECT - 8 - + 79 * + 52
----
-4116

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 17, 81 * - 16 )
----
-17

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1596
SELECT ALL + CAST( NULL AS SIGNED ) + - AVG ( + + 77 ) * COUNT( * ), 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-1596
SELECT ALL + CAST ( NULL AS INTEGER ) + - AVG ( + + 77 ) * COUNT ( * ), 56 AS col0
----
NULL
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT CASE 4 WHEN + - COUNT( * ) THEN - - 84 WHEN + 24 * - 98 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT CASE 4 WHEN + - COUNT ( * ) THEN - - 84 WHEN + 24 * - 98 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT - CAST( + - 30 AS SIGNED ) + + 24
----
54

skipif mysql # not compatible
query I rowsort label-1599
SELECT - CAST ( + - 30 AS INTEGER ) + + 24
----
54

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

query II rowsort
SELECT - + 57 AS col1, 80 col0
----
-57
80

query I rowsort
SELECT 72 - + 68 + 91 * - 99
----
-9005

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT ALL + - 36 DIV - + 36 + 62
----
63

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + - 36 / - + 36 + 62
----
63

query I rowsort
SELECT DISTINCT - 41 - - 19 + - - 72 col2
----
50

query II rowsort
SELECT ALL - 49 AS col1, 33 * - 58 * 15 AS col1
----
-49
-28710

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT DISTINCT - 11 AS col2, + 96 + 99 + + + COUNT( * )
----
-11
196

skipif mysql # not compatible
query II rowsort label-1606
SELECT DISTINCT - 11 AS col2, + 96 + 99 + + + COUNT ( * )
----
-11
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT ALL - - NULLIF ( + 44, 74 + + CAST( NULL AS SIGNED ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - - NULLIF ( + 44, 74 + + CAST ( NULL AS INTEGER ) ) AS col1
----
44

query I rowsort
SELECT - 48 * + 73 + 91
----
-3413

query II rowsort
SELECT 14 AS col1, - 81 AS col1
----
14
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT - 59 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-1610
SELECT - 59 / + 77
----
0

query I rowsort
SELECT + 98 + + 55
----
153

query II rowsort
SELECT + + 5 AS col0, 58
----
5
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1613
SELECT 21 + 68 * + 47 + + CASE - 81 WHEN 68 THEN + 29 WHEN 63 + + 80 - 49 THEN - - 40 - - 78 WHEN 52 * + + 20 THEN COUNT( * ) + - COUNT( * ) ELSE - 12 DIV - + 63 * + 94 END AS col1
----
3217

skipif mysql # not compatible
query I rowsort label-1613
SELECT 21 + 68 * + 47 + + CASE - 81 WHEN 68 THEN + 29 WHEN 63 + + 80 - 49 THEN - - 40 - - 78 WHEN 52 * + + 20 THEN COUNT ( * ) + - COUNT ( * ) ELSE - 12 / - + 63 * + 94 END AS col1
----
3217

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1615
SELECT + 25 DIV + NULLIF ( - 6, - - 48 + 79 ) - 47, NULLIF ( + 72, NULLIF ( + 3, - + CASE WHEN NOT NULL < NULL THEN 77 END * + 11 + - + ( + 43 ) - 45 + - ( COUNT( - 66 ) ) ) + + - SUM( - ( 83 ) ) ) col0
----
-51
72

skipif mysql # not compatible
query II rowsort label-1615
SELECT + 25 / + NULLIF ( - 6, - - 48 + 79 ) - 47, NULLIF ( + 72, NULLIF ( + 3, - + CASE WHEN NOT NULL < NULL THEN 77 END * + 11 + - + ( + 43 ) - 45 + - ( COUNT ( - 66 ) ) ) + + - SUM ( - ( 83 ) ) ) col0
----
-51
72

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

query I rowsort
SELECT ALL - 12 AS col2
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1618
SELECT CAST( NULL AS DECIMAL ) * + 13 * + - 92 AS col2, - 28 - - + 10 AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-1618
SELECT CAST ( NULL AS REAL ) * + 13 * + - 92 AS col2, - 28 - - + 10 AS col1
----
NULL
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT ALL MAX( + 9 ) + - 11 * 17 * - + 64, ( 29 ) AS col0
----
11977
29

skipif mysql # not compatible
query II rowsort label-1619
SELECT ALL MAX ( + 9 ) + - 11 * 17 * - + 64, ( 29 ) AS col0
----
11977
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1620
SELECT + CAST( NULL AS SIGNED ) * 35 + + 11 + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT + CAST ( NULL AS INTEGER ) * 35 + + 11 + + 16
----
NULL

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

query I rowsort
SELECT - ( - - 61 ) * 40 - ( 32 ) * + - 76 + + 81 AS col2
----
73

query I rowsort
SELECT DISTINCT 68 * - + 89 * + + ( + 49 ) * + 32 + - 73
----
-9489609

query I rowsort
SELECT ALL NULLIF ( + 49, + - ( + ( 38 ) ) + - - 62 * 55 ) + + - 18
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT NULLIF ( + - 78, - - 17 ) + - + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1625
SELECT NULLIF ( + - 78, - - 17 ) + - + COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT 21 + 42
----
63

query I rowsort
SELECT DISTINCT 70 AS col2
----
70

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT 11 DIV - - SUM( - + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1629
SELECT 11 / - - SUM ( - + 53 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT 46 + + NULLIF ( + 18, - 83 ) DIV + 73 - - + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1630
SELECT 46 + + NULLIF ( + 18, - 83 ) / + 73 - - + COUNT ( * )
----
47

query I rowsort
SELECT - - 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT MAX( ALL 29 ) + + - 23 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1632
SELECT MAX ( ALL 29 ) + + - 23 AS col0
----
6

query I rowsort
SELECT ALL + COALESCE ( ( + 98 ), - 14 ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT + 40 + + + 4 + ( + 29 ) DIV + 98 + + - 67 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1634
SELECT + 40 + + + 4 + ( + 29 ) / + 98 + + - 67 AS col1
----
-23

query II rowsort
SELECT ALL - 81 * - + 60 * - + 32 AS col2, + 23 - 90
----
-155520
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL + - 34 * MAX( + ( + CAST( - 80 AS SIGNED ) ) )
----
2720

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + - 34 * MAX ( + ( + CAST ( - 80 AS INTEGER ) ) )
----
2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1637
SELECT CAST( - 30 AS SIGNED ) * 89 AS col1
----
-2670

skipif mysql # not compatible
query I rowsort label-1637
SELECT CAST ( - 30 AS INTEGER ) * 89 AS col1
----
-2670

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

query I rowsort
SELECT - + 20
----
-20

query I rowsort
SELECT ALL 72 AS col0
----
72

query I rowsort
SELECT 54 * + 27
----
1458

query I rowsort
SELECT - 29 * - 26 AS col0
----
754

query I rowsort
SELECT + COALESCE ( - 3, 68 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT + 96 * - 27 col0, - COUNT( * ) + - 70 col2
----
-2592
-71

skipif mysql # not compatible
query II rowsort label-1644
SELECT + 96 * - 27 col0, - COUNT ( * ) + - 70 col2
----
-2592
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT DISTINCT - - SUM( + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT - - SUM ( + 95 ) AS col1
----
95

query I rowsort
SELECT ALL + 4 + + 13 + + 2 + 87 * + - 10
----
-851

query I rowsort
SELECT - 18 AS col0
----
-18

query I rowsort
SELECT ALL - 12 AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT - 18 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - 18 / - 87
----
0

query II rowsort
SELECT ALL + 64 + - ( - 95 ) AS col0, 24 AS col2
----
159
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1652
SELECT COUNT( * ), 29 DIV 44 * 5 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-1652
SELECT COUNT ( * ), 29 / 44 * 5 AS col2
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1653
SELECT DISTINCT - CASE CAST( - 91 AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN + 31 - + COALESCE ( + CAST( - 3 AS SIGNED ), - + 66 ) THEN - + AVG ( DISTINCT + 72 ) ELSE - COUNT( * ) END * 58 * + + ( COUNT( * ) ) DIV - 61 * + - 33 * + 65 - - 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - CASE CAST ( - 91 AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + 31 - + COALESCE ( + CAST ( - 3 AS INTEGER ), - + 66 ) THEN - + AVG ( DISTINCT + 72 ) ELSE - COUNT ( * ) END * 58 * + + ( COUNT ( * ) ) / - 61 * + - 33 * + 65 - - 65 AS col0
----
65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1655
SELECT + 49 AS col2, 2 + - + 80 / - MAX( - + 23 ) * + + CAST( 40 AS SIGNED ) * + COALESCE ( 3, 35 / + 24, + NULLIF ( 24, - + COUNT( * ) ) ) + - 80 * CAST( NULL AS SIGNED ) * 60 + + 47 + 63 * 17 * - 1 / 21 + + 18
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1655
SELECT + 49 AS col2, 2 + - + 80 / - MAX ( - + 23 ) * + + CAST ( 40 AS INTEGER ) * + COALESCE ( 3, 35 / + 24, + NULLIF ( 24, - + COUNT ( * ) ) ) + - 80 * CAST ( NULL AS INTEGER ) * 60 + + 47 + 63 * 17 * - 1 / 21 + + 18
----
49
NULL

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

skipif mysql # not compatible
query I rowsort label-1656
SELECT COUNT ( * ) / - 60 AS col0
----
0

query I rowsort
SELECT 2 * - - 13 AS col2
----
26

query I rowsort
SELECT DISTINCT + 92 * 81 AS col2
----
7452

query I rowsort
SELECT ALL 27 + - - 44
----
71

query I rowsort
SELECT 11 * - 43 * - + 60 AS col0
----
28380

query I rowsort
SELECT DISTINCT - 53 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1662
SELECT ALL 15 col0, - 60 DIV + COUNT( * ) + + 38 + - NULLIF ( - 28, - COUNT( DISTINCT + 26 ) ) col0
----
15
6

skipif mysql # not compatible
query II rowsort label-1662
SELECT ALL 15 col0, - 60 / + COUNT ( * ) + + 38 + - NULLIF ( - 28, - COUNT ( DISTINCT + 26 ) ) col0
----
15
6

query I rowsort
SELECT 37 * + 9
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT 11 + - - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1664
SELECT 11 + - - COUNT ( * ) AS col2
----
12

query II rowsort
SELECT ALL 74 AS col2, - 20 + 84
----
74
64

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

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

query I rowsort
SELECT + 55 * 11
----
605

query I rowsort
SELECT + 67 * + 69
----
4623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT + + COUNT( * ) + 45 DIV - 52 * 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1669
SELECT + + COUNT ( * ) + 45 / - 52 * 47 AS col0
----
1

query I rowsort
SELECT ALL 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL COUNT( * ) * 27 * 36 * + - COUNT( * ) AS col2
----
-972

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL COUNT ( * ) * 27 * 36 * + - COUNT ( * ) AS col2
----
-972

query I rowsort
SELECT DISTINCT - 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 24 * + 14 AS col1
----
336

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT ALL COUNT( * ) AS col2, 34 + - 17 * + - MAX( - 32 )
----
1
-510

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL COUNT ( * ) AS col2, 34 + - 17 * + - MAX ( - 32 )
----
1
-510

query II rowsort
SELECT ALL - 79 AS col0, 67 + + - 0
----
-79
67

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

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

query I rowsort
SELECT - - 12
----
12

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

query I rowsort
SELECT + 40 col2
----
40

query I rowsort
SELECT - + 30 - + 88
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT - 50 DIV 2 col1
----
-25

skipif mysql # not compatible
query I rowsort label-1681
SELECT - 50 / 2 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL 19 + - 62 + - - COUNT( * ) * + 89 * 88 + SUM( + 60 )
----
7849

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL 19 + - 62 + - - COUNT ( * ) * + 89 * 88 + SUM ( + 60 )
----
7849

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

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

query I rowsort
SELECT ALL + 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT + 65 * - - 47 * + - 9 - - 32 * - 53 + - - COUNT( * )
----
-29190

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT + 65 * - - 47 * + - 9 - - 32 * - 53 + - - COUNT ( * )
----
-29190

query I rowsort
SELECT - + 78 * + 94
----
-7332

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

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

query I rowsort
SELECT ALL - 86 * 24 + 76
----
-1988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT + 99 / + CAST( NULL AS SIGNED ) + - - ( + COUNT( + 53 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT + 99 / + CAST ( NULL AS INTEGER ) + - - ( + COUNT ( + 53 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT COALESCE ( + 24, + - 15 + - MIN( - ( + 26 ) ), + + MAX( ALL + + 30 ) )
----
24

skipif mysql # not compatible
query I rowsort label-1690
SELECT COALESCE ( + 24, + - 15 + - MIN ( - ( + 26 ) ), + + MAX ( ALL + + 30 ) )
----
24

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

query I rowsort
SELECT - 69 * 82 AS col2
----
-5658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT - 28 + + - 7 DIV - ( + 31 ) * + 96 - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-1693
SELECT - 28 + + - 7 / - ( + 31 ) * + 96 - COUNT ( * )
----
-29

query I rowsort
SELECT ALL + 70 * - 34 + + + 8 AS col2
----
-2372

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - 57 + - COUNT( * ) * + 92 * 86 - COUNT( * )
----
-7970

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 57 + - COUNT ( * ) * + 92 * 86 - COUNT ( * )
----
-7970

onlyif mysql # aggregate syntax: 
query II rowsort label-1696
SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT( * ) col1
----
61
-57

skipif mysql # not compatible
query II rowsort label-1696
SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT ( * ) col1
----
61
-57

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

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

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

query I rowsort
SELECT - 86 + 4 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1700
SELECT ALL + ( - + 51 ) DIV - COALESCE ( COUNT( * ), 37 ) AS col0, 25
----
51
25

skipif mysql # not compatible
query II rowsort label-1700
SELECT ALL + ( - + 51 ) / - COALESCE ( COUNT ( * ), 37 ) AS col0, 25
----
51
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT + 97 DIV 64 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT + 97 / 64 / - 75 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT - 3 * - 0 * - CAST( - 39 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 3 * - 0 * - CAST ( - 39 AS INTEGER ) AS col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + COUNT( * ) * - 5 + + 47 + + 16
----
58

skipif mysql # not compatible
query I rowsort label-1705
SELECT + COUNT ( * ) * - 5 + + 47 + + 16
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT - 67 DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-1706
SELECT - 67 / - 48
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 43 + 10 AS col2
----
-33

query I rowsort
SELECT ALL + - 63 * - 18
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - + 75 + + 24 + COUNT( * ) + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-1711
SELECT - + 75 + + 24 + COUNT ( * ) + COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT - 12 * - + 0
----
0

query I rowsort
SELECT DISTINCT 34 AS col0
----
34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT + ( - 69 ) + + ( 4 ) * + 59 col1, + COUNT( * ) * - 88 * COUNT( * ) + - 31 AS col2
----
167
-119

skipif mysql # not compatible
query II rowsort label-1716
SELECT + ( - 69 ) + + ( 4 ) * + 59 col1, + COUNT ( * ) * - 88 * COUNT ( * ) + - 31 AS col2
----
167
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT - ( COALESCE ( + 22, COUNT( * ) ) ) * + 22
----
-484

skipif mysql # not compatible
query I rowsort label-1717
SELECT - ( COALESCE ( + 22, COUNT ( * ) ) ) * + 22
----
-484

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT + 25 + - + 54 * - MIN( DISTINCT + + ( - 53 ) )
----
-2837

skipif mysql # not compatible
query I rowsort label-1718
SELECT + 25 + - + 54 * - MIN ( DISTINCT + + ( - 53 ) )
----
-2837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1719
SELECT - + MAX( CAST( NULL AS SIGNED ) ) AS col1, + 72 AS col1
----
NULL
72

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

query I rowsort
SELECT DISTINCT + 38 + - 50 AS col0
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT ALL + 68 * + + 67 + - + 0 / - NULLIF ( + 39, + - 99 + + + 0 ) / + CAST( NULL AS SIGNED ) * - 87 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + 68 * + + 67 + - + 0 / - NULLIF ( + 39, + - 99 + + + 0 ) / + CAST ( NULL AS INTEGER ) * - 87 + + 21
----
NULL

query I rowsort
SELECT DISTINCT - 10 + + 35
----
25

query I rowsort
SELECT DISTINCT + + 8 + + 17
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1725
SELECT DISTINCT CAST( - ( - 33 ) AS SIGNED ) + + + 58, + 43 AS col1
----
91
43

skipif mysql # not compatible
query II rowsort label-1725
SELECT DISTINCT CAST ( - ( - 33 ) AS INTEGER ) + + + 58, + 43 AS col1
----
91
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL - CAST( NULL AS SIGNED ) + 9 * + - COUNT( * ) + - ( 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - CAST ( NULL AS INTEGER ) + 9 * + - COUNT ( * ) + - ( 55 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1727
SELECT DISTINCT MIN( DISTINCT + + ( ( 0 ) ) ) AS col0, 30 * 90 AS col1
----
0
2700

skipif mysql # not compatible
query II rowsort label-1727
SELECT DISTINCT MIN ( DISTINCT + + ( ( 0 ) ) ) AS col0, 30 * 90 AS col1
----
0
2700

query I rowsort
SELECT ALL - 73 AS col1
----
-73

query I rowsort
SELECT + 52 * + 29
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + 69 + - SUM( ALL - + 97 ) AS col2
----
166

skipif mysql # not compatible
query I rowsort label-1730
SELECT + 69 + - SUM ( ALL - + 97 ) AS col2
----
166

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1732
SELECT 37 * - COUNT( * ) * COUNT( DISTINCT + + 85 ) + + - 98 AS col2, 71 * CAST( NULL AS SIGNED )
----
-135
NULL

skipif mysql # not compatible
query II rowsort label-1732
SELECT 37 * - COUNT ( * ) * COUNT ( DISTINCT + + 85 ) + + - 98 AS col2, 71 * CAST ( NULL AS INTEGER )
----
-135
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL - 43 DIV 94 + - - 11 * - 5 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - 43 / 94 + - - 11 * - 5 AS col0
----
-55

query I rowsort
SELECT + 16 * + 71
----
1136

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

query I rowsort
SELECT 46 * - - 47 - 13
----
2149

query I rowsort
SELECT ALL - 74 * - + 48
----
3552

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT ( - 27 ) * + + 75 / + + CASE - 96 WHEN - - CAST( NULL AS SIGNED ) * MAX( - + 38 ) THEN - 25 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT ( - 27 ) * + + 75 / + + CASE - 96 WHEN - - CAST ( NULL AS INTEGER ) * MAX ( - + 38 ) THEN - 25 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT - SUM( ALL + + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT - SUM ( ALL + + 82 ) AS col2
----
-82

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

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

query I rowsort
SELECT DISTINCT - + 34 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT - - CASE + CAST( NULL AS SIGNED ) WHEN 60 THEN + - 99 + + - 58 ELSE 40 * + CAST( NULL AS SIGNED ) * + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT - - CASE + CAST ( NULL AS INTEGER ) WHEN 60 THEN + - 99 + + - 58 ELSE 40 * + CAST ( NULL AS INTEGER ) * + 44 END
----
NULL

query I rowsort
SELECT 59 + 0
----
59

query I rowsort
SELECT - - 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT - 26 + CASE - 90 WHEN + - 77 THEN NULL WHEN ( COUNT( * ) ) THEN NULL ELSE - 11 END
----
-37

skipif mysql # not compatible
query I rowsort label-1748
SELECT - 26 + CASE - 90 WHEN + - 77 THEN NULL WHEN ( COUNT ( * ) ) THEN NULL ELSE - 11 END
----
-37

query I rowsort
SELECT - - 49 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT + 35 DIV - 96 + 44 + - 22
----
22

skipif mysql # not compatible
query I rowsort label-1750
SELECT + 35 / - 96 + 44 + - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT 52 + - 98 - - - ( - 57 ) + 5 * + - 13 * - COALESCE ( - - COUNT( * ), + 44 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1751
SELECT 52 + - 98 - - - ( - 57 ) + 5 * + - 13 * - COALESCE ( - - COUNT ( * ), + 44 ) AS col1
----
76

query I rowsort
SELECT + 18 * - 38 AS col0
----
-684

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT - - MAX( - 29 ) + - 75
----
-104

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT - - MAX ( - 29 ) + - 75
----
-104

query I rowsort
SELECT ALL 25 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - 85 * COUNT( DISTINCT + + 4 ) * + COUNT( * ) * + - 30 * 51
----
130050

skipif mysql # not compatible
query I rowsort label-1758
SELECT - 85 * COUNT ( DISTINCT + + 4 ) * + COUNT ( * ) * + - 30 * 51
----
130050

query I rowsort
SELECT DISTINCT 81 col2
----
81

query I rowsort
SELECT + 3 + 96 * + ( 36 ) AS col0
----
3459

query I rowsort
SELECT - 42 + ( - 64 )
----
-106

query I rowsort
SELECT - - 98
----
98

query I rowsort
SELECT ALL - 41 AS col0
----
-41

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

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

query I rowsort
SELECT 90 + - 18
----
72

query II rowsort
SELECT - 80 AS col1, 74
----
-80
74

query II rowsort
SELECT 73 AS col0, 24 + + + 98
----
73
122

query I rowsort
SELECT DISTINCT ( + 96 ) * - - 69 AS col0
----
6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1769
SELECT DISTINCT + MIN( - CAST( 2 AS SIGNED ) ) * - COUNT( * ) - - 73 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + MIN ( - CAST ( 2 AS INTEGER ) ) * - COUNT ( * ) - - 73 AS col1
----
75

query I rowsort
SELECT DISTINCT - 33 - + 58
----
-91

query I rowsort
SELECT 70 * + 68 * - - 46 * - 49 * + 62 + - 91
----
-665200571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1772
SELECT 5 DIV - - MIN( DISTINCT + 54 ) * 87 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-1772
SELECT 5 / - - MIN ( DISTINCT + 54 ) * 87 + + 96
----
96

query I rowsort
SELECT ALL - 75 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT 6 DIV - - 36 * 45 + + + 74 + - - 46 DIV + 74 * + ( - - 88 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1774
SELECT 6 / - - 36 * 45 + + + 74 + - - 46 / + 74 * + ( - - 88 ) AS col1
----
74

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

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

query I rowsort
SELECT ALL - 91 col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1777
SELECT 30 * 5 AS col1, CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
150
1

skipif mysql # not compatible
query II rowsort label-1777
SELECT 30 * 5 AS col1, CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
150
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT DISTINCT 67 DIV 11 DIV - 3 col2
----
-2

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT 67 / 11 / - 3 col2
----
-2

query I rowsort
SELECT ALL - 91
----
-91

query I rowsort
SELECT DISTINCT - 94 col2
----
-94

query I rowsort
SELECT + - 28 col2
----
-28

query II rowsort
SELECT DISTINCT - 62 * + 49 AS col2, + 99
----
-3038
99

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

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

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

query I rowsort
SELECT ALL + 43 + + 98 AS col1
----
141

query I rowsort
SELECT DISTINCT + 10 + + 41 * + 99
----
4069

query I rowsort
SELECT ALL 70 AS col2
----
70

query I rowsort
SELECT - + 89 AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1789
SELECT DISTINCT CAST( NULL AS SIGNED ), 17 col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-1789
SELECT DISTINCT CAST ( NULL AS INTEGER ), 17 col1
----
NULL
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL - 86 * + + 74 / + CASE - 60 WHEN + SUM( ALL - 45 ) * - + 86 + - + ( + 84 ) + 2 * 97 THEN - 37 WHEN 83 * MIN( + 43 ) THEN NULL END + - 9 - - - 9 / - - COUNT( * ) + 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - 86 * + + 74 / + CASE - 60 WHEN + SUM ( ALL - 45 ) * - + 86 + - + ( + 84 ) + 2 * 97 THEN - 37 WHEN 83 * MIN ( + 43 ) THEN NULL END + - 9 - - - 9 / - - COUNT ( * ) + 62 col1
----
NULL

query I rowsort
SELECT 53 + + - 70
----
-17

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

query II rowsort
SELECT 99 AS col0, 80 - 76
----
99
4

query I rowsort
SELECT ALL - 36 * 18
----
-648

query I rowsort
SELECT 46 * - 32
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL 32 * + COALESCE ( - COUNT( * ), 5 ) * - ( COUNT( * ) ) + - 42 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL 32 * + COALESCE ( - COUNT ( * ), 5 ) * - ( COUNT ( * ) ) + - 42 AS col2
----
-10

query I rowsort
SELECT 99 col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1799
SELECT 11 + - 5, - ( 57 ) DIV + + ( + + MAX( + 79 ) ) * + + 32 + + 70 AS col0
----
6
70

skipif mysql # not compatible
query II rowsort label-1799
SELECT 11 + - 5, - ( 57 ) / + + ( + + MAX ( + 79 ) ) * + + 32 + + 70 AS col0
----
6
70

query I rowsort
SELECT DISTINCT + 1 * - 35
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1801
SELECT 21 + MAX( + 83 ) + - - CAST( + 53 AS SIGNED ) AS col0, COUNT( * ) * COUNT( * ) AS col1
----
157
1

skipif mysql # not compatible
query II rowsort label-1801
SELECT 21 + MAX ( + 83 ) + - - CAST ( + 53 AS INTEGER ) AS col0, COUNT ( * ) * COUNT ( * ) AS col1
----
157
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT DISTINCT SUM( + 67 ) AS col0, - 48 AS col1
----
67
-48

skipif mysql # not compatible
query II rowsort label-1803
SELECT DISTINCT SUM ( + 67 ) AS col0, - 48 AS col1
----
67
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT - 48 DIV + 11 + 92 DIV + 31 + + 79 * 6 * + - 65
----
-30812

skipif mysql # not compatible
query I rowsort label-1804
SELECT - 48 / + 11 + 92 / + 31 + + 79 * 6 * + - 65
----
-30812

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT + COALESCE ( 4, - AVG ( ALL + - 85 ) ) * 75 DIV - 33
----
-9

skipif mysql # not compatible
query I rowsort label-1805
SELECT + COALESCE ( 4, - AVG ( ALL + - 85 ) ) * 75 / - 33
----
-9

query I rowsort
SELECT - 50 * - 13 / + 46 * - CASE 36 WHEN + + 65 THEN - 24 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT ALL + CASE + 66 WHEN - CAST( NULL AS SIGNED ) THEN + 72 WHEN - 89 THEN 6 / + - 10 WHEN 29 THEN NULL WHEN 12 + - 9 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL + CASE + 66 WHEN - CAST ( NULL AS INTEGER ) THEN + 72 WHEN - 89 THEN 6 / + - 10 WHEN 29 THEN NULL WHEN 12 + - 9 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1808
SELECT COALESCE ( CAST( + + 32 AS SIGNED ), 49 * - 0 + - COUNT( * ), - 9 )
----
32

skipif mysql # not compatible
query I rowsort label-1808
SELECT COALESCE ( CAST ( + + 32 AS INTEGER ), 49 * - 0 + - COUNT ( * ), - 9 )
----
32

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

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

query I rowsort
SELECT NULLIF ( - + 73, + - 69 ) AS col0
----
-73

query I rowsort
SELECT ALL 22 * 37 + - 19 AS col1
----
795

query I rowsort
SELECT - 20 * - ( + + 16 ) AS col1
----
320

onlyif mysql # aggregate syntax: 
query II rowsort label-1813
SELECT + MIN( ALL + 44 ) AS col2, 48 + - - 46
----
44
94

skipif mysql # not compatible
query II rowsort label-1813
SELECT + MIN ( ALL + 44 ) AS col2, 48 + - - 46
----
44
94

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

query II rowsort
SELECT - 84 * + 33 AS col0, - 76
----
-2772
-76

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1817
SELECT - + 52 DIV - 43 AS col2, 7
----
1
7

skipif mysql # not compatible
query II rowsort label-1817
SELECT - + 52 / - 43 AS col2, 7
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + + 47 * + + MAX( 33 )
----
1551

skipif mysql # not compatible
query I rowsort label-1818
SELECT + + 47 * + + MAX ( 33 )
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL - 14 * + 83 + - + COUNT( * )
----
-1163

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL - 14 * + 83 + - + COUNT ( * )
----
-1163

query I rowsort
SELECT + - 20
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT DISTINCT + 28 * - - ( + - 47 ) + + + 64 DIV ( - - 78 ) * - 6 + + 0 + 41
----
-1275

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT + 28 * - - ( + - 47 ) + + + 64 / ( - - 78 ) * - 6 + + 0 + 41
----
-1275

query I rowsort
SELECT ALL + ( - ( + + 54 ) ) * + 80 + 54 col1
----
-4266

onlyif mysql # DIV for integer division: 
query II rowsort label-1823
SELECT + 44 DIV + 46 AS col0, - 36 + + - 51
----
0
-87

skipif mysql # not compatible
query II rowsort label-1823
SELECT + 44 / + 46 AS col0, - 36 + + - 51
----
0
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - COUNT( DISTINCT - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1825
SELECT - COUNT ( DISTINCT - 91 ) AS col0
----
-1

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

query I rowsort
SELECT ALL - 31 + + 92 * ( - 23 ) AS col1
----
-2147

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + - 26 + COUNT( * ) + - - 51 - + ( - - 79 )
----
-53

skipif mysql # not compatible
query I rowsort label-1828
SELECT + - 26 + COUNT ( * ) + - - 51 - + ( - - 79 )
----
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT + + CAST( NULL AS SIGNED ) - + 46 + + 63 - + - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT + + CAST ( NULL AS INTEGER ) - + 46 + + 63 - + - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT ALL 63 * 49 + ( - SUM( ALL + 87 ) ) AS col0, COUNT( + 60 ) * - + 69 + NULLIF ( - 17, 39 ) AS col1
----
3000
-86

skipif mysql # not compatible
query II rowsort label-1831
SELECT ALL 63 * 49 + ( - SUM ( ALL + 87 ) ) AS col0, COUNT ( + 60 ) * - + 69 + NULLIF ( - 17, 39 ) AS col1
----
3000
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT + - COUNT( ALL 1 ) + - - 31 * + - 23 * + 52
----
-37077

skipif mysql # not compatible
query I rowsort label-1832
SELECT + - COUNT ( ALL 1 ) + - - 31 * + - 23 * + 52
----
-37077

query I rowsort
SELECT ALL 21 * + 13 AS col2
----
273

query I rowsort
SELECT DISTINCT 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - 69 + - - ( + + 21 ) * + COALESCE ( + NULLIF ( COUNT( * ), + - 66 ), + + 52, COUNT( * ), + 6 )
----
-48

skipif mysql # not compatible
query I rowsort label-1835
SELECT - 69 + - - ( + + 21 ) * + COALESCE ( + NULLIF ( COUNT ( * ), + - 66 ), + + 52, COUNT ( * ), + 6 )
----
-48

query I rowsort
SELECT - 87 * + - 66
----
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL SUM( DISTINCT - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL SUM ( DISTINCT - 10 ) AS col1
----
-10

query II rowsort
SELECT 79 AS col1, + 39 * - 34 AS col2
----
79
-1326

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - 39 + 22 * - COUNT( * ) * + 50
----
-1139

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 39 + 22 * - COUNT ( * ) * + 50
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - COUNT( * ) * ( 4 ) * 55 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - COUNT ( * ) * ( 4 ) * 55 AS col2
----
-220

query I rowsort
SELECT - 57 * + 27
----
-1539

query I rowsort
SELECT - ( 97 ) + + 86 AS col0
----
-11

query I rowsort
SELECT ALL + 52 * 96 AS col1
----
4992

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT MAX( + 3 ) + - COUNT( * ) * + 9 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT MAX ( + 3 ) + - COUNT ( * ) * + 9 AS col0
----
-6

query I rowsort
SELECT ALL + 80 + 22
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT - 58 DIV + 64 * + 18 + + - 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - 58 / + 64 * + 18 + + - 95 AS col1
----
-95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1850
SELECT - CASE 2 WHEN + 22 THEN - + ( - COALESCE ( 98, + - 90 ) ) WHEN CASE + 25 WHEN COUNT( * ) * - + 61 / + - 66 THEN NULL ELSE + 99 END THEN - + 34 ELSE - COALESCE ( CAST( NULL AS SIGNED ), - 43 ) / + + CAST( - + NULLIF ( 37, - - 59 ) AS SIGNED ) - + CAST( NULL AS SIGNED ) + - 18 END - - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT - CASE 2 WHEN + 22 THEN - + ( - COALESCE ( 98, + - 90 ) ) WHEN CASE + 25 WHEN COUNT ( * ) * - + 61 / + - 66 THEN NULL ELSE + 99 END THEN - + 34 ELSE - COALESCE ( CAST ( NULL AS INTEGER ), - 43 ) / + + CAST ( - + NULLIF ( 37, - - 59 ) AS INTEGER ) - + CAST ( NULL AS INTEGER ) + - 18 END - - + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - - CAST( NULL AS SIGNED ) + 90 + + COUNT( * ) ) * - - 0 - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - - CAST ( NULL AS INTEGER ) + 90 + + COUNT ( * ) ) * - - 0 - - 64
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - COUNT( * ) + 96 + 16 * COUNT( * ) * - + 92 * + + 29 AS col1
----
-42593

skipif mysql # not compatible
query I rowsort label-1853
SELECT - COUNT ( * ) + 96 + 16 * COUNT ( * ) * - + 92 * + + 29 AS col1
----
-42593

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT + CASE - 76 WHEN + - COUNT( + + 4 ) * - - AVG ( - + 12 ) + 73 * COUNT( * ) + + 43 THEN 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT + CASE - 76 WHEN + - COUNT ( + + 4 ) * - - AVG ( - + 12 ) + 73 * COUNT ( * ) + + 43 THEN 66 END AS col1
----
NULL

query I rowsort
SELECT ALL - + 41 * 86
----
-3526

query II rowsort
SELECT ALL + 78 col1, - 39 col2
----
78
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT ALL + COUNT( * ) AS col1, 76 + + - 71
----
1
5

skipif mysql # not compatible
query II rowsort label-1857
SELECT ALL + COUNT ( * ) AS col1, 76 + + - 71
----
1
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1859
SELECT - COUNT( * ) * - COALESCE ( 88, - + CAST( NULL AS SIGNED ), + 42 * - MAX( 30 ) )
----
88

skipif mysql # not compatible
query I rowsort label-1859
SELECT - COUNT ( * ) * - COALESCE ( 88, - + CAST ( NULL AS INTEGER ), + 42 * - MAX ( 30 ) )
----
88

query I rowsort
SELECT - 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT - NULLIF ( 11, - - 62 ) * + + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1861
SELECT - NULLIF ( 11, - - 62 ) * + + COUNT ( * ) AS col2
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-1862
SELECT ALL ( - 19 ) DIV - + 10 AS col0, + 52 AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-1862
SELECT ALL ( - 19 ) / - + 10 AS col0, + 52 AS col2
----
1
52

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

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

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

query I rowsort
SELECT - - 75 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL + 1 * + + 97 * - CAST( + 6 AS SIGNED ) - + 67 - COUNT( * ) + - + 7 * + - 41 * 10 - + 72
----
2148

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + 1 * + + 97 * - CAST ( + 6 AS INTEGER ) - + 67 - COUNT ( * ) + - + 7 * + - 41 * 10 - + 72
----
2148

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT DISTINCT 32 DIV + 9
----
3

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT 32 / + 9
----
3

query I rowsort
SELECT DISTINCT 73 AS col0
----
73

query I rowsort
SELECT ALL + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT 5 - + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1870
SELECT 5 - + COUNT ( * ) AS col1
----
4

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT 11 * - - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT MAX( ALL + 22 ) * 70 AS col1
----
1540

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT MAX ( ALL + 22 ) * 70 AS col1
----
1540

query I rowsort
SELECT ALL 87 AS col0
----
87

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

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

query I rowsort
SELECT - 41 AS col0
----
-41

query I rowsort
SELECT DISTINCT 93 col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1877
SELECT ALL 39 + COUNT( * ) AS col0, 52 + - - 65 AS col2
----
40
117

skipif mysql # not compatible
query II rowsort label-1877
SELECT ALL 39 + COUNT ( * ) AS col0, 52 + - - 65 AS col2
----
40
117

query I rowsort
SELECT ALL 98 + + 23 AS col0
----
121

query II rowsort
SELECT 46 + + 40 + 16 + - 29 AS col1, ( + 9 )
----
73
9

query I rowsort
SELECT DISTINCT - 39 + 27 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT ALL NULLIF ( + - 31, - 84 ) + ( - - 70 ) - + 60 + NULLIF ( 44, + + COUNT( * ) ) * 39 * + 98 AS col1
----
168147

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL NULLIF ( + - 31, - 84 ) + ( - - 70 ) - + 60 + NULLIF ( 44, + + COUNT ( * ) ) * 39 * + 98 AS col1
----
168147

query I rowsort
SELECT - 9 col0
----
-9

query I rowsort
SELECT NULLIF ( + 51, 22 ) + + - 86 * 12
----
-981

query I rowsort
SELECT 81 + + ( + + 21 ) AS col0
----
102

query I rowsort
SELECT DISTINCT 73 + - 3 + ( - 22 ) + + 18 * + 2
----
84

query I rowsort
SELECT DISTINCT + 67 * + 14 AS col2
----
938

query II rowsort
SELECT DISTINCT - 4 * 35 AS col2, 60 * + + 97 AS col2
----
-140
5820

query I rowsort
SELECT DISTINCT - - 52
----
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL - - SUM( DISTINCT - 78 ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL - - SUM ( DISTINCT - 78 ) col1
----
-78

query I rowsort
SELECT + - 41
----
-41

query I rowsort
SELECT 72 * - 22 + - NULLIF ( 98, ( NULLIF ( - 23, 21 ) ) )
----
-1682

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

query I rowsort
SELECT - 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + 7 * - + 83 * - 40 AS col0
----
23240

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1897
SELECT ALL 82 * + + 60 AS col2, 56 DIV + ( 76 )
----
4920
0

skipif mysql # not compatible
query II rowsort label-1897
SELECT ALL 82 * + + 60 AS col2, 56 / + ( 76 )
----
4920
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT + 46 * + - MIN( - 23 ) + + - 73 AS col1
----
985

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + 46 * + - MIN ( - 23 ) + + - 73 AS col1
----
985

query I rowsort
SELECT ALL - - 25 AS col0
----
25

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

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

query I rowsort
SELECT - 9 + - + 71
----
-80

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

query I rowsort
SELECT 11 * + + 13 col2
----
143

query I rowsort
SELECT 14 + 20 + 57 * 16
----
946

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT 50 - 21 * + COUNT( * ) AS col1, 84 + 17 AS col1
----
29
101

skipif mysql # not compatible
query II rowsort label-1905
SELECT 50 - 21 * + COUNT ( * ) AS col1, 84 + 17 AS col1
----
29
101

query II rowsort
SELECT DISTINCT 83 AS col0, 89
----
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT COUNT( * ) + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1907
SELECT COUNT ( * ) + 18 AS col0
----
19

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

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

query I rowsort
SELECT DISTINCT 36 col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT ALL 39 + - COALESCE ( - 64, COUNT( * ) DIV COUNT( * ) ) DIV + 72 * + 52 + + ( + - 72 ) DIV - 29
----
41

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL 39 + - COALESCE ( - 64, COUNT ( * ) / COUNT ( * ) ) / + 72 * + 52 + + ( + - 72 ) / - 29
----
41

query I rowsort
SELECT ALL 98 + - 22 + - - 56
----
132

query I rowsort
SELECT 40 + + 21 + - + NULLIF ( - 72, + - 60 ) * - - 36
----
2653

query I rowsort
SELECT 61 col0
----
61

query II rowsort
SELECT ALL + 80 + + 54 + - 36 col0, 81 + - 2
----
98
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL + ( 91 ) + - 71 - - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL + ( 91 ) + - 71 - - COUNT ( * ) AS col1
----
21

query I rowsort
SELECT 69 AS col1
----
69

query I rowsort
SELECT DISTINCT 97 * - 36 * - 55
----
192060

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL 32 * + 39 * + + COALESCE ( + 47, COUNT( * ) - + - 65 )
----
58656

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL 32 * + 39 * + + COALESCE ( + 47, COUNT ( * ) - + - 65 )
----
58656

query I rowsort
SELECT DISTINCT 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT + ( - 92 ) * + COALESCE ( + 75, - - 87 * + 15 * 60 + - COUNT( * ) ) * + 91 + 60
----
-627840

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT + ( - 92 ) * + COALESCE ( + 75, - - 87 * + 15 * 60 + - COUNT ( * ) ) * + 91 + 60
----
-627840

query I rowsort
SELECT 71 - 83
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT 37 - COALESCE ( + 71, - COUNT( * ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT 37 - COALESCE ( + 71, - COUNT ( * ) ) AS col1
----
-34

query I rowsort
SELECT ALL - - 41
----
41

query II rowsort
SELECT ALL - 7 AS col0, 1 - + - 33 + - + 45
----
-7
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT + COALESCE ( 84, - - ( - + 59 ) + - SUM( - CAST( 95 AS SIGNED ) ) + CAST( + + ( 98 ) AS SIGNED ) * 84 * 28 - + ( - 98 ) ) * + + ( - - 52 ) + - 10 AS col0
----
4358

skipif mysql # not compatible
query I rowsort label-1926
SELECT + COALESCE ( 84, - - ( - + 59 ) + - SUM ( - CAST ( 95 AS INTEGER ) ) + CAST ( + + ( 98 ) AS INTEGER ) * 84 * 28 - + ( - 98 ) ) * + + ( - - 52 ) + - 10 AS col0
----
4358

query I rowsort
SELECT 66 * - 97 AS col0
----
-6402

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - 24 * 68 * - - 69 + + ( - COUNT( * ) ) AS col2
----
-112609

skipif mysql # not compatible
query I rowsort label-1928
SELECT - 24 * 68 * - - 69 + + ( - COUNT ( * ) ) AS col2
----
-112609

query I rowsort
SELECT + 33 - + 3 + + 1 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT DISTINCT - 2 DIV COUNT( * ) * - 83 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - 2 / COUNT ( * ) * - 83 AS col0
----
166

query I rowsort
SELECT ALL - - 7
----
7

query I rowsort
SELECT + 77 + 65
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT + 52 * + - 45 - SUM( ALL - + 77 ) + - MAX( + - 16 ) * - CAST( 60 AS SIGNED ) * - 20 + + COUNT( * ) * 43 * - - 53
----
19216

skipif mysql # not compatible
query I rowsort label-1933
SELECT + 52 * + - 45 - SUM ( ALL - + 77 ) + - MAX ( + - 16 ) * - CAST ( 60 AS INTEGER ) * - 20 + + COUNT ( * ) * 43 * - - 53
----
19216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1934
SELECT - 51 DIV + + MIN( DISTINCT - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT - 51 / + + MIN ( DISTINCT - 70 )
----
0

query I rowsort
SELECT ALL + 69 * + - 60 - 89 + - 79 AS col2
----
-4308

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT + NULLIF ( 52, - COUNT( * ) * + - 2 * + 57 * + 53 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1936
SELECT + NULLIF ( 52, - COUNT ( * ) * + - 2 * + 57 * + 53 ) AS col0
----
52

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

query I rowsort
SELECT ALL - - 83 AS col1
----
83

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

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

query I rowsort
SELECT ALL - - 66 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1942
SELECT - NULLIF ( CASE 3 WHEN + 65 THEN 77 WHEN + MAX( - 54 ) THEN NULL ELSE NULL END, - 38 ) + - 13 * CAST( NULL AS SIGNED ) AS col0, + 29 * 44
----
NULL
1276

skipif mysql # not compatible
query II rowsort label-1942
SELECT - NULLIF ( CASE 3 WHEN + 65 THEN 77 WHEN + MAX ( - 54 ) THEN NULL ELSE NULL END, - 38 ) + - 13 * CAST ( NULL AS INTEGER ) AS col0, + 29 * 44
----
NULL
1276

onlyif mysql # aggregate syntax: 
query II rowsort label-1943
SELECT ALL 10 * 3 + + COUNT( * ), - 19 AS col2
----
31
-19

skipif mysql # not compatible
query II rowsort label-1943
SELECT ALL 10 * 3 + + COUNT ( * ), - 19 AS col2
----
31
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1944
SELECT CAST( - MIN( DISTINCT + + 70 ) AS SIGNED ) AS col1, 69 * 82
----
-70
5658

skipif mysql # not compatible
query II rowsort label-1944
SELECT CAST ( - MIN ( DISTINCT + + 70 ) AS INTEGER ) AS col1, 69 * 82
----
-70
5658

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL + AVG ( ALL + 52 ) + - SUM( ALL 87 ) / - 67 * + 14 * + + CASE 47 WHEN - 46 + - 58 / 39 * - - 57 THEN - 10 * 32 END / + - 21 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + AVG ( ALL + 52 ) + - SUM ( ALL 87 ) / - 67 * + 14 * + + CASE 47 WHEN - 46 + - 58 / 39 * - - 57 THEN - 10 * 32 END / + - 21 * + 87
----
NULL

query I rowsort
SELECT DISTINCT + ( 33 ) + + - 72 + + 81 col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1948
SELECT ALL - 56 + + - 32 / + MIN( ALL - CAST( NULL AS DECIMAL ) ) AS col2, - 80
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-1948
SELECT ALL - 56 + + - 32 / + MIN ( ALL - CAST ( NULL AS REAL ) ) AS col2, - 80
----
NULL
-80

query I rowsort
SELECT ALL + 93 + 80 * 0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT NULLIF ( - 67, - MAX( DISTINCT - - 64 ) / - 86 / + ( + - COUNT( * ) ) ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT NULLIF ( - 67, - MAX ( DISTINCT - - 64 ) / - 86 / + ( + - COUNT ( * ) ) ) col2
----
-67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1952
SELECT DISTINCT - 48 + - - NULLIF ( - - 76, 78 + + AVG ( DISTINCT + - 81 ) - + 24 * - - MIN( ALL - + 90 ) * + CASE 29 WHEN - 46 * + 96 + + COUNT( - - 59 ) + + 1 THEN CAST( - 59 AS SIGNED ) END ) - + + 46 - 96
----
-114

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - 48 + - - NULLIF ( - - 76, 78 + + AVG ( DISTINCT + - 81 ) - + 24 * - - MIN ( ALL - + 90 ) * + CASE 29 WHEN - 46 * + 96 + + COUNT ( - - 59 ) + + 1 THEN CAST ( - 59 AS INTEGER ) END ) - + + 46 - 96
----
-114

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1955
SELECT - 21 DIV - CAST( + ( - 91 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT - 21 / - CAST ( + ( - 91 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT + 26 * + 20 AS col0
----
520

query I rowsort
SELECT - 7 AS col2
----
-7

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

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

query I rowsort
SELECT ALL + 94 - + 14 * - 84 AS col0
----
1270

query II rowsort
SELECT 33 AS col1, - ( + ( + + 66 ) )
----
33
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL 85 - - + SUM( ALL + 5 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 85 - - + SUM ( ALL + 5 ) AS col1
----
90

query I rowsort
SELECT ALL 2 * 36 AS col1
----
72

query I rowsort
SELECT - 8 + - - 70 * + 41 AS col0
----
2862

query II rowsort
SELECT ALL 73 AS col1, 95
----
73
95

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT - 39 DIV - - 89
----
0

skipif mysql # not compatible
query I rowsort label-1967
SELECT - 39 / - - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + - 53 * - 2 * + 63 * + CASE 33 WHEN + 52 THEN + - 84 * - COALESCE ( - 57, 69 / - COUNT( * ) ) * - AVG ( 87 ) ELSE NULL END * - 60 * - COUNT( * ) * + ( - + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT + - 53 * - 2 * + 63 * + CASE 33 WHEN + 52 THEN + - 84 * - COALESCE ( - 57, 69 / - COUNT ( * ) ) * - AVG ( 87 ) ELSE NULL END * - 60 * - COUNT ( * ) * + ( - + 53 )
----
NULL

query I rowsort
SELECT + ( - CASE + - 88 WHEN + ( ( 24 ) ) THEN - 79 END )
----
NULL

query I rowsort
SELECT ALL - ( - + 22 ) * - 49 * 39 AS col1
----
-42042

query II rowsort
SELECT + 39 AS col1, + 72 AS col2
----
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - COUNT( * ) * + COUNT( * ) - + 52 + - CASE + 48 WHEN 48 * - - 2 THEN 43 WHEN - 0 THEN 72 + - + ( + 65 ) + 75 WHEN - + 67 THEN NULL ELSE - + 76 * - 42 END + + COALESCE ( 68, 95, - + 27 ) AS col1
----
-3177

skipif mysql # not compatible
query I rowsort label-1972
SELECT - COUNT ( * ) * + COUNT ( * ) - + 52 + - CASE + 48 WHEN 48 * - - 2 THEN 43 WHEN - 0 THEN 72 + - + ( + 65 ) + 75 WHEN - + 67 THEN NULL ELSE - + 76 * - 42 END + + COALESCE ( 68, 95, - + 27 ) AS col1
----
-3177

onlyif mysql # aggregate syntax: 
query II rowsort label-1973
SELECT ALL + - COUNT( * ) AS col2, 21 - + MIN( 45 )
----
-1
-24

skipif mysql # not compatible
query II rowsort label-1973
SELECT ALL + - COUNT ( * ) AS col2, 21 - + MIN ( 45 )
----
-1
-24

query II rowsort
SELECT DISTINCT + 32 AS col1, 19 * - 22 * - 7 + - + 68
----
32
2858

query I rowsort
SELECT ALL + 12 * 37
----
444

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

query I rowsort
SELECT DISTINCT ( 63 ) * 39 + + 64 + - 64 AS col2
----
2457

query I rowsort
SELECT ALL + + 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + 24 * - 59 - 91 - - CASE + + SUM( - 14 ) WHEN + 38 + - COUNT( * ) * - - 84 THEN COUNT( * ) - 37 + - 2 * 79 * 14 WHEN - - 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 24 * - 59 - 91 - - CASE + + SUM ( - 14 ) WHEN + 38 + - COUNT ( * ) * - - 84 THEN COUNT ( * ) - 37 + - 2 * 79 * 14 WHEN - - 31 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1980
SELECT ALL + - 68 * + - ( - 74 ) + + COUNT( * ) DIV 44 AS col1
----
-5032

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + - 68 * + - ( - 74 ) + + COUNT ( * ) / 44 AS col1
----
-5032

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

query I rowsort
SELECT + + 4
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL - ( - - 6 ) * - + 80 * + - CASE - 62 WHEN 60 * - + 55 THEN + - COUNT( * ) + + 11 WHEN COUNT( * ) THEN NULL WHEN + 74 + 33 THEN + 47 * - - 43 * - + NULLIF ( + - 77, - 40 + + - MAX( + + 74 ) ) + 15 * - 67 * + 3 / - 17 * AVG ( - + 48 ) ELSE NULL END + 62 - - + 95 * - - 32 * + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL - ( - - 6 ) * - + 80 * + - CASE - 62 WHEN 60 * - + 55 THEN + - COUNT ( * ) + + 11 WHEN COUNT ( * ) THEN NULL WHEN + 74 + 33 THEN + 47 * - - 43 * - + NULLIF ( + - 77, - 40 + + - MAX ( + + 74 ) ) + 15 * - 67 * + 3 / - 17 * AVG ( - + 48 ) ELSE NULL END + 62 - - + 95 * - - 32 * + - 60 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 73 * - 31 + - 8 + 94
----
-2177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1987
SELECT ALL - 37 * + 66 + - COUNT( * ) + - + CAST( + - 3 AS SIGNED ) + + + 32 DIV - - COUNT( * ) * - COUNT( * ) col2
----
-2472

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - 37 * + 66 + - COUNT ( * ) + - + CAST ( + - 3 AS INTEGER ) + + + 32 / - - COUNT ( * ) * - COUNT ( * ) col2
----
-2472

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT + 4 - - 33, NULLIF ( 61, + COUNT( * ) * - 16 - - COUNT( * ) ) AS col2
----
37
61

skipif mysql # not compatible
query II rowsort label-1988
SELECT + 4 - - 33, NULLIF ( 61, + COUNT ( * ) * - 16 - - COUNT ( * ) ) AS col2
----
37
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL CAST( NULL AS SIGNED ) * + + ( 36 ) + COALESCE ( + 31, - 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL CAST ( NULL AS INTEGER ) * + + ( 36 ) + COALESCE ( + 31, - 90 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT + SUM( - 97 ) - 19 + - 39 - - 62 col1
----
-93

skipif mysql # not compatible
query I rowsort label-1990
SELECT + SUM ( - 97 ) - 19 + - 39 - - 62 col1
----
-93

query I rowsort
SELECT COALESCE ( + 6, + 37 * - 61 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL + COUNT( * ) * - - 6 + + 39
----
45

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + COUNT ( * ) * - - 6 + + 39
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT 25 * - 19 * - 76 + 22 DIV + - 81 AS col0
----
36100

skipif mysql # not compatible
query I rowsort label-1993
SELECT 25 * - 19 * - 76 + 22 / + - 81 AS col0
----
36100

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - 74 * + + MIN( DISTINCT + 55 ) * - + COUNT( * )
----
4070

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 74 * + + MIN ( DISTINCT + 55 ) * - + COUNT ( * )
----
4070

query I rowsort
SELECT ALL + 1 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT + COUNT( * ) + + COUNT( * ) - 44 * - ( + - ( - 41 ) ) col2
----
1806

skipif mysql # not compatible
query I rowsort label-1996
SELECT + COUNT ( * ) + + COUNT ( * ) - 44 * - ( + - ( - 41 ) ) col2
----
1806

query I rowsort
SELECT - 95 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT + 21 + 68 DIV - - 77
----
21

skipif mysql # not compatible
query I rowsort label-1998
SELECT + 21 + 68 / - - 77
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1999
SELECT - COUNT( * ) - - COUNT( * ) + - COUNT( * ) + + - ( - + 80 ) * - CASE 6 WHEN 33 + + + ( COUNT( * ) ) THEN - 56 WHEN - 79 + - + CAST( + + COUNT( * ) AS DECIMAL ) * CAST( NULL AS SIGNED ) / COUNT( * ) THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) + + - ( - + 80 ) * - CASE 6 WHEN 33 + + + ( COUNT ( * ) ) THEN - 56 WHEN - 79 + - + CAST ( + + COUNT ( * ) AS REAL ) * CAST ( NULL AS INTEGER ) / COUNT ( * ) THEN + 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2000
SELECT MIN( ALL + 81 ), CAST( NULL AS SIGNED ) AS col2
----
81
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ( COUNT( * ) ) * 15 * ( 70 ) - 81 * + - COUNT( * ) + 98 + + 86 AS col1
----
1315

skipif mysql # not compatible
query I rowsort label-2001
SELECT ( COUNT ( * ) ) * 15 * ( 70 ) - 81 * + - COUNT ( * ) + 98 + + 86 AS col1
----
1315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT - 15 * + 98 * COUNT( * ) * - - CAST( - 78 AS SIGNED )
----
114660

skipif mysql # not compatible
query I rowsort label-2002
SELECT - 15 * + 98 * COUNT ( * ) * - - CAST ( - 78 AS INTEGER )
----
114660

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - CASE 61 WHEN 13 - + - MIN( ALL + 10 ) / + 3 THEN NULL ELSE - - 6 END + + 83 + - 69 + + 63 + + 13 + - 81 + - 51 * 94 + 4 + + + 63 AS col2
----
-4724

skipif mysql # not compatible
query I rowsort label-2004
SELECT - CASE 61 WHEN 13 - + - MIN ( ALL + 10 ) / + 3 THEN NULL ELSE - - 6 END + + 83 + - 69 + + 63 + + 13 + - 81 + - 51 * 94 + 4 + + + 63 AS col2
----
-4724

query I rowsort
SELECT - 67 + + - 18 + + 45 * 15 * - 90 - 50 AS col1
----
-60885

query I rowsort
SELECT ALL - 63 * - 35 * 32
----
70560

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT - 84 * + COUNT( * ) * + 99 AS col2, 29 AS col1
----
-8316
29

skipif mysql # not compatible
query II rowsort label-2007
SELECT - 84 * + COUNT ( * ) * + 99 AS col2, 29 AS col1
----
-8316
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2008
SELECT ALL ( + - COALESCE ( - 77, + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) DIV - 85, + - 32 + MAX( + 46 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL ( + - COALESCE ( - 77, + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 85, + - 32 + MAX ( + 46 ) ) )
----
77

query II rowsort
SELECT ALL ( - 58 ) col1, 89
----
-58
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - CASE + 25 WHEN + 41 THEN NULL ELSE COALESCE ( - 14, + + 24 + + 6 * + - 99 * - + 84, - + COUNT( * ) * + 11 ) END + + COUNT( ALL - COALESCE ( - 99, - 47 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2010
SELECT - CASE + 25 WHEN + 41 THEN NULL ELSE COALESCE ( - 14, + + 24 + + 6 * + - 99 * - + 84, - + COUNT ( * ) * + 11 ) END + + COUNT ( ALL - COALESCE ( - 99, - 47 ) ) AS col2
----
15

query I rowsort
SELECT ALL - - 90 * - 23
----
-2070

query I rowsort
SELECT - + 24
----
-24

query I rowsort
SELECT ALL - 29
----
-29

query I rowsort
SELECT ALL - 61 + + 90
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT 96 DIV 9 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2015
SELECT 96 / 9 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + - ( - 38 ) * - 11 + MIN( ALL + 91 ) AS col2
----
-327

skipif mysql # not compatible
query I rowsort label-2016
SELECT + - ( - 38 ) * - 11 + MIN ( ALL + 91 ) AS col2
----
-327

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

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

query I rowsort
SELECT ALL - + 10 + - 52 * 74
----
-3858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2019
SELECT - ( - - 14 ) DIV - 68 + + 16 * 79 DIV - + 11 + 19 * + NULLIF ( - 97, + 65 ) + - - 53 * + 97 + 48, 45 - + 33 + - CAST( NULL AS SIGNED ) * + - 64 * + COUNT( * ) * 95 * NULLIF ( - 65, + ( + + 45 ) * 72 ) DIV - - 67 DIV + AVG ( DISTINCT 40 ) + + 46 AS col0
----
3232
NULL

skipif mysql # not compatible
query II rowsort label-2019
SELECT - ( - - 14 ) / - 68 + + 16 * 79 / - + 11 + 19 * + NULLIF ( - 97, + 65 ) + - - 53 * + 97 + 48, 45 - + 33 + - CAST ( NULL AS INTEGER ) * + - 64 * + COUNT ( * ) * 95 * NULLIF ( - 65, + ( + + 45 ) * 72 ) / - - 67 / + AVG ( DISTINCT 40 ) + + 46 AS col0
----
3232
NULL

query I rowsort
SELECT + 93 * + 19 * + - 80 - + 81
----
-141441

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL + 26 * 44 + - ( COUNT( * ) )
----
1143

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + 26 * 44 + - ( COUNT ( * ) )
----
1143

query I rowsort
SELECT 75 + 71 AS col2
----
146

query I rowsort
SELECT 18 AS col1
----
18

query I rowsort
SELECT ALL 28 + + 82
----
110

query I rowsort
SELECT + 97 + 43 AS col0
----
140

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

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

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

query I rowsort
SELECT DISTINCT - 88
----
-88

query II rowsort
SELECT 42 AS col2, 83 AS col2
----
42
83

query I rowsort
SELECT 77 AS col1
----
77

query II rowsort
SELECT ALL - 4, 94 AS col2
----
-4
94

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

skipif mysql # not compatible
query I rowsort label-2033
SELECT 39 / - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2034
SELECT DISTINCT 74 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT 74 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT ALL - 20, COUNT( * ) col1
----
-20
1

skipif mysql # not compatible
query II rowsort label-2035
SELECT ALL - 20, COUNT ( * ) col1
----
-20
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL 9 - - - 76 + 62 + + + COUNT( - ( 76 ) ) * + - 17 + + SUM( ALL + 88 ) + - 4 * + 85 * + 25
----
-8434

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL 9 - - - 76 + 62 + + + COUNT ( - ( 76 ) ) * + - 17 + + SUM ( ALL + 88 ) + - 4 * + 85 * + 25
----
-8434

query I rowsort
SELECT ALL 26 * 81 AS col0
----
2106

query I rowsort
SELECT DISTINCT 38 * 59 AS col1
----
2242

query I rowsort
SELECT 81 + + 71 AS col0
----
152

query I rowsort
SELECT DISTINCT 7
----
7

query I rowsort
SELECT DISTINCT 8 AS col0
----
8

query I rowsort
SELECT DISTINCT 32 * - + 91 col0
----
-2912

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2046
SELECT CASE + 52 WHEN - COUNT( * ) + - CAST( 16 AS SIGNED ) THEN + CAST( - 39 AS DECIMAL ) * + - ( - CAST( NULL AS DECIMAL ) ) + + 7 * - COALESCE ( + - 97, 9 * + COALESCE ( + 13, 35, COUNT( * ) + - 90 + - 29 * 24 ), - 31 ) END - - NULLIF ( - ( + - 3 ), + 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT CASE + 52 WHEN - COUNT ( * ) + - CAST ( 16 AS INTEGER ) THEN + CAST ( - 39 AS REAL ) * + - ( - CAST ( NULL AS REAL ) ) + + 7 * - COALESCE ( + - 97, 9 * + COALESCE ( + 13, 35, COUNT ( * ) + - 90 + - 29 * 24 ), - 31 ) END - - NULLIF ( - ( + - 3 ), + 92 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT ( + 92 ) DIV 64 * - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2047
SELECT ( + 92 ) / 64 * - 79 AS col0
----
-79

query I rowsort
SELECT 15 + - 53 - - 13 + + + 39
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT DISTINCT COUNT( ALL + 5 ) DIV - 72 * - 46 * + + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT COUNT ( ALL + 5 ) / - 72 * - 46 * + + 28 AS col0
----
0

query I rowsort
SELECT ALL 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - ( + 48 ) * 56 * + SUM( ALL - + 77 ) + ( 57 ) + - 67 AS col0
----
206966

skipif mysql # not compatible
query I rowsort label-2051
SELECT - ( + 48 ) * 56 * + SUM ( ALL - + 77 ) + ( 57 ) + - 67 AS col0
----
206966

query I rowsort
SELECT ALL + 45 + - 55 AS col2
----
-10

query I rowsort
SELECT ALL + 98 col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2054
SELECT ALL + 65 + - COALESCE ( - 95, + 79, + ( 90 ) ) AS col0, - SUM( - + 72 ) DIV - MIN( ALL 34 ) + + 45 * + COUNT( * ) - 57
----
160
-14

skipif mysql # not compatible
query II rowsort label-2054
SELECT ALL + 65 + - COALESCE ( - 95, + 79, + ( 90 ) ) AS col0, - SUM ( - + 72 ) / - MIN ( ALL 34 ) + + 45 * + COUNT ( * ) - 57
----
160
-14

query I rowsort
SELECT + ( - + 55 ) - - + NULLIF ( 19, - 15 )
----
-36

query I rowsort
SELECT ALL - + 62 + - 38
----
-100

query I rowsort
SELECT + 79 + - - 87 - 55 * + 27 * - - 11 AS col2
----
-16169

query I rowsort
SELECT DISTINCT - 74 + 16 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2059
SELECT DISTINCT CASE CAST( - 63 AS SIGNED ) WHEN + 69 * - 20 + - - CAST( NULL AS SIGNED ) THEN - + 95 / + 58 + + MIN( DISTINCT + 78 ) * - 26 ELSE NULL END * + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT CASE CAST ( - 63 AS INTEGER ) WHEN + 69 * - 20 + - - CAST ( NULL AS INTEGER ) THEN - + 95 / + 58 + + MIN ( DISTINCT + 78 ) * - 26 ELSE NULL END * + - 76
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - COUNT( * ) * ( + + 95 ) * + 69 + + 48 + + 11
----
-6496

skipif mysql # not compatible
query I rowsort label-2061
SELECT - COUNT ( * ) * ( + + 95 ) * + 69 + + 48 + + 11
----
-6496

query I rowsort
SELECT 41 + - 65 - + 98
----
-122

query II rowsort
SELECT 14 AS col1, - 7
----
14
-7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT + CAST( NULL AS SIGNED ) + 98 / 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT + CAST ( NULL AS INTEGER ) + 98 / 20 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - - 3 AS col0
----
3

query I rowsort
SELECT COALESCE ( 35, - 59, 5 ) * + - 76
----
-2660

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2070
SELECT ALL - + 26 AS col2, 23 DIV + 51
----
-26
0

skipif mysql # not compatible
query II rowsort label-2070
SELECT ALL - + 26 AS col2, 23 / + 51
----
-26
0

query II rowsort
SELECT 89, - 98 + + + 77 + - 82 AS col0
----
89
-103

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

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

query I rowsort
SELECT ALL + + 78 - 62
----
16

query I rowsort
SELECT ALL 48 * + - 19 * 50
----
-45600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2075
SELECT 62 DIV - NULLIF ( + 35, + 76 ) - 49 AS col0, - 32 + + + MAX( DISTINCT - 44 ) AS col2
----
-50
-76

skipif mysql # not compatible
query II rowsort label-2075
SELECT 62 / - NULLIF ( + 35, + 76 ) - 49 AS col0, - 32 + + + MAX ( DISTINCT - 44 ) AS col2
----
-50
-76

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

query I rowsort
SELECT ALL + 34 * ( + CASE 64 WHEN 27 THEN + 71 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT 35 * + 95 * + - CAST( NULL AS SIGNED ) * - + 62 + - 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT 35 * + 95 * + - CAST ( NULL AS INTEGER ) * - + 62 + - 31 col2
----
NULL

query I rowsort
SELECT ALL - 62 - + - 53 * + - 43
----
-2341

query I rowsort
SELECT 55 * - 1 * + 94 * + - 9 col2
----
46530

query I rowsort
SELECT + 90 col1
----
90

query I rowsort
SELECT DISTINCT 68 * + 54 * + 31 * - 98
----
-11155536

query I rowsort
SELECT DISTINCT - 36
----
-36

query I rowsort
SELECT ALL - 39 AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT 74 - - + 59 DIV + 51
----
75

skipif mysql # not compatible
query I rowsort label-2085
SELECT 74 - - + 59 / + 51
----
75

query II rowsort
SELECT ALL - 63 * + 1 col0, 51
----
-63
51

query I rowsort
SELECT ALL - 48 col0
----
-48

query I rowsort
SELECT 84 - - 57
----
141

query I rowsort
SELECT ALL - 19 AS col1
----
-19

query I rowsort
SELECT DISTINCT - NULLIF ( - + 46, - 98 * 21 * + + 22 )
----
46

query I rowsort
SELECT DISTINCT - 26 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT COUNT( * ) * + 32 * + COALESCE ( - 95, - - 29, + COUNT( * ) * + 79 * 62 + 73 - - 53 * - + 24 * - 42 + + COUNT( - 14 ) * + 39 * - MAX( DISTINCT - - 68 ) ) AS col1
----
-3040

skipif mysql # not compatible
query I rowsort label-2092
SELECT COUNT ( * ) * + 32 * + COALESCE ( - 95, - - 29, + COUNT ( * ) * + 79 * 62 + 73 - - 53 * - + 24 * - 42 + + COUNT ( - 14 ) * + 39 * - MAX ( DISTINCT - - 68 ) ) AS col1
----
-3040

query I rowsort
SELECT ALL - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2094
SELECT 74 + COUNT( * ) + 26 + + 32 * CASE - COUNT( * ) WHEN - + 30 THEN MAX( 59 ) END col2, 78 * - 5 * - CASE - 87 WHEN - - 76 THEN - + 77 WHEN - 16 / - + COUNT( * ) THEN - 92 ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2094
SELECT 74 + COUNT ( * ) + 26 + + 32 * CASE - COUNT ( * ) WHEN - + 30 THEN MAX ( 59 ) END col2, 78 * - 5 * - CASE - 87 WHEN - - 76 THEN - + 77 WHEN - 16 / - + COUNT ( * ) THEN - 92 ELSE NULL END AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT ( + 8 ) - 55 + - - 89 * MIN( 87 ) DIV + 78 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2095
SELECT ( + 8 ) - 55 + - - 89 * MIN ( 87 ) / + 78 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2096
SELECT ALL COUNT( * ) * - ( - CASE 56 WHEN 80 THEN 98 + + 71 + + 77 ELSE 96 * 7 + - COALESCE ( - - 42, + CAST( 59 AS SIGNED ) * - 1, - 38 ) END )
----
630

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL COUNT ( * ) * - ( - CASE 56 WHEN 80 THEN 98 + + 71 + + 77 ELSE 96 * 7 + - COALESCE ( - - 42, + CAST ( 59 AS INTEGER ) * - 1, - 38 ) END )
----
630

query I rowsort
SELECT DISTINCT 20 AS col0
----
20

query I rowsort
SELECT ALL - 73 + - 83
----
-156

query I rowsort
SELECT ALL 80 + + 14 AS col0
----
94

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

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

query I rowsort
SELECT ALL - 25 * - 1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2102
SELECT + CASE - + CAST( NULL AS SIGNED ) WHEN + 62 - - 74 * + - ( + MAX( DISTINCT 88 ) ) THEN - 97 WHEN + - ( - 23 ) * 96 THEN NULL END / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT + CASE - + CAST ( NULL AS INTEGER ) WHEN + 62 - - 74 * + - ( + MAX ( DISTINCT 88 ) ) THEN - 97 WHEN + - ( - 23 ) * 96 THEN NULL END / - 86
----
NULL

query I rowsort
SELECT + + 56 + - 55 * 64
----
-3464

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

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL COUNT ( * ) + 81 AS col1
----
82

query I rowsort
SELECT DISTINCT - 92 * - 44 * 70
----
283360

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL 47 + - - SUM( 28 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL 47 + - - SUM ( 28 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + 21 * - + 3 * - 4 + MIN( ALL 23 ) + 15
----
290

skipif mysql # not compatible
query I rowsort label-2107
SELECT + 21 * - + 3 * - 4 + MIN ( ALL 23 ) + 15
----
290

query I rowsort
SELECT - 64 col1
----
-64

query I rowsort
SELECT + + 53 + + 43 AS col2
----
96

query I rowsort
SELECT 73 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT DISTINCT - 40 + - - 81 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT - 40 + - - 81 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

query I rowsort
SELECT ALL ( - 57 ) - - + 75
----
18

query I rowsort
SELECT ALL - 26 - + + NULLIF ( 25, + 68 ) + - 21
----
-72

query I rowsort
SELECT - 42 * + 55 + + 19
----
-2291

query II rowsort
SELECT - - 46 * 72 AS col1, 24
----
3312
24

query I rowsort
SELECT + 22 AS col2
----
22

query I rowsort
SELECT ALL + 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT COUNT( * ) * + 46 * + 53 - NULLIF ( - 53, - + 82 * + + 8 + 54 + 0 )
----
2491

skipif mysql # not compatible
query I rowsort label-2119
SELECT COUNT ( * ) * + 46 * + 53 - NULLIF ( - 53, - + 82 * + + 8 + 54 + 0 )
----
2491

query I rowsort
SELECT ALL + 10 col2
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT + 78 DIV 20 * 28 + 94 * + 74 col1
----
7040

skipif mysql # not compatible
query I rowsort label-2122
SELECT + 78 / 20 * 28 + 94 * + 74 col1
----
7040

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL + NULLIF ( + + COUNT( * ), ( 55 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + NULLIF ( + + COUNT ( * ), ( 55 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT - ( + 44 ) * - COALESCE ( + NULLIF ( 24, - COUNT( * ) ), + + 87 ) - - 20 AS col2
----
1076

skipif mysql # not compatible
query I rowsort label-2124
SELECT - ( + 44 ) * - COALESCE ( + NULLIF ( 24, - COUNT ( * ) ), + + 87 ) - - 20 AS col2
----
1076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT + ( + - 41 ) * - 35 + + COUNT( * ) + + ( 95 ) DIV - ( + + 41 )
----
1434

skipif mysql # not compatible
query I rowsort label-2125
SELECT + ( + - 41 ) * - 35 + + COUNT ( * ) + + ( 95 ) / - ( + + 41 )
----
1434

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

query I rowsort
SELECT + 48 col1
----
48

query I rowsort
SELECT - 44 + + 64
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT ALL - 4 DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - 4 / - 62 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT ALL 45 * - 17 + - CASE + - CAST( NULL AS SIGNED ) WHEN ( + 41 ) THEN NULL WHEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + + 64 * - 36 + - - CAST( - - COUNT( * ) AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL 45 * - 17 + - CASE + - CAST ( NULL AS INTEGER ) WHEN ( + 41 ) THEN NULL WHEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + + 64 * - 36 + - - CAST ( - - COUNT ( * ) AS INTEGER ) ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - 38 + + + 44 - SUM( ALL - 2 ) * + - 33 + 36 * + 30 * 58 * + + 50 * 53 * COUNT( * ) col0
----
165995940

skipif mysql # not compatible
query I rowsort label-2132
SELECT - 38 + + + 44 - SUM ( ALL - 2 ) * + - 33 + 36 * + 30 * 58 * + + 50 * 53 * COUNT ( * ) col0
----
165995940

query I rowsort
SELECT - COALESCE ( + 21, - 74 ) * + - 70
----
1470

query I rowsort
SELECT - 8 * 32
----
-256

query I rowsort
SELECT ALL - 68 * + 23 AS col1
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT DISTINCT + COALESCE ( - NULLIF ( - 5, + - 93 - + + 4 ), 6, + + CAST( NULL AS SIGNED ), + 38 ) * + 89 AS col2
----
445

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT + COALESCE ( - NULLIF ( - 5, + - 93 - + + 4 ), 6, + + CAST ( NULL AS INTEGER ), + 38 ) * + 89 AS col2
----
445

query I rowsort
SELECT - ( 85 ) * + + ( - + 83 ) AS col1
----
7055

query I rowsort
SELECT ALL + 75 * + + ( - - 0 ) + 20
----
20

query I rowsort
SELECT DISTINCT + 96 * 70 col1
----
6720

query I rowsort
SELECT + 52 * - 7
----
-364

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

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

query I rowsort
SELECT ALL + - 78 + + 94 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT ALL - + 16 + + 72 DIV + 32
----
-14

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - + 16 + + 72 / + 32
----
-14

query I rowsort
SELECT - - 99 - + - 84 + - 66 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT MAX( 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-2145
SELECT MAX ( 63 ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST( 90 AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST ( 90 AS INTEGER ) END ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2148
SELECT - COUNT( - ( - - 20 ) ), 95 - - 2 + + 55 + - - 4 * + 59 AS col1
----
-1
388

skipif mysql # not compatible
query II rowsort label-2148
SELECT - COUNT ( - ( - - 20 ) ), 95 - - 2 + + 55 + - - 4 * + 59 AS col1
----
-1
388

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT + 97 + - ( + COALESCE ( 34, + COUNT( * ) ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-2149
SELECT + 97 + - ( + COALESCE ( 34, + COUNT ( * ) ) ) col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT ALL 32 AS col0, 23 - - 3 * + CASE + - 49 WHEN 88 THEN NULL WHEN + 26 - COUNT( * ) THEN - COUNT( * ) + 2 / - 6 * + - ( - COUNT( * ) ) END col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL 32 AS col0, 23 - - 3 * + CASE + - 49 WHEN 88 THEN NULL WHEN + 26 - COUNT ( * ) THEN - COUNT ( * ) + 2 / - 6 * + - ( - COUNT ( * ) ) END col1
----
32
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2151
SELECT DISTINCT - CAST( + 41 AS SIGNED ) * - 67 * + - CAST( - + 60 AS SIGNED ), 11 AS col0
----
164820
11

skipif mysql # not compatible
query II rowsort label-2151
SELECT DISTINCT - CAST ( + 41 AS INTEGER ) * - 67 * + - CAST ( - + 60 AS INTEGER ), 11 AS col0
----
164820
11

query I rowsort
SELECT ALL 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + ( - 51 ) * SUM( - 58 ) col1
----
2958

skipif mysql # not compatible
query I rowsort label-2153
SELECT + ( - 51 ) * SUM ( - 58 ) col1
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL 94 * - SUM( ALL 64 )
----
-6016

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL 94 * - SUM ( ALL 64 )
----
-6016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT + 68 - CAST( NULL AS SIGNED ) + - 83 * + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 68 - CAST ( NULL AS INTEGER ) + - 83 * + + 89 AS col2
----
NULL

query I rowsort
SELECT ALL - 63
----
-63

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

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

query I rowsort
SELECT - 66 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + - 0 + - - MIN( - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2159
SELECT + - 0 + - - MIN ( - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2160
SELECT DISTINCT + 17 col0, - 22 + - COUNT( * ) AS col0
----
17
-23

skipif mysql # not compatible
query II rowsort label-2160
SELECT DISTINCT + 17 col0, - 22 + - COUNT ( * ) AS col0
----
17
-23

query I rowsort
SELECT ALL 39
----
39

query I rowsort
SELECT - 28 + - - 84
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + CASE - 38 WHEN 18 THEN 20 WHEN + - 12 THEN NULL ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT + CASE - 38 WHEN 18 THEN 20 WHEN + - 12 THEN NULL ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT CAST( + + SUM( ALL 17 ) AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2164
SELECT CAST ( + + SUM ( ALL 17 ) AS INTEGER ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2165
SELECT DISTINCT 92 DIV CASE + - 42 WHEN - ( - - COUNT( * ) ) + - 69 THEN NULL WHEN + - COALESCE ( + + 95, - ( - + AVG ( + 2 ) ) ) THEN 5 ELSE 16 END * - + 79 + + 34 + 83 AS col2, - 88 * + 37 * + - 12 * + CAST( 92 AS SIGNED ) - - + COUNT( DISTINCT - ( ( + + 89 ) ) ) DIV + 20 + - 18 + - 41
----
-278
3594565

skipif mysql # not compatible
query II rowsort label-2165
SELECT DISTINCT 92 / CASE + - 42 WHEN - ( - - COUNT ( * ) ) + - 69 THEN NULL WHEN + - COALESCE ( + + 95, - ( - + AVG ( + 2 ) ) ) THEN 5 ELSE 16 END * - + 79 + + 34 + 83 AS col2, - 88 * + 37 * + - 12 * + CAST ( 92 AS INTEGER ) - - + COUNT ( DISTINCT - ( ( + + 89 ) ) ) / + 20 + - 18 + - 41
----
-278
3594565

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT + 43 AS col1, MIN( - 0 ) * + 11 AS col2
----
43
0

skipif mysql # not compatible
query II rowsort label-2168
SELECT + 43 AS col1, MIN ( - 0 ) * + 11 AS col2
----
43
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT ALL COUNT( - 20 ) DIV + 50 + - - 58 + + - ( - + ( + 53 ) ) + + 57
----
168

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL COUNT ( - 20 ) / + 50 + - - 58 + + - ( - + ( + 53 ) ) + + 57
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + MAX( ALL + - 28 ) - - + MIN( + - 80 )
----
-108

skipif mysql # not compatible
query I rowsort label-2170
SELECT + MAX ( ALL + - 28 ) - - + MIN ( + - 80 )
----
-108

onlyif mysql # aggregate syntax: 
query III rowsort label-2171
SELECT + 46, 13 col2, + MAX( + - 44 ) col0
----
46
13
-44

skipif mysql # not compatible
query III rowsort label-2171
SELECT + 46, 13 col2, + MAX ( + - 44 ) col0
----
46
13
-44

query I rowsort
SELECT - 21 * 75 AS col2
----
-1575

query I rowsort
SELECT ALL - 0 * 36
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT 37 * 11 - 96 - - 40, 66 * + + 90 * COUNT( * ) * + 39 col2
----
351
231660

skipif mysql # not compatible
query II rowsort label-2175
SELECT 37 * 11 - 96 - - 40, 66 * + + 90 * COUNT ( * ) * + 39 col2
----
351
231660

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT ALL 8 * 59 DIV + 88
----
5

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL 8 * 59 / + 88
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2177
SELECT ALL + 31 * + ( + - CAST( - 95 AS SIGNED ) ) + + ( + + COUNT( * ) ) col0, + 4 AS col2
----
2946
4

skipif mysql # not compatible
query II rowsort label-2177
SELECT ALL + 31 * + ( + - CAST ( - 95 AS INTEGER ) ) + + ( + + COUNT ( * ) ) col0, + 4 AS col2
----
2946
4

query II rowsort
SELECT 17 AS col1, 90
----
17
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT DISTINCT + 28 + - - 41 + - + 15 DIV + 63 * 17 col0
----
69

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + 28 + - - 41 + - + 15 / + 63 * 17 col0
----
69

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

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

query II rowsort
SELECT 84, ( + 47 ) AS col1
----
84
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + - 76 + - COUNT( ALL + 41 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + - 76 + - COUNT ( ALL + 41 ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2183
SELECT + + 3 AS col2, 78 + CAST( - 62 AS SIGNED ) AS col1
----
3
16

skipif mysql # not compatible
query II rowsort label-2183
SELECT + + 3 AS col2, 78 + CAST ( - 62 AS INTEGER ) AS col1
----
3
16

query I rowsort
SELECT 19 + + + 15
----
34

query I rowsort
SELECT 9 - - - ( - + 67 ) + 91 + + 93 + 10 - 39 * 7 + - 48
----
-51

query III rowsort
SELECT - 99 AS col2, 90 AS col1, - - 80 * + 34
----
-99
90
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL - ( - + MAX( DISTINCT 38 ) ) - + 72
----
-34

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - ( - + MAX ( DISTINCT 38 ) ) - + 72
----
-34

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

query I rowsort
SELECT ALL - 90 * - 99 col2
----
8910

query I rowsort
SELECT - 14 + - 25
----
-39

query I rowsort
SELECT 67 * 29
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT + 89 * - 38 - COUNT( * ) - + 54
----
-3437

skipif mysql # not compatible
query I rowsort label-2192
SELECT + 89 * - 38 - COUNT ( * ) - + 54
----
-3437

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT 44 + + - CASE MIN( DISTINCT - 62 ) WHEN - 59 THEN + ( - 6 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT 44 + + - CASE MIN ( DISTINCT - 62 ) WHEN - 59 THEN + ( - 6 ) END AS col2
----
NULL

query I rowsort
SELECT 65 + + + 12
----
77

query II rowsort
SELECT ALL 63 * + 70 AS col2, + 62 col0
----
4410
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT 84 + + + 17 col2, - COUNT( 44 )
----
101
-1

skipif mysql # not compatible
query II rowsort label-2198
SELECT 84 + + + 17 col2, - COUNT ( 44 )
----
101
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT 55 + + 15 * - ( - + COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-2199
SELECT 55 + + 15 * - ( - + COUNT ( * ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT + MIN( ALL + 86 ) * + 60 + COUNT( * ) AS col2
----
5161

skipif mysql # not compatible
query I rowsort label-2200
SELECT + MIN ( ALL + 86 ) * + 60 + COUNT ( * ) AS col2
----
5161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT 40 DIV + 64 * + 2 + 55 - + MIN( DISTINCT 29 )
----
26

skipif mysql # not compatible
query I rowsort label-2201
SELECT 40 / + 64 * + 2 + 55 - + MIN ( DISTINCT 29 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT 4 * COALESCE ( 3, - - ( + COUNT( * ) ) * + - COUNT( * ) ) + 73
----
85

skipif mysql # not compatible
query I rowsort label-2202
SELECT 4 * COALESCE ( 3, - - ( + COUNT ( * ) ) * + - COUNT ( * ) ) + 73
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ( + COUNT( * ) ) * + 85 + - 83 - - + ( - 64 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-2203
SELECT ( + COUNT ( * ) ) * + 85 + - 83 - - + ( - 64 ) col2
----
-62

query I rowsort
SELECT DISTINCT + 86 + - + 32
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + 62 * - 30 + COUNT( * ) * - CASE - + ( - - COUNT( * ) ) WHEN + + 76 THEN NULL WHEN - 46 THEN - 98 * - 27 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT + 62 * - 30 + COUNT ( * ) * - CASE - + ( - - COUNT ( * ) ) WHEN + + 76 THEN NULL WHEN - 46 THEN - 98 * - 27 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT 41 * + COALESCE ( - 2, + COUNT( * ), - 84 * - - ( - 89 ) + + COUNT( * ) ) + - 43
----
-125

skipif mysql # not compatible
query I rowsort label-2207
SELECT 41 * + COALESCE ( - 2, + COUNT ( * ), - 84 * - - ( - 89 ) + + COUNT ( * ) ) + - 43
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT ALL - CAST( + 4 AS SIGNED ) * - ( + + CAST( - + 84 AS SIGNED ) ) + - - 23 + + - 99 AS col0
----
-412

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - CAST ( + 4 AS INTEGER ) * - ( + + CAST ( - + 84 AS INTEGER ) ) + - - 23 + + - 99 AS col0
----
-412

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL MIN( DISTINCT + 11 ) + + MAX( ALL + 50 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL MIN ( DISTINCT + 11 ) + + MAX ( ALL + 50 ) AS col1
----
61

query I rowsort
SELECT 59 col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT 99 * + 27, - COUNT( 0 ) + - 34 AS col2
----
2673
-35

skipif mysql # not compatible
query II rowsort label-2211
SELECT 99 * + 27, - COUNT ( 0 ) + - 34 AS col2
----
2673
-35

query I rowsort
SELECT 34 * 56
----
1904

query I rowsort
SELECT + 71 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL - MAX( ALL - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL - MAX ( ALL - 62 ) AS col1
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT - ( + MAX( ALL - + 64 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - ( + MAX ( ALL - + 64 ) ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT ALL - - ( + + 86 ) AS col2, + ( + CASE 61 WHEN + + AVG ( ALL - 72 ) + + 68 * + MIN( DISTINCT 29 ) THEN + 56 * + COUNT( * ) ELSE + 29 END ) AS col1
----
86
29

skipif mysql # not compatible
query II rowsort label-2217
SELECT ALL - - ( + + 86 ) AS col2, + ( + CASE 61 WHEN + + AVG ( ALL - 72 ) + + 68 * + MIN ( DISTINCT 29 ) THEN + 56 * + COUNT ( * ) ELSE + 29 END ) AS col1
----
86
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT ALL - - 36 DIV + 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - - 36 / + 23 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2219
SELECT - CAST( NULL AS SIGNED ) + + - 17 AS col1, - 35 * + + COUNT( * ) AS col1
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-2219
SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1
----
NULL
-35

query I rowsort
SELECT DISTINCT - 31
----
-31

query I rowsort
SELECT - - 33 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT ALL + 70 DIV 58 + - 37 + + 8 - - 24 col0
----
-4

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL + 70 / 58 + - 37 + + 8 - - 24 col0
----
-4

query I rowsort
SELECT 82 - + + 68 - + 21 + + 10 * + 95
----
943

query I rowsort
SELECT ALL 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT + + 94 * + MIN( ALL - 10 ) * 56 + + 54 col2
----
-52586

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + + 94 * + MIN ( ALL - 10 ) * 56 + + 54 col2
----
-52586

query I rowsort
SELECT DISTINCT ( - + NULLIF ( 4, - 71 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL - + MIN( ALL - + 98 ) * + 2 + + + 92
----
288

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - + MIN ( ALL - + 98 ) * + 2 + + + 92
----
288

query I rowsort
SELECT ALL - NULLIF ( + - 77, 80 + - - 85 - + + 19 ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT DISTINCT + + 2 + COUNT( DISTINCT - 13 ) DIV 23 + 33 * - - 66
----
2180

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + + 2 + COUNT ( DISTINCT - 13 ) / 23 + 33 * - - 66
----
2180

query I rowsort
SELECT 78 - - 74 + + - 90 * ( 57 ) AS col2
----
-4978

query II rowsort
SELECT - 76 AS col0, 50
----
-76
50

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2233
SELECT - 78 AS col0, + 99 + + + 29 DIV 23
----
-78
100

skipif mysql # not compatible
query II rowsort label-2233
SELECT - 78 AS col0, + 99 + + + 29 / 23
----
-78
100

query I rowsort
SELECT 93 * + 19
----
1767

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2236
SELECT ALL + 45 + 94 - + 77 DIV - 92 * SUM( DISTINCT + 41 )
----
139

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL + 45 + 94 - + 77 / - 92 * SUM ( DISTINCT + 41 )
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-2237
SELECT 56 AS col2, COUNT( * ) + 29 + 67
----
56
97

skipif mysql # not compatible
query II rowsort label-2237
SELECT 56 AS col2, COUNT ( * ) + 29 + 67
----
56
97

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

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

query I rowsort
SELECT ALL - 73 + + + 27
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2240
SELECT COALESCE ( + - 38, + CASE + + 63 WHEN CAST( + 3 AS SIGNED ) + - ( + CAST( NULL AS SIGNED ) ) THEN - AVG ( ALL - + 4 ) DIV - + COUNT( * ) END ), 65 * + 52 AS col2
----
-38
3380

skipif mysql # not compatible
query II rowsort label-2240
SELECT COALESCE ( + - 38, + CASE + + 63 WHEN CAST ( + 3 AS INTEGER ) + - ( + CAST ( NULL AS INTEGER ) ) THEN - AVG ( ALL - + 4 ) / - + COUNT ( * ) END ), 65 * + 52 AS col2
----
-38
3380

query I rowsort
SELECT DISTINCT + 9 * - ( - 14 ) + - 61 AS col0
----
65

query I rowsort
SELECT COALESCE ( 84, + 77 )
----
84

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

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

query I rowsort
SELECT ALL + 15 * - 70 - + 18 AS col1
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT CASE + COUNT( * ) WHEN - 98 + - 99 THEN NULL WHEN + + SUM( ALL - 47 ) THEN NULL WHEN - + 95 THEN 3 + - + 36 * + + 57 - 0 * + 49 WHEN - 45 - + - 78 THEN NULL ELSE + 28 END AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2245
SELECT CASE + COUNT ( * ) WHEN - 98 + - 99 THEN NULL WHEN + + SUM ( ALL - 47 ) THEN NULL WHEN - + 95 THEN 3 + - + 36 * + + 57 - 0 * + 49 WHEN - 45 - + - 78 THEN NULL ELSE + 28 END AS col2
----
28

query I rowsort
SELECT - ( + 40 ) + 90 AS col2
----
50

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

skipif mysql # not compatible
query I rowsort label-2247
SELECT + 49 * - - COUNT ( DISTINCT + 3 ) AS col1
----
49

query II rowsort
SELECT 47 * 18 + - 86, - ( - 50 ) col2
----
760
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT ALL - 30 * - 58 DIV - COUNT( * ) - ( - COUNT( * ) ) AS col1
----
-1739

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - 30 * - 58 / - COUNT ( * ) - ( - COUNT ( * ) ) AS col1
----
-1739

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + 0 * - - 99 - + 59 + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-2251
SELECT + 0 * - - 99 - + 59 + COUNT ( * )
----
-58

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

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

query I rowsort
SELECT ALL + - 60 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + COUNT( * ) * - 4 * + ( + + COUNT( * ) ) + 7 * - CASE - 89 WHEN + 81 THEN 42 ELSE NULL END + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + COUNT ( * ) * - 4 * + ( + + COUNT ( * ) ) + 7 * - CASE - 89 WHEN + 81 THEN 42 ELSE NULL END + - 8
----
NULL

query I rowsort
SELECT + 44 * - - 83 - + 5
----
3647

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + 38 * COALESCE ( - COUNT( * ), + 39 ) + + 81
----
43

skipif mysql # not compatible
query I rowsort label-2257
SELECT + 38 * COALESCE ( - COUNT ( * ), + 39 ) + + 81
----
43

query I rowsort
SELECT + 88 + - 23
----
65

query II rowsort
SELECT 69 AS col2, - 81 * - 45
----
69
3645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT + NULLIF ( - COALESCE ( ( CASE WHEN NULL IS NOT NULL THEN - 28 END ), + 72 * - - 40 ), - ( 86 ) + 36 ) + - COALESCE ( + 33, CAST( 53 AS SIGNED ) )
----
-2913

skipif mysql # not compatible
query I rowsort label-2260
SELECT + NULLIF ( - COALESCE ( ( CASE WHEN NULL IS NOT NULL THEN - 28 END ), + 72 * - - 40 ), - ( 86 ) + 36 ) + - COALESCE ( + 33, CAST ( 53 AS INTEGER ) )
----
-2913

query I rowsort
SELECT - + ( + 44 ) - - 60 AS col1
----
16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT( * ) * - 78 AS col0
----
-299467
-78

skipif mysql # not compatible
query II rowsort label-2263
SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT ( * ) * - 78 AS col0
----
-299467
-78

query I rowsort
SELECT DISTINCT 49 + 10
----
59

query I rowsort
SELECT - - NULLIF ( 6, 17 - - 96 + - - 88 * ( + - 31 ) ) AS col1
----
6

query I rowsort
SELECT ALL + ( - 83 ) + - - 18
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2267
SELECT ALL + 74 + - CASE + + COUNT( * ) WHEN + 23 THEN NULL ELSE - - MIN( + 52 ) DIV - ( 64 ) END * - + 69 * + + 41 DIV - - 96
----
74

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + 74 + - CASE + + COUNT ( * ) WHEN + 23 THEN NULL ELSE - - MIN ( + 52 ) / - ( 64 ) END * - + 69 * + + 41 / - - 96
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT + 25 + + + 91 + + 84 * + COUNT( * ) col2
----
200

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + 25 + + + 91 + + 84 * + COUNT ( * ) col2
----
200

query I rowsort
SELECT + 33 + 92 * - 84
----
-7695

query I rowsort
SELECT - 98 * - - 64 AS col2
----
-6272

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2272
SELECT + CAST( NULL AS SIGNED ) + + 80 * - 74 + - - 4 + + 78 AS col0, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2272
SELECT + CAST ( NULL AS INTEGER ) + + 80 * - 74 + - - 4 + + 78 AS col0, + 59
----
NULL
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2273
SELECT ALL + 41 + + CAST( - - 33 AS SIGNED ) DIV - 11
----
38

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + 41 + + CAST ( - - 33 AS INTEGER ) / - 11
----
38

query I rowsort
SELECT ALL - CASE + 82 WHEN - 7 THEN NULL ELSE 67 END * - 53 col2
----
3551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2275
SELECT ALL + COUNT( * ) - - 59 AS col2, - 85 DIV 3 + + COUNT( * )
----
60
-27

skipif mysql # not compatible
query II rowsort label-2275
SELECT ALL + COUNT ( * ) - - 59 AS col2, - 85 / 3 + + COUNT ( * )
----
60
-27

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

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - 55 + - + COUNT( + 23 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2277
SELECT - 55 + - + COUNT ( + 23 ) AS col2
----
-56

query I rowsort
SELECT DISTINCT + CASE - 51 WHEN 56 - + 40 - - - 87 THEN + 51 + + 28 END * + 35
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 49 + COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT - 8 * - - ( + 99 ) AS col1
----
-792

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

query II rowsort
SELECT ( 3 ) AS col2, + 37 + 89 col2
----
3
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - + 91 * + + COALESCE ( + 16, - 39 * + COUNT( * ) ) * + + 19 AS col1
----
-27664

skipif mysql # not compatible
query I rowsort label-2284
SELECT - + 91 * + + COALESCE ( + 16, - 39 * + COUNT ( * ) ) * + + 19 AS col1
----
-27664

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

query II rowsort
SELECT DISTINCT 31 * - + 34, 84 AS col2
----
-1054
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT + - COUNT( * ) DIV - + COALESCE ( + + 86, 22 - - 84 ) + + 27
----
27

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT + - COUNT ( * ) / - + COALESCE ( + + 86, 22 - - 84 ) + + 27
----
27

query I rowsort
SELECT + - 25
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT CASE + COALESCE ( - - 34, 7, 76 ) WHEN + 52 THEN + + 13 * - 58 + ( + 31 ) WHEN - + COALESCE ( + + 34, 95 ) DIV 51 THEN NULL ELSE + + COUNT( * ) DIV + 6 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2289
SELECT CASE + COALESCE ( - - 34, 7, 76 ) WHEN + 52 THEN + + 13 * - 58 + ( + 31 ) WHEN - + COALESCE ( + + 34, 95 ) / 51 THEN NULL ELSE + + COUNT ( * ) / + 6 END AS col2
----
0

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

query I rowsort
SELECT - ( - 43 )
----
43

query I rowsort
SELECT 22 * - + 58 + ( + - 44 ) + + - 91
----
-1411

query I rowsort
SELECT - - 64 * + 73 * + COALESCE ( - - 45, 94 + + 27 ) * - 60 AS col0
----
-12614400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT - MIN( DISTINCT 0 ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT - MIN ( DISTINCT 0 ) / - 78
----
0

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

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

query I rowsort
SELECT ALL - + 83 * + 40 + - 14 AS col1
----
-3334

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + COUNT( * ) * + 61 - - 35 col2
----
96

skipif mysql # not compatible
query I rowsort label-2298
SELECT + COUNT ( * ) * + 61 - - 35 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT + + 7 + + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2299
SELECT + + 7 + + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - COALESCE ( + + 94, + CASE - COALESCE ( CASE - + 93 WHEN - + 50 * + COUNT( * ) + + 91 THEN + 26 - 46 / 74 / - COUNT( * ) END, + 1 ) WHEN - 27 THEN NULL WHEN + 56 + - 32 + + MAX( ALL - 60 ) * - 78 * 68 + + 57 * + 6 THEN COALESCE ( - + COALESCE ( - - ( + COUNT( * ) ), + 92 * + 37 ), - - ( 6 ), - 49 ) END, - 85 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-2300
SELECT - COALESCE ( + + 94, + CASE - COALESCE ( CASE - + 93 WHEN - + 50 * + COUNT ( * ) + + 91 THEN + 26 - 46 / 74 / - COUNT ( * ) END, + 1 ) WHEN - 27 THEN NULL WHEN + 56 + - 32 + + MAX ( ALL - 60 ) * - 78 * 68 + + 57 * + 6 THEN COALESCE ( - + COALESCE ( - - ( + COUNT ( * ) ), + 92 * + 37 ), - - ( 6 ), - 49 ) END, - 85 ) col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + COALESCE ( NULLIF ( + 53, - - 50 ), - - ( + + 49 ) ) - - 89 * - - COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-2301
SELECT + COALESCE ( NULLIF ( + 53, - - 50 ), - - ( + + 49 ) ) - - 89 * - - COUNT ( * )
----
142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT COUNT( * ) * - COALESCE ( + CASE WHEN NOT 54 <> - + 14 * + 23 + - 46 + 21 * - + MAX( ALL + 86 ) THEN NULL ELSE 16 * 54 + + 48 * - + 18 END, ( + COALESCE ( + 74, - - 64 - + 68 ) ) ) + - 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT COUNT ( * ) * - COALESCE ( + CASE WHEN NOT 54 <> - + 14 * + 23 + - 46 + 21 * - + MAX ( ALL + 86 ) THEN NULL ELSE 16 * 54 + + 48 * - + 18 END, ( + COALESCE ( + 74, - - 64 - + 68 ) ) ) + - 87 AS col1
----
-87

query I rowsort
SELECT - ( - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT COUNT( DISTINCT - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2305
SELECT COUNT ( DISTINCT - 42 ) AS col2
----
1

query I rowsort
SELECT ALL 92 * - 90
----
-8280

query I rowsort
SELECT DISTINCT 50 - + 89 col2
----
-39

query I rowsort
SELECT DISTINCT 88 AS col2
----
88

query I rowsort
SELECT ALL 40 col1
----
40

query I rowsort
SELECT DISTINCT 91 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT CAST( NULL AS SIGNED ) - + SUM( + + 29 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT CAST ( NULL AS INTEGER ) - + SUM ( + + 29 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT ( + 58 ) - - 88 DIV - + 3 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2312
SELECT ( + 58 ) - - 88 / - + 3 AS col2
----
29

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

skipif mysql # not compatible
query I rowsort label-2313
SELECT 2 / COUNT ( * )
----
2

query I rowsort
SELECT ALL - 10 - + 29 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT ALL 78 DIV 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL 78 / 88 col0
----
0

query II rowsort
SELECT DISTINCT - 5, 58 AS col0
----
-5
58

query I rowsort
SELECT ALL + 34 * 47
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL - 23 * + COUNT( * ) + - + COUNT( ALL + 37 )
----
-24

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 23 * + COUNT ( * ) + - + COUNT ( ALL + 37 )
----
-24

query I rowsort
SELECT DISTINCT - - 64 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - COUNT( * ) + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2320
SELECT - COUNT ( * ) + 99 AS col0
----
98

query I rowsort
SELECT + - 39
----
-39

query I rowsort
SELECT DISTINCT - - 82
----
82

query I rowsort
SELECT + ( + 71 ) * + 51 + + 88 AS col0
----
3709

query I rowsort
SELECT DISTINCT 48 + - - 35 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2325
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - 8 - - 62 - - - 35 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2325
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 8 - - 62 - - - 35 AS col2
----
NULL
19

query I rowsort
SELECT DISTINCT + 91 + + ( + 53 ) AS col0
----
144

query I rowsort
SELECT DISTINCT + 80 + - - 91
----
171

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

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - MIN ( - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2329
SELECT AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) + + MAX( DISTINCT - 18 ) * CASE + CAST( + + COUNT( + 96 ) AS SIGNED ) WHEN - - 45 THEN NULL WHEN 53 + 72 THEN NULL WHEN 46 THEN - 56 END + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT AVG ( DISTINCT + CAST ( NULL AS REAL ) ) + + MAX ( DISTINCT - 18 ) * CASE + CAST ( + + COUNT ( + 96 ) AS INTEGER ) WHEN - - 45 THEN NULL WHEN 53 + 72 THEN NULL WHEN 46 THEN - 56 END + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 16 col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT + 78 * COUNT( * ) DIV 61 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2331
SELECT + 78 * COUNT ( * ) / 61 + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + CASE + COUNT( * ) WHEN + ( 2 ) THEN NULL WHEN - COUNT( * ) THEN + - 45 + 81 / + 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT + CASE + COUNT ( * ) WHEN + ( 2 ) THEN NULL WHEN - COUNT ( * ) THEN + - 45 + 81 / + 66 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - + 82 + 67
----
-15

query I rowsort
SELECT + 55 * + 0 * - 3
----
0

query I rowsort
SELECT COALESCE ( ( + ( + - 64 ) ), 36 * + 71 + + 35, + 60 - 15 ) - + 4 + + - 10 - + 96 col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2336
SELECT 36 AS col1, - CAST( + 49 AS SIGNED )
----
36
-49

skipif mysql # not compatible
query II rowsort label-2336
SELECT 36 AS col1, - CAST ( + 49 AS INTEGER )
----
36
-49

query I rowsort
SELECT ALL 73
----
73

query I rowsort
SELECT 93 * + 69
----
6417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2339
SELECT ALL 98 DIV NULLIF ( - NULLIF ( - + SUM( ALL + 92 ), + COUNT( * ) ), - ( 19 ) + + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 98 / NULLIF ( - NULLIF ( - + SUM ( ALL + 92 ), + COUNT ( * ) ), - ( 19 ) + + 89 ) AS col2
----
1

query I rowsort
SELECT ALL 83 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT DISTINCT 33 DIV - - 56 * - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT 33 / - - 56 * - 41 AS col1
----
0

query I rowsort
SELECT 12 + + 61
----
73

query I rowsort
SELECT DISTINCT 88 AS col0
----
88

query I rowsort
SELECT 89 + + 22 * - - 19 col1
----
507

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT MAX( + 43 ) * - - 50 - - - CASE COUNT( * ) WHEN - + 91 * - 72 THEN - + 42 END - - 27 + + 13 * - - 78 * 25 AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-2345
SELECT MAX ( + 43 ) * - - 50 - - - CASE COUNT ( * ) WHEN - + 91 * - 72 THEN - + 42 END - - 27 + + 13 * - - 78 * 25 AS col1, 45
----
NULL
45

query I rowsort
SELECT ALL 94 AS col0
----
94

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

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

query I rowsort
SELECT ALL 52 AS col1
----
52

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

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

query I rowsort
SELECT DISTINCT 25 * + ( - + 84 )
----
-2100

query I rowsort
SELECT ALL 61 AS col1
----
61

query I rowsort
SELECT ALL 62 col2
----
62

query I rowsort
SELECT ALL 60 + 16 * + 94 AS col1
----
1564

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT 43 + 26 + + 75 * + 51 + + 91 + + COUNT( * ) * + 97 * - 58 + - - NULLIF ( + 74, + 83 ), 76 AS col0
----
-1567
76

skipif mysql # not compatible
query II rowsort label-2354
SELECT 43 + 26 + + 75 * + 51 + + 91 + + COUNT ( * ) * + 97 * - 58 + - - NULLIF ( + 74, + 83 ), 76 AS col0
----
-1567
76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2356
SELECT + 63, 86 + + COUNT( ALL - 10 ) col2
----
63
87

skipif mysql # not compatible
query II rowsort label-2356
SELECT + 63, 86 + + COUNT ( ALL - 10 ) col2
----
63
87

query I rowsort
SELECT - 19 * + 70 - + - 41 + + 60 + + - 75
----
-1304

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT - 40 * - + 35 + 61 DIV + + 38
----
1401

skipif mysql # not compatible
query I rowsort label-2358
SELECT - 40 * - + 35 + 61 / + + 38
----
1401

query I rowsort
SELECT ALL + 95 * + - 68 + - 13 + + 20 + - 42 AS col0
----
-6495

query I rowsort
SELECT 33 * - 88
----
-2904

query I rowsort
SELECT DISTINCT - - 85 * - - 84 + + 56
----
7196

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT + 3 DIV - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT + 3 / - 82 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT DISTINCT + ( - 7 ) * - - CAST( NULL AS SIGNED ) / - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT + ( - 7 ) * - - CAST ( NULL AS INTEGER ) / - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ( + NULLIF ( + 19, + MAX( ALL + ( + 99 ) ) ) ) * + 86 - + - ( 8 ) + - 42 AS col1
----
1600

skipif mysql # not compatible
query I rowsort label-2365
SELECT ( + NULLIF ( + 19, + MAX ( ALL + ( + 99 ) ) ) ) * + 86 - + - ( 8 ) + - 42 AS col1
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT - NULLIF ( 44, - MAX( DISTINCT - 2 ) * - 18 * ( + 22 ) + - 59 + 43 )
----
-44

skipif mysql # not compatible
query I rowsort label-2366
SELECT - NULLIF ( 44, - MAX ( DISTINCT - 2 ) * - 18 * ( + 22 ) + - 59 + 43 )
----
-44

query I rowsort
SELECT ALL + 26 + - - 89 * 77 * - - 13 * + ( 48 ) + - 19 * + 31 + 86 * - + 27
----
4273387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2368
SELECT DISTINCT - + 80 - - 38 + + 73 + + CASE + + 26 WHEN + MIN( 1 ) - + 84 THEN - + CAST( + - 9 AS SIGNED ) END * 14 + - - NULLIF ( 77, + 98 ) + COALESCE ( + - CAST( + - 80 AS SIGNED ), + ( - 98 ) + - 81 ) * - 66 * + 22 + - - 46 * - - 62 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - + 80 - - 38 + + 73 + + CASE + + 26 WHEN + MIN ( 1 ) - + 84 THEN - + CAST ( + - 9 AS INTEGER ) END * 14 + - - NULLIF ( 77, + 98 ) + COALESCE ( + - CAST ( + - 80 AS INTEGER ), + ( - 98 ) + - 81 ) * - 66 * + 22 + - - 46 * - - 62 * - 52
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2371
SELECT - 53 * COUNT ( ALL + + 83 ) AS col2
----
-53

query I rowsort
SELECT ALL - - 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2373
SELECT + 43 AS col0, + 6 * - - 29 + COUNT( * ) AS col2
----
43
175

skipif mysql # not compatible
query II rowsort label-2373
SELECT + 43 AS col0, + 6 * - - 29 + COUNT ( * ) AS col2
----
43
175

query I rowsort
SELECT ALL + 24 * - 83 col2
----
-1992

query I rowsort
SELECT ALL - 41 AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2376
SELECT ALL + ( - 54 ), - 66 DIV COUNT( * ) AS col1
----
-54
-66

skipif mysql # not compatible
query II rowsort label-2376
SELECT ALL + ( - 54 ), - 66 / COUNT ( * ) AS col1
----
-54
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL - COUNT( * ) * - COUNT( * ) * - 53 * + - 45
----
2385

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - 53 * + - 45
----
2385

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - 80 + - + CASE - 13 WHEN - 20 THEN + ( - 24 ) ELSE - - 35 + COUNT( * ) END AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-2379
SELECT - 80 + - + CASE - 13 WHEN - 20 THEN + ( - 24 ) ELSE - - 35 + COUNT ( * ) END AS col0
----
-116

query I rowsort
SELECT - 3 - 82 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2381
SELECT ALL COALESCE ( + 67, CASE - - COUNT( * ) WHEN 12 THEN + 14 DIV - ( - COUNT( 9 ) ) + + 57 END, - 93 )
----
67

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL COALESCE ( + 67, CASE - - COUNT ( * ) WHEN 12 THEN + 14 / - ( - COUNT ( 9 ) ) + + 57 END, - 93 )
----
67

query I rowsort
SELECT - 97 * + - 57
----
5529

query I rowsort
SELECT ALL - 19 * - - 9 AS col0
----
-171

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2384
SELECT DISTINCT - MAX( - - 94 ) * - 84 + - - ( - 49 ) / + + 93 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - MAX ( - - 94 ) * - 84 + - - ( - 49 ) / + + 93 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 84 + - 0 + + 23
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2386
SELECT DISTINCT 43 DIV + + CASE + + COUNT( * ) WHEN - - 45 + + 83 THEN NULL ELSE + + 28 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 43 / + + CASE + + COUNT ( * ) WHEN - - 45 + + 83 THEN NULL ELSE + + 28 END AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT ALL CASE + 90 WHEN NULLIF ( - 52, - 42 + - + COUNT( * ) ) THEN 73 * + 94 * + 38 - NULLIF ( - 20, + 54 + - + COALESCE ( 63, + + 35 * - 49 ) - - ( - 41 ) - + AVG ( 93 ) ) + + 32 + + 11 * - CASE + - 72 WHEN + + 54 THEN - 76 * CAST( + 47 AS SIGNED ) - - + 65 + 10 ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL CASE + 90 WHEN NULLIF ( - 52, - 42 + - + COUNT ( * ) ) THEN 73 * + 94 * + 38 - NULLIF ( - 20, + 54 + - + COALESCE ( 63, + + 35 * - 49 ) - - ( - 41 ) - + AVG ( 93 ) ) + + 32 + + 11 * - CASE + - 72 WHEN + + 54 THEN - 76 * CAST ( + 47 AS INTEGER ) - - + 65 + 10 ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT + 66 * + 46
----
3036

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2389
SELECT DISTINCT 78 * CAST( + 98 AS SIGNED ) DIV + 43
----
177

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT 78 * CAST ( + 98 AS INTEGER ) / + 43
----
177

query I rowsort
SELECT - 37 * + + 73 AS col2
----
-2701

query I rowsort
SELECT + 43 * - - 3 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL - NULLIF ( - - COUNT( * ), COUNT( * ) ) + 97 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - NULLIF ( - - COUNT ( * ), COUNT ( * ) ) + 97 * - + 23
----
NULL

query I rowsort
SELECT 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT - CASE - 25 WHEN + + 18 THEN NULL WHEN 39 THEN NULL WHEN 27 + - 21 / + + CASE - 42 WHEN + 25 + + 77 - + COUNT( ALL + - 78 ) THEN 82 / - COUNT( * ) END THEN - 32 * + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT - CASE - 25 WHEN + + 18 THEN NULL WHEN 39 THEN NULL WHEN 27 + - 21 / + + CASE - 42 WHEN + 25 + + 77 - + COUNT ( ALL + - 78 ) THEN 82 / - COUNT ( * ) END THEN - 32 * + 19 END AS col0
----
NULL

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

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

query I rowsort
SELECT - 38 * + + 30
----
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT + - 46 * - 33 + - - 49 col1, 71 + 71 + - CASE - - 58 WHEN + 61 * - - 85 THEN + ( - 50 ) WHEN - 0 * + + COUNT( * ) * + 94 + - 40 * 88 * 77 + 42 + - 55 THEN 29 END + 32 + + 96 - - 36 + - 41 / + - 50
----
1567
NULL

skipif mysql # not compatible
query II rowsort label-2397
SELECT + - 46 * - 33 + - - 49 col1, 71 + 71 + - CASE - - 58 WHEN + 61 * - - 85 THEN + ( - 50 ) WHEN - 0 * + + COUNT ( * ) * + 94 + - 40 * 88 * 77 + 42 + - 55 THEN 29 END + 32 + + 96 - - 36 + - 41 / + - 50
----
1567
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - - 16 + - MIN( + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - - 16 + - MIN ( + 17 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT ALL 83 DIV + 90 * 68 + - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL 83 / + 90 * 68 + - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + - SUM( + 31 ) - 98
----
-129

skipif mysql # not compatible
query I rowsort label-2400
SELECT + - SUM ( + 31 ) - 98
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL COALESCE ( + 6, - + COUNT( * ) ) * + 91
----
546

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL COALESCE ( + 6, - + COUNT ( * ) ) * + 91
----
546

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT DISTINCT - 33 * 92 + + + 46, - COUNT( * ) AS col1
----
-2990
-1

skipif mysql # not compatible
query II rowsort label-2402
SELECT DISTINCT - 33 * 92 + + + 46, - COUNT ( * ) AS col1
----
-2990
-1

query I rowsort
SELECT + + 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL + 47 * + 19 - - 75 - - NULLIF ( 89, 75 + SUM( - 4 ) ) - SUM( ALL + 10 ) AS col2
----
1047

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + 47 * + 19 - - 75 - - NULLIF ( 89, 75 + SUM ( - 4 ) ) - SUM ( ALL + 10 ) AS col2
----
1047

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2405
SELECT + NULLIF ( + 44, + 49 * ( + - 94 ) ) * ( + CAST( NULL AS SIGNED ) ) + - 55 AS col2, 55 col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2405
SELECT + NULLIF ( + 44, + 49 * ( + - 94 ) ) * ( + CAST ( NULL AS INTEGER ) ) + - 55 AS col2, 55 col1
----
NULL
55

query I rowsort
SELECT - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT + 54 + ( - 88 ) * + 37 * + COALESCE ( 24, + + 51 * - COALESCE ( - 76, 7, + - 83 ) + 12 - - - COUNT( * ) + + - 23, + 30 + 3 * - - 77 ) AS col2, - 81 * + 4
----
-78090
-324

skipif mysql # not compatible
query II rowsort label-2407
SELECT + 54 + ( - 88 ) * + 37 * + COALESCE ( 24, + + 51 * - COALESCE ( - 76, 7, + - 83 ) + 12 - - - COUNT ( * ) + + - 23, + 30 + 3 * - - 77 ) AS col2, - 81 * + 4
----
-78090
-324

query I rowsort
SELECT ALL + + 94
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT + COALESCE ( + MIN( 6 ), - 93 * - 20 DIV - + COALESCE ( + 20, - CASE - - 8 WHEN + 29 THEN 73 * - 15 - 52 ELSE NULL END * - 20 + - 64 - + 71 * + - 95 ) DIV 88 - - 81 ) * - MAX( - 42 ) + - 27 - 81 + - 53 * - + 53 * + 95 * + 56 AS col2
----
14944024

skipif mysql # not compatible
query I rowsort label-2409
SELECT + COALESCE ( + MIN ( 6 ), - 93 * - 20 / - + COALESCE ( + 20, - CASE - - 8 WHEN + 29 THEN 73 * - 15 - 52 ELSE NULL END * - 20 + - 64 - + 71 * + - 95 ) / 88 - - 81 ) * - MAX ( - 42 ) + - 27 - 81 + - 53 * - + 53 * + 95 * + 56 AS col2
----
14944024

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT - + 70 DIV - - 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2410
SELECT - + 70 / - - 52 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2411
SELECT NULLIF ( 0, COUNT( * ) ) DIV + 16 + + 21 * 30 + - 24 AS col0
----
606

skipif mysql # not compatible
query I rowsort label-2411
SELECT NULLIF ( 0, COUNT ( * ) ) / + 16 + + 21 * 30 + - 24 AS col0
----
606

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT 49 * + + 81 * CAST( NULL AS SIGNED ) - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT 49 * + + 81 * CAST ( NULL AS INTEGER ) - 99 AS col2
----
NULL

query I rowsort
SELECT ALL + + 15 * ( - + 0 ) AS col1
----
0

query II rowsort
SELECT ALL 69 * 86 * - 7 AS col1, 45
----
-41538
45

query I rowsort
SELECT + 39 + + 51
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT NULLIF ( + 27, CAST( + - 57 AS SIGNED ) * + + 54 * 86 - - 82 * + 52 + + - 30 + - 31 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-2417
SELECT NULLIF ( + 27, CAST ( + - 57 AS INTEGER ) * + + 54 * 86 - - 82 * + 52 + + - 30 + - 31 ) col1
----
27

query I rowsort
SELECT ALL 62 * + + 62 AS col2
----
3844

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL + MAX( ALL - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + MAX ( ALL - 38 ) AS col0
----
-38

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

query I rowsort
SELECT + 80
----
80

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

query I rowsort
SELECT CASE + + 1 WHEN - - 43 / - 40 THEN + 94 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT - COUNT( ALL + 79 ) + + + MAX( 67 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2424
SELECT - COUNT ( ALL + 79 ) + + + MAX ( 67 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT COUNT( 73 )
----
1

skipif mysql # not compatible
query I rowsort label-2425
SELECT COUNT ( 73 )
----
1

query II rowsort
SELECT ALL - 79 * 98 * - 86 + + 37 - + ( 54 ) + + ( 99 ) AS col2, - 49 AS col0
----
665894
-49

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

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

query I rowsort
SELECT - 91 - - 65
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT DISTINCT + 6 + + - 99 + - + 49 * - 4 * + 85 * + - COALESCE ( - - MIN( ALL + + 51 ), + 8 * - 91 * - 51 * - ( + + 44 ) + 9 + + - 56 ) * - COUNT( * ) AS col2, + 6
----
849567
6

skipif mysql # not compatible
query II rowsort label-2429
SELECT DISTINCT + 6 + + - 99 + - + 49 * - 4 * + 85 * + - COALESCE ( - - MIN ( ALL + + 51 ), + 8 * - 91 * - 51 * - ( + + 44 ) + 9 + + - 56 ) * - COUNT ( * ) AS col2, + 6
----
849567
6

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

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

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

skipif mysql # not compatible
query I rowsort label-2431
SELECT - COUNT ( * ) / 36
----
0

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

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

query I rowsort
SELECT - 31 + - 10 * - - 37 AS col0
----
-401

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL + 61 * + CAST( 9 AS SIGNED ) * + 72 AS col1
----
39528

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + 61 * + CAST ( 9 AS INTEGER ) * + 72 AS col1
----
39528

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT + + MAX( ALL + ( COALESCE ( + 57, - + 35 ) ) ) - - 56
----
113

skipif mysql # not compatible
query I rowsort label-2437
SELECT + + MAX ( ALL + ( COALESCE ( + 57, - + 35 ) ) ) - - 56
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL - CASE - 60 WHEN 14 THEN NULL WHEN - 50 / 25 THEN + CASE WHEN NOT COUNT( * ) NOT BETWEEN 54 + CASE ( - 74 ) WHEN 13 * 54 * + COUNT( * ) THEN NULL ELSE - 89 + + + 14 END AND 37 THEN COUNT( * ) WHEN NOT + 16 IS NULL THEN NULL ELSE NULL END + - + COUNT( * ) * - 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - CASE - 60 WHEN 14 THEN NULL WHEN - 50 / 25 THEN + CASE WHEN NOT COUNT ( * ) NOT BETWEEN 54 + CASE ( - 74 ) WHEN 13 * 54 * + COUNT ( * ) THEN NULL ELSE - 89 + + + 14 END AND 37 THEN COUNT ( * ) WHEN NOT + 16 IS NULL THEN NULL ELSE NULL END + - + COUNT ( * ) * - 90 ELSE NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( - 13, - COALESCE ( + + 49, + 50, - 67 ) - - 88 )
----
-13

query I rowsort
SELECT ALL - 95 + - + 29 AS col0
----
-124

query I rowsort
SELECT DISTINCT - - 14 * - 46 + ( - - 68 ) + + 49 + - - 67 * + 35 * - 93 AS col0
----
-218612

query II rowsort
SELECT - 58 + + - 36 - + 5 AS col1, 54
----
-99
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT DISTINCT 98 DIV 12 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT 98 / 12 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT SUM( ALL 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2444
SELECT SUM ( ALL 28 ) AS col1
----
28

query II rowsort
SELECT + 86 + + 99 * + 46 AS col0, - 90
----
4640
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL + MIN( DISTINCT - 3 ) / - CAST( NULL AS SIGNED ) * - + 28 / - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + MIN ( DISTINCT - 3 ) / - CAST ( NULL AS INTEGER ) * - + 28 / - 59 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT - - 54 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT - - 54 / + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2448
SELECT - COUNT( * ), - 23 + - CAST( + + 19 AS SIGNED ) AS col2
----
-1
-42

skipif mysql # not compatible
query II rowsort label-2448
SELECT - COUNT ( * ), - 23 + - CAST ( + + 19 AS INTEGER ) AS col2
----
-1
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT + COALESCE ( 33, - 71, COUNT( * ) - 36 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2450
SELECT + COALESCE ( 33, - 71, COUNT ( * ) - 36 ) AS col1
----
33

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

query I rowsort
SELECT + 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL 5 * + MIN( ALL 66 ) * + 74 * + COUNT( ALL CAST( NULL AS SIGNED ) ) * 38 + + COUNT( DISTINCT + - 95 ) + + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL 5 * + MIN ( ALL 66 ) * + 74 * + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 38 + + COUNT ( DISTINCT + - 95 ) + + - 87
----
-86

query I rowsort
SELECT ALL + 8 * 84
----
672

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

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

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

query I rowsort
SELECT + 6 AS col2
----
6

query I rowsort
SELECT 83 * + + 79 AS col1
----
6557

query I rowsort
SELECT ALL - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT NULLIF ( + + COUNT( 93 ), + 6 ) * - 54 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2460
SELECT NULLIF ( + + COUNT ( 93 ), + 6 ) * - 54 AS col2
----
-54

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT ALL CAST( + 33 AS SIGNED ) + + 81 * + + 23 + - - 2 AS col2
----
1898

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL CAST ( + 33 AS INTEGER ) + + 81 * + + 23 + - - 2 AS col2
----
1898

query I rowsort
SELECT 76 AS col0
----
76

query I rowsort
SELECT ALL - 92 * + 69
----
-6348

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT MAX( DISTINCT 84 ) + + - 93 * + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT MAX ( DISTINCT 84 ) + + - 93 * + COUNT ( * ) AS col2
----
-9

query I rowsort
SELECT ALL NULLIF ( ( - 23 ), + 74 ) + 62 + + 15 AS col2
----
54

query I rowsort
SELECT DISTINCT 5 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT NULLIF ( + 90, - MAX( ALL - - 44 ) ) * + - 19 * 40 + - SUM( ALL 2 )
----
-68402

skipif mysql # not compatible
query I rowsort label-2470
SELECT NULLIF ( + 90, - MAX ( ALL - - 44 ) ) * + - 19 * 40 + - SUM ( ALL 2 )
----
-68402

query I rowsort
SELECT DISTINCT + 75 + + 44 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL CASE - 29 WHEN + 25 THEN 26 * NULLIF ( + 35, - - 7 ) + + - 49 WHEN + 82 + - - 9 + - 6 * + 45 * - + 88 / 6 * - + 28 / - NULLIF ( - SUM( ( 51 ) ), - 54 / 29 / 1 + - - 59 ) * 4 THEN 29 WHEN 28 THEN NULL END + + + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL CASE - 29 WHEN + 25 THEN 26 * NULLIF ( + 35, - - 7 ) + + - 49 WHEN + 82 + - - 9 + - 6 * + 45 * - + 88 / 6 * - + 28 / - NULLIF ( - SUM ( ( 51 ) ), - 54 / 29 / 1 + - - 59 ) * 4 THEN 29 WHEN 28 THEN NULL END + + + 0 AS col1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + + 91 + + + COUNT ( * ) AS col1
----
92

query II rowsort
SELECT 39 * + 61, 58 AS col1
----
2379
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT DISTINCT COALESCE ( 79, + 17 * - 49 * 17, - 94 * 70 ) AS col0, NULLIF ( + + COUNT( * ), - 23 )
----
79
1

skipif mysql # not compatible
query II rowsort label-2476
SELECT DISTINCT COALESCE ( 79, + 17 * - 49 * 17, - 94 * 70 ) AS col0, NULLIF ( + + COUNT ( * ), - 23 )
----
79
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT + COUNT( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT( * ) + - 79 ) col1
----
1
-29

skipif mysql # not compatible
query II rowsort label-2477
SELECT + COUNT ( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT ( * ) + - 79 ) col1
----
1
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT 1 * + 8, 53 + + - ( + COUNT( * ) ) + + + 48 AS col1
----
8
100

skipif mysql # not compatible
query II rowsort label-2478
SELECT 1 * + 8, 53 + + - ( + COUNT ( * ) ) + + + 48 AS col1
----
8
100

query I rowsort
SELECT ALL + + ( 43 ) * 83
----
3569

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL - 63 - - NULLIF ( 20, 25 + - COUNT( * ) ) * - 75 + - 48 + 89 AS col2
----
-1522

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL - 63 - - NULLIF ( 20, 25 + - COUNT ( * ) ) * - 75 + - 48 + 89 AS col2
----
-1522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT 19 * + 99 - - 80 + 89 + + 9 * - 67 * 84 DIV - ( + - COUNT( * ) ) AS col1
----
-48602

skipif mysql # not compatible
query I rowsort label-2481
SELECT 19 * + 99 - - 80 + 89 + + 9 * - 67 * 84 / - ( + - COUNT ( * ) ) AS col1
----
-48602

query I rowsort
SELECT - 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT CASE 71 WHEN - - 41 * + 38 THEN + + 45 - - - 95 / - 94 * 58 * + COUNT( * ) END * - 96 + + SUM( + 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT CASE 71 WHEN - - 41 * + 38 THEN + + 45 - - - 95 / - 94 * 58 * + COUNT ( * ) END * - 96 + + SUM ( + 28 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + 23 - + + MAX( - + 66 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2485
SELECT + 23 - + + MAX ( - + 66 ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT - 92 / + CAST( NULL AS SIGNED ) * + COALESCE ( + + CASE 7 WHEN - 46 * + - 45 THEN 47 ELSE NULL END, 93 * + - 93 + - 99 + + CAST( NULL AS SIGNED ) ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT - 92 / + CAST ( NULL AS INTEGER ) * + COALESCE ( + + CASE 7 WHEN - 46 * + - 45 THEN 47 ELSE NULL END, 93 * + - 93 + - 99 + + CAST ( NULL AS INTEGER ) ) * 35
----
NULL

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

query I rowsort
SELECT - - 57
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2489
SELECT DISTINCT - 70 * + 63 col2, 91 * + ( 66 ) / 57 * 51 * - 1 + - + 50 + 66 + - 33 + - + 8 * ( CAST( NULL AS SIGNED ) ) * - + 16 AS col0
----
-4410
NULL

skipif mysql # not compatible
query II rowsort label-2489
SELECT DISTINCT - 70 * + 63 col2, 91 * + ( 66 ) / 57 * 51 * - 1 + - + 50 + 66 + - 33 + - + 8 * ( CAST ( NULL AS INTEGER ) ) * - + 16 AS col0
----
-4410
NULL

query I rowsort
SELECT - 59 - + 76
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL + + 44 * + MAX( ( - + 56 ) ) + + 1 AS col2
----
-2463

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL + + 44 * + MAX ( ( - + 56 ) ) + + 1 AS col2
----
-2463

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT + 72 - + ( - MAX( + - 20 ) )
----
52

skipif mysql # not compatible
query I rowsort label-2492
SELECT + 72 - + ( - MAX ( + - 20 ) )
----
52

query I rowsort
SELECT ALL - 67
----
-67

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2496
SELECT ALL - + CASE 35 WHEN + 25 + - 7 THEN + + 35 * - 51 + + 73 * COALESCE ( + + 30, CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 12 END ) + CAST( NULL AS DECIMAL ) + + + 26 WHEN + 69 - - 13 THEN NULL WHEN - 74 * + + 67 * - 76 THEN NULL END AS col0, COUNT( * ) * - COUNT( * ) + + 74 - ( + - 20 )
----
NULL
93

skipif mysql # not compatible
query II rowsort label-2496
SELECT ALL - + CASE 35 WHEN + 25 + - 7 THEN + + 35 * - 51 + + 73 * COALESCE ( + + 30, CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 12 END ) + CAST ( NULL AS REAL ) + + + 26 WHEN + 69 - - 13 THEN NULL WHEN - 74 * + + 67 * - 76 THEN NULL END AS col0, COUNT ( * ) * - COUNT ( * ) + + 74 - ( + - 20 )
----
NULL
93

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2499
SELECT + 39 + - CAST( NULL AS SIGNED ) + CAST( + 90 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT + 39 + - CAST ( NULL AS INTEGER ) + CAST ( + 90 AS REAL ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT 2 + + 53 AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT 96 DIV 33 - - + 29 * + 87 + - 68
----
2457

skipif mysql # not compatible
query I rowsort label-2503
SELECT 96 / 33 - - + 29 * + 87 + - 68
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + ( + COUNT( * ) ) + 76 + + 25 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + ( + COUNT ( * ) ) + 76 + + 25 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + COUNT( * ) + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + COUNT ( * ) + - 78
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2506
SELECT DISTINCT - 50, + 91 + + COUNT( * ) * + 70 col1
----
-50
161

skipif mysql # not compatible
query II rowsort label-2506
SELECT DISTINCT - 50, + 91 + + COUNT ( * ) * + 70 col1
----
-50
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2507
SELECT ALL + 24 + - COALESCE ( + - 11, - 90 ) * - ( + COUNT( * ) ) DIV - 32 + - 76 + + + 7
----
-45

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL + 24 + - COALESCE ( + - 11, - 90 ) * - ( + COUNT ( * ) ) / - 32 + - 76 + + + 7
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL MAX( 8 ) + + - 71 - + MAX( 59 ) * 48
----
-2895

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL MAX ( 8 ) + + - 71 - + MAX ( 59 ) * 48
----
-2895

query II rowsort
SELECT + 33, - 70 AS col1
----
33
-70

query I rowsort
SELECT ALL + 6 + + 27
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL - 34 + + - ( - SUM( + 21 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - 34 + + - ( - SUM ( + 21 ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT COUNT( * ) * - 30 * 65
----
-1950

skipif mysql # not compatible
query I rowsort label-2513
SELECT COUNT ( * ) * - 30 * 65
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + SUM( - ( - ( - 57 ) ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2514
SELECT + SUM ( - ( - ( - 57 ) ) ) AS col1
----
-57

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

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

query I rowsort
SELECT DISTINCT - 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT COUNT( 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT COUNT ( 83 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2518
SELECT - SUM ( ALL - 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT ALL 66 col1, - CAST( NULL AS SIGNED ) + ( - - 59 ) + AVG ( ALL + + 37 ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-2519
SELECT ALL 66 col1, - CAST ( NULL AS INTEGER ) + ( - - 59 ) + AVG ( ALL + + 37 ) AS col0
----
66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT 25 DIV 1 DIV 12
----
2

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT 25 / 1 / 12
----
2

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

skipif mysql # not compatible
query I rowsort label-2521
SELECT 72 / COUNT ( * ) AS col2
----
72

query I rowsort
SELECT ALL 48 * + 71
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL 60 * ( - COUNT( * ) * - 63 )
----
3780

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL 60 * ( - COUNT ( * ) * - 63 )
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT CASE - 96 WHEN - 62 THEN 20 WHEN - COALESCE ( + SUM( + 89 ), - 1 ) * - 26 + ( + 21 ) THEN NULL END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT CASE - 96 WHEN - 62 THEN 20 WHEN - COALESCE ( + SUM ( + 89 ), - 1 ) * - 26 + ( + 21 ) THEN NULL END + 44
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2525
SELECT 62 / ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 68 + ( + 7 )
----
75

query I rowsort
SELECT 3 - 77
----
-74

query I rowsort
SELECT 7 * + 39 AS col0
----
273

query I rowsort
SELECT + ( NULLIF ( - 42, - 50 ) ) + + 3 AS col2
----
-39

query I rowsort
SELECT DISTINCT 17 * + 99
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + MAX( ALL + 87 ) + 53 col0
----
140

skipif mysql # not compatible
query I rowsort label-2531
SELECT + MAX ( ALL + 87 ) + 53 col0
----
140

query I rowsort
SELECT + 64 + + 84 * - 60
----
-4976

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

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL SUM ( 96 )
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + 10 * + COALESCE ( 56, + ( + 88 ), - MIN( DISTINCT - 46 ) ) AS col0
----
560

skipif mysql # not compatible
query I rowsort label-2536
SELECT + 10 * + COALESCE ( 56, + ( + 88 ), - MIN ( DISTINCT - 46 ) ) AS col0
----
560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - COALESCE ( SUM( - 60 ), ( COUNT( + 26 ) ) * - COUNT( * ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2538
SELECT - COALESCE ( SUM ( - 60 ), ( COUNT ( + 26 ) ) * - COUNT ( * ) ) AS col0
----
60

query I rowsort
SELECT DISTINCT - 91 * 62
----
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL + 30 * NULLIF ( + 62, 98 * - ( + MIN( + 88 ) ) ) + 32
----
1892

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL + 30 * NULLIF ( + 62, 98 * - ( + MIN ( + 88 ) ) ) + 32
----
1892

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

query I rowsort
SELECT - 80 * 20 AS col2
----
-1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT ALL + COUNT( * ) * ( - 39 DIV 7 ) + 84 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + COUNT ( * ) * ( - 39 / 7 ) + 84 AS col0
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + 53 * 25 + COUNT( * )
----
1326

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + 53 * 25 + COUNT ( * )
----
1326

query I rowsort
SELECT ALL - 87 * 24 + 49
----
-2039

query I rowsort
SELECT COALESCE ( - 75, 7 ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT - 3 DIV + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT - 3 / + 13 AS col1
----
0

query I rowsort
SELECT 2 * 53 - - 31 AS col0
----
137

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT ALL - 29 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - 29 / 92
----
0

query I rowsort
SELECT - 32 + - 84 * 67 AS col0
----
-5660

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - COUNT( * ) * + COALESCE ( 81 * - 46, + 64 ) - 28 AS col2
----
3698

skipif mysql # not compatible
query I rowsort label-2553
SELECT - COUNT ( * ) * + COALESCE ( 81 * - 46, + 64 ) - 28 AS col2
----
3698

query I rowsort
SELECT + ( 3 ) * 84
----
252

query I rowsort
SELECT COALESCE ( 53, - 2 * + 63 + 23 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + COALESCE ( - COUNT( * ), + 21 * - 52 - + 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + COALESCE ( - COUNT ( * ), + 21 * - 52 - + 56 )
----
-1

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

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

query I rowsort
SELECT - 60 * 92
----
-5520

query I rowsort
SELECT ALL 72 * CASE - 14 WHEN 0 THEN 25 - + 59 WHEN 23 - - 5 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 78 + - 15
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2561
SELECT DISTINCT COALESCE ( CAST( - 72 AS SIGNED ), + 92, 17 + + 37 * COALESCE ( ( + 32 ) * ( NULLIF ( + 1, - ( + MIN( + 87 ) ) + AVG ( ALL CAST( NULL AS SIGNED ) ) ) * - 2 ), COALESCE ( 44, COUNT( * ), - 36 DIV + 71 ) ) ) * - 1 - - 5
----
77

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT COALESCE ( CAST ( - 72 AS INTEGER ), + 92, 17 + + 37 * COALESCE ( ( + 32 ) * ( NULLIF ( + 1, - ( + MIN ( + 87 ) ) + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) * - 2 ), COALESCE ( 44, COUNT ( * ), - 36 / + 71 ) ) ) * - 1 - - 5
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + CASE + 45 WHEN ( 85 ) THEN - 86 * COUNT( * ) - + 29 / 91 WHEN - 57 THEN NULL END + SUM( DISTINCT 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT + CASE + 45 WHEN ( 85 ) THEN - 86 * COUNT ( * ) - + 29 / 91 WHEN - 57 THEN NULL END + SUM ( DISTINCT 15 )
----
NULL

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

query I rowsort
SELECT ALL - 63 * - ( 61 ) AS col2
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + 38 * - NULLIF ( - NULLIF ( 65, - 19 ), COALESCE ( COUNT( * ), - 67 * - 65, + 95 * ( 73 ) ) ) col0
----
2470

skipif mysql # not compatible
query I rowsort label-2565
SELECT + 38 * - NULLIF ( - NULLIF ( 65, - 19 ), COALESCE ( COUNT ( * ), - 67 * - 65, + 95 * ( 73 ) ) ) col0
----
2470

query I rowsort
SELECT DISTINCT - 20
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2567
SELECT + 73 * CASE 9 * 52 WHEN COALESCE ( 31, - CASE - CASE - 18 WHEN + 88 / + 27 THEN - NULLIF ( 47, - 26 ) - 89 END WHEN + CASE - ( - COUNT( * ) ) WHEN + 61 + + CAST( NULL AS SIGNED ) THEN 96 WHEN + CAST( - 52 AS SIGNED ) * + 94 THEN NULL WHEN 57 THEN NULL ELSE + MIN( ALL + 29 ) END * + 97 THEN + 71 WHEN - ( COUNT( - 65 ) ) * 53 THEN 63 + + 34 END * - 38 + 35, - NULLIF ( + ( 61 ), 66 * 78 ) - + 92 ) THEN ( - 48 ) / - 1 END + - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 73 * CASE 9 * 52 WHEN COALESCE ( 31, - CASE - CASE - 18 WHEN + 88 / + 27 THEN - NULLIF ( 47, - 26 ) - 89 END WHEN + CASE - ( - COUNT ( * ) ) WHEN + 61 + + CAST ( NULL AS INTEGER ) THEN 96 WHEN + CAST ( - 52 AS INTEGER ) * + 94 THEN NULL WHEN 57 THEN NULL ELSE + MIN ( ALL + 29 ) END * + 97 THEN + 71 WHEN - ( COUNT ( - 65 ) ) * 53 THEN 63 + + 34 END * - 38 + 35, - NULLIF ( + ( 61 ), 66 * 78 ) - + 92 ) THEN ( - 48 ) / - 1 END + - 61 AS col1
----
NULL

query I rowsort
SELECT - + 92 * 66 AS col0
----
-6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2569
SELECT ALL - MAX( + ( 73 ) ) DIV 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - MAX ( + ( 73 ) ) / 64 AS col0
----
-1

query I rowsort
SELECT DISTINCT 34 col0
----
34

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

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

query I rowsort
SELECT DISTINCT 68 AS col2
----
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT ALL - COALESCE ( + 43, 89 * + 78 ) + - 91 DIV + 99
----
-43

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - COALESCE ( + 43, 89 * + 78 ) + - 91 / + 99
----
-43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT ALL 11 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL 11 / 96
----
0

query I rowsort
SELECT - 74 AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT - CASE 10 WHEN - MIN( DISTINCT + 70 ) THEN CAST( NULL AS SIGNED ) + - 92 WHEN COUNT( * ) - + 3 THEN + 61 + - 74 * 22 END - + ( COUNT( * ) + - 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT - CASE 10 WHEN - MIN ( DISTINCT + 70 ) THEN CAST ( NULL AS INTEGER ) + - 92 WHEN COUNT ( * ) - + 3 THEN + 61 + - 74 * 22 END - + ( COUNT ( * ) + - 22 ) AS col2
----
NULL

query I rowsort
SELECT - 13 col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT + 68 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT + 68 / + 83 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2581
SELECT + COUNT ( * ) - 70 * 46 AS col0
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL + COALESCE ( + 99, MAX( DISTINCT - 29 ) ) + 6 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + COALESCE ( + 99, MAX ( DISTINCT - 29 ) ) + 6 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL 63 + + COUNT( ALL + 27 )
----
64

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL 63 + + COUNT ( ALL + 27 )
----
64

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 81, 55, 18, - 51 + 99 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT ALL 90 DIV + + 16 + + 35
----
40

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL 90 / + + 16 + + 35
----
40

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT 6 * - CASE - 71 WHEN + 79 + + 50 THEN 10 WHEN 27 THEN NULL END * + COUNT( * ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT 6 * - CASE - 71 WHEN + 79 + + 50 THEN 10 WHEN 27 THEN NULL END * + COUNT ( * ) - 90
----
NULL

query I rowsort
SELECT + 38 * + 74
----
2812

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

query I rowsort
SELECT + 15 + - 68 + + 77 AS col1
----
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2594
SELECT COUNT( * ) * 82 + ( 16 ) DIV 77
----
82

skipif mysql # not compatible
query I rowsort label-2594
SELECT COUNT ( * ) * 82 + ( 16 ) / 77
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - SUM( DISTINCT - 34 ) - 7
----
27

skipif mysql # not compatible
query I rowsort label-2595
SELECT - SUM ( DISTINCT - 34 ) - 7
----
27

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

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

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

query I rowsort
SELECT DISTINCT - 16 * 22
----
-352

query I rowsort
SELECT ALL NULLIF ( - ( + 65 ), 99 ) * - 22
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL + COALESCE ( CAST( - 24 AS SIGNED ), + 35 * + 82, 26 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + COALESCE ( CAST ( - 24 AS INTEGER ), + 35 * + 82, 26 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT 84 * ( 28 ) AS col1
----
2352

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

skipif mysql # not compatible
query I rowsort label-2602
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT + 8 * + 98 + - MAX( DISTINCT + 62 )
----
722

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 8 * + 98 + - MAX ( DISTINCT + 62 )
----
722

query I rowsort
SELECT - NULLIF ( 50, 75 ) * + 23
----
-1150

query I rowsort
SELECT - + 7 * + 76 AS col2
----
-532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT - CAST( - 74 AS SIGNED ) * + 70 + 18
----
5198

skipif mysql # not compatible
query I rowsort label-2606
SELECT - CAST ( - 74 AS INTEGER ) * + 70 + 18
----
5198

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT - - SUM( DISTINCT 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - - SUM ( DISTINCT 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL - + 29 * + - 90 * MAX( DISTINCT 35 )
----
91350

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - + 29 * + - 90 * MAX ( DISTINCT 35 )
----
91350

query I rowsort
SELECT + 3 * 43
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL - COUNT( * ) + - MIN( - 77 ) + 55
----
131

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - COUNT ( * ) + - MIN ( - 77 ) + 55
----
131

query I rowsort
SELECT DISTINCT - 83 AS col2
----
-83

query I rowsort
SELECT 86 + ( 31 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL + - COALESCE ( 35, 32 * 12 ) + + 5 * + MAX( 24 + 19 ) AS col1
----
180

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + - COALESCE ( 35, 32 * 12 ) + + 5 * + MAX ( 24 + 19 ) AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL - CASE - COUNT( * ) WHEN COUNT( * ) + + 76 THEN 81 END * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - CASE - COUNT ( * ) WHEN COUNT ( * ) + + 76 THEN 81 END * 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT - 69 * - 61 * ( SUM( 4 ) ) AS col2
----
16836

skipif mysql # not compatible
query I rowsort label-2615
SELECT - 69 * - 61 * ( SUM ( 4 ) ) AS col2
----
16836

query I rowsort
SELECT 32 + + 43
----
75

query I rowsort
SELECT + 78 + - 96 + - 45
----
-63

query I rowsort
SELECT DISTINCT - - 87 * + 86 AS col0
----
7482

query I rowsort
SELECT ALL + - 25 + + 75
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT 65 + + ( 6 ) + + 26 DIV 47 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2620
SELECT 65 + + ( 6 ) + + 26 / 47 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT COUNT( * ) + - 62 col2
----
-61

skipif mysql # not compatible
query I rowsort label-2621
SELECT COUNT ( * ) + - 62 col2
----
-61

query I rowsort
SELECT CASE + ( - 7 ) WHEN 29 * 33 THEN + 93 END - - 88 AS col2
----
NULL

query I rowsort
SELECT - - NULLIF ( + 23, 4 * 2 ) col2
----
23

query I rowsort
SELECT ALL + ( 32 ) AS col1
----
32

query I rowsort
SELECT DISTINCT - + 83 + - NULLIF ( - 86, + 78 )
----
3

query II rowsort
SELECT ALL 17, 80 * 40 AS col2
----
17
3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT 37 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - COUNT( * ) + + 2 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - COUNT ( * ) + + 2 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT ALL + 47 DIV + 95 col0
----
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + 47 / + 95 col0
----
0

query I rowsort
SELECT 35 AS col0
----
35

query I rowsort
SELECT NULLIF ( + 40, + + 25 + - 48 ) + 47 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ( + COUNT( DISTINCT - - NULLIF ( + ( - 55 ), - 91 ) ) ) * - 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2632
SELECT ( + COUNT ( DISTINCT - - NULLIF ( + ( - 55 ), - 91 ) ) ) * - 26 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT DISTINCT ( + NULLIF ( + 74, + COUNT( * ) * CAST( 5 AS SIGNED ) ) ) * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT ( + NULLIF ( + 74, + COUNT ( * ) * CAST ( 5 AS INTEGER ) ) ) * COUNT ( * )
----
74

query I rowsort
SELECT ALL 28 AS col1
----
28

query II rowsort
SELECT + 84, + CASE WHEN NOT 14 IS NULL THEN 65 END AS col2
----
84
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT - CAST( 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - CAST ( 30 AS INTEGER )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2637
SELECT ALL - ( + 42 ) * 97 DIV + 7 + + 70 AS col2
----
-512

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - ( + 42 ) * 97 / + 7 + + 70 AS col2
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT COUNT( 79 ) * - + COUNT( * ) + + 47 * + 38 AS col2
----
1785

skipif mysql # not compatible
query I rowsort label-2638
SELECT COUNT ( 79 ) * - + COUNT ( * ) + + 47 * + 38 AS col2
----
1785

query II rowsort
SELECT DISTINCT - 24 AS col0, NULLIF ( - 85, - 79 ) AS col2
----
-24
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT COALESCE ( 52, 75 / 72 + 79 ) * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT COALESCE ( 52, 75 / 72 + 79 ) * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 98 AS col1
----
-98

query II rowsort
SELECT + 50 AS col0, - 5 + + 29 AS col2
----
50
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT COUNT( * ) * NULLIF ( + + ( - 88 ), 61 * 47 )
----
-88

skipif mysql # not compatible
query I rowsort label-2643
SELECT COUNT ( * ) * NULLIF ( + + ( - 88 ), 61 * 47 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + 8 AS col2, + ( - ( + 6 ) ) + COUNT( * ) * 61
----
8
55

skipif mysql # not compatible
query II rowsort label-2644
SELECT + 8 AS col2, + ( - ( + 6 ) ) + COUNT ( * ) * 61
----
8
55

query II rowsort
SELECT ALL - 23, - 11 AS col0
----
-23
-11

query I rowsort
SELECT ALL - 26 AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT 97 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-2647
SELECT 97 / 73
----
1

query I rowsort
SELECT CASE + 25 WHEN 8 THEN + 87 WHEN 58 THEN 84 + 90 ELSE NULL END * 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT COALESCE ( 19, - + 90 * + 84 ) DIV + 64 - - 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2649
SELECT COALESCE ( 19, - + 90 * + 84 ) / + 64 - - 83 AS col1
----
83

query I rowsort
SELECT + - 32 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL 43 + + COUNT( * ) + + 56 * + NULLIF ( + 86 - - COUNT( * ), 25 + + 8 * - CAST( NULL AS SIGNED ) )
----
4916

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL 43 + + COUNT ( * ) + + 56 * + NULLIF ( + 86 - - COUNT ( * ), 25 + + 8 * - CAST ( NULL AS INTEGER ) )
----
4916

query II rowsort
SELECT + 52 col2, 63 * 81 * 41 + 46
----
52
209269

query I rowsort
SELECT ALL + + 64 + + 24
----
88

query I rowsort
SELECT + 9 + CASE + 58 WHEN 17 THEN - 9 WHEN ( 91 ) * 53 THEN NULL END * 41 AS col0
----
NULL

query II rowsort
SELECT ALL - - 84, 81 AS col1
----
84
81

query I rowsort
SELECT - 75 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT ALL - 29 + - 78 + 51 + + 13 DIV + 88 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - 29 + - 78 + 51 + + 13 / + 88 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT + - 22 + + + COUNT( * ) * + - 95 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT + - 22 + + + COUNT ( * ) * + - 95 AS col2
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT CAST( - NULLIF ( - 47, + COUNT( * ) ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-2659
SELECT CAST ( - NULLIF ( - 47, + COUNT ( * ) ) AS INTEGER )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2660
SELECT 80 DIV - CAST( COUNT( * ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-2660
SELECT 80 / - CAST ( COUNT ( * ) AS INTEGER )
----
-80

query I rowsort
SELECT - 59 + 24 + 51 * - CASE - 76 - 35 WHEN + 41 - 28 THEN - 52 * - 73 WHEN + ( 90 ) THEN NULL WHEN 68 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 37 + 87
----
124

query I rowsort
SELECT - - 26
----
26

query I rowsort
SELECT DISTINCT + ( - 76 ) + 83 - + 43 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL - COUNT( ALL + 9 ) + + - 26 * + 10 AS col1
----
-261

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL - COUNT ( ALL + 9 ) + + - 26 * + 10 AS col1
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT DISTINCT - COUNT( * ) col2, 23 - + + 75
----
-1
-52

skipif mysql # not compatible
query II rowsort label-2666
SELECT DISTINCT - COUNT ( * ) col2, 23 - + + 75
----
-1
-52

query I rowsort
SELECT ALL 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT NULLIF ( - 99, ( - COUNT( * ) ) ) * - 76 AS col0
----
7524

skipif mysql # not compatible
query I rowsort label-2668
SELECT NULLIF ( - 99, ( - COUNT ( * ) ) ) * - 76 AS col0
----
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT 18 - + 1 - + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-2669
SELECT 18 - + 1 - + COUNT ( * )
----
16

query I rowsort
SELECT - 71 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2671
SELECT ALL + 43 * - + COUNT( * ), + CAST( NULL AS SIGNED ) + - 14 AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL + 43 * - + COUNT ( * ), + CAST ( NULL AS INTEGER ) + - 14 AS col2
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT 27 - - MIN( DISTINCT + 83 )
----
110

skipif mysql # not compatible
query I rowsort label-2672
SELECT 27 - - MIN ( DISTINCT + 83 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT 37 + - ( COUNT( * ) ) * + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2673
SELECT 37 + - ( COUNT ( * ) ) * + COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL COUNT( ALL 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL COUNT ( ALL 73 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT CASE + CAST( NULL AS SIGNED ) WHEN 41 + - 21 THEN 48 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN 41 + - 21 THEN 48 END - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2676
SELECT 43 DIV 90, 37 AS col1
----
0
37

skipif mysql # not compatible
query II rowsort label-2676
SELECT 43 / 90, 37 AS col1
----
0
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT DISTINCT + 98 DIV 23
----
4

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT + 98 / 23
----
4

query I rowsort
SELECT + 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT MAX( ALL 78 ) * - + NULLIF ( 72, 0 * - 68 ) * 71 + - 47 * ( + 47 + - MIN( - 60 ) ) AS col0
----
-403765

skipif mysql # not compatible
query I rowsort label-2679
SELECT MAX ( ALL 78 ) * - + NULLIF ( 72, 0 * - 68 ) * 71 + - 47 * ( + 47 + - MIN ( - 60 ) ) AS col0
----
-403765

query I rowsort
SELECT ALL 96 * + 57 * - 22
----
-120384

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2681
SELECT 62 + + - CASE + - COUNT( * ) WHEN - 8 THEN - 78 WHEN - 49 * MIN( DISTINCT COALESCE ( - ( CAST( NULL AS DECIMAL ) ), - 18, ( 20 ) ) / + 54 ) THEN NULL ELSE - 28 / CASE 82 WHEN 6 THEN CASE WHEN NOT 53 <> ( 95 * + 77 + + 57 ) THEN NULL ELSE COUNT( * ) END - 4 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT 62 + + - CASE + - COUNT ( * ) WHEN - 8 THEN - 78 WHEN - 49 * MIN ( DISTINCT COALESCE ( - ( CAST ( NULL AS REAL ) ), - 18, ( 20 ) ) / + 54 ) THEN NULL ELSE - 28 / CASE 82 WHEN 6 THEN CASE WHEN NOT 53 <> ( 95 * + 77 + + 57 ) THEN NULL ELSE COUNT ( * ) END - 4 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT - 19 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT - 19 / - 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT + ( + 10 ) * + - COALESCE ( + - 30, 47 + - 74 ) + + 72 DIV + ( - ( - 27 ) * 35 ) AS col2
----
300

skipif mysql # not compatible
query I rowsort label-2683
SELECT + ( + 10 ) * + - COALESCE ( + - 30, 47 + - 74 ) + + 72 / + ( - ( - 27 ) * 35 ) AS col2
----
300

query I rowsort
SELECT + 84 - 68
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL 89 * - COUNT( * ) * - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL 89 * - COUNT ( * ) * - COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + CASE - - 39 WHEN + COUNT( * ) / 4 + + 27 THEN NULL ELSE 92 END * 27 AS col1
----
2484

skipif mysql # not compatible
query I rowsort label-2686
SELECT + CASE - - 39 WHEN + COUNT ( * ) / 4 + + 27 THEN NULL ELSE 92 END * 27 AS col1
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT + 57 * + - MIN( DISTINCT - 22 ) + + 51
----
1305

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + 57 * + - MIN ( DISTINCT - 22 ) + + 51
----
1305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT ALL + 75 * - + 26 + COUNT( ALL 50 ) * CAST( 35 AS SIGNED ) + 7 AS col0
----
-1908

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL + 75 * - + 26 + COUNT ( ALL 50 ) * CAST ( 35 AS INTEGER ) + 7 AS col0
----
-1908

query I rowsort
SELECT ALL - 39 * + 95 + - 34 AS col2
----
-3739

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL + 24 * COUNT( ALL - 16 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + 24 * COUNT ( ALL - 16 ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT DISTINCT + CASE + + 54 WHEN - CAST( NULL AS SIGNED ) + + 93 * - 72 THEN - CAST( NULL AS SIGNED ) / 43 + - 90 ELSE NULL END * + SUM( + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + CASE + + 54 WHEN - CAST ( NULL AS INTEGER ) + + 93 * - 72 THEN - CAST ( NULL AS INTEGER ) / 43 + - 90 ELSE NULL END * + SUM ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT + - COUNT( DISTINCT - - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT + - COUNT ( DISTINCT - - 76 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL - + 99 * - 82 * 65 + - COUNT( * ) + + 75 * COUNT( * ) * + 33 AS col2
----
530144

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - + 99 * - 82 * 65 + - COUNT ( * ) + + 75 * COUNT ( * ) * + 33 AS col2
----
530144

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + SUM( DISTINCT 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2694
SELECT + SUM ( DISTINCT 29 ) AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2695
SELECT + COUNT( * ) * + - CASE COALESCE ( - 65, 54, + 58 ) WHEN ( AVG ( + 25 ) ) THEN - 24 END + - CAST( 15 AS DECIMAL ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT + COUNT ( * ) * + - CASE COALESCE ( - 65, 54, + 58 ) WHEN ( AVG ( + 25 ) ) THEN - 24 END + - CAST ( 15 AS REAL ) * 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT + SUM( - ( - ( + 61 ) ) ) + 79
----
140

skipif mysql # not compatible
query I rowsort label-2696
SELECT + SUM ( - ( - ( + 61 ) ) ) + 79
----
140

query I rowsort
SELECT + 76 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT ALL 17 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL 17 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT + 87 + + 10 + 98 + - COUNT( * ) - + 34 DIV - 38
----
194

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 87 + + 10 + 98 + - COUNT ( * ) - + 34 / - 38
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT ALL 57 DIV + 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL 57 / + 18 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL 61 - 55 * - MIN( - + CAST( 12 AS SIGNED ) ) * 76 AS col0
----
-50099

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL 61 - 55 * - MIN ( - + CAST ( 12 AS INTEGER ) ) * 76 AS col0
----
-50099

query I rowsort
SELECT DISTINCT - 15 AS col0
----
-15

query I rowsort
SELECT ALL - 48 * + 16 AS col1
----
-768

query I rowsort
SELECT DISTINCT + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - MAX( DISTINCT + + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2705
SELECT - MAX ( DISTINCT + + 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT - + 87 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - + 87 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2707
SELECT + 15 + + - 21 - 95 / + + CAST( NULL AS SIGNED ) * - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT + 15 + + - 21 - 95 / + + CAST ( NULL AS INTEGER ) * - 24 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT - 21 - - 66 + - CAST( - + 25 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2708
SELECT - 21 - - 66 + - CAST ( - + 25 AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT DISTINCT - 2 DIV - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT - 2 / - COUNT ( * )
----
2

query I rowsort
SELECT + 92 + 67 AS col0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT ALL - 84 DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - 84 / 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - 68 * COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-2712
SELECT - 68 * COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT ALL 74 DIV ( - + ( COUNT( * ) ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL 74 / ( - + ( COUNT ( * ) ) ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT COUNT( - - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT COUNT ( - - 76 ) AS col1
----
1

query I rowsort
SELECT ALL + 12 * - + 70 * 48 AS col2
----
-40320

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL COUNT( ALL - 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL COUNT ( ALL - 50 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2717
SELECT + COUNT( * ) * + + 33 DIV + COUNT( * ) col1, - 73 AS col0
----
33
-73

skipif mysql # not compatible
query II rowsort label-2717
SELECT + COUNT ( * ) * + + 33 / + COUNT ( * ) col1, - 73 AS col0
----
33
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2718
SELECT - CAST( NULL AS SIGNED ) + CAST( CAST( 8 AS SIGNED ) AS DECIMAL ) + COUNT( * ) * 61 * ( - ( - 25 ) + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT - CAST ( NULL AS INTEGER ) + CAST ( CAST ( 8 AS INTEGER ) AS REAL ) + COUNT ( * ) * 61 * ( - ( - 25 ) + 65 )
----
NULL

query I rowsort
SELECT ALL + 12 * + 28
----
336

query I rowsort
SELECT DISTINCT NULLIF ( 47, + 46 * + 99 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2721
SELECT 40, COUNT( * ) AS col2
----
40
1

skipif mysql # not compatible
query II rowsort label-2721
SELECT 40, COUNT ( * ) AS col2
----
40
1

query I rowsort
SELECT DISTINCT + 94 * - 8
----
-752

query I rowsort
SELECT ALL ( + 62 )
----
62

query I rowsort
SELECT - 78 * 61 AS col1
----
-4758

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2725
SELECT ALL 39 DIV + - 26 + + 11 + ( + 75 ) + - 91 * NULLIF ( 71 DIV 44, - ( - CASE + 69 WHEN CAST( ( CAST( + 49 AS SIGNED ) ) AS DECIMAL ) THEN 32 * 14 + - 71 END ) + ( + AVG ( - 71 ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL 39 / + - 26 + + 11 + ( + 75 ) + - 91 * NULLIF ( 71 / 44, - ( - CASE + 69 WHEN CAST ( ( CAST ( + 49 AS INTEGER ) ) AS REAL ) THEN 32 * 14 + - 71 END ) + ( + AVG ( - 71 ) ) )
----
-6

query I rowsort
SELECT + 6 AS col1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2727
SELECT CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT ALL - COUNT( * ) DIV 19 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - COUNT ( * ) / 19 + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL + + 39 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + + 26 + + - 31 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + + 26 + + - 31 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT DISTINCT 81 DIV + + COUNT( * ) + - + ( + MIN( DISTINCT + + COALESCE ( 58, - 10, + 22 ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT 81 / + + COUNT ( * ) + - + ( + MIN ( DISTINCT + + COALESCE ( 58, - 10, + 22 ) ) )
----
23

query I rowsort
SELECT - 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT - ( + + COUNT( * ) ) * - - 61 + - + 5 + + 42 + 5
----
-19

skipif mysql # not compatible
query I rowsort label-2733
SELECT - ( + + COUNT ( * ) ) * - - 61 + - + 5 + + 42 + 5
----
-19

query I rowsort
SELECT DISTINCT + ( ( ( - 10 ) ) ) * + - 84 + + 81
----
921

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - 35 * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2735
SELECT - 35 * - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT ALL 88 * + 2 * + CASE + 39 WHEN - ( + 39 ) + 56 * + 10 THEN + 50 / - 60 + - 13 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 93 * + 30 * - 78
----
-217620

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT - 62 - - 12 + + 38 DIV + - 57
----
-50

skipif mysql # not compatible
query I rowsort label-2738
SELECT - 62 - - 12 + + 38 / + - 57
----
-50

query II rowsort
SELECT ALL - 27 * + 83 - 46, 98 AS col2
----
-2287
98

query I rowsort
SELECT DISTINCT + 98 * + + 53 - + - 16 AS col1
----
5210

query I rowsort
SELECT DISTINCT - 10 * + 33
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2742
SELECT ALL + MAX( 54 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL + MAX ( 54 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT + 94 + + ( + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-2743
SELECT + 94 + + ( + COUNT ( * ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + MIN( DISTINCT 95 )
----
95

skipif mysql # not compatible
query I rowsort label-2744
SELECT + MIN ( DISTINCT 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL + CAST( 67 AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL + CAST ( 67 AS INTEGER ) AS col0
----
67

query I rowsort
SELECT DISTINCT + + 73
----
73

query I rowsort
SELECT ALL + 30 AS col2
----
30

query I rowsort
SELECT ALL + 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL + - 74 * + ( + COUNT( * ) ) - - ( + 47 )
----
-27

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + - 74 * + ( + COUNT ( * ) ) - - ( + 47 )
----
-27

query I rowsort
SELECT - 5 AS col1
----
-5

query I rowsort
SELECT + 21 * - 10 + - - 74 - - 10
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL NULLIF ( - - COUNT( * ), ( - ( - 52 ) ) * + ( 4 * - 53 ) ) * + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL NULLIF ( - - COUNT ( * ), ( - ( - 52 ) ) * + ( 4 * - 53 ) ) * + 35 AS col2
----
35

query I rowsort
SELECT ALL 67 col1
----
67

query I rowsort
SELECT - ( - 51 ) AS col1
----
51

query I rowsort
SELECT DISTINCT 73 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL 50 * 58 * + ( - COUNT( * ) ) AS col2
----
-2900

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL 50 * 58 * + ( - COUNT ( * ) ) AS col2
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT MAX( DISTINCT - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-2757
SELECT MAX ( DISTINCT - 54 )
----
-54

query I rowsort
SELECT DISTINCT 85 + - 50 * 29 AS col2
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2759
SELECT - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT + 8 DIV - - 58
----
0

skipif mysql # not compatible
query I rowsort label-2760
SELECT + 8 / - - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - COUNT( * ) * ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2761
SELECT - COUNT ( * ) * ( - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2762
SELECT ALL 20 + CAST( NULL AS SIGNED ) AS col2, + 32 DIV - + 81
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2762
SELECT ALL 20 + CAST ( NULL AS INTEGER ) AS col2, + 32 / - + 81
----
NULL
0

query I rowsort
SELECT + 26 - + 11 AS col0
----
15

query II rowsort
SELECT - 38 AS col1, - 74 AS col0
----
-38
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT CAST( - MAX( + 76 ) AS SIGNED ) + - - 29
----
-47

skipif mysql # not compatible
query I rowsort label-2765
SELECT CAST ( - MAX ( + 76 ) AS INTEGER ) + - - 29
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - 53 + - 2 + + + 35 + + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - 53 + - 2 + + + 35 + + COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT SUM( + 93 ) + + - 57 + + 19
----
55

skipif mysql # not compatible
query I rowsort label-2767
SELECT SUM ( + 93 ) + + - 57 + + 19
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT ALL 84 + - 65 * 35 DIV + + 34 col2
----
18

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL 84 + - 65 * 35 / + + 34 col2
----
18

query I rowsort
SELECT 81 + + + 68
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL - COUNT( + 57 ) + - 6 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - COUNT ( + 57 ) + - 6 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT 97 - - 40 + - 0 - - MIN( ALL + 48 ) * + 9 * + 61 * 22 AS col1
----
579881

skipif mysql # not compatible
query I rowsort label-2771
SELECT 97 - - 40 + - 0 - - MIN ( ALL + 48 ) * + 9 * + 61 * 22 AS col1
----
579881

query I rowsort
SELECT DISTINCT + 36 + 25
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL - 82 + COUNT( + 32 )
----
-81

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - 82 + COUNT ( + 32 )
----
-81

query II rowsort
SELECT 47 AS col2, + 23 + - 85 AS col2
----
47
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - MIN( DISTINCT 99 ) * ( 39 ) + - 5 + - - 71 + 10
----
-3785

skipif mysql # not compatible
query I rowsort label-2775
SELECT - MIN ( DISTINCT 99 ) * ( 39 ) + - 5 + - - 71 + 10
----
-3785

query II rowsort
SELECT ALL + + 91 + 91 AS col0, + 28
----
182
28

query I rowsort
SELECT ALL - 96 AS col0
----
-96

query I rowsort
SELECT 55 + - 41 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2779
SELECT ALL - COALESCE ( + NULLIF ( - COUNT( * ), - - 81 DIV - - 9 ), - - COUNT( * ) * - 99 + 88, + 62 DIV COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - COALESCE ( + NULLIF ( - COUNT ( * ), - - 81 / - - 9 ), - - COUNT ( * ) * - 99 + 88, + 62 / COUNT ( * ) ) AS col2
----
1

query II rowsort
SELECT 84 AS col1, 40 - - 48 AS col0
----
84
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT ALL - 72 - - 20 DIV - 90 + + + 58 * - COUNT( * ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL - 72 - - 20 / - 90 + + + 58 * - COUNT ( * ) AS col0
----
-130

query I rowsort
SELECT DISTINCT - 14 * - 44 AS col0
----
616

query I rowsort
SELECT DISTINCT - - 95 AS col2
----
95

query I rowsort
SELECT DISTINCT - + 43
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT - 59 DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - 59 / + 34
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2786
SELECT ALL - - 11 DIV + - 87 + - 20 DIV 37 DIV + + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - - 11 / + - 87 + - 20 / 37 / + + 26 AS col0
----
0

query I rowsort
SELECT - 36 * 8 * + 8
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT 1 * + COUNT( * ) * - ( - - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2788
SELECT 1 * + COUNT ( * ) * - ( - - 12 ) AS col0
----
-12

query I rowsort
SELECT ALL - - 79 AS col2
----
79

query I rowsort
SELECT + - 4
----
-4

query I rowsort
SELECT + CASE 35 WHEN + 52 * - 97 THEN NULL WHEN 87 THEN + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - 90 * - 6 * - 43 * + - 94 * 6 + - 67 + + COUNT( * ) + 93 * - 57 AS col1
----
13090713

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 90 * - 6 * - 43 * + - 94 * 6 + - 67 + + COUNT ( * ) + 93 * - 57 AS col1
----
13090713

onlyif mysql # aggregate syntax: 
query II rowsort label-2793
SELECT COUNT( * ), 88 * - 6 AS col0
----
1
-528

skipif mysql # not compatible
query II rowsort label-2793
SELECT COUNT ( * ), 88 * - 6 AS col0
----
1
-528

query I rowsort
SELECT ALL + 65 * - 91 + + 62 AS col2
----
-5853

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT COUNT( * ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT COUNT ( * ) * 66
----
66

query I rowsort
SELECT DISTINCT + + 69 * - 83 AS col0
----
-5727

query I rowsort
SELECT ALL - 17 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2798
SELECT ALL 33 + 64 AS col1, + ( - 4 ) * COUNT( * ) * - ( AVG ( 0 ) ) / + CAST( NULL AS DECIMAL ) col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-2798
SELECT ALL 33 + 64 AS col1, + ( - 4 ) * COUNT ( * ) * - ( AVG ( 0 ) ) / + CAST ( NULL AS REAL ) col0
----
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT 48 * 88 + + + CAST( NULL AS SIGNED ) * + ( + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT 48 * 88 + + + CAST ( NULL AS INTEGER ) * + ( + 15 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 12 + + - 94 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT CASE 50 WHEN - 78 THEN + 16 * + - MIN( ALL 51 ) END + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT CASE 50 WHEN - 78 THEN + 16 * + - MIN ( ALL 51 ) END + + 58 AS col2
----
NULL

query I rowsort
SELECT 91 + - 64 col0
----
27

query I rowsort
SELECT 62 + - 24 AS col2
----
38

query I rowsort
SELECT ALL + 49 + 23 + 57 AS col0
----
129

query I rowsort
SELECT ALL 66 + - + 70 + - 91
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT SUM( + 52 ) * - 96 * - + 1 * - 68
----
-339456

skipif mysql # not compatible
query I rowsort label-2806
SELECT SUM ( + 52 ) * - 96 * - + 1 * - 68
----
-339456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT DISTINCT 78 DIV - - 11 DIV - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT 78 / - - 11 / - + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT 96 + + 68 + - COUNT( * ) * 52
----
112

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT 96 + + 68 + - COUNT ( * ) * 52
----
112

query I rowsort
SELECT ALL 4 AS col1
----
4

query I rowsort
SELECT DISTINCT 72 + + 28 AS col1
----
100

query I rowsort
SELECT ALL 31 + + - ( 64 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT 16 + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2812
SELECT 16 + - COUNT ( * )
----
15

query I rowsort
SELECT 80 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2814
SELECT ALL CAST( 90 AS SIGNED ), - COUNT( * ) col0
----
90
-1

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL CAST ( 90 AS INTEGER ), - COUNT ( * ) col0
----
90
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2815
SELECT + 17 DIV + 78 * - COALESCE ( - 84, 1, - CAST( NULL AS SIGNED ) ) * - ( 23 ) + 6
----
6

skipif mysql # not compatible
query I rowsort label-2815
SELECT + 17 / + 78 * - COALESCE ( - 84, 1, - CAST ( NULL AS INTEGER ) ) * - ( 23 ) + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT + 87 * - - COUNT( + 46 )
----
87

skipif mysql # not compatible
query I rowsort label-2816
SELECT + 87 * - - COUNT ( + 46 )
----
87

query I rowsort
SELECT - 26 + + 57 AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT DISTINCT 66 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT 66 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL + - COUNT( * ) * 12 * - 8 * 19 - - + 39
----
1863

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + - COUNT ( * ) * 12 * - 8 * 19 - - + 39
----
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT ALL COUNT( * ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL COUNT ( * ) / + 93
----
0

query I rowsort
SELECT DISTINCT - ( + ( 24 ) ) AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2823
SELECT ALL - 30 * + - ( - + 56 ) * - - SUM( DISTINCT - 61 ) * + 70 - - 87 + COUNT( * ) DIV NULLIF ( - COUNT( * ), 21 )
----
7173686

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - 30 * + - ( - + 56 ) * - - SUM ( DISTINCT - 61 ) * + 70 - - 87 + COUNT ( * ) / NULLIF ( - COUNT ( * ), 21 )
----
7173686

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT 24 * 12 + 97 + + 77 DIV - + ( + 36 )
----
383

skipif mysql # not compatible
query I rowsort label-2824
SELECT 24 * 12 + 97 + + 77 / - + ( + 36 )
----
383

query I rowsort
SELECT DISTINCT - 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT ALL - - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 61 AS col1
----
61

query I rowsort
SELECT - + 11 * - - 75 + + 67 AS col2
----
-758

query I rowsort
SELECT + 84 col2
----
84

query I rowsort
SELECT + 33 * + - 80
----
-2640

query I rowsort
SELECT + 3 * + - NULLIF ( - 9, - 60 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT - 88 * - 23 - - COALESCE ( - - 90, - COUNT( * ) ) AS col0
----
2114

skipif mysql # not compatible
query I rowsort label-2832
SELECT - 88 * - 23 - - COALESCE ( - - 90, - COUNT ( * ) ) AS col0
----
2114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT + CAST( - + 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-2833
SELECT + CAST ( - + 49 AS INTEGER )
----
-49

query I rowsort
SELECT + - 49 col2
----
-49

query I rowsort
SELECT + 60 - + 6
----
54

query I rowsort
SELECT ALL - 25 * + ( + 23 ) * + - 50
----
28750

query I rowsort
SELECT ALL - - 0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2838
SELECT ALL 39 + ( + 48 ) AS col2, - 30 + - COUNT( * ), + 77 AS col1
----
87
-31
77

skipif mysql # not compatible
query III rowsort label-2838
SELECT ALL 39 + ( + 48 ) AS col2, - 30 + - COUNT ( * ), + 77 AS col1
----
87
-31
77

query I rowsort
SELECT DISTINCT - + 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT DISTINCT + 75 + 56 AS col2, + COUNT( * ) AS col2
----
131
1

skipif mysql # not compatible
query II rowsort label-2840
SELECT DISTINCT + 75 + 56 AS col2, + COUNT ( * ) AS col2
----
131
1

query I rowsort
SELECT DISTINCT - 98 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT 72 * MIN( DISTINCT + 20 ) AS col2
----
1440

skipif mysql # not compatible
query I rowsort label-2842
SELECT 72 * MIN ( DISTINCT + 20 ) AS col2
----
1440

query I rowsort
SELECT DISTINCT + 71 + + 55
----
126

query II rowsort
SELECT 13 AS col0, 99
----
13
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2845
SELECT 48 col2, + COUNT( * ) * CAST( NULL AS SIGNED )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2845
SELECT 48 col2, + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
48
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT ALL + 53 + + - ( + + 38 ) DIV + 41 - - - 27 - - - NULLIF ( - 99, 61 * - 99 + 18 DIV + 83 ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + 53 + + - ( + + 38 ) / + 41 - - - 27 - - - NULLIF ( - 99, 61 * - 99 + 18 / + 83 ) AS col0
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) * - AVG ( DISTINCT + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - AVG ( DISTINCT + 66 )
----
NULL

query I rowsort
SELECT - 79 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL - MAX( ALL 20 ) + - + ( - + COUNT( - - 46 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - MAX ( ALL 20 ) + - + ( - + COUNT ( - - 46 ) )
----
-19

query II rowsort
SELECT - 88 col0, + 64 AS col0
----
-88
64

query I rowsort
SELECT ALL + 54 + 75 AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT - CAST( + 19 AS SIGNED ) - + - COUNT( * ) * + 38
----
19

skipif mysql # not compatible
query I rowsort label-2852
SELECT - CAST ( + 19 AS INTEGER ) - + - COUNT ( * ) * + 38
----
19

query I rowsort
SELECT DISTINCT 93 AS col2
----
93

query I rowsort
SELECT ALL - 81 * + + 73 * - 72
----
425736

query I rowsort
SELECT - ( + 84 ) + 49 * - + 1 AS col1
----
-133

query I rowsort
SELECT ALL - 18 - + - 33 * + 30 AS col2
----
972

query I rowsort
SELECT - 2 AS col2
----
-2

query I rowsort
SELECT - NULLIF ( 3, + 38 ) + - - ( 31 ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + 19 * - - 20 * MAX( DISTINCT + - 58 ) col1
----
-22040

skipif mysql # not compatible
query I rowsort label-2859
SELECT + 19 * - - 20 * MAX ( DISTINCT + - 58 ) col1
----
-22040

query I rowsort
SELECT DISTINCT 58 AS col0
----
58

query I rowsort
SELECT ALL 10 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - 89 + + + ( SUM( ALL - + 49 ) ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 89 + + + ( SUM ( ALL - + 49 ) ) AS col2
----
-138

query I rowsort
SELECT + 15 + - 91 + - 8
----
-84

query I rowsort
SELECT ALL 54 * 86
----
4644

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT + 24 * - 75 * 65 * + NULLIF ( - 6, COUNT( * ) + 52 ) * - - 45 AS col0
----
31590000

skipif mysql # not compatible
query I rowsort label-2865
SELECT + 24 * - 75 * 65 * + NULLIF ( - 6, COUNT ( * ) + 52 ) * - - 45 AS col0
----
31590000

query I rowsort
SELECT - - NULLIF ( + 40, AVG ( DISTINCT - 31 ) )
----
40

query I rowsort
SELECT DISTINCT - 3 AS col0
----
-3

query I rowsort
SELECT DISTINCT + 90
----
90

query I rowsort
SELECT ALL + 64 * 6 AS col2
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT - + ( + CASE + 88 WHEN - 97 THEN 41 ELSE + 71 END ) + - CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2870
SELECT - + ( + CASE + 88 WHEN - 97 THEN 41 ELSE + 71 END ) + - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT + + 95 + + - 77 col0
----
18

query I rowsort
SELECT ALL + + 34 AS col1
----
34

query I rowsort
SELECT + 12 AS col0
----
12

query I rowsort
SELECT DISTINCT + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT CASE + AVG ( + 23 ) WHEN + 61 + - + 77 + + 71 * - + COUNT( + + ( + 19 ) ) / - 18 * - 82 THEN NULL ELSE 43 + 21 END AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2875
SELECT CASE + AVG ( + 23 ) WHEN + 61 + - + 77 + + 71 * - + COUNT ( + + ( + 19 ) ) / - 18 * - 82 THEN NULL ELSE 43 + 21 END AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT + ( + ( - 40 ) ) / - + 24 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT + ( + ( - 40 ) ) / - + 24 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + 31 + - + COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-2878
SELECT + 31 + - + COUNT ( * ) col0
----
30

query I rowsort
SELECT + + 31
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2880
SELECT ALL + 63 * - COUNT( + 29 ) + + 8 + + CAST( NULL AS SIGNED ) / + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + 63 * - COUNT ( + 29 ) + + 8 + + CAST ( NULL AS INTEGER ) / + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL - NULLIF ( - 84, - 57 * 96 ) * + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - NULLIF ( - 84, - 57 * 96 ) * + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2882
SELECT + COUNT( * ), COALESCE ( + - 96, - + 80 + + 44 + - - CAST( NULL AS SIGNED ) ) col1
----
1
-96

skipif mysql # not compatible
query II rowsort label-2882
SELECT + COUNT ( * ), COALESCE ( + - 96, - + 80 + + 44 + - - CAST ( NULL AS INTEGER ) ) col1
----
1
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL - 99 * + COUNT( * ) + - 13 * 69 col2
----
-996

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - 99 * + COUNT ( * ) + - 13 * 69 col2
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT + 84 * - - 98 + COUNT( * ) * + 3 AS col0
----
8235

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT + 84 * - - 98 + COUNT ( * ) * + 3 AS col0
----
8235

query I rowsort
SELECT ALL + + 50 AS col2
----
50

query I rowsort
SELECT + - 82 + 69 * + 29 AS col0
----
1919

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2887
SELECT - CAST( NULL AS DECIMAL ) AS col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2887
SELECT - CAST ( NULL AS REAL ) AS col2, 41
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - CASE - + 42 WHEN 49 / - + COALESCE ( - 70, + NULLIF ( MIN( ALL 4 ), + - 70 ), - NULLIF ( 8, 97 ) ) THEN COUNT( * ) / - 1 WHEN + 52 THEN NULL ELSE NULL END + NULLIF ( - 73, 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT - CASE - + 42 WHEN 49 / - + COALESCE ( - 70, + NULLIF ( MIN ( ALL 4 ), + - 70 ), - NULLIF ( 8, 97 ) ) THEN COUNT ( * ) / - 1 WHEN + 52 THEN NULL ELSE NULL END + NULLIF ( - 73, 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + CASE 21 WHEN 27 / - + 75 THEN COUNT( + + ( 89 ) ) ELSE - - COUNT( * ) + - 5 END AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2889
SELECT + CASE 21 WHEN 27 / - + 75 THEN COUNT ( + + ( 89 ) ) ELSE - - COUNT ( * ) + - 5 END AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT COALESCE ( - 49, + + 10 * 58 * + 42 * + 75 * + COUNT( DISTINCT 57 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-2890
SELECT COALESCE ( - 49, + + 10 * 58 * + 42 * + 75 * + COUNT ( DISTINCT 57 ) )
----
-49

onlyif mysql # aggregate syntax: 
query III rowsort label-2891
SELECT + 24 * COUNT( * ) + - - MIN( DISTINCT - 59 ), 46 AS col1, + 39 AS col2
----
-35
46
39

skipif mysql # not compatible
query III rowsort label-2891
SELECT + 24 * COUNT ( * ) + - - MIN ( DISTINCT - 59 ), 46 AS col1, + 39 AS col2
----
-35
46
39

query I rowsort
SELECT + 21 col0
----
21

query I rowsort
SELECT ALL + 26 AS col1
----
26

query I rowsort
SELECT 85 * 88 + 79 AS col0
----
7559

query I rowsort
SELECT NULLIF ( 73, - 63 / - AVG ( DISTINCT - + 15 ) + 96 / - + 19 + + - 49 )
----
73

query I rowsort
SELECT + CASE + 34 WHEN - 55 THEN NULL WHEN 99 + - 52 + + 35 / + - 66 THEN NULL ELSE 75 + - 59 * + 90 END + 3
----
-5232

query I rowsort
SELECT ALL + 46 AS col1
----
46

query I rowsort
SELECT - 55 + + + ( + - 53 ) + + + 12
----
-96

query I rowsort
SELECT ALL + 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT DISTINCT ( COUNT( * ) ) AS col2, + 7
----
1
7

skipif mysql # not compatible
query II rowsort label-2900
SELECT DISTINCT ( COUNT ( * ) ) AS col2, + 7
----
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2901
SELECT ALL ( - 31 ) AS col2, - 22 + - + ( + 44 ) + + 72 - + + 84 * + - CAST( NULL AS SIGNED ) AS col1
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-2901
SELECT ALL ( - 31 ) AS col2, - 22 + - + ( + 44 ) + + 72 - + + 84 * + - CAST ( NULL AS INTEGER ) AS col1
----
-31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL 98 * - NULLIF ( + MAX( + 65 ), + COUNT( * ) ) - - ( - + 46 ) AS col0
----
-6416

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL 98 * - NULLIF ( + MAX ( + 65 ), + COUNT ( * ) ) - - ( - + 46 ) AS col0
----
-6416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT ALL NULLIF ( - + 78, - CAST( - MAX( DISTINCT - 91 ) AS SIGNED ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL NULLIF ( - + 78, - CAST ( - MAX ( DISTINCT - 91 ) AS INTEGER ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT MIN( ALL + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-2904
SELECT MIN ( ALL + - 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT + CAST( - 79 AS SIGNED ) * - - 4
----
-316

skipif mysql # not compatible
query I rowsort label-2905
SELECT + CAST ( - 79 AS INTEGER ) * - - 4
----
-316

query I rowsort
SELECT - 2 + 1 * + 99 - - 48 AS col1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL + 23 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL + 23 / - 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT - 13 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT - 13 / - + 82
----
0

query I rowsort
SELECT - 19 * - - 12
----
-228

query I rowsort
SELECT - 78 + + 89 col1
----
11

query II rowsort
SELECT ALL ( 37 ) AS col2, CASE 57 WHEN 45 THEN + 18 * - + AVG ( 64 ) WHEN 60 THEN NULL END + + 33 * - 94 AS col2
----
37
NULL

query I rowsort
SELECT DISTINCT - 5 * - - 40
----
-200

query I rowsort
SELECT DISTINCT CASE + 90 WHEN + - 73 THEN + - ( 60 ) + - 66 WHEN + 30 THEN + ( 55 ) * + 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - ( + COUNT( * ) ) - - 87 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - ( + COUNT ( * ) ) - - 87 AS col1
----
86

query I rowsort
SELECT DISTINCT - ( - + 87 ) * 92 AS col0
----
8004

query I rowsort
SELECT DISTINCT + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT - 26 * ( - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT - 26 * ( - COUNT ( * ) )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT - ( - - ( - + 11 ) ) DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT - ( - - ( - + 11 ) ) / - 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT - + 99 + COUNT( * ) DIV - 87
----
-99

skipif mysql # not compatible
query I rowsort label-2919
SELECT - + 99 + COUNT ( * ) / - 87
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + - COUNT( * ) + + 53
----
52

skipif mysql # not compatible
query I rowsort label-2920
SELECT + - COUNT ( * ) + + 53
----
52

query I rowsort
SELECT 15 col0
----
15

query I rowsort
SELECT + 58 * - 56
----
-3248

query I rowsort
SELECT DISTINCT 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + SUM( + 38 ) * - 1 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2924
SELECT + SUM ( + 38 ) * - 1 AS col2
----
-38

query I rowsort
SELECT ALL 46 + + 9
----
55

query I rowsort
SELECT - + 56
----
-56

query I rowsort
SELECT ALL + COALESCE ( - + 7, 37 + + + 91 + + 3 )
----
-7

query I rowsort
SELECT - - 47 * + NULLIF ( 43, - 6 + + 31 )
----
2021

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + COUNT( * ) + - 82 + + - 71 + + 77
----
-75

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + COUNT ( * ) + - 82 + + - 71 + + 77
----
-75

query I rowsort
SELECT ( + 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2931
SELECT ALL + ( + COUNT( * ) ) DIV - COUNT( * ) + + - 47 - 0
----
-48

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + ( + COUNT ( * ) ) / - COUNT ( * ) + + - 47 - 0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2932
SELECT DISTINCT CASE + 64 WHEN + + 31 * 54 THEN 41 WHEN 73 - + 31 + 17 THEN NULL ELSE NULL END / + CASE - ( 98 ) WHEN CAST( 58 AS SIGNED ) THEN - COUNT( ALL CAST( NULL AS DECIMAL ) ) END + 86 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT CASE + 64 WHEN + + 31 * 54 THEN 41 WHEN 73 - + 31 + 17 THEN NULL ELSE NULL END / + CASE - ( 98 ) WHEN CAST ( 58 AS INTEGER ) THEN - COUNT ( ALL CAST ( NULL AS REAL ) ) END + 86 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 2 col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2934
SELECT ALL + CAST( NULL AS SIGNED ) / - 74 * - - 73 + 35 * + - ( - + 15 ) * - 0 * - MIN( ALL + 51 ) + SUM( DISTINCT - 24 + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL + CAST ( NULL AS INTEGER ) / - 74 * - - 73 + 35 * + - ( - + 15 ) * - 0 * - MIN ( ALL + 51 ) + SUM ( DISTINCT - 24 + 23 )
----
NULL

query I rowsort
SELECT ALL + ( - 27 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT - 30 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL 57 + + 99 - + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL 57 + + 99 - + COUNT ( * )
----
155

query I rowsort
SELECT ALL 80 + + + 88 + 76 AS col1
----
244

query I rowsort
SELECT + 63 col0
----
63

query I rowsort
SELECT 87 col0
----
87

query I rowsort
SELECT DISTINCT 56 + - 25
----
31

query I rowsort
SELECT 1 * + - NULLIF ( + 48, 36 ) AS col2
----
-48

query I rowsort
SELECT DISTINCT + 8 * - 16 AS col1
----
-128

query I rowsort
SELECT ALL 85 + 45 * + 22 + 73
----
1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2945
SELECT DISTINCT 9 DIV NULLIF ( - COUNT( * ), 28 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT 9 / NULLIF ( - COUNT ( * ), 28 ) AS col0
----
-9

query I rowsort
SELECT ALL - 90 * 12
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT DISTINCT + 36 - + NULLIF ( + - 95, 7 ) - + 70 DIV - - 37 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + 36 - + NULLIF ( + - 95, 7 ) - + 70 / - - 37 AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2948
SELECT CAST( NULL AS SIGNED ) * - ( + 59 ) col1, - 92
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-2948
SELECT CAST ( NULL AS INTEGER ) * - ( + 59 ) col1, - 92
----
NULL
-92

query II rowsort
SELECT ALL - 36, - ( + + 66 ) col1
----
-36
-66

query I rowsort
SELECT + 86 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT CAST( + + 92 AS SIGNED ) * 87 AS col0
----
8004

skipif mysql # not compatible
query I rowsort label-2951
SELECT CAST ( + + 92 AS INTEGER ) * 87 AS col0
----
8004

query I rowsort
SELECT 25 * + + 91 AS col1
----
2275

query I rowsort
SELECT 81 col2
----
81

query II rowsort
SELECT 16 AS col1, + 17 AS col1
----
16
17

query I rowsort
SELECT DISTINCT - 18 * + 17 AS col2
----
-306

query I rowsort
SELECT DISTINCT 13 * 82 col0
----
1066

query I rowsort
SELECT ALL 6 AS col1
----
6

query I rowsort
SELECT 15 * - 28
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL 48 * 58 * + CASE + + 2 WHEN 39 * + 72 * + 28 + 91 THEN + NULLIF ( - - 97, 48 / COUNT( * ) ) END * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL 48 * 58 * + CASE + + 2 WHEN 39 * + 72 * + 28 + 91 THEN + NULLIF ( - - 97, 48 / COUNT ( * ) ) END * + 22
----
NULL

query II rowsort
SELECT DISTINCT 59 AS col1, - 58 col0
----
59
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2961
SELECT DISTINCT 65 * + 0 DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT 65 * + 0 / - - 73
----
0

query I rowsort
SELECT ALL 79 col2
----
79

query I rowsort
SELECT 45 * 42
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT 76 DIV 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2964
SELECT 76 / 25 AS col1
----
3

query I rowsort
SELECT DISTINCT - 31 + - 16 AS col0
----
-47

query I rowsort
SELECT - ( - - 87 ) + + ( 1 ) col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - MAX( DISTINCT - - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2967
SELECT - MAX ( DISTINCT - - 4 )
----
-4

query I rowsort
SELECT 24 + + 15 - + + 79
----
-40

query I rowsort
SELECT + 69 - - - 42 * + + 97 AS col2
----
-4005

query I rowsort
SELECT ALL - 81 * + 92 AS col1
----
-7452

query I rowsort
SELECT DISTINCT ( - + 18 ) + + 47
----
29

query I rowsort
SELECT - + 1
----
-1

query I rowsort
SELECT 17 + + + 94 - + 67 * 53 AS col2
----
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - 36 * MIN( ALL - - 81 ) * + 13 - - - COUNT( DISTINCT 31 ) AS col1
----
-37909

skipif mysql # not compatible
query I rowsort label-2974
SELECT - 36 * MIN ( ALL - - 81 ) * + 13 - - - COUNT ( DISTINCT 31 ) AS col1
----
-37909

query II rowsort
SELECT ALL - + 60 * ( 34 ) AS col2, 54
----
-2040
54

query I rowsort
SELECT 93 + + 63
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT ALL + 46 * - + 14 DIV 14 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + 46 * - + 14 / 14 AS col0
----
-46

query II rowsort
SELECT 35, - NULLIF ( + 77, 3 * + - 69 * + 2 ) AS col1
----
35
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT 96 DIV + 63
----
1

skipif mysql # not compatible
query I rowsort label-2979
SELECT 96 / + 63
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2980
SELECT - 63 + 11 DIV + MIN( DISTINCT 76 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 63 + 11 / + MIN ( DISTINCT 76 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + MAX( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2981
SELECT + MAX ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT - SUM( DISTINCT + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-2982
SELECT - SUM ( DISTINCT + 68 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT ( 79 ) DIV - 72 + - + 64 + + 57
----
-8

skipif mysql # not compatible
query I rowsort label-2983
SELECT ( 79 ) / - 72 + - + 64 + + 57
----
-8

query II rowsort
SELECT ALL - 96 + + ( - - 67 ) + - + 16 * - 4 col1, + ( + 61 ) + + - ( 73 ) * - 79 * ( + 92 ) AS col1
----
35
530625

query I rowsort
SELECT + + 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 1 * - + SUM( DISTINCT + 39 ) + 99 + - 80
----
-20

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 1 * - + SUM ( DISTINCT + 39 ) + 99 + - 80
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - ( COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT 35 col1
----
35

query I rowsort
SELECT ALL - COALESCE ( + 93, 23, + 82, - 20 )
----
-93

query I rowsort
SELECT ALL - 67 - 82
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL COUNT( * ) - + 24 * - 48 - 72 + + 31 * 74
----
3375

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL COUNT ( * ) - + 24 * - 48 - 72 + + 31 * 74
----
3375

query II rowsort
SELECT ALL - ( - 58 ) AS col1, 84 + + 41 + - 79
----
58
46

query II rowsort
SELECT 0 + 88 + 80 + - + 78 AS col2, 63 AS col0
----
90
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL - 31 * - NULLIF ( + COUNT( * ), + COUNT( * ) / + COUNT( * ) ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - 31 * - NULLIF ( + COUNT ( * ), + COUNT ( * ) / + COUNT ( * ) ) * + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2995
SELECT 71 * + CAST( 70 AS SIGNED ) DIV 2 AS col1
----
2485

skipif mysql # not compatible
query I rowsort label-2995
SELECT 71 * + CAST ( 70 AS INTEGER ) / 2 AS col1
----
2485

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - 22 * - NULLIF ( - MAX( 92 ), ( - 31 ) ) * + COALESCE ( + 34, 41 )
----
-68816

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - 22 * - NULLIF ( - MAX ( 92 ), ( - 31 ) ) * + COALESCE ( + 34, 41 )
----
-68816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2997
SELECT 72 AS col2, 59 * + COUNT( * ) DIV + MIN( ALL - 89 )
----
72
0

skipif mysql # not compatible
query II rowsort label-2997
SELECT 72 AS col2, 59 * + COUNT ( * ) / + MIN ( ALL - 89 )
----
72
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2998
SELECT ALL - 51, SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) + + 12 AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-2998
SELECT ALL - 51, SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + + 12 AS col0
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT COUNT( * ) * - 70 col0
----
-70

skipif mysql # not compatible
query I rowsort label-2999
SELECT COUNT ( * ) * - 70 col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT COUNT( * ) * - + CAST( COUNT( * ) AS SIGNED ) / + MAX( 13 ) - 33 * - 7 * NULLIF ( CAST( NULL AS SIGNED ), + 99 * 91 ) + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT COUNT ( * ) * - + CAST ( COUNT ( * ) AS INTEGER ) / + MAX ( 13 ) - 33 * - 7 * NULLIF ( CAST ( NULL AS INTEGER ), + 99 * 91 ) + 10
----
NULL

query I rowsort
SELECT ALL - 70 AS col1
----
-70

query I rowsort
SELECT COALESCE ( 11, + - 50 ) + - 41
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL - NULLIF ( - 6, - 93 * 94 * + COALESCE ( ( - 68 ), COUNT( * ) + 7 ) )
----
6

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - NULLIF ( - 6, - 93 * 94 * + COALESCE ( ( - 68 ), COUNT ( * ) + 7 ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3004
SELECT COUNT( * ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-3004
SELECT COUNT ( * ) / - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL CASE - 78 WHEN 7 * - - 0 THEN NULL WHEN ( 68 ) THEN - ( SUM( ALL + 42 ) ) ELSE NULL END / - + 45 - ( COUNT( * ) ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL CASE - 78 WHEN 7 * - - 0 THEN NULL WHEN ( 68 ) THEN - ( SUM ( ALL + 42 ) ) ELSE NULL END / - + 45 - ( COUNT ( * ) ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT COUNT( * ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-3006
SELECT COUNT ( * ) + + 8
----
9

query II rowsort
SELECT DISTINCT - 57 AS col2, 16 AS col2
----
-57
16

query II rowsort
SELECT ALL 6 AS col0, 68 * - + 14
----
6
-952

query I rowsort
SELECT 60 * 18 + - + 26 * + - 62 * + 76 AS col2
----
123592

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT 70 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3010
SELECT 70 / - 39
----
-1

query I rowsort
SELECT - 18 + - + 22 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL + CASE + - COUNT( * ) WHEN + 59 THEN NULL ELSE - - 41 * - + 95 END + + 21 AS col1
----
-3874

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + CASE + - COUNT ( * ) WHEN + 59 THEN NULL ELSE - - 41 * - + 95 END + + 21 AS col1
----
-3874

query I rowsort
SELECT - 61 * 99
----
-6039

query I rowsort
SELECT 60 + + 87
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - NULLIF ( - MAX( ALL + 91 ), - - 57 * - + 49 + - CASE + 68 WHEN 57 THEN 46 * 24 * + ( 99 ) END ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3015
SELECT - NULLIF ( - MAX ( ALL + 91 ), - - 57 * - + 49 + - CASE + 68 WHEN 57 THEN 46 * 24 * + ( 99 ) END ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT - 41 AS col0, 47 * + - 6 + + 30 + ( - MIN( DISTINCT + - 24 ) ) + 48 + 59
----
-41
-121

skipif mysql # not compatible
query II rowsort label-3016
SELECT - 41 AS col0, 47 * + - 6 + + 30 + ( - MIN ( DISTINCT + - 24 ) ) + 48 + 59
----
-41
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT DISTINCT 10 * - 51 / + CAST( NULL AS SIGNED ) * - - ( - 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT 10 * - 51 / + CAST ( NULL AS INTEGER ) * - - ( - 56 ) AS col2
----
NULL

query I rowsort
SELECT - + ( 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT ALL - 52 * + CASE 70 WHEN + 11 * 15 * 99 - + 29 THEN 11 WHEN - 85 THEN + CAST( 72 AS SIGNED ) + - 29 ELSE NULL END * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - 52 * + CASE 70 WHEN + 11 * 15 * 99 - + 29 THEN 11 WHEN - 85 THEN + CAST ( 72 AS INTEGER ) + - 29 ELSE NULL END * - 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3020
SELECT 39 * - + NULLIF ( + 49, - CAST( COUNT( * ) AS SIGNED ) / + 87 * 66 * - 79 * + COUNT( * ) ) AS col2, + 49 * + + 45 * 43
----
-1911
94815

skipif mysql # not compatible
query II rowsort label-3020
SELECT 39 * - + NULLIF ( + 49, - CAST ( COUNT ( * ) AS INTEGER ) / + 87 * 66 * - 79 * + COUNT ( * ) ) AS col2, + 49 * + + 45 * 43
----
-1911
94815

query I rowsort
SELECT - ( 86 )
----
-86

query I rowsort
SELECT DISTINCT - 88 AS col2
----
-88

query I rowsort
SELECT ( + - 65 ) AS col0
----
-65

query I rowsort
SELECT ALL - 0 + - 9 * 39
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + MIN( ALL - - ( + 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-3025
SELECT + MIN ( ALL - - ( + 56 ) )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT + + 20 - - 64 - + 76 DIV - 75
----
85

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + 20 - - 64 - + 76 / - 75
----
85

query I rowsort
SELECT - + ( 30 ) * - 86 AS col1
----
2580

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT ALL + 9 DIV + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + 9 / + 31 AS col1
----
0

query I rowsort
SELECT - - 18
----
18

query I rowsort
SELECT - ( 34 ) col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3031
SELECT ALL + CAST( + 24 AS SIGNED ) - ( + 15 ) AS col1, + COUNT( ALL CAST( 94 AS SIGNED ) )
----
9
1

skipif mysql # not compatible
query II rowsort label-3031
SELECT ALL + CAST ( + 24 AS INTEGER ) - ( + 15 ) AS col1, + COUNT ( ALL CAST ( 94 AS INTEGER ) )
----
9
1

query I rowsort
SELECT DISTINCT + 13
----
13

query I rowsort
SELECT ALL - 61 * + - 82 - 54 + + 93 * + 13 * - 20 col2
----
-19232

query I rowsort
SELECT NULLIF ( 38, - - 6 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT + COUNT( * ) * - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + COUNT ( * ) * - 57 AS col0
----
-57

query I rowsort
SELECT DISTINCT + NULLIF ( - + 98, - - 24 ) AS col1
----
-98

query I rowsort
SELECT ALL + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT - 97 * ( + COUNT( DISTINCT + 29 ) ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-3038
SELECT - 97 * ( + COUNT ( DISTINCT + 29 ) ) col2
----
-97

query I rowsort
SELECT DISTINCT + 58
----
58

query I rowsort
SELECT + 96 + - + ( 33 )
----
63

query I rowsort
SELECT - 66 * - - ( + - 95 )
----
6270

onlyif mysql # aggregate syntax: 
query II rowsort label-3042
SELECT ALL + SUM( ALL + 31 ) AS col0, 63 AS col1
----
31
63

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL + SUM ( ALL + 31 ) AS col0, 63 AS col1
----
31
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT COALESCE ( + - 28, + - 38 + 60 + - + 71 + - ( + CAST( - 91 AS SIGNED ) ), + 55 )
----
-28

skipif mysql # not compatible
query I rowsort label-3043
SELECT COALESCE ( + - 28, + - 38 + 60 + - + 71 + - ( + CAST ( - 91 AS INTEGER ) ), + 55 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3044
SELECT ALL + 1 * - NULLIF ( COUNT( * ), 85 ) * + - 92 * + 71 + - 42 col1, - 60 col2
----
6490
-60

skipif mysql # not compatible
query II rowsort label-3044
SELECT ALL + 1 * - NULLIF ( COUNT ( * ), 85 ) * + - 92 * + 71 + - 42 col1, - 60 col2
----
6490
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT ALL COALESCE ( + 1, - 82 * + + ( + 41 ) + - COUNT( * ) - - 90, + COALESCE ( - + SUM( ALL - CASE + - 98 WHEN - 74 THEN NULL ELSE 30 * + 8 END ), + 38 * + NULLIF ( AVG ( DISTINCT 80 ) DIV NULLIF ( - 9, + 30 + AVG ( 34 ) * + ( 31 DIV - 12 + 32 * 77 ) ), 92 ) ) - 34, - 60 ) * - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL COALESCE ( + 1, - 82 * + + ( + 41 ) + - COUNT ( * ) - - 90, + COALESCE ( - + SUM ( ALL - CASE + - 98 WHEN - 74 THEN NULL ELSE 30 * + 8 END ), + 38 * + NULLIF ( AVG ( DISTINCT 80 ) / NULLIF ( - 9, + 30 + AVG ( 34 ) * + ( 31 / - 12 + 32 * 77 ) ), 92 ) ) - 34, - 60 ) * - 68 AS col2
----
-68

query I rowsort
SELECT DISTINCT + 93 AS col1
----
93

query I rowsort
SELECT ALL - 24 * - 12 * 9 + - 22 AS col0
----
2570

query I rowsort
SELECT 92 * - - 11 - - 59 - - - 57 * 25 * + 89 AS col1
----
-125754

query I rowsort
SELECT - 55 - - 17 col2
----
-38

query I rowsort
SELECT + + 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL + + COUNT( * ) * + 26 * + + 68 + + - 57 - - 52 * - 39 AS col0
----
-317

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + + COUNT ( * ) * + 26 * + + 68 + + - 57 - - 52 * - 39 AS col0
----
-317

query I rowsort
SELECT NULLIF ( + 83, - 39 / - 95 * - 29 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL + COUNT( * ) * 84 + - 92 col0
----
-8

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + COUNT ( * ) * 84 + - 92 col0
----
-8

query II rowsort
SELECT ALL 21 + - + 70 * 25, - 72 AS col0
----
-1729
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + - SUM( + 96 ) * - NULLIF ( + 49, + 59 )
----
4704

skipif mysql # not compatible
query I rowsort label-3055
SELECT + - SUM ( + 96 ) * - NULLIF ( + 49, + 59 )
----
4704

query I rowsort
SELECT DISTINCT + 82 AS col1
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-3057
SELECT ALL + ( - 24 ) AS col1, ( + 63 ) DIV + + 57 - 56
----
-24
-55

skipif mysql # not compatible
query II rowsort label-3057
SELECT ALL + ( - 24 ) AS col1, ( + 63 ) / + + 57 - 56
----
-24
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT DISTINCT + CAST( - CAST( + 35 AS SIGNED ) AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + CAST ( - CAST ( + 35 AS INTEGER ) AS INTEGER ) AS col2
----
-35

query I rowsort
SELECT DISTINCT 83 + + ( 40 ) * - 10 + 23 * - 25 * + 85 * + 0
----
-317

query I rowsort
SELECT ALL + 29 - - + 53
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - SUM( ALL + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3061
SELECT - SUM ( ALL + 27 ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT CASE + + 25 WHEN + + 67 / CAST( NULL AS SIGNED ) THEN + - CAST( + + NULLIF ( + + CAST( NULL AS SIGNED ), - + 13 - 95 ) AS SIGNED ) WHEN 59 * - 82 + - 76 - COALESCE ( - 6, + 17 + + 71 * + COALESCE ( - 67 * + 53, 35 * - 65 + - 82 * 18 ), + 10 / - ( - 35 ) - - COUNT( DISTINCT 91 + 39 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT CASE + + 25 WHEN + + 67 / CAST ( NULL AS INTEGER ) THEN + - CAST ( + + NULLIF ( + + CAST ( NULL AS INTEGER ), - + 13 - 95 ) AS INTEGER ) WHEN 59 * - 82 + - 76 - COALESCE ( - 6, + 17 + + 71 * + COALESCE ( - 67 * + 53, 35 * - 65 + - 82 * 18 ), + 10 / - ( - 35 ) - - COUNT ( DISTINCT 91 + 39 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT - - 23
----
23

query I rowsort
SELECT - - 54 AS col0
----
54

query I rowsort
SELECT ALL + 80 * 63
----
5040

query I rowsort
SELECT ALL 67 - + - 56 + + 12
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT + COALESCE ( 77, - 62 DIV + 83 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3067
SELECT + COALESCE ( 77, - 62 / + 83 ) AS col0
----
77

query I rowsort
SELECT + 11 + - 3
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3069
SELECT ALL ( ( + 27 ) ) - - ( 62 ), CASE - CASE - - ( - - 61 ) WHEN - ( + - 22 ) THEN NULL WHEN 12 THEN + 87 / 8 WHEN ( 69 ) THEN NULL ELSE NULL END WHEN - 95 THEN + ( COUNT( * ) ) WHEN 53 + + 1 THEN NULL END AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3069
SELECT ALL ( ( + 27 ) ) - - ( 62 ), CASE - CASE - - ( - - 61 ) WHEN - ( + - 22 ) THEN NULL WHEN 12 THEN + 87 / 8 WHEN ( 69 ) THEN NULL ELSE NULL END WHEN - 95 THEN + ( COUNT ( * ) ) WHEN 53 + + 1 THEN NULL END AS col0
----
89
NULL

query I rowsort
SELECT + COALESCE ( 1, - 67 * - + 89 * + - ( - 78 ) + - 16 ) * + 57 * 73
----
4161

query I rowsort
SELECT ALL 39 * 34 AS col2
----
1326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT ALL CASE - 38 WHEN + + CASE + 34 WHEN + - COUNT( * ) THEN NULL ELSE - 93 * + + 75 / - 75 - - 27 * - 77 - + 49 + + CAST( NULL AS SIGNED ) END THEN + 76 * + 98 + + 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL CASE - 38 WHEN + + CASE + 34 WHEN + - COUNT ( * ) THEN NULL ELSE - 93 * + + 75 / - 75 - - 27 * - 77 - + 49 + + CAST ( NULL AS INTEGER ) END THEN + 76 * + 98 + + 40 ELSE NULL END
----
NULL

query I rowsort
SELECT + 9 + - 94 AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT - COALESCE ( - + 20, + 63 DIV + 18 )
----
20

skipif mysql # not compatible
query I rowsort label-3074
SELECT - COALESCE ( - + 20, + 63 / + 18 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL MIN( ALL 84 ) col0
----
84

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL MIN ( ALL 84 ) col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT + ( + NULLIF ( 3, - 10 ) ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT + ( + NULLIF ( 3, - 10 ) ) / 96
----
0

query I rowsort
SELECT - 3 * 14
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT CAST( 38 AS SIGNED ) col1
----
38

skipif mysql # not compatible
query I rowsort label-3078
SELECT CAST ( 38 AS INTEGER ) col1
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-3079
SELECT ALL + 61 AS col0, 28 DIV 93 AS col2
----
61
0

skipif mysql # not compatible
query II rowsort label-3079
SELECT ALL + 61 AS col0, 28 / 93 AS col2
----
61
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT CAST( + 52 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3080
SELECT CAST ( + 52 AS INTEGER ) AS col0
----
52

query II rowsort
SELECT ALL + 35 AS col1, - ( - + 21 )
----
35
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + 67 * - CASE + 1 WHEN + - NULLIF ( + + COUNT( * ), + 48 ) THEN NULL WHEN + MIN( - 23 ) * - 61 + - MIN( - 92 ) THEN - + COUNT( - 60 ) WHEN 14 - - 80 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT + 67 * - CASE + 1 WHEN + - NULLIF ( + + COUNT ( * ), + 48 ) THEN NULL WHEN + MIN ( - 23 ) * - 61 + - MIN ( - 92 ) THEN - + COUNT ( - 60 ) WHEN 14 - - 80 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT DISTINCT COUNT( ALL - + 56 ) DIV - 28 * - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT COUNT ( ALL - + 56 ) / - 28 * - 97 AS col2
----
0

query I rowsort
SELECT + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - 8 / - 98 + - + CASE + - ( + + 74 ) WHEN + 98 / - 74 THEN NULL WHEN 9 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - 8 / - 98 + - + CASE + - ( + + 74 ) WHEN + 98 / - 74 THEN NULL WHEN 9 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3086
SELECT DISTINCT - 30 DIV - 20 + 68 AS col0, CAST( NULL AS DECIMAL ) * 82
----
69
NULL

skipif mysql # not compatible
query II rowsort label-3086
SELECT DISTINCT - 30 / - 20 + 68 AS col0, CAST ( NULL AS REAL ) * 82
----
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 13 * + NULLIF ( - 86, 79 ) * - 46 AS col0
----
-51428

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT ALL - 80 DIV + 94 + 70 + + 10 + + 46 + 5 col1
----
131

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - 80 / + 94 + 70 + + 10 + + 46 + 5 col1
----
131

query I rowsort
SELECT ALL + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT + MAX( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + MAX ( DISTINCT + 39 )
----
39

query I rowsort
SELECT 97 * 18 + + 19 + - 48
----
1717

query I rowsort
SELECT ( + 0 )
----
0

query I rowsort
SELECT - 52 + 17 * + - 46 AS col0
----
-834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT ALL - NULLIF ( 9, + 53 * 69 + + CAST( ( + 62 ) AS SIGNED ) ) * + 99 * COUNT( * ) - 80 + COUNT( * ) AS col0
----
-970

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL - NULLIF ( 9, + 53 * 69 + + CAST ( ( + 62 ) AS INTEGER ) ) * + 99 * COUNT ( * ) - 80 + COUNT ( * ) AS col0
----
-970

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3096
SELECT ALL + + 49, CAST( - 67 AS SIGNED ) AS col2
----
49
-67

skipif mysql # not compatible
query II rowsort label-3096
SELECT ALL + + 49, CAST ( - 67 AS INTEGER ) AS col2
----
49
-67

query I rowsort
SELECT - - NULLIF ( ( - 86 ), - 48 ) + 2 * + 9 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL CASE 76 WHEN MAX( ALL - 84 ) THEN NULL WHEN 67 + + + 27 THEN NULL WHEN + 69 THEN - + COUNT( * ) / - - 75 + + - 6 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL CASE 76 WHEN MAX ( ALL - 84 ) THEN NULL WHEN 67 + + + 27 THEN NULL WHEN + 69 THEN - + COUNT ( * ) / - - 75 + + - 6 END col1
----
NULL

query I rowsort
SELECT ALL - - 53 - ( + 35 ) + - CASE + 1 WHEN - 27 THEN ( - 28 ) * + 55 * + 59 + 41 + 10 ELSE + ( 93 ) END + + 29 AS col2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3100
SELECT - - 2, + CAST( NULL AS DECIMAL ) * + 79 + + 90 * - + 94 * + 63 AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3100
SELECT - - 2, + CAST ( NULL AS REAL ) * + 79 + + 90 * - + 94 * + 63 AS col2
----
2
NULL

query I rowsort
SELECT + 16 + 14 * + + 62
----
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL + CAST( ( + ( - + 36 ) ) AS SIGNED ) - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + CAST ( ( + ( - + 36 ) ) AS INTEGER ) - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT - 55 * + MAX( DISTINCT + 89 ) * - - 3 + 71 AS col0
----
-14614

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 55 * + MAX ( DISTINCT + 89 ) * - - 3 + 71 AS col0
----
-14614

query I rowsort
SELECT - - ( + 63 ) AS col0
----
63

query I rowsort
SELECT 17 * - 49 AS col1
----
-833

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - MIN( + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3106
SELECT - MIN ( + 3 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL 58 / - 77 * - + 9 + CASE + 10 WHEN 3 * - 1 + - + CASE 30 WHEN + + 48 + + + CAST( + - 14 AS SIGNED ) THEN + 28 - + NULLIF ( 24 + - 65 * + 43, 60 ) ELSE COUNT( * ) END / 6 THEN + 34 + - COUNT( * ) WHEN + 72 - - 19 THEN 99 END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL 58 / - 77 * - + 9 + CASE + 10 WHEN 3 * - 1 + - + CASE 30 WHEN + + 48 + + + CAST ( + - 14 AS INTEGER ) THEN + 28 - + NULLIF ( 24 + - 65 * + 43, 60 ) ELSE COUNT ( * ) END / 6 THEN + 34 + - COUNT ( * ) WHEN + 72 - - 19 THEN 99 END * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT - 23 AS col0, - 36 * + ( + COUNT( 23 ) )
----
-23
-36

skipif mysql # not compatible
query II rowsort label-3108
SELECT - 23 AS col0, - 36 * + ( + COUNT ( 23 ) )
----
-23
-36

query I rowsort
SELECT - ( + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT 71 * + 58 * + COUNT( + + 11 ) AS col2, 39
----
4118
39

skipif mysql # not compatible
query II rowsort label-3110
SELECT 71 * + 58 * + COUNT ( + + 11 ) AS col2, 39
----
4118
39

query I rowsort
SELECT 10 * - - ( - + 22 ) AS col1
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT ALL 91 DIV - - COUNT( * ) col0
----
91

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL 91 / - - COUNT ( * ) col0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3113
SELECT 16 DIV + 37, - 92 AS col2
----
0
-92

skipif mysql # not compatible
query II rowsort label-3113
SELECT 16 / + 37, - 92 AS col2
----
0
-92

query II rowsort
SELECT ALL 9 * - + 3 AS col2, + 40 + 67 + + + 35 * + - 52 * 26 * - - 65
----
-27
-3075693

query I rowsort
SELECT ALL CASE - + 72 WHEN - - 17 * 83 THEN NULLIF ( + 79, - 25 ) ELSE NULL END * - + 7 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - ( 26 ), + + 24 ) * - + 5 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL - MAX( DISTINCT 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - MAX ( DISTINCT 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL COUNT( * ) + 19
----
20

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL COUNT ( * ) + 19
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3119
SELECT ALL 8 + - 61, COUNT( * ) AS col1
----
-53
1

skipif mysql # not compatible
query II rowsort label-3119
SELECT ALL 8 + - 61, COUNT ( * ) AS col1
----
-53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - COUNT( * ) + MIN( DISTINCT 43 ) + + - 51 + + 94 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - COUNT ( * ) + MIN ( DISTINCT 43 ) + + - 51 + + 94 * COUNT ( * )
----
85

query I rowsort
SELECT DISTINCT 43 + - - ( + + 99 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - 27 * CASE + 65 WHEN COUNT( * ) THEN - COUNT( * ) + + 42 ELSE NULL END + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 27 * CASE + 65 WHEN COUNT ( * ) THEN - COUNT ( * ) + + 42 ELSE NULL END + - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT DISTINCT - MAX( DISTINCT - 74 ) AS col0, COUNT( * ) + - - 94 AS col2
----
74
95

skipif mysql # not compatible
query II rowsort label-3123
SELECT DISTINCT - MAX ( DISTINCT - 74 ) AS col0, COUNT ( * ) + - - 94 AS col2
----
74
95

query I rowsort
SELECT 25 * - 1 AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT ALL 71 DIV 51 * + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL 71 / 51 * + 98 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3126
SELECT - 33 DIV - 73 + + 15 - + COUNT( * ) + - 61 + - SUM( ALL - 9 ) * + 6 + + 85 * + 44 * + - CASE 28 WHEN 62 THEN COUNT( * ) + 43 * 93 ELSE 10 END
----
-37393

skipif mysql # not compatible
query I rowsort label-3126
SELECT - 33 / - 73 + + 15 - + COUNT ( * ) + - 61 + - SUM ( ALL - 9 ) * + 6 + + 85 * + 44 * + - CASE 28 WHEN 62 THEN COUNT ( * ) + 43 * 93 ELSE 10 END
----
-37393

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL + COUNT( * ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT ALL - CASE - 92 WHEN + 41 THEN NULL WHEN - ( + 94 ) * - COUNT( * ) THEN + 93 END * - COUNT( ALL 51 ) * - + 84 AS col0, + 24 * - - 63 - + - 84
----
NULL
1596

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL - CASE - 92 WHEN + 41 THEN NULL WHEN - ( + 94 ) * - COUNT ( * ) THEN + 93 END * - COUNT ( ALL 51 ) * - + 84 AS col0, + 24 * - - 63 - + - 84
----
NULL
1596

query I rowsort
SELECT - ( + 35 ) AS col0
----
-35

query I rowsort
SELECT DISTINCT - - 12
----
12

query I rowsort
SELECT - 32 col0
----
-32

query I rowsort
SELECT ALL 56 - ( - 96 ) AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL - - 51 * + + COUNT( * ) + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - - 51 * + + COUNT ( * ) + - COUNT ( * )
----
50

query I rowsort
SELECT DISTINCT - + 79 AS col2
----
-79

query I rowsort
SELECT ALL - 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT COUNT( * ) - - 47
----
48

skipif mysql # not compatible
query I rowsort label-3136
SELECT COUNT ( * ) - - 47
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT + ( + 10 ) * + MAX( - 37 ), 1 + - 99 AS col1
----
-370
-98

skipif mysql # not compatible
query II rowsort label-3137
SELECT + ( + 10 ) * + MAX ( - 37 ), 1 + - 99 AS col1
----
-370
-98

query I rowsort
SELECT - - 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - ( - - 76 ) * COUNT( * ) + - - 34 col0
----
-42

skipif mysql # not compatible
query I rowsort label-3139
SELECT - ( - - 76 ) * COUNT ( * ) + - - 34 col0
----
-42

query I rowsort
SELECT - 6 col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT 62 - + CASE - 13 WHEN - - 19 THEN + + 42 * 82 * COUNT( * ) + - + 44 - 18 / 42 ELSE NULL END - - 14 - - 29 * CASE + ( + 78 ) WHEN 35 - + CAST( 95 - 90 * + 53 AS SIGNED ) * + 13 THEN 95 ELSE NULL END * - CASE CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) WHEN 58 + + COUNT( * ) THEN + ( + NULLIF ( - 54, ( 87 ) / 42 ) ) + NULLIF ( 98, 7 * 3 ) WHEN - 70 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT 62 - + CASE - 13 WHEN - - 19 THEN + + 42 * 82 * COUNT ( * ) + - + 44 - 18 / 42 ELSE NULL END - - 14 - - 29 * CASE + ( + 78 ) WHEN 35 - + CAST ( 95 - 90 * + 53 AS INTEGER ) * + 13 THEN 95 ELSE NULL END * - CASE CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) WHEN 58 + + COUNT ( * ) THEN + ( + NULLIF ( - 54, ( 87 ) / 42 ) ) + NULLIF ( 98, 7 * 3 ) WHEN - 70 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 86 * + ( - 62 ) - - - 98 * 44
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 55 * - CASE + COUNT( * ) WHEN + SUM( ( - 34 ) ) THEN NULL ELSE - - 42 END AS col0
----
2310

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 55 * - CASE + COUNT ( * ) WHEN + SUM ( ( - 34 ) ) THEN NULL ELSE - - 42 END AS col0
----
2310

query I rowsort
SELECT 65 + - 8 AS col2
----
57

query I rowsort
SELECT - + 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - - SUM( - + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3146
SELECT - - SUM ( - + 53 )
----
-53

query I rowsort
SELECT DISTINCT + 31 + - - 53 * 87 - + - 3
----
4645

query I rowsort
SELECT 90 + - 97 + - - 21 + 62
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT ALL + COUNT( * ) + + NULLIF ( - - CASE + + 10 WHEN 43 * 74 / - - 11 * - 39 + + - SUM( ALL CASE - CAST( - 86 AS SIGNED ) WHEN - + 8 * - + 37 THEN - 15 ELSE 52 END ) + - 88 * - COUNT( * ) THEN NULL WHEN ( + 70 ) THEN + 57 * + 96 ELSE NULL END, 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + COUNT ( * ) + + NULLIF ( - - CASE + + 10 WHEN 43 * 74 / - - 11 * - 39 + + - SUM ( ALL CASE - CAST ( - 86 AS INTEGER ) WHEN - + 8 * - + 37 THEN - 15 ELSE 52 END ) + - 88 * - COUNT ( * ) THEN NULL WHEN ( + 70 ) THEN + 57 * + 96 ELSE NULL END, 32 )
----
NULL

query I rowsort
SELECT 0 + + + 56 + + + 77 * + + 55 AS col2
----
4291

query II rowsort
SELECT ALL 70 AS col2, + 66
----
70
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3152
SELECT 36 AS col2, ( + + CAST( - - COUNT( * ) AS SIGNED ) ) AS col1
----
36
1

skipif mysql # not compatible
query II rowsort label-3152
SELECT 36 AS col2, ( + + CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col1
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT + COUNT( * ) + + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT + COUNT ( * ) + + - 66
----
-65

query I rowsort
SELECT DISTINCT 76 col1
----
76

query I rowsort
SELECT DISTINCT 55 + + 13 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT - MIN( ALL - 96 ) + + CASE - 76 WHEN - + AVG ( - + ( 88 ) ) THEN + 26 ELSE + - 96 END * - + MIN( - - 50 )
----
4896

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - MIN ( ALL - 96 ) + + CASE - 76 WHEN - + AVG ( - + ( 88 ) ) THEN + 26 ELSE + - 96 END * - + MIN ( - - 50 )
----
4896

query I rowsort
SELECT ALL 82 AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT 35 + - 78 DIV 83
----
35

skipif mysql # not compatible
query I rowsort label-3158
SELECT 35 + - 78 / 83
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT ALL - 42 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL - 42 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT DISTINCT SUM( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT SUM ( DISTINCT - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ( 70 ) + + CASE - 12 WHEN + - 24 * + 2 * - ( + 45 ) THEN NULL WHEN - COUNT( * ) * + 6 THEN COUNT( 41 ) END * - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ( 70 ) + + CASE - 12 WHEN + - 24 * + 2 * - ( + 45 ) THEN NULL WHEN - COUNT ( * ) * + 6 THEN COUNT ( 41 ) END * - - 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3162
SELECT DISTINCT COUNT( * ) DIV - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT COUNT ( * ) / - 6 AS col2
----
0

query I rowsort
SELECT ALL - 86 col1
----
-86

query I rowsort
SELECT ALL + 59 * - 88 + + ( 29 )
----
-5163

query I rowsort
SELECT 25 * + + 76 AS col2
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT + COUNT( * ) AS col2, 14 AS col2
----
1
14

skipif mysql # not compatible
query II rowsort label-3166
SELECT + COUNT ( * ) AS col2, 14 AS col2
----
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT NULLIF ( - - 84, + + COUNT( * ) ) * + 59 * + - 23 * COUNT( * ) * - NULLIF ( + 17, + - 86 * + CASE + - 20 WHEN - COUNT( * ) * + 37 THEN - 39 WHEN - 54 THEN + 22 END / + 97 ) * 6 AS col0
----
11626776

skipif mysql # not compatible
query I rowsort label-3167
SELECT NULLIF ( - - 84, + + COUNT ( * ) ) * + 59 * + - 23 * COUNT ( * ) * - NULLIF ( + 17, + - 86 * + CASE + - 20 WHEN - COUNT ( * ) * + 37 THEN - 39 WHEN - 54 THEN + 22 END / + 97 ) * 6 AS col0
----
11626776

query I rowsort
SELECT ALL 48 * - 77 * 40
----
-147840

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + MIN( + ( - + 39 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3169
SELECT + MIN ( + ( - + 39 ) ) AS col0
----
-39

query I rowsort
SELECT DISTINCT - + 27 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT - ( - - 30 ) DIV + - 36 + - + 27 + + + 74
----
47

skipif mysql # not compatible
query I rowsort label-3171
SELECT - ( - - 30 ) / + - 36 + - + 27 + + + 74
----
47

query II rowsort
SELECT + 5 AS col0, 0 AS col0
----
5
0

query I rowsort
SELECT ALL + - 45
----
-45

query I rowsort
SELECT - - 5 * 60 + + 39 * + 15 AS col2
----
885

onlyif mysql # aggregate syntax: 
query III rowsort label-3175
SELECT + ( NULLIF ( 46, + 63 ) ) * - COUNT( * ) AS col2, 15 AS col1, + 59 AS col1
----
-46
15
59

skipif mysql # not compatible
query III rowsort label-3175
SELECT + ( NULLIF ( 46, + 63 ) ) * - COUNT ( * ) AS col2, 15 AS col1, + 59 AS col1
----
-46
15
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + + COUNT( * ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3176
SELECT + + COUNT ( * ) * + 80 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3177
SELECT + - 87 + NULLIF ( - + 88, + 22 * 61 ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
-175
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT + - 87 + NULLIF ( - + 88, + 22 * 61 ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-175
NULL

query II rowsort
SELECT + 45, 86 AS col0
----
45
86

query I rowsort
SELECT + 62 AS col0
----
62

query I rowsort
SELECT ALL + - 11 * - 5 + 36 col2
----
91

query I rowsort
SELECT ALL + 29 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + COUNT( * ) * 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3182
SELECT + COUNT ( * ) * 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 21 * + 99 * + 64 + - COALESCE ( + 89, MAX( ALL - 37 ), - - 0 ) AS col0
----
132967

skipif mysql # not compatible
query I rowsort label-3183
SELECT 21 * + 99 * + 64 + - COALESCE ( + 89, MAX ( ALL - 37 ), - - 0 ) AS col0
----
132967

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL ( SUM( CASE 48 WHEN - 84 THEN + 78 ELSE NULL END ) ) * + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL ( SUM ( CASE 48 WHEN - 84 THEN + 78 ELSE NULL END ) ) * + 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + COUNT( * ) * - - 99
----
99

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COUNT ( * ) * - - 99
----
99

query I rowsort
SELECT - - 80 AS col1
----
80

query I rowsort
SELECT - - 71 + 94
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL + + ( + NULLIF ( 41, COUNT( * ) + - COALESCE ( - + 15, + 15, - - 9 ) ) ) + - 46 - - - COALESCE ( + 34, + 57 * - 89 )
----
-39

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + + ( + NULLIF ( 41, COUNT ( * ) + - COALESCE ( - + 15, + 15, - - 9 ) ) ) + - 46 - - - COALESCE ( + 34, + 57 * - 89 )
----
-39

query I rowsort
SELECT ( 96 ) AS col2
----
96

query I rowsort
SELECT ALL 39 * + 63
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL COUNT( * ) + - + 71
----
-70

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL COUNT ( * ) + - + 71
----
-70

query I rowsort
SELECT DISTINCT COALESCE ( 23, + + 15 ) AS col1
----
23

query I rowsort
SELECT DISTINCT + COALESCE ( - 54, - 85, + + 73 ) + 22
----
-32

query I rowsort
SELECT ALL - 46 + - 6 AS col2
----
-52

query I rowsort
SELECT - ( + 69 ) AS col1
----
-69

query II rowsort
SELECT 94 col2, 81 AS col1
----
94
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT DISTINCT CASE - ( ( 61 ) ) WHEN - 55 THEN NULL WHEN - 65 THEN - 19 + - CAST( + + 76 AS SIGNED ) + AVG ( ALL - + 58 ) + + - 20 * + 34 / 30 * - 37 ELSE + - 4 END AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT CASE - ( ( 61 ) ) WHEN - 55 THEN NULL WHEN - 65 THEN - 19 + - CAST ( + + 76 AS INTEGER ) + AVG ( ALL - + 58 ) + + - 20 * + 34 / 30 * - 37 ELSE + - 4 END AS col1
----
-4

query I rowsort
SELECT - 84 * 86 * - 87
----
628488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT - 60 - + - 64 * + ( - - 44 ) * CAST( + 78 AS SIGNED ) * 36 - + + 3 AS col2
----
7907265

skipif mysql # not compatible
query I rowsort label-3199
SELECT - 60 - + - 64 * + ( - - 44 ) * CAST ( + 78 AS INTEGER ) * 36 - + + 3 AS col2
----
7907265

query I rowsort
SELECT DISTINCT - 56 * + 96 AS col0
----
-5376

query I rowsort
SELECT ALL ( - 80 )
----
-80

query I rowsort
SELECT ALL + 83 - 32
----
51

query I rowsort
SELECT DISTINCT + 18 col1
----
18

query I rowsort
SELECT ALL + 21
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3205
SELECT ALL 24 DIV - 85 - - ( ( + - 79 ) ) * - 49 * - MIN( 99 )
----
-383229

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL 24 / - 85 - - ( ( + - 79 ) ) * - 49 * - MIN ( 99 )
----
-383229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT - COUNT( * ) DIV 17 * - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT - COUNT ( * ) / 17 * - 51 AS col2
----
0

query I rowsort
SELECT - 18 * + - 77 AS col0
----
1386

query I rowsort
SELECT + 74 * + 87 + 11 AS col2
----
6449

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3209
SELECT - MAX( 53 ) / + - MIN( DISTINCT - + 40 ) - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT - MAX ( 53 ) / + - MIN ( DISTINCT - + 40 ) - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT + + 9 DIV ( 12 )
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT + + 9 / ( 12 )
----
0

query I rowsort
SELECT ALL + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3212
SELECT + - CAST( + 2 AS SIGNED ) * - + ( + 88 ) DIV 75 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3212
SELECT + - CAST ( + 2 AS INTEGER ) * - + ( + 88 ) / 75 AS col2
----
2

query II rowsort
SELECT + 67 AS col1, 27 - 11
----
67
16

query I rowsort
SELECT - 88 * - 6 + 62 AS col2
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + + COUNT( * ) * + + 25 - 54 + - + 27
----
-56

skipif mysql # not compatible
query I rowsort label-3215
SELECT + + COUNT ( * ) * + + 25 - 54 + - + 27
----
-56

query I rowsort
SELECT DISTINCT 74 * - - 58 * + - 64
----
-274688

onlyif mysql # aggregate syntax: 
query II rowsort label-3217
SELECT ALL + 33 AS col2, 7 * + SUM( DISTINCT + 51 ) * + 97
----
33
34629

skipif mysql # not compatible
query II rowsort label-3217
SELECT ALL + 33 AS col2, 7 * + SUM ( DISTINCT + 51 ) * + 97
----
33
34629

query I rowsort
SELECT + 68 AS col2
----
68

query II rowsort
SELECT ALL + - 18, 64 + + + 80 * - + 22 AS col2
----
-18
-1696

query I rowsort
SELECT + 62 * + 70 AS col0
----
4340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3221
SELECT ALL - 8 * - MAX( + 81 ) + + 30 DIV 96 - - 32 + 72 + COUNT( * ) * + 41
----
793

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - 8 * - MAX ( + 81 ) + + 30 / 96 - - 32 + 72 + COUNT ( * ) * + 41
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT + COUNT( * ) * + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + COUNT ( * ) * + 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT ALL + COUNT( * ), ( + 49 ) AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL + COUNT ( * ), ( + 49 ) AS col1
----
1
49

query I rowsort
SELECT + 91 AS col2
----
91

query I rowsort
SELECT - - 81 * + + ( - 47 )
----
-3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL + CASE + COUNT( - + 12 ) WHEN + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 24 THEN + COUNT( - 52 ) WHEN CAST( COUNT( * ) AS SIGNED ) * 17 THEN - + COUNT( * ) * + - 66 + + 20 + - COUNT( * ) ELSE - 77 * + 41 + NULLIF ( - 47 + 0 * 60, - 43 ) END * 81 + - 87
----
-259611

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + CASE + COUNT ( - + 12 ) WHEN + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 24 THEN + COUNT ( - 52 ) WHEN CAST ( COUNT ( * ) AS INTEGER ) * 17 THEN - + COUNT ( * ) * + - 66 + + 20 + - COUNT ( * ) ELSE - 77 * + 41 + NULLIF ( - 47 + 0 * 60, - 43 ) END * 81 + - 87
----
-259611

query I rowsort
SELECT - 71 * + 16 - + 80 AS col0
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + ( + + COUNT( 61 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3228
SELECT + ( + + COUNT ( 61 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 66 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT - SUM( - 34 ) * + - 47 * - COUNT( * ) + + 34 + 32 - 19
----
1645

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - SUM ( - 34 ) * + - 47 * - COUNT ( * ) + + 34 + 32 - 19
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL 4 * 96 - - 12 + - - 74 * + COUNT( * )
----
470

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL 4 * 96 - - 12 + - - 74 * + COUNT ( * )
----
470

query II rowsort
SELECT 53, - 38 * - 49 AS col2
----
53
1862

query I rowsort
SELECT - ( - ( + + 81 ) ) AS col1
----
81

query I rowsort
SELECT ALL 35 * 0 + + 93
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT SUM( + + 56 ) AS col2, 23
----
56
23

skipif mysql # not compatible
query II rowsort label-3235
SELECT SUM ( + + 56 ) AS col2, 23
----
56
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT + 20 - - 87 + + 33 * - 81 * + 75 + - - 25 + 52 + 10 - 65 * + ( + + 94 ) * - + ( + CAST( NULL AS SIGNED ) ) * + 41 + - - NULLIF ( - 81, - COALESCE ( + 3, + 44 / 78, - 29 * 16 + + 85 * + 84 ) + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT + 20 - - 87 + + 33 * - 81 * + 75 + - - 25 + 52 + 10 - 65 * + ( + + 94 ) * - + ( + CAST ( NULL AS INTEGER ) ) * + 41 + - - NULLIF ( - 81, - COALESCE ( + 3, + 44 / 78, - 29 * 16 + + 85 * + 84 ) + 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL COUNT( * ) * + COUNT( + 10 ) * COUNT( * ) + 61 * - ( 20 ) + 21 + 26
----
-1172

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL COUNT ( * ) * + COUNT ( + 10 ) * COUNT ( * ) + 61 * - ( 20 ) + 21 + 26
----
-1172

query I rowsort
SELECT + 91 + - 23
----
68

query I rowsort
SELECT - ( + - 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3240
SELECT ALL ( + COUNT( * ) ) - + 92 DIV 39 + + 78
----
77

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL ( + COUNT ( * ) ) - + 92 / 39 + + 78
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + 84 * - - ( + - SUM( DISTINCT - - 47 ) ) * + 36 AS col0
----
-142128

skipif mysql # not compatible
query I rowsort label-3241
SELECT + 84 * - - ( + - SUM ( DISTINCT - - 47 ) ) * + 36 AS col0
----
-142128

query I rowsort
SELECT - 33 col0
----
-33

query I rowsort
SELECT DISTINCT 84 * + 32 * 80
----
215040

query I rowsort
SELECT ALL ( - 83 ) AS col0
----
-83

query I rowsort
SELECT DISTINCT ( - + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT DISTINCT COUNT( DISTINCT + - 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT COUNT ( DISTINCT + - 98 ) AS col2
----
1

query I rowsort
SELECT ALL 98
----
98

query I rowsort
SELECT DISTINCT 51 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3249
SELECT 76 * + 8 AS col1, 38 DIV COUNT( * ) * 77 + - 52
----
608
2874

skipif mysql # not compatible
query II rowsort label-3249
SELECT 76 * + 8 AS col1, 38 / COUNT ( * ) * 77 + - 52
----
608
2874

query I rowsort
SELECT ALL + 7 * NULLIF ( - 43, 38 ) AS col0
----
-301

query I rowsort
SELECT ALL + ( 73 )
----
73

query I rowsort
SELECT - - 22 AS col1
----
22

query I rowsort
SELECT + + 66 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3254
SELECT 95 DIV 81 * - 86 - - + 0 DIV - COUNT( * ) + 73 + + COALESCE ( - + 9, + - ( - COUNT( * ) ), - + CASE - - 62 WHEN - - 56 THEN - - 93 WHEN 63 + - - 13 THEN NULL ELSE + 61 DIV 39 + - 17 END )
----
-22

skipif mysql # not compatible
query I rowsort label-3254
SELECT 95 / 81 * - 86 - - + 0 / - COUNT ( * ) + 73 + + COALESCE ( - + 9, + - ( - COUNT ( * ) ), - + CASE - - 62 WHEN - - 56 THEN - - 93 WHEN 63 + - - 13 THEN NULL ELSE + 61 / 39 + - 17 END )
----
-22

query I rowsort
SELECT - 40 AS col1
----
-40

query I rowsort
SELECT ALL - 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL - 34 + - - CASE 24 WHEN - 60 * - 31 + COUNT( ALL + 43 ) * + COALESCE ( - COUNT( * ), - - 65 ) + 48 / + 66 + - COUNT( * ) + + + 99 + + - 78 THEN NULL ELSE + 95 END AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - 34 + - - CASE 24 WHEN - 60 * - 31 + COUNT ( ALL + 43 ) * + COALESCE ( - COUNT ( * ), - - 65 ) + 48 / + 66 + - COUNT ( * ) + + + 99 + + - 78 THEN NULL ELSE + 95 END AS col1
----
61

query I rowsort
SELECT + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL + ( 58 ) + + 30 + - + COUNT( * ) + + + 98
----
185

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL + ( 58 ) + + 30 + - + COUNT ( * ) + + + 98
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + COUNT( * ) * + + 62 - 84 col1
----
-22

skipif mysql # not compatible
query I rowsort label-3260
SELECT + COUNT ( * ) * + + 62 - 84 col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT DISTINCT + + 89 + + + 42 + + COALESCE ( 56, CAST( 67 AS SIGNED ) ) AS col0
----
187

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT + + 89 + + + 42 + + COALESCE ( 56, CAST ( 67 AS INTEGER ) ) AS col0
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3262
SELECT + ( - 15 ) * + 74 AS col0, + ( + - 33 ) - + CASE + ( - ( - 42 ) ) WHEN - 91 THEN NULL WHEN 57 - + 75 THEN + - CAST( NULL AS SIGNED ) ELSE + 38 END + + 76 * - 84 * + + 29 + MAX( DISTINCT 11 + 39 * 47 ) AS col1
----
-1110
-183363

skipif mysql # not compatible
query II rowsort label-3262
SELECT + ( - 15 ) * + 74 AS col0, + ( + - 33 ) - + CASE + ( - ( - 42 ) ) WHEN - 91 THEN NULL WHEN 57 - + 75 THEN + - CAST ( NULL AS INTEGER ) ELSE + 38 END + + 76 * - 84 * + + 29 + MAX ( DISTINCT 11 + 39 * 47 ) AS col1
----
-1110
-183363

query I rowsort
SELECT - 82 + + - 75
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL + MAX( - - 68 ) + - 59
----
9

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + MAX ( - - 68 ) + - 59
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + 31 * - COUNT( DISTINCT - - 48 ) + + - 43
----
-74

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 31 * - COUNT ( DISTINCT - - 48 ) + + - 43
----
-74

query I rowsort
SELECT + + 17
----
17

query I rowsort
SELECT + - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT - 43 * - COUNT( * ) + + COUNT( * ) + + 10 - + - SUM( DISTINCT - - 83 ) * + - 85 + + - 15 AS col2, 25 AS col1
----
-7016
25

skipif mysql # not compatible
query II rowsort label-3268
SELECT - 43 * - COUNT ( * ) + + COUNT ( * ) + + 10 - + - SUM ( DISTINCT - - 83 ) * + - 85 + + - 15 AS col2, 25 AS col1
----
-7016
25

query I rowsort
SELECT DISTINCT - + 75
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT - COUNT( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2
----
-7804
92

skipif mysql # not compatible
query II rowsort label-3270
SELECT - COUNT ( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2
----
-7804
92

query I rowsort
SELECT DISTINCT - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3272
SELECT ALL - 58 + - NULLIF ( + 8, + 2 + COUNT( * ) ) AS col1, SUM( 5 ) col0
----
-66
5

skipif mysql # not compatible
query II rowsort label-3272
SELECT ALL - 58 + - NULLIF ( + 8, + 2 + COUNT ( * ) ) AS col1, SUM ( 5 ) col0
----
-66
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT DISTINCT + 47 * CAST( + COUNT( * ) AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + 47 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT ALL 15 + - 49 + 92 DIV - 22
----
-38

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL 15 + - 49 + 92 / - 22
----
-38

query I rowsort
SELECT 33 col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3276
SELECT - CAST( - - 91 AS SIGNED ) * + - 62 * - 54 * - 80 + - 14 * 16 * + - COALESCE ( 98, - + 24 * CAST( NULL AS SIGNED ), + 0 + - ( - 4 ), CASE + COUNT( * ) WHEN + COUNT( * ) THEN NULLIF ( ( 71 ), + 28 * 42 ) + 89 WHEN ( - 25 ) * 21 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) + 1 THEN NULLIF ( + 66, + 16 ) + 19 END ) + 53 AS col0
----
24395445

skipif mysql # not compatible
query I rowsort label-3276
SELECT - CAST ( - - 91 AS INTEGER ) * + - 62 * - 54 * - 80 + - 14 * 16 * + - COALESCE ( 98, - + 24 * CAST ( NULL AS INTEGER ), + 0 + - ( - 4 ), CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULLIF ( ( 71 ), + 28 * 42 ) + 89 WHEN ( - 25 ) * 21 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + 1 THEN NULLIF ( + 66, + 16 ) + 19 END ) + 53 AS col0
----
24395445

query I rowsort
SELECT 6 * COALESCE ( - 39, - 46 ) AS col1
----
-234

query II rowsort
SELECT - 18, 77 AS col2
----
-18
77

query I rowsort
SELECT 44 + + 7 AS col0
----
51

query I rowsort
SELECT ALL 79 - + 79
----
0

query II rowsort
SELECT - 21, + 97 * - 48 * - 29 + - ( + 55 ) AS col2
----
-21
134969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT COUNT ( * ) / + 92
----
0

query I rowsort
SELECT ALL 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL 29 AS col0, + 53 - - - 74 * + + COUNT( ALL - ( - - 15 ) )
----
29
-21

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL 29 AS col0, + 53 - - - 74 * + + COUNT ( ALL - ( - - 15 ) )
----
29
-21

query I rowsort
SELECT DISTINCT 8 * - 52 AS col1
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL 25 * + - MAX( + + 12 ) AS col1
----
-300

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL 25 * + - MAX ( + + 12 ) AS col1
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ( - 72 ) DIV - + ( - 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3287
SELECT ( - 72 ) / - + ( - 68 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3288
SELECT ALL CAST( NULL AS SIGNED ) / - 81 * + + 48 AS col1, 19 * - - 27 + 37
----
NULL
550

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL CAST ( NULL AS INTEGER ) / - 81 * + + 48 AS col1, 19 * - - 27 + 37
----
NULL
550

query II rowsort
SELECT - 97 AS col2, - 10 AS col2
----
-97
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3290
SELECT ( 45 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT ( 45 ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 76 + + 73
----
149

query I rowsort
SELECT ALL 65 * 54
----
3510

query II rowsort
SELECT - 53 col0, 85
----
-53
85

query II rowsort
SELECT 85 * - NULLIF ( + - 71, 50 * + - ( + 97 ) ) col2, 71 AS col0
----
6035
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3295
SELECT 68 DIV + 93 + + - SUM( ALL ( + 15 ) ) + - - CAST( + 93 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-3295
SELECT 68 / + 93 + + - SUM ( ALL ( + 15 ) ) + - - CAST ( + 93 AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT DISTINCT - 44 + 2 * + + MIN( DISTINCT - - 56 ) * - 14 + + + NULLIF ( + + 19, - + 72 ), - 57 AS col2
----
-1593
-57

skipif mysql # not compatible
query II rowsort label-3296
SELECT DISTINCT - 44 + 2 * + + MIN ( DISTINCT - - 56 ) * - 14 + + + NULLIF ( + + 19, - + 72 ), - 57 AS col2
----
-1593
-57

query I rowsort
SELECT ALL + 85 * 13
----
1105

query I rowsort
SELECT ( - 19 ) * - 90 AS col0
----
1710

query I rowsort
SELECT ALL + 63 + - - 97
----
160

query II rowsort
SELECT DISTINCT - 88 AS col2, 7 - - 93 col2
----
-88
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT ALL 0 * - + ( + 0 ) * 83 * CAST( + 63 AS SIGNED ) * - 42 + + 9 + - 6 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL 0 * - + ( + 0 ) * 83 * CAST ( + 63 AS INTEGER ) * - 42 + + 9 + - 6 AS col2
----
3

query I rowsort
SELECT 93 * - 46 AS col1
----
-4278

query II rowsort
SELECT + 53, - 32 AS col0
----
53
-32

query II rowsort
SELECT + - 83 AS col0, 11
----
-83
11

query I rowsort
SELECT DISTINCT - 57
----
-57

query I rowsort
SELECT 16 * 52
----
832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT + MIN( ALL + - 33 ) + + + 97 DIV 46 * - SUM( ALL + 54 ) + + - COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-3307
SELECT + MIN ( ALL + - 33 ) + + + 97 / 46 * - SUM ( ALL + 54 ) + + - COUNT ( * )
----
-142

query I rowsort
SELECT ALL - + 63 AS col2
----
-63

query I rowsort
SELECT + + ( - - 57 )
----
57

query I rowsort
SELECT ALL + 67 + - ( + + 57 ) - 26 + - + 15 AS col2
----
-31

query I rowsort
SELECT ALL - 9 * 99
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - - MIN( ALL + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - - MIN ( ALL + 61 )
----
61

query I rowsort
SELECT - 56 * - 90 AS col2
----
5040

query I rowsort
SELECT DISTINCT - + 95 * - - 70 AS col2
----
-6650

query I rowsort
SELECT 10 AS col0
----
10

query I rowsort
SELECT DISTINCT - ( + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT 25 - + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3317
SELECT 25 - + - COUNT ( * )
----
26

query I rowsort
SELECT ALL - ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL SUM( - - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL SUM ( - - 78 ) AS col1
----
78

query I rowsort
SELECT - 31 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-3321
SELECT + COALESCE ( - CASE + - 92 WHEN - 78 THEN + + ( + + 35 ) WHEN 0 THEN NULL END, 90 DIV + 45 + + 12, - 0 ) - + ( + ( + 29 ) ) AS col1, + 93 AS col1
----
-15
93

skipif mysql # not compatible
query II rowsort label-3321
SELECT + COALESCE ( - CASE + - 92 WHEN - 78 THEN + + ( + + 35 ) WHEN 0 THEN NULL END, 90 / + 45 + + 12, - 0 ) - + ( + ( + 29 ) ) AS col1, + 93 AS col1
----
-15
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - 19 * - NULLIF ( + 4, + + ( + COUNT( * ) ) * + 12 - + - 94 - + 75 * ( + 58 ) / - 90 )
----
76

skipif mysql # not compatible
query I rowsort label-3322
SELECT - 19 * - NULLIF ( + 4, + + ( + COUNT ( * ) ) * + 12 - + - 94 - + 75 * ( + 58 ) / - 90 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-3323
SELECT + 84 - + 47 AS col2, + 8 DIV - 7
----
37
-1

skipif mysql # not compatible
query II rowsort label-3323
SELECT + 84 - + 47 AS col2, + 8 / - 7
----
37
-1

query I rowsort
SELECT ALL NULLIF ( + 58, 40 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - SUM( + 73 ) * + - 30
----
2190

skipif mysql # not compatible
query I rowsort label-3325
SELECT - SUM ( + 73 ) * + - 30
----
2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3326
SELECT + CAST( + + 58 AS SIGNED ) + CASE - 61 WHEN 15 * COUNT( * ) THEN + - 70 + - 72 WHEN + 82 THEN NULL END / CASE - 37 WHEN 0 THEN NULL WHEN + 80 * + + 40 THEN NULL ELSE + - 1 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT + CAST ( + + 58 AS INTEGER ) + CASE - 61 WHEN 15 * COUNT ( * ) THEN + - 70 + - 72 WHEN + 82 THEN NULL END / CASE - 37 WHEN 0 THEN NULL WHEN + 80 * + + 40 THEN NULL ELSE + - 1 END / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3327
SELECT - COUNT( * ) + + COUNT( * ) * 74 DIV + 55 AS col0, + 74, - 66 AS col2
----
0
74
-66

skipif mysql # not compatible
query III rowsort label-3327
SELECT - COUNT ( * ) + + COUNT ( * ) * 74 / + 55 AS col0, + 74, - 66 AS col2
----
0
74
-66

query I rowsort
SELECT DISTINCT 18 + + 38 * 82 AS col1
----
3134

query I rowsort
SELECT + 24 + + 62 + + 64 AS col0
----
150

query II rowsort
SELECT ALL - 89 + + 91 AS col2, 4 + + - 16 + - 87
----
2
-99

query I rowsort
SELECT DISTINCT - 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT COUNT( * ) + - 24 * - + 43 AS col1
----
1033

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT COUNT ( * ) + - 24 * - + 43 AS col1
----
1033

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL + COUNT( * ) + - 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + COUNT ( * ) + - 2 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 76 * + 38 + + 52
----
2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + 41 - - 98 + - MAX( - + 43 )
----
181

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + 41 - - 98 + - MAX ( - + 43 )
----
181

query I rowsort
SELECT - 59 * + 27 AS col2
----
-1593

query I rowsort
SELECT + 28 + + 81 * - 94 AS col2
----
-7586

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT + + 37 DIV + 13 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3338
SELECT + + 37 / + 13 AS col2
----
2

query I rowsort
SELECT - + 8 col0
----
-8

query I rowsort
SELECT ALL + ( - - 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT + 64 DIV + - 64 + 51 DIV + 94 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3341
SELECT + 64 / + - 64 + 51 / + 94 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT + - 2 + + + 62 + COUNT( * ) + - 48 * 55 col0, - 18
----
-2579
-18

skipif mysql # not compatible
query II rowsort label-3342
SELECT + - 2 + + + 62 + COUNT ( * ) + - 48 * 55 col0, - 18
----
-2579
-18

query I rowsort
SELECT DISTINCT + ( + ( + 65 ) ) AS col2
----
65

query I rowsort
SELECT + 16 col2
----
16

query I rowsort
SELECT ALL + + 37 col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT 83 * - - CAST( NULL AS SIGNED ) * - 94 + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT 83 * - - CAST ( NULL AS INTEGER ) * - 94 + - + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT CASE - COUNT( * ) WHEN 85 THEN + 59 * COUNT( * ) + + 51 WHEN - 75 THEN + - ( + + ( 91 ) ) WHEN + - 39 THEN NULL WHEN 47 THEN NULL ELSE - + 68 + + NULLIF ( - 31, ( - 92 ) + + + AVG ( ALL + 29 ) * - 41 ) END col0
----
-99

skipif mysql # not compatible
query I rowsort label-3347
SELECT CASE - COUNT ( * ) WHEN 85 THEN + 59 * COUNT ( * ) + + 51 WHEN - 75 THEN + - ( + + ( 91 ) ) WHEN + - 39 THEN NULL WHEN 47 THEN NULL ELSE - + 68 + + NULLIF ( - 31, ( - 92 ) + + + AVG ( ALL + 29 ) * - 41 ) END col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL + MIN( DISTINCT - + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + MIN ( DISTINCT - + 30 ) AS col2
----
-30

query I rowsort
SELECT ALL + 60 AS col1
----
60

query I rowsort
SELECT ALL - 83 * - 78 col0
----
6474

query I rowsort
SELECT DISTINCT 61 * ( + ( + 46 ) ) AS col0
----
2806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT COALESCE ( CAST( NULL AS SIGNED ), - - 97 * + CAST( NULL AS SIGNED ) + + AVG ( 45 ) * - 88 / + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - - 97 * + CAST ( NULL AS INTEGER ) + + AVG ( 45 ) * - 88 / + 8 )
----
NULL

query I rowsort
SELECT - 90 * - 80 col1
----
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + 19 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT + 19 / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT COUNT( 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3355
SELECT COUNT ( 88 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT NULLIF ( - - 18, - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT NULLIF ( - - 18, - COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3357
SELECT - 54 DIV - 2 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 54 / - 2 * - COUNT ( * )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3359
SELECT - ( - + 29 ) + - + COUNT( * ), - 11 AS col2
----
28
-11

skipif mysql # not compatible
query II rowsort label-3359
SELECT - ( - + 29 ) + - + COUNT ( * ), - 11 AS col2
----
28
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3360
SELECT - COUNT( * ) DIV + - 94 * 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3360
SELECT - COUNT ( * ) / + - 94 * 4 AS col0
----
0

query I rowsort
SELECT ALL + 21 * CASE NULLIF ( - 66, 93 ) WHEN + 64 / 96 THEN NULL WHEN - - 29 THEN + 38 + 43 + + 9 / 61 END
----
NULL

query I rowsort
SELECT ALL + 48 + + 38
----
86

query I rowsort
SELECT ALL 12 + + 62 AS col0
----
74

query I rowsort
SELECT - 42 col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3365
SELECT ALL + COUNT( * ) * - 64 * + - 45 + - + CASE - 11 WHEN + 86 + + 5 THEN - COUNT( * ) * + - CAST( - - NULLIF ( + COUNT( * ), + - 24 ) AS SIGNED ) / - COUNT( * ) + NULLIF ( - + 4, - 66 ) * + + 49 WHEN + 17 * 82 THEN NULL ELSE + AVG ( ALL + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + COUNT ( * ) * - 64 * + - 45 + - + CASE - 11 WHEN + 86 + + 5 THEN - COUNT ( * ) * + - CAST ( - - NULLIF ( + COUNT ( * ), + - 24 ) AS INTEGER ) / - COUNT ( * ) + NULLIF ( - + 4, - 66 ) * + + 49 WHEN + 17 * 82 THEN NULL ELSE + AVG ( ALL + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT - ( - - 14 )
----
-14

query I rowsort
SELECT + - 66 + - 71
----
-137

query I rowsort
SELECT ALL - - 45 + 99 + - + 96 * 60 col0
----
-5616

query I rowsort
SELECT + 64 col1
----
64

query I rowsort
SELECT + + 92 + 87 AS col2
----
179

query II rowsort
SELECT 57 AS col1, 13 AS col1
----
57
13

query I rowsort
SELECT - + 23 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT ALL + 53 - - CAST( MIN( CAST( - + 23 AS SIGNED ) ) AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + 53 - - CAST ( MIN ( CAST ( - + 23 AS INTEGER ) ) AS INTEGER )
----
30

query I rowsort
SELECT - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - - 73 - + MIN( ALL - + 46 ) * + COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-3375
SELECT - - 73 - + MIN ( ALL - + 46 ) * + COUNT ( * ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT - COUNT( + 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - COUNT ( + 78 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL COUNT( DISTINCT + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL COUNT ( DISTINCT + 97 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT + - COALESCE ( - MAX( 40 ), - 97 + + + COUNT( * ) + + 93 DIV + 11, 43 )
----
40

skipif mysql # not compatible
query I rowsort label-3378
SELECT + - COALESCE ( - MAX ( 40 ), - 97 + + + COUNT ( * ) + + 93 / + 11, 43 )
----
40

query I rowsort
SELECT + + ( - 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + - COALESCE ( + - COUNT( * ), COUNT( * ) ) - + 1 * 82
----
-81

skipif mysql # not compatible
query I rowsort label-3380
SELECT + - COALESCE ( + - COUNT ( * ), COUNT ( * ) ) - + 1 * 82
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - - ( - COUNT( * ) ) * - COALESCE ( 90, + ( COUNT( * ) ), + 28 * + 19 * 28 - 94 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3381
SELECT - - ( - COUNT ( * ) ) * - COALESCE ( 90, + ( COUNT ( * ) ), + 28 * + 19 * 28 - 94 ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3382
SELECT + - 15 * + - 82 DIV 42 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3382
SELECT + - 15 * + - 82 / 42 / - 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3383
SELECT + + 46 * - + 61 + + 45 * + 20 + - ( + 3 ) + - + 23 DIV + - 94 * - + MIN( ( - 86 ) ) * + - MAX( - 27 ) * + + ( + 22 ) + + 79
----
-1830

skipif mysql # not compatible
query I rowsort label-3383
SELECT + + 46 * - + 61 + + 45 * + 20 + - ( + 3 ) + - + 23 / + - 94 * - + MIN ( ( - 86 ) ) * + - MAX ( - 27 ) * + + ( + 22 ) + + 79
----
-1830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT + CASE - - ( + NULLIF ( ( + 20 ), - 31 * 26 ) ) WHEN + COALESCE ( ( + ( - SUM( DISTINCT + 97 ) ) ), + COUNT( * ), + ( - - 13 ) ) + - - 83 THEN NULL WHEN + + 84 THEN + - 18 * - CAST( + - 73 AS SIGNED ) ELSE + 42 END
----
42

skipif mysql # not compatible
query I rowsort label-3384
SELECT + CASE - - ( + NULLIF ( ( + 20 ), - 31 * 26 ) ) WHEN + COALESCE ( ( + ( - SUM ( DISTINCT + 97 ) ) ), + COUNT ( * ), + ( - - 13 ) ) + - - 83 THEN NULL WHEN + + 84 THEN + - 18 * - CAST ( + - 73 AS INTEGER ) ELSE + 42 END
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT CAST( + 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-3385
SELECT CAST ( + 41 AS INTEGER )
----
41

query II rowsort
SELECT ALL + 60 AS col0, COALESCE ( - 30, + - 79 * 89 + - + 16 )
----
60
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3387
SELECT + 19 AS col2, CAST( NULL AS DECIMAL ) * + 45 + - 31 AS col1
----
19
NULL

skipif mysql # not compatible
query II rowsort label-3387
SELECT + 19 AS col2, CAST ( NULL AS REAL ) * + 45 + - 31 AS col1
----
19
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT ALL - 95, COUNT( * ) AS col0
----
-95
1

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL - 95, COUNT ( * ) AS col0
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT 61 * - COUNT( * ) + - 31 col1
----
-92

skipif mysql # not compatible
query I rowsort label-3389
SELECT 61 * - COUNT ( * ) + - 31 col1
----
-92

query II rowsort
SELECT 73 AS col2, 26 AS col1
----
73
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ( - 9 ) - + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3391
SELECT ( - 9 ) - + COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT 88 * 52
----
4576

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3393
SELECT ALL - 62 + + - CAST( + 67 AS SIGNED ) + - CAST( + ( 5 ) AS SIGNED ) col2, 93 * 66 AS col0
----
-134
6138

skipif mysql # not compatible
query II rowsort label-3393
SELECT ALL - 62 + + - CAST ( + 67 AS INTEGER ) + - CAST ( + ( 5 ) AS INTEGER ) col2, 93 * 66 AS col0
----
-134
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT MIN( - - 82 ) + 58
----
140

skipif mysql # not compatible
query I rowsort label-3394
SELECT MIN ( - - 82 ) + 58
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL COUNT( - 67 ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL COUNT ( - 67 ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT + 23 * 70 + + + ( + + 7 ) + + 45 AS col2
----
1662

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + 89 + - 24 + + CASE 38 WHEN 98 - + - ( + COUNT( * ) ) THEN COUNT( * ) + - 74 * COUNT( * ) / + + 95 / 81 ELSE NULL END + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + 89 + - 24 + + CASE 38 WHEN 98 - + - ( + COUNT ( * ) ) THEN COUNT ( * ) + - 74 * COUNT ( * ) / + + 95 / 81 ELSE NULL END + + 79
----
NULL

query II rowsort
SELECT DISTINCT 46, - 63 AS col0
----
46
-63

query I rowsort
SELECT 78 + 15 AS col1
----
93

query I rowsort
SELECT 85 * + 46 * - 25
----
-97750

query I rowsort
SELECT 59 + - - 46 * + + 66 - + 94 col0
----
3001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL CAST( + 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL CAST ( + 91 AS INTEGER ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + 22 * + + 51 + - 56 + COUNT( * )
----
1067

skipif mysql # not compatible
query I rowsort label-3403
SELECT + 22 * + + 51 + - 56 + COUNT ( * )
----
1067

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT + ( + 21 ) + + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3404
SELECT + ( + 21 ) + + + COUNT ( * )
----
22

query I rowsort
SELECT - 50 * + 37 * - - 5 col0
----
-9250

query I rowsort
SELECT NULLIF ( - 12, + 90 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT DISTINCT - 32 AS col0, COUNT( * ) AS col2
----
-32
1

skipif mysql # not compatible
query II rowsort label-3407
SELECT DISTINCT - 32 AS col0, COUNT ( * ) AS col2
----
-32
1

query I rowsort
SELECT 91 + 8
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - 77 + - 11 + + + CASE ( + 97 ) WHEN - + 14 * + ( + + 87 ) THEN 23 - - 2 + + + 43 + + SUM( - 80 ) / + 96 WHEN COUNT( * ) * + + 5 + + ( + + 96 ) * - + 11 THEN ( - - 2 ) WHEN 1 + 40 THEN NULL ELSE NULL END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT - 77 + - 11 + + + CASE ( + 97 ) WHEN - + 14 * + ( + + 87 ) THEN 23 - - 2 + + + 43 + + SUM ( - 80 ) / + 96 WHEN COUNT ( * ) * + + 5 + + ( + + 96 ) * - + 11 THEN ( - - 2 ) WHEN 1 + 40 THEN NULL ELSE NULL END * + 32
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3410
SELECT ALL 32 AS col0, 88 - 13 + + 93 DIV 46
----
32
77

skipif mysql # not compatible
query II rowsort label-3410
SELECT ALL 32 AS col0, 88 - 13 + + 93 / 46
----
32
77

query I rowsort
SELECT 84 + 73 col2
----
157

query I rowsort
SELECT ALL - + 18 * - 55 AS col1
----
990

query I rowsort
SELECT - NULLIF ( - - 94, + 45 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT ALL + NULLIF ( ( + COUNT( * ) ), - - 73 + + 26 + COUNT( * ) ) DIV 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL + NULLIF ( ( + COUNT ( * ) ), - - 73 + + 26 + COUNT ( * ) ) / 83 col1
----
0

query I rowsort
SELECT - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL - NULLIF ( 95, 38 ) * ( - - ( + + MAX( DISTINCT + 90 ) ) ) + + 72 + + 11 * + 1 AS col2
----
-8467

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - NULLIF ( 95, 38 ) * ( - - ( + + MAX ( DISTINCT + 90 ) ) ) + + 72 + + 11 * + 1 AS col2
----
-8467

query I rowsort
SELECT + 66 * - 29 col0
----
-1914

query I rowsort
SELECT NULLIF ( 60, + 58 ) AS col0
----
60

query I rowsort
SELECT - - 40 AS col2
----
40

query I rowsort
SELECT ( + 4 )
----
4

query I rowsort
SELECT 71 + - 62
----
9

query I rowsort
SELECT - 93 * - 94 AS col2
----
8742

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT 30 * + - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3423
SELECT 30 * + - COUNT ( * ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT - 17 DIV + 96 + NULLIF ( + 28, - 20 )
----
28

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 17 / + 96 + NULLIF ( + 28, - 20 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL - - ( - - COUNT( - 13 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - - ( - - COUNT ( - 13 ) ) AS col2
----
1

query II rowsort
SELECT DISTINCT - 91 AS col2, 73 + - - 97 AS col1
----
-91
170

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT ALL 9 DIV - + ( + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL 9 / - + ( + 60 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT COUNT( * ) * 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3428
SELECT COUNT ( * ) * 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + 92 + 38 * ( + + COUNT( * ) ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + 92 + 38 * ( + + COUNT ( * ) ) AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3430
SELECT 56 DIV 39 + CAST( + COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3430
SELECT 56 / 39 + CAST ( + COUNT ( * ) AS INTEGER )
----
2

query I rowsort
SELECT DISTINCT 8 + - 58
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-3432
SELECT ALL 66 + - 9, 57 DIV - 99 AS col1
----
57
0

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL 66 + - 9, 57 / - 99 AS col1
----
57
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT + NULLIF ( - 79, 16 ) DIV + + 69 + - 81 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3433
SELECT + NULLIF ( - 79, 16 ) / + + 69 + - 81 AS col2
----
-82

query I rowsort
SELECT ALL - 30 AS col1
----
-30

query I rowsort
SELECT DISTINCT - 46 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT 59 * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-3436
SELECT 59 * - COUNT ( * )
----
-59

query I rowsort
SELECT ALL - 33 AS col0
----
-33

query I rowsort
SELECT 4 + + 7 AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT DISTINCT + COALESCE ( - 47, 84, + - 41 DIV - 56 + 55 ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + COALESCE ( - 47, 84, + - 41 / - 56 + 55 ) col0
----
-47

query I rowsort
SELECT ALL - 16 col0
----
-16

query II rowsort
SELECT - 47 * + - 96 + 67, - 32 * - - 88 + + 72 AS col0
----
4579
-2744

query I rowsort
SELECT - 17 * + 57
----
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3443
SELECT DISTINCT + CAST( + CAST( - + 26 AS SIGNED ) AS SIGNED ) - - + 92 - + ( - - COUNT( * ) ) * 6 col2, - NULLIF ( - CAST( NULL AS SIGNED ), + 41 ) - 81 / 40 AS col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-3443
SELECT DISTINCT + CAST ( + CAST ( - + 26 AS INTEGER ) AS INTEGER ) - - + 92 - + ( - - COUNT ( * ) ) * 6 col2, - NULLIF ( - CAST ( NULL AS INTEGER ), + 41 ) - 81 / 40 AS col0
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL COUNT( + 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL COUNT ( + 74 ) AS col2
----
1

query I rowsort
SELECT - - 37 col2
----
37

query I rowsort
SELECT DISTINCT + 81
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT 62 - 7 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT 62 - 7 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 19 col0
----
19

query II rowsort
SELECT - CASE 93 WHEN 66 THEN 16 WHEN + 0 THEN NULL END * + - 96 * + ( + 46 ), - 97 AS col2
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT COUNT( * ) + + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3450
SELECT COUNT ( * ) + + + 96 AS col0
----
97

query I rowsort
SELECT ( - 66 ) AS col0
----
-66

query I rowsort
SELECT DISTINCT 12
----
12

query I rowsort
SELECT - 91 - - 58
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT - - 38 DIV - COUNT( + + 31 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-3455
SELECT - - 38 / - COUNT ( + + 31 ) col1
----
-38

query I rowsort
SELECT ALL - 24 + + 30
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT - MAX( DISTINCT + 45 ) * - ( - 81 ) AS col1
----
-3645

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT - MAX ( DISTINCT + 45 ) * - ( - 81 ) AS col1
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT COALESCE ( - 65, - - MAX( DISTINCT + 21 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3458
SELECT COALESCE ( - 65, - - MAX ( DISTINCT + 21 ) )
----
-65

query I rowsort
SELECT ALL + 99 AS col0
----
99

query I rowsort
SELECT + 15 col1
----
15

query I rowsort
SELECT COALESCE ( + 53, 30 * + - 85 * 70 + - 69 ) AS col1
----
53

query I rowsort
SELECT + 69 col1
----
69

query I rowsort
SELECT DISTINCT + 70 * 14 + - 14 * 77 * + 9 AS col2
----
-8722

query II rowsort
SELECT DISTINCT + 30 col2, - 20
----
30
-20

query II rowsort
SELECT DISTINCT + 1 AS col0, + 78 AS col1
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL 90 * - COUNT( * ) + + 34
----
-56

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL 90 * - COUNT ( * ) + + 34
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT NULLIF ( - - MAX( - 25 ), + - ( + + 96 ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3467
SELECT NULLIF ( - - MAX ( - 25 ), + - ( + + 96 ) ) AS col1
----
-25

query I rowsort
SELECT NULLIF ( 71, - - 28 ) col0
----
71

query I rowsort
SELECT - ( 39 ) * 47 AS col2
----
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3470
SELECT + COUNT( * ), + ( - - 88 ) - + 33 * + CASE - COUNT( * ) WHEN + + 68 THEN - 18 WHEN - 13 THEN NULL WHEN - 86 THEN 18 * + + 86 + AVG ( - 17 ) + COUNT( * ) WHEN - - 25 * + + 37 + COUNT( * ) * + - 77 - 53 THEN + + CAST( - 19 AS DECIMAL ) ELSE NULL END * + 61 * 59 + CAST( + 24 AS SIGNED ) * 50 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3470
SELECT + COUNT ( * ), + ( - - 88 ) - + 33 * + CASE - COUNT ( * ) WHEN + + 68 THEN - 18 WHEN - 13 THEN NULL WHEN - 86 THEN 18 * + + 86 + AVG ( - 17 ) + COUNT ( * ) WHEN - - 25 * + + 37 + COUNT ( * ) * + - 77 - 53 THEN + + CAST ( - 19 AS REAL ) ELSE NULL END * + 61 * 59 + CAST ( + 24 AS INTEGER ) * 50 AS col2
----
1
NULL

query I rowsort
SELECT + 48 AS col1
----
48

query I rowsort
SELECT + NULLIF ( - - 33, - 77 * 86 )
----
33

query I rowsort
SELECT ALL 53 * + 53
----
2809

query I rowsort
SELECT - 59 + 88 * + + 46
----
3989

query I rowsort
SELECT + 65 * 98 AS col1
----
6370

query I rowsort
SELECT ALL + - 6
----
-6

query I rowsort
SELECT DISTINCT - 88 * + 58 + 96 AS col2
----
-5008

query I rowsort
SELECT ALL - + 47 * + 40
----
-1880

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT + 68 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 68 / 48 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT - COUNT( + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-3480
SELECT - COUNT ( + 13 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT - 25 + + SUM( 5 )
----
-20

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 25 + + SUM ( 5 )
----
-20

query II rowsort
SELECT + 95 + - 50 * + + 24, + 90 * - + 34 AS col0
----
-1105
-3060

query I rowsort
SELECT - - 31
----
31

query I rowsort
SELECT + - 3 * - 87
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + 22 + COUNT( * ) * + 84 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3485
SELECT + 22 + COUNT ( * ) * + 84 AS col0
----
106

query I rowsort
SELECT ALL 29 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL + MAX( - COALESCE ( 87, CAST( - 60 AS SIGNED ) ) ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + MAX ( - COALESCE ( 87, CAST ( - 60 AS INTEGER ) ) ) AS col2
----
-87

query I rowsort
SELECT DISTINCT COALESCE ( + 23, + - 83 + - + 85 ) + + 7 col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( * ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + 47
----
NULL

query I rowsort
SELECT ALL 54 + + 34 AS col2
----
88

query I rowsort
SELECT ALL - - 46 + 51 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL - 98 + 17 * + NULLIF ( + - 36, + 12 / - - COUNT( * ) ) * + + 27
----
-16622

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - 98 + 17 * + NULLIF ( + - 36, + 12 / - - COUNT ( * ) ) * + + 27
----
-16622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT ALL 81 * + CAST( - 22 AS SIGNED ) * COUNT( * ) * + + ( + 2 ) * + - 9
----
32076

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 81 * + CAST ( - 22 AS INTEGER ) * COUNT ( * ) * + + ( + 2 ) * + - 9
----
32076

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + COUNT( DISTINCT 15 ) + - + 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3494
SELECT + COUNT ( DISTINCT 15 ) + - + 25 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - + 76 * - COUNT( * ) - MAX( DISTINCT - 98 ) + 71 AS col2
----
245

skipif mysql # not compatible
query I rowsort label-3495
SELECT - + 76 * - COUNT ( * ) - MAX ( DISTINCT - 98 ) + 71 AS col2
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - MAX( - 97 ) + + 32
----
129

skipif mysql # not compatible
query I rowsort label-3496
SELECT - MAX ( - 97 ) + + 32
----
129

query I rowsort
SELECT 8 col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3498
SELECT - ( - COUNT( * ) ), + 57 AS col2
----
1
57

skipif mysql # not compatible
query II rowsort label-3498
SELECT - ( - COUNT ( * ) ), + 57 AS col2
----
1
57

query I rowsort
SELECT DISTINCT NULLIF ( - 80, + 54 ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT ALL - 3 DIV + - 26 * - + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - 3 / + - 26 * - + 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT 66 * + COUNT( * ) + + + 85 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-3501
SELECT 66 * + COUNT ( * ) + + + 85 AS col1
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT ALL 17 DIV - - 10 + 0 DIV 31 col0
----
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL 17 / - - 10 + 0 / 31 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3503
SELECT DISTINCT ( - 57 ) / - COUNT( * ) + 13 - + + COUNT( * ) + CAST( NULL AS SIGNED ) - MAX( + 70 ) / + 3 + + - COALESCE ( - + CAST( NULL AS DECIMAL ), + 43, + 44 ) * 37 - - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT ( - 57 ) / - COUNT ( * ) + 13 - + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - MAX ( + 70 ) / + 3 + + - COALESCE ( - + CAST ( NULL AS REAL ), + 43, + 44 ) * 37 - - - 79 AS col1
----
NULL

query I rowsort
SELECT + 78 AS col0
----
78

query I rowsort
SELECT ALL + 30 * + ( - 45 ) * 4 AS col1
----
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT + 48 * + 84 * CAST( NULL AS SIGNED ) + + + AVG ( DISTINCT NULLIF ( NULLIF ( + - 48, - 30 ), - 61 ) ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT + 48 * + 84 * CAST ( NULL AS INTEGER ) + + + AVG ( DISTINCT NULLIF ( NULLIF ( + - 48, - 30 ), - 61 ) ) * - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - 71 + - - CASE - 10 WHEN - 56 THEN NULL WHEN - 79 * + 18 * + - 85 THEN 39 + + 87 - - 62 + - 18 * 77 + - 10 * AVG ( DISTINCT + 33 ) * - 55 * COUNT( * ) ELSE NULL END - + + 9 * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT - 71 + - - CASE - 10 WHEN - 56 THEN NULL WHEN - 79 * + 18 * + - 85 THEN 39 + + 87 - - 62 + - 18 * 77 + - 10 * AVG ( DISTINCT + 33 ) * - 55 * COUNT ( * ) ELSE NULL END - + + 9 * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3508
SELECT ALL + COUNT( * ) * + 17 AS col0, + 67 AS col2
----
17
67

skipif mysql # not compatible
query II rowsort label-3508
SELECT ALL + COUNT ( * ) * + 17 AS col0, + 67 AS col2
----
17
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - ( - ( 72 ) ) * MIN( + COALESCE ( - 52, + 6 ) )
----
-3744

skipif mysql # not compatible
query I rowsort label-3509
SELECT - ( - ( 72 ) ) * MIN ( + COALESCE ( - 52, + 6 ) )
----
-3744

query I rowsort
SELECT + 47 AS col2
----
47

query I rowsort
SELECT ( + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT + SUM( ALL + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT + SUM ( ALL + 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT + 26 AS col2
----
26

query I rowsort
SELECT DISTINCT + + 78
----
78

query I rowsort
SELECT DISTINCT + ( + 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3516
SELECT DISTINCT + + COALESCE ( 94, + 1 + + 95 * + 94 * COUNT( * ), - 22 DIV 39 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + + COALESCE ( 94, + 1 + + 95 * + 94 * COUNT ( * ), - 22 / 39 ) col0
----
94

query I rowsort
SELECT + 23 col0
----
23

query I rowsort
SELECT ALL + + 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - 15 * - 11 + + 21 * + 71 * + 32 + 52 * - 89 * 39 * 42 + SUM( DISTINCT + 79 ) AS col2
----
-7532708

skipif mysql # not compatible
query I rowsort label-3519
SELECT - 15 * - 11 + + 21 * + 71 * + 32 + 52 * - 89 * 39 * 42 + SUM ( DISTINCT + 79 ) AS col2
----
-7532708

query I rowsort
SELECT 65 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 85 * - 16 * 88
----
-119680

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - SUM( DISTINCT + ( - + 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3523
SELECT - SUM ( DISTINCT + ( - + 2 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT - 60 + + COUNT( DISTINCT - 81 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT - 60 + + COUNT ( DISTINCT - 81 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT - 49 * - 13
----
637

query I rowsort
SELECT ALL 26 + + 64
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT 64 + + NULLIF ( 75, + 21 / + 28 + - 22 + + COALESCE ( + 79, + COUNT( * ) * 1, COUNT( * ) + + 93 * + + 48 * - 35 + + 27 ) + + 27 * + 51 * + 43 * - ( + COUNT( * ) ) ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-3527
SELECT 64 + + NULLIF ( 75, + 21 / + 28 + - 22 + + COALESCE ( + 79, + COUNT ( * ) * 1, COUNT ( * ) + + 93 * + + 48 * - 35 + + 27 ) + + 27 * + 51 * + 43 * - ( + COUNT ( * ) ) ) AS col0
----
139

query I rowsort
SELECT - - 7
----
7

query I rowsort
SELECT + 18 + - - 55 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL ( COUNT( * ) ) + - - MIN( ALL 83 ) + + + 88 + - CASE + - 60 WHEN 22 * + 7 / COALESCE ( + 40, - 33 - COALESCE ( + - 20, - 89 * - - COALESCE ( + SUM( - 54 ), + 42 * 4 / - + AVG ( - ( + 74 ) ) ) * - 82 - 0 ) * MAX( 6 ), - COALESCE ( 30, - 52, - 47 ) ) + + COUNT( * ) + ( + 28 ) THEN CASE + 55 WHEN - 73 THEN + COUNT( * ) * CASE - 13 * + COALESCE ( COUNT( * ) * + MAX( DISTINCT + 24 ), COALESCE ( + 25, 82 / - 68, COALESCE ( - 61, 59 ), - 77 + + COUNT( * ) * + 26 ) ) WHEN - 79 * CAST( NULL AS SIGNED ) THEN NULL WHEN + 80 THEN NULL ELSE 98 * + CASE 98 WHEN ( + 73 ) + 40 * + COUNT( * ) THEN + 44 - 86 WHEN 3 THEN + 99 END + 65 * - 16 END WHEN + 81 * 12 THEN COUNT( * ) * COUNT( * ) WHEN MIN( DISTINCT - 93 ) + 28 THEN + 41 + - COUNT( * ) * - 18 ELSE NULL END - MIN( 28 ) * 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL ( COUNT ( * ) ) + - - MIN ( ALL 83 ) + + + 88 + - CASE + - 60 WHEN 22 * + 7 / COALESCE ( + 40, - 33 - COALESCE ( + - 20, - 89 * - - COALESCE ( + SUM ( - 54 ), + 42 * 4 / - + AVG ( - ( + 74 ) ) ) * - 82 - 0 ) * MAX ( 6 ), - COALESCE ( 30, - 52, - 47 ) ) + + COUNT ( * ) + ( + 28 ) THEN CASE + 55 WHEN - 73 THEN + COUNT ( * ) * CASE - 13 * + COALESCE ( COUNT ( * ) * + MAX ( DISTINCT + 24 ), COALESCE ( + 25, 82 / - 68, COALESCE ( - 61, 59 ), - 77 + + COUNT ( * ) * + 26 ) ) WHEN - 79 * CAST ( NULL AS INTEGER ) THEN NULL WHEN + 80 THEN NULL ELSE 98 * + CASE 98 WHEN ( + 73 ) + 40 * + COUNT ( * ) THEN + 44 - 86 WHEN 3 THEN + 99 END + 65 * - 16 END WHEN + 81 * 12 THEN COUNT ( * ) * COUNT ( * ) WHEN MIN ( DISTINCT - 93 ) + 28 THEN + 41 + - COUNT ( * ) * - 18 ELSE NULL END - MIN ( 28 ) * 31 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 44 * - 54
----
-2376

query I rowsort
SELECT - 67 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT ALL 37 - + 57 * 71 + - 45 + 39 + + COUNT( * ) * - 79 * + + CAST( NULL AS SIGNED ) * + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL 37 - + 57 * 71 + - 45 + 39 + + COUNT ( * ) * - 79 * + + CAST ( NULL AS INTEGER ) * + - 58 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 71
----
71

query I rowsort
SELECT 85 * 35 AS col2
----
2975

query I rowsort
SELECT DISTINCT 43 * + 1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3537
SELECT COALESCE ( - + COUNT( * ), + - 14, - - 5 ) DIV - - 67 * + 50 - + ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3537
SELECT COALESCE ( - + COUNT ( * ), + - 14, - - 5 ) / - - 67 * + 50 - + ( - - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT 69 * + + MIN( + - 28 ) DIV COUNT( * ) * - - 79 + 76 + - - 14 col0
----
-152538

skipif mysql # not compatible
query I rowsort label-3538
SELECT 69 * + + MIN ( + - 28 ) / COUNT ( * ) * - - 79 + 76 + - - 14 col0
----
-152538

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3539
SELECT ( COUNT( * ) ) DIV 87 * + 80 - 12 AS col1, COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-3539
SELECT ( COUNT ( * ) ) / 87 * + 80 - 12 AS col1, COUNT ( * )
----
-12
1

query II rowsort
SELECT 9 AS col2, 95 + - 7
----
9
88

query I rowsort
SELECT 79 col2
----
79

query I rowsort
SELECT DISTINCT - 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT ALL 11 DIV 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL 11 / 74 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT ( 63 ) - - ( 65 ) + + COUNT( * ) DIV 5 * - 55 * + 19 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-3544
SELECT ( 63 ) - - ( 65 ) + + COUNT ( * ) / 5 * - 55 * + 19 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT MIN( ALL ( - 40 ) ) * + ( + 94 )
----
-3760

skipif mysql # not compatible
query I rowsort label-3545
SELECT MIN ( ALL ( - 40 ) ) * + ( + 94 )
----
-3760

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT ALL - 94, ( + ( COUNT( * ) ) ) + + COUNT( * ) * - - 33 + - - 3 AS col0
----
-94
37

skipif mysql # not compatible
query II rowsort label-3546
SELECT ALL - 94, ( + ( COUNT ( * ) ) ) + + COUNT ( * ) * - - 33 + - - 3 AS col0
----
-94
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT MAX( DISTINCT - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-3547
SELECT MAX ( DISTINCT - 65 )
----
-65

query I rowsort
SELECT + + 68
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 14
----
-14

query I rowsort
SELECT + + 58 AS col0
----
58

query I rowsort
SELECT 73 * - 3 AS col0
----
-219

query I rowsort
SELECT 61 + + + 81
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - - COUNT( DISTINCT NULLIF ( + - 34, + 41 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - - COUNT ( DISTINCT NULLIF ( + - 34, + 41 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL + + 4 + - + NULLIF ( 54, - 46 + 5 + + + COUNT( * ) + - + COUNT( * ) + + 44 + + 67 * - - 96 * - 96 + SUM( + + 72 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + + 4 + - + NULLIF ( 54, - 46 + 5 + + + COUNT ( * ) + - + COUNT ( * ) + + 44 + + 67 * - - 96 * - 96 + SUM ( + + 72 ) ) AS col1
----
-50

query I rowsort
SELECT - 43 + - 64
----
-107

query I rowsort
SELECT ALL 13 + 30
----
43

query I rowsort
SELECT DISTINCT 18 * - + 24 AS col0
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + 8 * - + COUNT( * ) + - ( + - 23 )
----
15

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 8 * - + COUNT ( * ) + - ( + - 23 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3560
SELECT - 86 AS col2, CAST( NULL AS SIGNED ) + + COUNT( * ) * + 62 AS col0
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3560
SELECT - 86 AS col2, CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 62 AS col0
----
-86
NULL

query I rowsort
SELECT ALL + 62 + - + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT - MIN( ALL 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT - MIN ( ALL 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT NULLIF ( + + 14, + CASE + COUNT( * ) WHEN 30 * ( - - 53 ) * + 96 + - + 89 - + 21 THEN - 85 + - - CAST( NULL AS SIGNED ) / + ( - 50 ) WHEN - 98 THEN + - CAST( NULL AS SIGNED ) + - 15 + + 7 * 80 + + + CASE + 33 WHEN + 16 + + + NULLIF ( - NULLIF ( 22, - 17 ), 82 ) THEN NULL WHEN 54 * - 73 THEN 43 + 89 END ELSE NULL END ) * + 54 AS col2
----
756

skipif mysql # not compatible
query I rowsort label-3563
SELECT NULLIF ( + + 14, + CASE + COUNT ( * ) WHEN 30 * ( - - 53 ) * + 96 + - + 89 - + 21 THEN - 85 + - - CAST ( NULL AS INTEGER ) / + ( - 50 ) WHEN - 98 THEN + - CAST ( NULL AS INTEGER ) + - 15 + + 7 * 80 + + + CASE + 33 WHEN + 16 + + + NULLIF ( - NULLIF ( 22, - 17 ), 82 ) THEN NULL WHEN 54 * - 73 THEN 43 + 89 END ELSE NULL END ) * + 54 AS col2
----
756

query I rowsort
SELECT + ( - 65 ) + - 18 + 47
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT COUNT( * ) + 50 + + - 12 col1, 11 AS col2
----
39
11

skipif mysql # not compatible
query II rowsort label-3565
SELECT COUNT ( * ) + 50 + + - 12 col1, 11 AS col2
----
39
11

query I rowsort
SELECT - - 9
----
9

query I rowsort
SELECT DISTINCT - ( + ( 88 ) ) - - - 85 AS col2
----
-173

query I rowsort
SELECT ALL + 2 * - 7 AS col1
----
-14

query I rowsort
SELECT 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT + COALESCE ( - COALESCE ( + COALESCE ( + COALESCE ( + - MAX( ALL + 14 ), - + 47 ), - + 52, + + 62 ), - 74 + 57, - - 82 ), - 59 + - 91 + COUNT( * ) * - 76 ) * - 23 AS col2
----
-322

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + COALESCE ( - COALESCE ( + COALESCE ( + COALESCE ( + - MAX ( ALL + 14 ), - + 47 ), - + 52, + + 62 ), - 74 + 57, - - 82 ), - 59 + - 91 + COUNT ( * ) * - 76 ) * - 23 AS col2
----
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3571
SELECT ALL - 75 - COALESCE ( + 44, + 24 DIV - + CAST( + MAX( - + 32 ) AS SIGNED ), - COUNT( * ) - - - 53 )
----
-119

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL - 75 - COALESCE ( + 44, + 24 / - + CAST ( + MAX ( - + 32 ) AS INTEGER ), - COUNT ( * ) - - - 53 )
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3572
SELECT DISTINCT + 21 * + NULLIF ( + + 0, 96 + - - 88 / - 94 + CAST( - 42 AS SIGNED ) / - 14 ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT + 21 * + NULLIF ( + + 0, 96 + - - 88 / - 94 + CAST ( - 42 AS INTEGER ) / - 14 ) * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 13
----
13

query II rowsort
SELECT ALL 64, 77 AS col0
----
64
77

query I rowsort
SELECT ALL + 3 * + - 79
----
-237

query I rowsort
SELECT DISTINCT - 48 * + 4 * 35 col1
----
-6720

query I rowsort
SELECT 53 * - - 43 AS col1
----
2279

query I rowsort
SELECT 88 * + - 11 AS col2
----
-968

query I rowsort
SELECT 59 + - 53
----
6

query I rowsort
SELECT 69 * - 38 * - - 45
----
-117990

query I rowsort
SELECT 78 * - 10 AS col2
----
-780

query I rowsort
SELECT 14 * 59 AS col1
----
826

onlyif mysql # DIV for integer division: 
query II rowsort label-3583
SELECT ALL 87 AS col1, + 93 DIV - + ( - 29 ) AS col2
----
87
3

skipif mysql # not compatible
query II rowsort label-3583
SELECT ALL 87 AS col1, + 93 / - + ( - 29 ) AS col2
----
87
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT CASE + SUM( + 22 ) WHEN + 64 THEN - + 29 + 40 WHEN + 2 THEN - 88 / - + COUNT( * ) WHEN + 78 THEN NULL END + + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT CASE + SUM ( + 22 ) WHEN + 64 THEN - + 29 + 40 WHEN + 2 THEN - 88 / - + COUNT ( * ) WHEN + 78 THEN NULL END + + + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL COUNT( * ) * + 98
----
98

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL COUNT ( * ) * + 98
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT ALL - COUNT( + CAST( + 48 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - COUNT ( + CAST ( + 48 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - 47
----
-46

query I rowsort
SELECT ( - ( + ( - 49 ) ) ) * - ( - + 90 ) + 67 AS col1
----
4477

query I rowsort
SELECT 96 + 30 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT - 60 * 42 + 61 + + COUNT( * ) + + COUNT( * ) + + 55 + + - CAST( + ( + + 10 ) AS SIGNED ) * + + COUNT( * ) + + 36 + + + 64 AS col0
----
-2312

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 60 * 42 + 61 + + COUNT ( * ) + + COUNT ( * ) + + 55 + + - CAST ( + ( + + 10 ) AS INTEGER ) * + + COUNT ( * ) + + 36 + + + 64 AS col0
----
-2312

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3592
SELECT 29 * NULLIF ( 74, - CAST( - ( 82 ) AS DECIMAL ) ) AS col2, - ( - - 2 ) AS col2
----
2146
-2

skipif mysql # not compatible
query II rowsort label-3592
SELECT 29 * NULLIF ( 74, - CAST ( - ( 82 ) AS REAL ) ) AS col2, - ( - - 2 ) AS col2
----
2146
-2

query I rowsort
SELECT ALL - ( 27 ) * + 15 * - + 91
----
36855

query I rowsort
SELECT DISTINCT + + 75 * - - 72 + - - 24
----
5424

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT DISTINCT + - COUNT( * ) AS col1, 89 * 14 + + + 62 + + + 64 * + + COALESCE ( + ( 0 ), - + COUNT( - 96 ) ) AS col0
----
-1
1308

skipif mysql # not compatible
query II rowsort label-3595
SELECT DISTINCT + - COUNT ( * ) AS col1, 89 * 14 + + + 62 + + + 64 * + + COALESCE ( + ( 0 ), - + COUNT ( - 96 ) ) AS col0
----
-1
1308

query I rowsort
SELECT DISTINCT + - 6
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT ALL CASE - + 69 WHEN - 91 * + 59 * 31 + - 98 * + 49 * + 27 * 87 + + 53 THEN NULL ELSE CASE + AVG ( ALL - + 24 ) WHEN - 50 * + + 80 * - 82 * - 51 - + CASE 0 WHEN - - COUNT( * ) THEN NULL WHEN + - 71 THEN - + 81 / - - 20 * - NULLIF ( - 79, - - 37 ) ELSE - 62 END + - 82 THEN - ( CAST( NULL AS SIGNED ) ) + - 98 WHEN - CAST( NULL AS SIGNED ) * 60 THEN - 48 WHEN 27 THEN 51 ELSE NULL END * COUNT( * ) END * 13 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL CASE - + 69 WHEN - 91 * + 59 * 31 + - 98 * + 49 * + 27 * 87 + + 53 THEN NULL ELSE CASE + AVG ( ALL - + 24 ) WHEN - 50 * + + 80 * - 82 * - 51 - + CASE 0 WHEN - - COUNT ( * ) THEN NULL WHEN + - 71 THEN - + 81 / - - 20 * - NULLIF ( - 79, - - 37 ) ELSE - 62 END + - 82 THEN - ( CAST ( NULL AS INTEGER ) ) + - 98 WHEN - CAST ( NULL AS INTEGER ) * 60 THEN - 48 WHEN 27 THEN 51 ELSE NULL END * COUNT ( * ) END * 13 + + 9
----
NULL

query I rowsort
SELECT + - 55 * + 60
----
-3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3599
SELECT ALL NULLIF ( - - 29, 69 * - 29 * COUNT( * ) * + 53 ) DIV + 7 + + - 43 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL NULLIF ( - - 29, 69 * - 29 * COUNT ( * ) * + 53 ) / + 7 + + - 43 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL + 91 + - MAX( ALL + + 92 ) + - 61 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + 91 + - MAX ( ALL + + 92 ) + - 61 AS col0
----
-62

query I rowsort
SELECT + - 98 AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT CASE + - CAST( - - 38 AS SIGNED ) WHEN + 56 THEN CAST( - - CAST( - 77 AS SIGNED ) AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT CASE + - CAST ( - - 38 AS INTEGER ) WHEN + 56 THEN CAST ( - - CAST ( - 77 AS INTEGER ) AS INTEGER ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT - 77 DIV 22
----
-3

skipif mysql # not compatible
query I rowsort label-3603
SELECT - 77 / 22
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + - COUNT( ALL + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-3604
SELECT + - COUNT ( ALL + 48 )
----
-1

query I rowsort
SELECT - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL - NULLIF ( - 7, COUNT( * ) + - 14 ) * - - 48 AS col2
----
336

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - NULLIF ( - 7, COUNT ( * ) + - 14 ) * - - 48 AS col2
----
336

query I rowsort
SELECT DISTINCT + 97 - 95
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - + COUNT( * ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-3608
SELECT - + COUNT ( * ) + + 50
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3609
SELECT - COUNT( * ) AS col2, 69
----
-1
69

skipif mysql # not compatible
query II rowsort label-3609
SELECT - COUNT ( * ) AS col2, 69
----
-1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL NULLIF ( - 50, - - 50 * - + 84 - COUNT( * ) + + CASE - + 59 WHEN - + ( - 35 ) * 29 THEN - + 52 ELSE + + COALESCE ( - 53, - + ( 38 ), ( + + 10 ) * 40 * + NULLIF ( - + COUNT( DISTINCT + 44 ), + 97 ) - + NULLIF ( + 71, + 8 ) * - COUNT( * ) * - + ( - 90 ) ) END + + 44 ) - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL NULLIF ( - 50, - - 50 * - + 84 - COUNT ( * ) + + CASE - + 59 WHEN - + ( - 35 ) * 29 THEN - + 52 ELSE + + COALESCE ( - 53, - + ( 38 ), ( + + 10 ) * 40 * + NULLIF ( - + COUNT ( DISTINCT + 44 ), + 97 ) - + NULLIF ( + 71, + 8 ) * - COUNT ( * ) * - + ( - 90 ) ) END + + 44 ) - + COUNT ( * )
----
-51

query I rowsort
SELECT ALL 32 * 39
----
1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT DISTINCT CASE - 64 WHEN + CAST( + 89 AS SIGNED ) THEN NULL ELSE + 66 END
----
66

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT CASE - 64 WHEN + CAST ( + 89 AS INTEGER ) THEN NULL ELSE + 66 END
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT + COUNT( ALL - 13 ) + COUNT( ( + 69 ) ), 27 * - 63 * - 56 AS col2
----
2
95256

skipif mysql # not compatible
query II rowsort label-3613
SELECT + COUNT ( ALL - 13 ) + COUNT ( ( + 69 ) ), 27 * - 63 * - 56 AS col2
----
2
95256

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - CASE + 40 WHEN + 32 + + MIN( + 22 ) THEN 54 END * + NULLIF ( ( + - CASE + 89 WHEN COALESCE ( + COUNT( * ), - - 98 + - - 12 ) + - 72 * + 86 THEN NULL WHEN + 28 * 15 THEN + + 46 ELSE NULL END ), - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - CASE + 40 WHEN + 32 + + MIN ( + 22 ) THEN 54 END * + NULLIF ( ( + - CASE + 89 WHEN COALESCE ( + COUNT ( * ), - - 98 + - - 12 ) + - 72 * + 86 THEN NULL WHEN + 28 * 15 THEN + + 46 ELSE NULL END ), - 99 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3615
SELECT + SUM( - + 83 ) * - - 0 + CAST( + - 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-3615
SELECT + SUM ( - + 83 ) * - - 0 + CAST ( + - 54 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL NULLIF ( - + 38, - COUNT( * ) * - 21 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL NULLIF ( - + 38, - COUNT ( * ) * - 21 ) AS col2
----
-38

query II rowsort
SELECT - 72 + 59 AS col2, 98
----
-13
98

query I rowsort
SELECT 42 AS col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-3619
SELECT - ( - 13 ) DIV 23 - 33 * + - 15 AS col0, 20
----
495
20

skipif mysql # not compatible
query II rowsort label-3619
SELECT - ( - 13 ) / 23 - 33 * + - 15 AS col0, 20
----
495
20

query I rowsort
SELECT - 49 * 22 AS col0
----
-1078

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT ALL + 72 * + 74, NULLIF ( - + COUNT( * ), - - 85 ) AS col1
----
5328
-1

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL + 72 * + 74, NULLIF ( - + COUNT ( * ), - - 85 ) AS col1
----
5328
-1

query I rowsort
SELECT 18 col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT DISTINCT + 99 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + 99 / - 34
----
-2

query I rowsort
SELECT - 32 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT - CAST( - 3 AS SIGNED ) + - - 51
----
54

skipif mysql # not compatible
query I rowsort label-3625
SELECT - CAST ( - 3 AS INTEGER ) + - - 51
----
54

query I rowsort
SELECT ALL + 81 * + - 45 AS col2
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT NULLIF ( - ( SUM( ALL - + 25 ) ), 60 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT NULLIF ( - ( SUM ( ALL - + 25 ) ), 60 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL + 72 + 30 + - CASE WHEN + 61 < NULL THEN - COUNT( * ) END + - 74 * - 95 + - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + 72 + 30 + - CASE WHEN + 61 < NULL THEN - COUNT ( * ) END + - 74 * - 95 + - + 60 AS col2
----
NULL

query I rowsort
SELECT ALL 40 col2
----
40

query II rowsort
SELECT ALL - NULLIF ( COALESCE ( + - 9, + 52 - 31, - ( - 93 ) * 56 + + 17 ), + ( + 96 ) ) + + 52 AS col1, - 65
----
61
-65

query I rowsort
SELECT - 43 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT - 0 * - 11 DIV - + 37
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - 0 * - 11 / - + 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT + SUM( + + 64 ) * - 17, + 83 AS col2
----
-1088
83

skipif mysql # not compatible
query II rowsort label-3633
SELECT + SUM ( + + 64 ) * - 17, + 83 AS col2
----
-1088
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3634
SELECT ALL + CASE 24 WHEN 35 THEN NULL WHEN - ( - CAST( 46 AS DECIMAL ) ) * - COUNT( * ) * + + COUNT( * ) * - 56 * COUNT( * ) - - - 38 THEN MIN( DISTINCT + + 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + CASE 24 WHEN 35 THEN NULL WHEN - ( - CAST ( 46 AS REAL ) ) * - COUNT ( * ) * + + COUNT ( * ) * - 56 * COUNT ( * ) - - - 38 THEN MIN ( DISTINCT + + 1 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ( COUNT( - 84 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3635
SELECT ( COUNT ( - 84 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL + - 41 * + 47 + - - 27 + + NULLIF ( + NULLIF ( + - 73, 36 ), - 41 * + 98 * + 83 ) + + + 81 * 3 + - COUNT( * ) * - + 83
----
-1647

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + - 41 * + 47 + - - 27 + + NULLIF ( + NULLIF ( + - 73, 36 ), - 41 * + 98 * + 83 ) + + + 81 * 3 + - COUNT ( * ) * - + 83
----
-1647

query I rowsort
SELECT ALL 51 * - ( - - 94 )
----
-4794

query I rowsort
SELECT DISTINCT + - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - + 43 * + - 68 + - - COUNT( * ) * 63 AS col0
----
2987

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - + 43 * + - 68 + - - COUNT ( * ) * 63 AS col0
----
2987

query I rowsort
SELECT DISTINCT - ( - COALESCE ( - + 24, - ( - + 29 ) ) ) * + 77 AS col0
----
-1848

query I rowsort
SELECT DISTINCT + - 74 col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT - 24 * ( - 19 ) + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 24 * ( - 19 ) + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + COUNT( * ) - - 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COUNT ( * ) - - 55 AS col1
----
56

query I rowsort
SELECT ALL 18 * 45
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT ALL + 2 * COUNT( * ) - - 80 + CAST( NULL AS SIGNED ) / 6 * + 3 + - - CAST( - + 17 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + 2 * COUNT ( * ) - - 80 + CAST ( NULL AS INTEGER ) / 6 * + 3 + - - CAST ( - + 17 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 36 * + 10, 38 AS col2
----
360
38

query II rowsort
SELECT + 5 + - 35, 35 + + 27 AS col2
----
-30
62

query I rowsort
SELECT + 49 AS col1
----
49

query I rowsort
SELECT + + 48 + + NULLIF ( + 56, - + 57 + + + 48 )
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT + + CAST( NULL AS SIGNED ) * - ( - + ( - + 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + + CAST ( NULL AS INTEGER ) * - ( - + ( - + 1 ) )
----
NULL

query I rowsort
SELECT ALL + + 98 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3653
SELECT + COUNT( * ) * 12 + + 78 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT + COUNT ( * ) * 12 + + 78 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 50 * - - 91 + + 87 AS col0
----
4637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT - CAST( + CAST( - 96 AS SIGNED ) AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3655
SELECT - CAST ( + CAST ( - 96 AS INTEGER ) AS INTEGER ) AS col1
----
96

query I rowsort
SELECT + 91 * 53
----
4823

query I rowsort
SELECT - ( + 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - ( + + 50 ) + + COALESCE ( - NULLIF ( 49, + - MAX( - 68 ) + + 23 * + 0 ), - 43 * - COALESCE ( + COUNT( * ), + 98 + + 76 ) + COUNT( * ) * - 70 + - 77 )
----
-99

skipif mysql # not compatible
query I rowsort label-3658
SELECT - ( + + 50 ) + + COALESCE ( - NULLIF ( 49, + - MAX ( - 68 ) + + 23 * + 0 ), - 43 * - COALESCE ( + COUNT ( * ), + 98 + + 76 ) + COUNT ( * ) * - 70 + - 77 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT COUNT( * ) AS col1, - 35
----
1
-35

skipif mysql # not compatible
query II rowsort label-3659
SELECT COUNT ( * ) AS col1, - 35
----
1
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT 78 * 79 * + + ( 60 ) * + MAX( + - 80 )
----
-29577600

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT 78 * 79 * + + ( 60 ) * + MAX ( + - 80 )
----
-29577600

query II rowsort
SELECT - 19, - 43 col0
----
-19
-43

query I rowsort
SELECT + 60 + + 44
----
104

query II rowsort
SELECT DISTINCT 22, - 45 AS col2
----
22
-45

query I rowsort
SELECT ALL 25 * + 82
----
2050

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT DISTINCT 25, - 41 * + + COUNT( * ) AS col1
----
25
-41

skipif mysql # not compatible
query II rowsort label-3665
SELECT DISTINCT 25, - 41 * + + COUNT ( * ) AS col1
----
25
-41

query I rowsort
SELECT ALL ( - 49 ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL 19 + - CAST( + ( + - 90 ) AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 19 + - CAST ( + ( + - 90 ) AS INTEGER )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3668
SELECT + CAST( NULL AS SIGNED ) + - + 84 * - 2 AS col2, - ( + - 20 ) AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-3668
SELECT + CAST ( NULL AS INTEGER ) + - + 84 * - 2 AS col2, - ( + - 20 ) AS col0
----
NULL
20

query I rowsort
SELECT - 7 - 40
----
-47

query I rowsort
SELECT DISTINCT + 68 + - 45 * 43
----
-1867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT ALL COALESCE ( + + 72, COUNT( * ) + CAST( NULL AS SIGNED ) * + 14 )
----
72

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL COALESCE ( + + 72, COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 14 )
----
72

query I rowsort
SELECT - 83 + + - 88 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - COUNT( * ) * - - 21
----
-21

skipif mysql # not compatible
query I rowsort label-3673
SELECT - COUNT ( * ) * - - 21
----
-21

query I rowsort
SELECT ALL ( 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3675
SELECT ALL + COALESCE ( + 19, ( + 83 ) DIV + + 91 + - + 79 * - 7 DIV - 2 + - - 68, + 35 ) + - COUNT( * ) * + CAST( + - 69 AS SIGNED ) * + 44 col0, COUNT( * ) * + - 71 * - 48 + + CASE 48 WHEN 51 THEN - CASE - 92 WHEN - 38 * + 82 THEN - - 32 WHEN - ( + - 4 ) + + + 93 * ( 66 ) THEN NULL ELSE NULL END - + CASE - ( + CASE + 34 WHEN - AVG ( ALL + 74 ) THEN + CASE WHEN ( - 46 ) NOT IN ( - ( + ( + 95 ) ) + AVG ( ALL 61 ) ) THEN - 89 ELSE - ( 35 ) * + 99 END WHEN 17 THEN NULL ELSE 35 END ) WHEN + NULLIF ( 89, 26 + - ( MAX( 98 ) ) ) THEN 47 + ( + COUNT( * ) ) * 93 WHEN + 65 - - 59 THEN COALESCE ( - CASE 38 WHEN + 40 * 3 THEN CAST( NULL AS SIGNED ) ELSE 4 END, - 70 - - MAX( ALL 55 + ( + 79 ) ) ) END END col2
----
3055
NULL

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL + COALESCE ( + 19, ( + 83 ) / + + 91 + - + 79 * - 7 / - 2 + - - 68, + 35 ) + - COUNT ( * ) * + CAST ( + - 69 AS INTEGER ) * + 44 col0, COUNT ( * ) * + - 71 * - 48 + + CASE 48 WHEN 51 THEN - CASE - 92 WHEN - 38 * + 82 THEN - - 32 WHEN - ( + - 4 ) + + + 93 * ( 66 ) THEN NULL ELSE NULL END - + CASE - ( + CASE + 34 WHEN - AVG ( ALL + 74 ) THEN + CASE WHEN ( - 46 ) NOT IN ( - ( + ( + 95 ) ) + AVG ( ALL 61 ) ) THEN - 89 ELSE - ( 35 ) * + 99 END WHEN 17 THEN NULL ELSE 35 END ) WHEN + NULLIF ( 89, 26 + - ( MAX ( 98 ) ) ) THEN 47 + ( + COUNT ( * ) ) * 93 WHEN + 65 - - 59 THEN COALESCE ( - CASE 38 WHEN + 40 * 3 THEN CAST ( NULL AS INTEGER ) ELSE 4 END, - 70 - - MAX ( ALL 55 + ( + 79 ) ) ) END END col2
----
3055
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3676
SELECT - 71 + - - NULLIF ( + - CAST( 35 AS SIGNED ), CAST( NULL AS SIGNED ) + - MIN( 9 ) ) + 94 + - ( + + 72 )
----
-84

skipif mysql # not compatible
query I rowsort label-3676
SELECT - 71 + - - NULLIF ( + - CAST ( 35 AS INTEGER ), CAST ( NULL AS INTEGER ) + - MIN ( 9 ) ) + 94 + - ( + + 72 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT ALL + 85 + + 42 + + COUNT( * ) / ( ( COUNT( * ) ) ) * CASE 10 WHEN - - 39 THEN NULL WHEN - - 13 * - + COUNT( * ) + + 70 + + ( - 17 ) THEN + - 27 END + 99 * - 86 * + COUNT( * ) - + - NULLIF ( - - 53, - 78 * + - COUNT( * ) ) + + COUNT( * ), 89 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-3677
SELECT ALL + 85 + + 42 + + COUNT ( * ) / ( ( COUNT ( * ) ) ) * CASE 10 WHEN - - 39 THEN NULL WHEN - - 13 * - + COUNT ( * ) + + 70 + + ( - 17 ) THEN + - 27 END + 99 * - 86 * + COUNT ( * ) - + - NULLIF ( - - 53, - 78 * + - COUNT ( * ) ) + + COUNT ( * ), 89 AS col2
----
NULL
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT ALL - 15 DIV - - 43 + + 57 * + 56 + 54 col0
----
3246

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL - 15 / - - 43 + + 57 * + 56 + 54 col0
----
3246

query I rowsort
SELECT - 96 + + + COALESCE ( NULLIF ( 19, - 47 ), - 60 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL - - COUNT( ALL ( + 13 ) ) + 63 * + 68
----
4285

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - - COUNT ( ALL ( + 13 ) ) + 63 * + 68
----
4285

query I rowsort
SELECT - - 92 * + + 46 + + ( 13 ) AS col1
----
4245

query I rowsort
SELECT - 23 * - 35 + + - 10 + + COALESCE ( - 85, + - 76 * 30 ) col1
----
710

query II rowsort
SELECT + 21 AS col0, - 29 + - + 45
----
21
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + COALESCE ( - 84, - + 1, + 50 ) + + - SUM( DISTINCT - 13 ) + 64 * - - 22 AS col1
----
1337

skipif mysql # not compatible
query I rowsort label-3684
SELECT + COALESCE ( - 84, - + 1, + 50 ) + + - SUM ( DISTINCT - 13 ) + 64 * - - 22 AS col1
----
1337

query II rowsort
SELECT 86 col1, 99 + - 53
----
86
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3686
SELECT + CAST( + 87 AS SIGNED ) * 56 DIV + ( + + 45 ) + 3 + 75
----
186

skipif mysql # not compatible
query I rowsort label-3686
SELECT + CAST ( + 87 AS INTEGER ) * 56 / + ( + + 45 ) + 3 + 75
----
186

query I rowsort
SELECT 28 + + 79 - + 96 * + - 81 * + 3
----
23435

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL - 83 DIV - - 40 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - 83 / - - 40 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT 15 DIV + 42 - - 71 + 52 + - 66 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3689
SELECT 15 / + 42 - - 71 + 52 + - 66 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3690
SELECT 58 DIV + - ( + + COUNT( ALL 86 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-3690
SELECT 58 / + - ( + + COUNT ( ALL 86 ) )
----
-58

query I rowsort
SELECT ALL - ( + 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT + CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-3692
SELECT + CAST ( 8 AS INTEGER )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL + - CAST( - 81 AS SIGNED ) - 85 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + - CAST ( - 81 AS INTEGER ) - 85 AS col2
----
-4

query I rowsort
SELECT ALL - + 86
----
-86

query I rowsort
SELECT DISTINCT - 35 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL + 59 * 88 * SUM( DISTINCT + + 13 )
----
67496

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL + 59 * 88 * SUM ( DISTINCT + + 13 )
----
67496

query I rowsort
SELECT + + 53
----
53

query I rowsort
SELECT DISTINCT - + 13 AS col1
----
-13

query I rowsort
SELECT + 51 col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT + + COUNT( * ) AS col2, 76 * - 11 col0
----
1
-836

skipif mysql # not compatible
query II rowsort label-3700
SELECT + + COUNT ( * ) AS col2, 76 * - 11 col0
----
1
-836

query I rowsort
SELECT 62 * + - 83
----
-5146

query I rowsort
SELECT ALL - 81 * ( - 23 )
----
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT 94 DIV SUM( - 82 ) * 22 * - + 93
----
2046

skipif mysql # not compatible
query I rowsort label-3703
SELECT 94 / SUM ( - 82 ) * 22 * - + 93
----
2046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT 43 + - 86 * + 75 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT 43 + - 86 * + 75 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 66 + + 2 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT 84 DIV 38 * - 54 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-3706
SELECT 84 / 38 * - 54 AS col1
----
-108

query I rowsort
SELECT ALL 83 col1
----
83

query I rowsort
SELECT DISTINCT 30 + + 52 + - 25 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT COUNT( * ) * - 11 * + 92 * CAST( - 52 AS SIGNED )
----
52624

skipif mysql # not compatible
query I rowsort label-3709
SELECT COUNT ( * ) * - 11 * + 92 * CAST ( - 52 AS INTEGER )
----
52624

query I rowsort
SELECT DISTINCT 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT COUNT( * ) + + - 69 + - + 3 * + 9
----
-95

skipif mysql # not compatible
query I rowsort label-3711
SELECT COUNT ( * ) + + - 69 + - + 3 * + 9
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3712
SELECT DISTINCT 70 * + - CASE + - ( + + 56 ) WHEN - 34 + - + 7 + - 64 THEN - MIN( ALL + - CAST( + 85 AS DECIMAL ) ) END * - + 10 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT 70 * + - CASE + - ( + + 56 ) WHEN - 34 + - + 7 + - 64 THEN - MIN ( ALL + - CAST ( + 85 AS REAL ) ) END * - + 10 * 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT DISTINCT + CAST( + 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT + CAST ( + 26 AS INTEGER )
----
26

query I rowsort
SELECT DISTINCT - 37 * - 63
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT MIN( ALL - + 91 ) + 41 - 29 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3715
SELECT MIN ( ALL - + 91 ) + 41 - 29 AS col2
----
-79

query I rowsort
SELECT DISTINCT + ( - - 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL - CASE + COUNT( * ) WHEN COUNT( * ) - 75 THEN - + 53 ELSE + COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - CASE + COUNT ( * ) WHEN COUNT ( * ) - 75 THEN - + 53 ELSE + COUNT ( * ) END AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3718
SELECT - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT + CAST( + ( + + 84 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3719
SELECT + CAST ( + ( + + 84 ) AS INTEGER )
----
84

query II rowsort
SELECT 84 - 45, + 94 AS col1
----
39
94

query I rowsort
SELECT + 87 * + 88 - + 66
----
7590

query I rowsort
SELECT ALL - 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT COUNT( * ) * - + 43 - + 38 * - 77 * - + 52
----
-152195

skipif mysql # not compatible
query I rowsort label-3723
SELECT COUNT ( * ) * - + 43 - + 38 * - 77 * - + 52
----
-152195

query I rowsort
SELECT ALL - - 40 * + 78 * 94
----
293280

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT DISTINCT + 10 DIV - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + 10 / - 30 AS col0
----
0

query I rowsort
SELECT + 67 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT + + CAST( - 85 AS SIGNED ) * - 92 * - 4 + - - 21
----
-31259

skipif mysql # not compatible
query I rowsort label-3727
SELECT + + CAST ( - 85 AS INTEGER ) * - 92 * - 4 + - - 21
----
-31259

query I rowsort
SELECT 99 - 46 * - 20 AS col1
----
1019

query I rowsort
SELECT ALL + 85 * + 29 * - 72
----
-177480

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - COUNT( ALL + 69 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3730
SELECT - COUNT ( ALL + 69 ) * COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT - 90 * - - 1 DIV + + 96 + + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-3731
SELECT - 90 * - - 1 / + + 96 + + - 99
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT 4 DIV + + 96 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT 4 / + + 96 * + 93
----
0

query I rowsort
SELECT ALL - 85 + 48 AS col1
----
-37

query I rowsort
SELECT 78 + - 85
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3735
SELECT ALL + 58 + - 77 DIV + + COALESCE ( - ( - + 11 ), + 23 * + + 69 * - - 84 DIV COUNT( * ) + - + 40 * + + SUM( DISTINCT + - ( + - 88 ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + 58 + - 77 / + + COALESCE ( - ( - + 11 ), + 23 * + + 69 * - - 84 / COUNT ( * ) + - + 40 * + + SUM ( DISTINCT + - ( + - 88 ) ) )
----
51

query I rowsort
SELECT 88 + + 70
----
158

query I rowsort
SELECT ALL - ( - 48 ) AS col1
----
48

query I rowsort
SELECT DISTINCT + 40 + - 70
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - 86 + - CASE - 7 WHEN 18 THEN + - COUNT( * ) * - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - 86 + - CASE - 7 WHEN 18 THEN + - COUNT ( * ) * - 47 END
----
NULL

query II rowsort
SELECT DISTINCT - 71 AS col2, 60 AS col2
----
-71
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT COUNT( * ) + COUNT( * ) * + - 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-3741
SELECT COUNT ( * ) + COUNT ( * ) * + - 98 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL + COUNT( * ) + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + COUNT ( * ) + - 36 AS col0
----
-35

query I rowsort
SELECT 84 + - + 9 col1
----
75

query I rowsort
SELECT 87 * - 83
----
-7221

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT 23 + + - 99 * 82 + COUNT( * ) + + 22
----
-8072

skipif mysql # not compatible
query I rowsort label-3745
SELECT 23 + + - 99 * 82 + COUNT ( * ) + + 22
----
-8072

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL - COUNT( ALL - 18 ) * - 5
----
5

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - COUNT ( ALL - 18 ) * - 5
----
5

query I rowsort
SELECT ALL 85 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - 30 * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3748
SELECT - 30 * - COUNT ( * )
----
30

query I rowsort
SELECT ALL - 50 * 95 AS col2
----
-4750

query I rowsort
SELECT DISTINCT 42 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL CASE + 73 WHEN - + ( + ( + 54 ) ) * - 21 THEN + 57 WHEN - 59 * NULLIF ( + + COUNT( * ), - + 41 * - 74 ) + + + 49 THEN 3 ELSE 78 * + 99 END AS col1
----
7722

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL CASE + 73 WHEN - + ( + ( + 54 ) ) * - 21 THEN + 57 WHEN - 59 * NULLIF ( + + COUNT ( * ), - + 41 * - 74 ) + + + 49 THEN 3 ELSE 78 * + 99 END AS col1
----
7722

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3752
SELECT ALL - ( - - 80 ) - + CAST( NULL AS DECIMAL ) + COUNT( * ) + + 13 + - 46 * + + 52 * - - 4 * + ( + + MIN( DISTINCT 20 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - ( - - 80 ) - + CAST ( NULL AS REAL ) + COUNT ( * ) + + 13 + - 46 * + + 52 * - - 4 * + ( + + MIN ( DISTINCT 20 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT + 0 * + 73 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT + 0 * + 73 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 77 AS col2
----
77

query I rowsort
SELECT - - 2 + + 32 + + 31
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT ALL - 33 DIV - 28 col0
----
1

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - 33 / - 28 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + COUNT( * ) * 29
----
29

skipif mysql # not compatible
query I rowsort label-3757
SELECT + COUNT ( * ) * 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + 14 + + + COUNT( DISTINCT + 67 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3758
SELECT + 14 + + + COUNT ( DISTINCT + 67 ) AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3759
SELECT - 17 AS col0, - CAST( 34 AS SIGNED )
----
-17
-34

skipif mysql # not compatible
query II rowsort label-3759
SELECT - 17 AS col0, - CAST ( 34 AS INTEGER )
----
-17
-34

query I rowsort
SELECT + 67 + + + 10
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3761
SELECT + SUM( - - 10 ) DIV + 18 * - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT + SUM ( - - 10 ) / + 18 * - 68 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL 25 * - COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL 25 * - COUNT ( * ) col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT + - MAX( DISTINCT + 66 ) + + + 80, - 16 AS col2
----
14
-16

skipif mysql # not compatible
query II rowsort label-3764
SELECT + - MAX ( DISTINCT + 66 ) + + + 80, - 16 AS col2
----
14
-16

query I rowsort
SELECT DISTINCT + - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3766
SELECT + + ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 82 * + 32 * + 3 + + 24 col0
----
7896

query I rowsort
SELECT DISTINCT + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + + 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3769
SELECT + + 25 * COUNT ( * )
----
25

query I rowsort
SELECT + 13 AS col1
----
13

query I rowsort
SELECT - 44 + - 64
----
-108

query I rowsort
SELECT ALL - 10 * + 17 * - 32 + - - 72 + 56 + + 49 * - 24 * + 22
----
-20304

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT + 88 * + - MAX( + 25 ) * + - 60 * + ( + 55 ) + + + COUNT( * ) AS col1
----
7260001

skipif mysql # not compatible
query I rowsort label-3773
SELECT + 88 * + - MAX ( + 25 ) * + - 60 * + ( + 55 ) + + + COUNT ( * ) AS col1
----
7260001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL 46 * - 31 + - 2 * + 87 + + + CAST( + 43 AS SIGNED ) AS col0
----
-1557

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 46 * - 31 + - 2 * + 87 + + + CAST ( + 43 AS INTEGER ) AS col0
----
-1557

query II rowsort
SELECT + 96, + 64 * - 44 AS col2
----
96
-2816

query I rowsort
SELECT ALL + + 66 AS col0
----
66

query I rowsort
SELECT DISTINCT + 44 * - 35 AS col2
----
-1540

query I rowsort
SELECT ALL 70 * - 57 + + 85 AS col2
----
-3905

query II rowsort
SELECT DISTINCT + 36 AS col0, 73
----
36
73

query I rowsort
SELECT NULLIF ( + 22, 41 + + - ( - 90 ) + - 54 * - 99 )
----
22

query I rowsort
SELECT + ( - + 28 ) - - 94
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT - 66 * - - ( - COALESCE ( - 10, + COUNT( * ) * + 62 + 89 ) )
----
-660

skipif mysql # not compatible
query I rowsort label-3782
SELECT - 66 * - - ( - COALESCE ( - 10, + COUNT ( * ) * + 62 + 89 ) )
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT - 42 * - + 71 * COUNT( * ) AS col1
----
2982

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 42 * - + 71 * COUNT ( * ) AS col1
----
2982

onlyif mysql # aggregate syntax: 
query II rowsort label-3784
SELECT + COUNT( * ), + ( + 75 ) AS col0
----
1
75

skipif mysql # not compatible
query II rowsort label-3784
SELECT + COUNT ( * ), + ( + 75 ) AS col0
----
1
75

query I rowsort
SELECT - 30 * - - 37 AS col1
----
-1110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3786
SELECT ALL + SUM( ALL - 43 ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL + SUM ( ALL - 43 ) / 94 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT CAST( + ( - 72 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT CAST ( + ( - 72 ) AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT COUNT( * ) AS col0, 16
----
1
16

skipif mysql # not compatible
query II rowsort label-3788
SELECT COUNT ( * ) AS col0, 16
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL + ( ( ( + 48 ) ) ) - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + ( ( ( + 48 ) ) ) - - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT COALESCE ( - 56, ( + COUNT( * ) ) + - COALESCE ( - 89, + + 62 ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT COALESCE ( - 56, ( + COUNT ( * ) ) + - COALESCE ( - 89, + + 62 ) ) AS col0
----
-56

query II rowsort
SELECT - 76 * - - 83, 6 AS col2
----
-6308
6

query I rowsort
SELECT ALL ( + 29 )
----
29

query I rowsort
SELECT - + 57 col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT + 3 * 35 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + 3 * 35 / 65 AS col0
----
1

query I rowsort
SELECT ALL - 31 AS col2
----
-31

query I rowsort
SELECT ALL + - ( - 73 ) * + + 91 AS col0
----
6643

onlyif mysql # aggregate syntax: 
query II rowsort label-3797
SELECT + 12 * + 70 AS col0, 33 * + - MAX( DISTINCT + 15 )
----
840
-495

skipif mysql # not compatible
query II rowsort label-3797
SELECT + 12 * + 70 AS col0, 33 * + - MAX ( DISTINCT + 15 )
----
840
-495

query II rowsort
SELECT DISTINCT + 8 AS col0, 62 + 7 * + 86
----
8
664

query II rowsort
SELECT ALL 34, + 6 * + 35 AS col0
----
34
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3800
SELECT - ( CAST( - COALESCE ( 53, + COALESCE ( - ( - 68 ), 97 * - - COUNT( * ), + - 27 + + - SUM( 78 ) + 32 / 46 ), - - 77 + - - ( 6 ) * + 75 ) AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-3800
SELECT - ( CAST ( - COALESCE ( 53, + COALESCE ( - ( - 68 ), 97 * - - COUNT ( * ), + - 27 + + - SUM ( 78 ) + 32 / 46 ), - - 77 + - - ( 6 ) * + 75 ) AS INTEGER ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL SUM( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL SUM ( 93 )
----
93

query I rowsort
SELECT ALL - 72 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3803
SELECT DISTINCT 40 col1, - COUNT( DISTINCT 34 )
----
40
-1

skipif mysql # not compatible
query II rowsort label-3803
SELECT DISTINCT 40 col1, - COUNT ( DISTINCT 34 )
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL COUNT( * ) + + 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL COUNT ( * ) + + 49 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT - - CAST( 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - CAST ( 13 AS INTEGER )
----
13

query I rowsort
SELECT ALL 75 + + 83 + - 77
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT - 45 + + 91 * CAST( 2 AS SIGNED ) * + + COUNT( * ) + 20
----
157

skipif mysql # not compatible
query I rowsort label-3807
SELECT - 45 + + 91 * CAST ( 2 AS INTEGER ) * + + COUNT ( * ) + 20
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + 15 * COUNT( * ) * MIN( DISTINCT 34 ) AS col1
----
510

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 15 * COUNT ( * ) * MIN ( DISTINCT 34 ) AS col1
----
510

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT - 46 AS col0, COUNT( 49 )
----
-46
1

skipif mysql # not compatible
query II rowsort label-3809
SELECT - 46 AS col0, COUNT ( 49 )
----
-46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3810
SELECT - - MAX( ALL + + 21 ) AS col2, CAST( NULL AS SIGNED )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-3810
SELECT - - MAX ( ALL + + 21 ) AS col2, CAST ( NULL AS INTEGER )
----
21
NULL

query I rowsort
SELECT + - 69 col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT + 42 DIV - + COUNT( DISTINCT 71 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 42 / - + COUNT ( DISTINCT 71 ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT + + 88 - + + 24 DIV - - 50
----
88

skipif mysql # not compatible
query I rowsort label-3813
SELECT + + 88 - + + 24 / - - 50
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL + + ( + + MIN( DISTINCT + 46 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + + ( + + MIN ( DISTINCT + 46 ) ) AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT ALL 2 DIV + 85 + 64 * + 7 - - 6 + - ( + COUNT( * ) ) + - ( - COUNT( * ) )
----
454

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL 2 / + 85 + 64 * + 7 - - 6 + - ( + COUNT ( * ) ) + - ( - COUNT ( * ) )
----
454

query I rowsort
SELECT ALL + 62 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3817
SELECT ALL 97 DIV + ( CAST( - 14 AS SIGNED ) ) + - COUNT( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0
----
-7
43

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0
----
-7
43

query I rowsort
SELECT DISTINCT + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL MIN( 2 ) * 43
----
86

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL MIN ( 2 ) * 43
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3820
SELECT + COUNT( * ) DIV 52 + - 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3820
SELECT + COUNT ( * ) / 52 + - 88 AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3821
SELECT ALL - 48 DIV 19 - - 34 DIV + CAST( SUM( ALL + 16 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - 48 / 19 - - 34 / + CAST ( SUM ( ALL + 16 ) AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COALESCE ( - 97, 96 * - 47 + - - 67, + 23 ) * + - COUNT( * ) + - + 69 + 16 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3822
SELECT COALESCE ( - 97, 96 * - 47 + - - 67, + 23 ) * + - COUNT ( * ) + - + 69 + 16 AS col2
----
44

query I rowsort
SELECT ALL + 96 * - 83
----
-7968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT CAST( NULL AS SIGNED ) + 43 * + 68 + - COUNT( * ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT CAST ( NULL AS INTEGER ) + 43 * + 68 + - COUNT ( * ) * + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT CAST( NULL AS SIGNED ) * CASE + 51 WHEN 49 THEN - 7 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT CAST ( NULL AS INTEGER ) * CASE + 51 WHEN 49 THEN - 7 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 67 col0
----
-67

query I rowsort
SELECT ALL - 3 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT 48 / - + CAST( NULL AS SIGNED ) * - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT 48 / - + CAST ( NULL AS INTEGER ) * - 13 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT ALL CAST( - ( - 6 ) AS SIGNED ) * + - 81 AS col1
----
-486

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL CAST ( - ( - 6 ) AS INTEGER ) * + - 81 AS col1
----
-486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3830
SELECT CAST( NULL AS SIGNED ) + - 59 AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3830
SELECT CAST ( NULL AS INTEGER ) + - 59 AS col1, 21
----
NULL
21

query II rowsort
SELECT DISTINCT + 78 * - 94, - 97 * + - 21 AS col0
----
-7332
2037

query I rowsort
SELECT DISTINCT 49 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT 59 DIV 8
----
7

skipif mysql # not compatible
query I rowsort label-3833
SELECT 59 / 8
----
7

query I rowsort
SELECT + 96 * - 96 + 86 AS col0
----
-9130

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT - + ( ( 63 ) ) DIV 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - + ( ( 63 ) ) / 16 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3836
SELECT ALL CAST( 63 AS SIGNED ) AS col1, 6
----
63
6

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL CAST ( 63 AS INTEGER ) AS col1, 6
----
63
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT - MIN( DISTINCT - 1 ) + 70 * + ( + - 35 ) * + + 3 + - 74 col0
----
-7423

skipif mysql # not compatible
query I rowsort label-3837
SELECT - MIN ( DISTINCT - 1 ) + 70 * + ( + - 35 ) * + + 3 + - 74 col0
----
-7423

query I rowsort
SELECT DISTINCT 96 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3839
SELECT ALL + MIN( ALL + CASE - 98 WHEN + 39 * - + 33 + + - 63 THEN - 61 END ) + + + CAST( + COUNT( * ) AS SIGNED ) * + 91 * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + MIN ( ALL + CASE - 98 WHEN + 39 * - + 33 + + - 63 THEN - 61 END ) + + + CAST ( + COUNT ( * ) AS INTEGER ) * + 91 * 7 AS col1
----
NULL

query I rowsort
SELECT - 20 - - - 48 AS col0
----
-68

query I rowsort
SELECT - + 74 col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + COALESCE ( - 60, + - COUNT( ALL + 98 ) * - - 35, + 96 ) + 81
----
21

skipif mysql # not compatible
query I rowsort label-3842
SELECT + COALESCE ( - 60, + - COUNT ( ALL + 98 ) * - - 35, + 96 ) + 81
----
21

query I rowsort
SELECT DISTINCT - - NULLIF ( 24, + 11 ) + - - 67 AS col1
----
91

query I rowsort
SELECT 7 * + 26 AS col0
----
182

query I rowsort
SELECT - 65 + 36 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT - ( 29 ), + 39 - - - COUNT( - 71 ) col2
----
-29
38

skipif mysql # not compatible
query II rowsort label-3846
SELECT - ( 29 ), + 39 - - - COUNT ( - 71 ) col2
----
-29
38

query I rowsort
SELECT ALL 47 AS col2
----
47

query I rowsort
SELECT - 79 + 16 AS col0
----
-63

query I rowsort
SELECT 76 + - + 90 * - + 57 col2
----
5206

query I rowsort
SELECT ALL 32 + 59 + + + 26 * + 82 * - 67 AS col2
----
-142753

query II rowsort
SELECT ALL - 42 AS col2, + 78 + + + 58 AS col0
----
-42
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT 54 * + 49 * 56 DIV + + 28 + - MIN( + 48 )
----
5244

skipif mysql # not compatible
query I rowsort label-3852
SELECT 54 * + 49 * 56 / + + 28 + - MIN ( + 48 )
----
5244

query I rowsort
SELECT 31 col0
----
31

query II rowsort
SELECT ALL - 58 AS col1, + 74 col2
----
-58
74

query II rowsort
SELECT 36 col0, - 3 + 27 + + - 46
----
36
-22

query I rowsort
SELECT 32 + + 73
----
105

query I rowsort
SELECT 3 * + 20 AS col0
----
60

query I rowsort
SELECT 39 * - - 23 * - 38
----
-34086

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3859
SELECT DISTINCT - COUNT( * ) DIV - 64 * - - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT - COUNT ( * ) / - 64 * - - 83 AS col1
----
0

query I rowsort
SELECT ALL ( + 89 ) * + 76 * - 58 AS col2
----
-392312

query I rowsort
SELECT ALL 1 * + 99 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT DISTINCT - CAST( - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT - CAST ( - 11 AS INTEGER )
----
11

query I rowsort
SELECT DISTINCT - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT ALL - COUNT( * ) AS col2, + 83
----
-1
83

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL - COUNT ( * ) AS col2, + 83
----
-1
83

query I rowsort
SELECT ( + ( + 24 ) ) * 26 * + 73
----
45552

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL ( 87 ) * - 25 * 40 * - COUNT( * ) AS col1
----
87000

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL ( 87 ) * - 25 * 40 * - COUNT ( * ) AS col1
----
87000

query I rowsort
SELECT 28 * 9 - - 64 + + 13 AS col2
----
329

query II rowsort
SELECT + 34, ( - 7 ) AS col1
----
34
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( - 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( - 48 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT NULLIF ( 29, - 63 ) - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3870
SELECT NULLIF ( 29, - 63 ) - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT DISTINCT - COUNT( * ) AS col2, - 76 AS col1
----
-1
-76

skipif mysql # not compatible
query II rowsort label-3871
SELECT DISTINCT - COUNT ( * ) AS col2, - 76 AS col1
----
-1
-76

query I rowsort
SELECT ALL 53 + - + 94
----
-41

query I rowsort
SELECT 65 * - 31 * - 13 + - 88 - - 90 AS col2
----
26197

query I rowsort
SELECT ALL 64 * - + 50 AS col0
----
-3200

query II rowsort
SELECT - 7 AS col0, + 70
----
-7
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT 66 - SUM( - 10 ) + 74
----
150

skipif mysql # not compatible
query I rowsort label-3876
SELECT 66 - SUM ( - 10 ) + 74
----
150

query II rowsort
SELECT ALL - NULLIF ( - 21, 69 + 20 * + - 86 + + 10 ) * 65 * - - 67 AS col2, 96 AS col0
----
91455
96

query I rowsort
SELECT ALL + 93 + 34 AS col2
----
127

query I rowsort
SELECT ALL NULLIF ( - 95, - 80 * - ( - ( - 46 ) ) ) + 97
----
2

query I rowsort
SELECT - + 30
----
-30

query I rowsort
SELECT DISTINCT 53 + - + 67 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3882
SELECT ALL + 44 * CASE COALESCE ( + + SUM( DISTINCT + 58 ), + - SUM( DISTINCT - 5 ) ) WHEN - 32 THEN 0 * CAST( NULL AS DECIMAL ) WHEN + - 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + 44 * CASE COALESCE ( + + SUM ( DISTINCT + 58 ), + - SUM ( DISTINCT - 5 ) ) WHEN - 32 THEN 0 * CAST ( NULL AS REAL ) WHEN + - 65 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT + 97 DIV 8
----
12

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 97 / 8
----
12

query I rowsort
SELECT ALL COALESCE ( - 10, 21 ) AS col0
----
-10

query I rowsort
SELECT DISTINCT - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT ALL + - COUNT( * ) + MAX( DISTINCT + 19 ) AS col0, - 88 * MAX( ALL 48 )
----
18
-4224

skipif mysql # not compatible
query II rowsort label-3886
SELECT ALL + - COUNT ( * ) + MAX ( DISTINCT + 19 ) AS col0, - 88 * MAX ( ALL 48 )
----
18
-4224

query II rowsort
SELECT - 64 AS col0, 43 AS col2
----
-64
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3888
SELECT ALL 33 + - 38 + + 87 AS col1, 42 * COUNT( * )
----
82
42

skipif mysql # not compatible
query II rowsort label-3888
SELECT ALL 33 + - 38 + + 87 AS col1, 42 * COUNT ( * )
----
82
42

query I rowsort
SELECT DISTINCT 59 AS col2
----
59

query I rowsort
SELECT DISTINCT 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + COUNT( * ) + - 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3891
SELECT + COUNT ( * ) + - 40 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT 87 + - COUNT( * ) * 20
----
67

skipif mysql # not compatible
query I rowsort label-3892
SELECT 87 + - COUNT ( * ) * 20
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - NULLIF ( COUNT( ALL - - 64 ), 46 * - - 87 ) - - - 3
----
-4

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - NULLIF ( COUNT ( ALL - - 64 ), 46 * - - 87 ) - - - 3
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT ALL SUM( + 85 ) AS col2, COUNT( * )
----
85
1

skipif mysql # not compatible
query II rowsort label-3894
SELECT ALL SUM ( + 85 ) AS col2, COUNT ( * )
----
85
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT DISTINCT - 5 * + + 0 DIV - + 9 * + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - 5 * + + 0 / - + 9 * + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - 96 * - SUM( DISTINCT 3 )
----
288

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - 96 * - SUM ( DISTINCT 3 )
----
288

query I rowsort
SELECT - 31 - 58 + - 85 * - + ( + - 53 ) AS col2
----
-4594

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL - 23 * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 23 * COUNT ( * )
----
-23

query I rowsort
SELECT ALL + ( - + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - 32 * + COUNT( * ) + + 65 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3900
SELECT - 32 * + COUNT ( * ) + + 65 AS col0
----
33

query I rowsort
SELECT ALL + 3 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3902
SELECT - 1 DIV COUNT( * ) col2, 52 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-3902
SELECT - 1 / COUNT ( * ) col2, 52 AS col0
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT COALESCE ( - + COUNT( DISTINCT + - 15 ), 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3903
SELECT COALESCE ( - + COUNT ( DISTINCT + - 15 ), 26 ) AS col2
----
-1

query I rowsort
SELECT ALL + ( 36 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT 33 * - - ( + 98 ) * 81 + - CAST( NULL AS SIGNED ) * + 94 * + - 67 * + 23 / COUNT( - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT 33 * - - ( + 98 ) * 81 + - CAST ( NULL AS INTEGER ) * + 94 * + - 67 * + 23 / COUNT ( - 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - CASE COUNT( * ) WHEN 64 + - COUNT( * ) + + 30 - + 85 * + + 77 THEN 54 END / - ( - + COUNT( * ) ) + + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - CASE COUNT ( * ) WHEN 64 + - COUNT ( * ) + + 30 - + 85 * + + 77 THEN 54 END / - ( - + COUNT ( * ) ) + + - 94 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3907
SELECT + 94 * - 71 / + 71 * - CASE - 80 WHEN + - 57 THEN - + NULLIF ( + 49, + + MAX( - + 73 ) ) WHEN COUNT( * ) THEN 16 * - 65 / - 64 * - 28 / 95 / + 33 WHEN 3 THEN + 55 END + MAX( 2 ) * + SUM( ALL - 42 ) + - COALESCE ( + ( - CAST( + - 74 AS DECIMAL ) ), - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT + 94 * - 71 / + 71 * - CASE - 80 WHEN + - 57 THEN - + NULLIF ( + 49, + + MAX ( - + 73 ) ) WHEN COUNT ( * ) THEN 16 * - 65 / - 64 * - 28 / 95 / + 33 WHEN 3 THEN + 55 END + MAX ( 2 ) * + SUM ( ALL - 42 ) + - COALESCE ( + ( - CAST ( + - 74 AS REAL ) ), - COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - 18 + - - ( + + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3908
SELECT - 18 + - - ( + + COUNT ( * ) )
----
-17

query I rowsort
SELECT ALL ( 91 ) * ( - 92 ) + 57 AS col0
----
-8315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT + COUNT( * ) * 55 + - 75 + - - 42 * 4 DIV + 14
----
-8

skipif mysql # not compatible
query I rowsort label-3910
SELECT + COUNT ( * ) * 55 + - 75 + - - 42 * 4 / + 14
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + + 3 * - - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3911
SELECT + + 3 * - - COUNT ( * ) AS col2
----
3

query I rowsort
SELECT ALL + + 75
----
75

query I rowsort
SELECT DISTINCT + 37 AS col1
----
37

query I rowsort
SELECT DISTINCT 50 * + 24 + + 52 AS col2
----
1252

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT + MAX( DISTINCT - 19 ) * + 90 + - 71 + - + 85, COUNT( * ) + SUM( ALL 32 ) AS col1
----
-1866
33

skipif mysql # not compatible
query II rowsort label-3915
SELECT + MAX ( DISTINCT - 19 ) * + 90 + - 71 + - + 85, COUNT ( * ) + SUM ( ALL 32 ) AS col1
----
-1866
33

query I rowsort
SELECT DISTINCT 37 + - 7
----
30

query I rowsort
SELECT - + 44
----
-44

query I rowsort
SELECT + 48 col2
----
48

query I rowsort
SELECT - 87 AS col0
----
-87

query I rowsort
SELECT ALL 9 col2
----
9

query I rowsort
SELECT + - 76 + + 71 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + + COUNT( * ) + ( + 59 )
----
60

skipif mysql # not compatible
query I rowsort label-3922
SELECT + + COUNT ( * ) + ( + 59 )
----
60

query I rowsort
SELECT ALL - ( + 56 ) * - 89
----
4984

query I rowsort
SELECT ALL 32 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT - 97 + - COUNT( * ) - - 54 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 97 + - COUNT ( * ) - - 54 AS col2
----
-44

query I rowsort
SELECT - ( - - 65 )
----
-65

query I rowsort
SELECT + 14 * + 79 * 45 AS col1
----
49770

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT - 20 + - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3930
SELECT - 20 + - + COUNT ( * )
----
-21

query I rowsort
SELECT ALL CASE + 54 WHEN + + 9 THEN + + ( + - 20 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 31 + - + 72 + + COALESCE ( - 22, + + 38 + - 93 ) * 42
----
-965

query I rowsort
SELECT ALL 37 * + 87
----
3219

query I rowsort
SELECT ALL 96 * 89 AS col2
----
8544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT ALL COALESCE ( - 65, - - 61, - 82 + + MAX( 20 ) * 22 DIV + 7 - 68 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL COALESCE ( - 65, - - 61, - 82 + + MAX ( 20 ) * 22 / + 7 - 68 ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT ALL + CAST( NULL AS SIGNED ) / - - 79 * + - 21 / + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 79 * + - 21 / + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT - 84 * - ( + COALESCE ( + 36, - 65, CAST( NULL AS SIGNED ) ) )
----
3024

skipif mysql # not compatible
query I rowsort label-3937
SELECT - 84 * - ( + COALESCE ( + 36, - 65, CAST ( NULL AS INTEGER ) ) )
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL SUM( DISTINCT - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL SUM ( DISTINCT - 37 )
----
-37

query I rowsort
SELECT ALL + 6 AS col0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-3940
SELECT ALL + 77 AS col1, - 70 DIV 47 AS col0
----
77
-1

skipif mysql # not compatible
query II rowsort label-3940
SELECT ALL + 77 AS col1, - 70 / 47 AS col0
----
77
-1

query I rowsort
SELECT + ( - 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT COUNT( * ) * 33 + - 91 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3942
SELECT COUNT ( * ) * 33 + - 91 AS col0
----
-58

query I rowsort
SELECT ALL + 83 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT CAST( - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-3944
SELECT CAST ( - 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3945
SELECT + COUNT( * ) DIV - 92 + + 72 + - 75 - + + 86 + - + 9 + + + 54 * - + ( - 23 )
----
1144

skipif mysql # not compatible
query I rowsort label-3945
SELECT + COUNT ( * ) / - 92 + + 72 + - 75 - + + 86 + - + 9 + + + 54 * - + ( - 23 )
----
1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT CAST( - ( ( 27 ) ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-3946
SELECT CAST ( - ( ( 27 ) ) AS INTEGER )
----
-27

query I rowsort
SELECT - 24 * 50 AS col0
----
-1200

query I rowsort
SELECT - 30 + + 45 AS col1
----
15

query I rowsort
SELECT ( + 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT DISTINCT AVG ( ALL + 23 ) / + + ( + 14 ) * + 95 * + 51 + + + 3 * - + 58 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT AVG ( ALL + 23 ) / + + ( + 14 ) * + 95 * + 51 + + + 3 * - + 58 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT ALL 40 DIV 30 + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL 40 / 30 + - 87
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT COUNT( * ) DIV 4 * - 70 * + 47 + + 27
----
27

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT COUNT ( * ) / 4 * - 70 * + 47 + + 27
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-3953
SELECT DISTINCT + 63 DIV + NULLIF ( - - COALESCE ( - 74, - 30, - 1, + 71 ), + - COALESCE ( - ( - NULLIF ( - 94, - - NULLIF ( - 26, 82 ) ) ), + + 35, + + 67 * - - 29 ) ) + - 54, 53 * + ( + + 37 ) AS col1
----
-54
1961

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT + 63 / + NULLIF ( - - COALESCE ( - 74, - 30, - 1, + 71 ), + - COALESCE ( - ( - NULLIF ( - 94, - - NULLIF ( - 26, 82 ) ) ), + + 35, + + 67 * - - 29 ) ) + - 54, 53 * + ( + + 37 ) AS col1
----
-54
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - 94 * COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3954
SELECT - 94 * COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT ( - - 4 )
----
4

query I rowsort
SELECT + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL - ( - + ( - COUNT( * ) ) ) * - - 25 * COUNT( * ) * + COALESCE ( - 31, + + ( 62 ) ) * + ( - + 2 ) + + + MAX( 72 )
----
-1478

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - ( - + ( - COUNT ( * ) ) ) * - - 25 * COUNT ( * ) * + COALESCE ( - 31, + + ( 62 ) ) * + ( - + 2 ) + + + MAX ( 72 )
----
-1478

query I rowsort
SELECT ALL + 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT + 92, + MAX( ALL - ( - + 51 ) ) AS col1
----
92
51

skipif mysql # not compatible
query II rowsort label-3959
SELECT + 92, + MAX ( ALL - ( - + 51 ) ) AS col1
----
92
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT MIN( DISTINCT + + 51 ) * - - 47 + + - 62 AS col0
----
2335

skipif mysql # not compatible
query I rowsort label-3960
SELECT MIN ( DISTINCT + + 51 ) * - - 47 + + - 62 AS col0
----
2335

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT COUNT( * ) * - 25 + + 70 - - + 97
----
142

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT COUNT ( * ) * - 25 + + 70 - - + 97
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT - 9 * SUM( + - 91 )
----
819

skipif mysql # not compatible
query I rowsort label-3962
SELECT - 9 * SUM ( + - 91 )
----
819

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT 57 AS col0, + 12 * - - COUNT( * ) + - 13
----
57
-1

skipif mysql # not compatible
query II rowsort label-3963
SELECT 57 AS col0, + 12 * - - COUNT ( * ) + - 13
----
57
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT ALL + 10 * CAST( NULL AS SIGNED ) / + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + 10 * CAST ( NULL AS INTEGER ) / + - 81 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT + ( 29 ) DIV 95 DIV 86 * - + ( + - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + ( 29 ) / 95 / 86 * - + ( + - 30 )
----
0

query I rowsort
SELECT - - 72 - - 47
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + + SUM( ALL + + 72 ) * - + 81
----
-5832

skipif mysql # not compatible
query I rowsort label-3967
SELECT + + SUM ( ALL + + 72 ) * - + 81
----
-5832

query I rowsort
SELECT ALL + - 55 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL 93 * + - ( - COALESCE ( + 6, - MAX( DISTINCT - 76 ) ) ) - - - 50
----
508

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL 93 * + - ( - COALESCE ( + 6, - MAX ( DISTINCT - 76 ) ) ) - - - 50
----
508

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + 15 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT + 97 * 19 * + + 72 + + - COUNT( * ) + + - CAST( + 69 AS SIGNED ) + + - 58 AS col1
----
132568

skipif mysql # not compatible
query I rowsort label-3972
SELECT + 97 * 19 * + + 72 + + - COUNT ( * ) + + - CAST ( + 69 AS INTEGER ) + + - 58 AS col1
----
132568

query I rowsort
SELECT - - 74 AS col1
----
74

query I rowsort
SELECT ( + 19 ) AS col2
----
19

query I rowsort
SELECT 20 - 29
----
-9

query I rowsort
SELECT ALL 39 AS col2
----
39

query I rowsort
SELECT - 25 * 81 col1
----
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + CASE COUNT( * ) WHEN + 22 THEN + 28 * MIN( - 22 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + CASE COUNT ( * ) WHEN + 22 THEN + 28 * MIN ( - 22 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 51 AS col1, 25
----
51
25

query II rowsort
SELECT DISTINCT 3 AS col0, 11 AS col1
----
3
11

query I rowsort
SELECT ALL 7 AS col2
----
7

query I rowsort
SELECT DISTINCT 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT 25 + + ( + - COUNT( * ) ) + - COUNT( * ) col0
----
23

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT 25 + + ( + - COUNT ( * ) ) + - COUNT ( * ) col0
----
23

query I rowsort
SELECT ALL CASE - - 75 WHEN + ( - 78 ) / + 12 + 38 THEN + 61 + 45 * + - ( + + 18 ) ELSE + 86 END * - + NULLIF ( + - 3, - + 56 )
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT ALL 42 + + CASE - 55 WHEN + - 85 THEN - ( 78 ) - 67 + + + ( - ( - CAST( NULL AS SIGNED ) ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL 42 + + CASE - 55 WHEN + - 85 THEN - ( 78 ) - 67 + + + ( - ( - CAST ( NULL AS INTEGER ) ) ) END col0
----
NULL

query II rowsort
SELECT 98, - 20 AS col2
----
98
-20

query I rowsort
SELECT 67 * 37 AS col1
----
2479

query I rowsort
SELECT ALL 36 + - 11 - - 51 * - 42 col1
----
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ( COUNT( * ) ) - 17 + 39
----
23

skipif mysql # not compatible
query I rowsort label-3989
SELECT ( COUNT ( * ) ) - 17 + 39
----
23

query II rowsort
SELECT + 77 AS col2, 2 * 48 * 77 + - 58
----
77
7334

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL 12 + - 71 * - + COALESCE ( - ( + - COUNT( * ) ), + 86, MIN( + 50 ) ) * - - 22 + MAX( + + 34 ) AS col1
----
1608

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL 12 + - 71 * - + COALESCE ( - ( + - COUNT ( * ) ), + 86, MIN ( + 50 ) ) * - - 22 + MAX ( + + 34 ) AS col1
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT 47 + + + 95 + + CASE + MIN( - + 16 ) WHEN - 55 THEN 28 WHEN - 16 THEN NULL ELSE + 80 * + COUNT( * ) + - - 90 END * 38 + + + 80 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT 47 + + + 95 + + CASE + MIN ( - + 16 ) WHEN - 55 THEN 28 WHEN - 16 THEN NULL ELSE + 80 * + COUNT ( * ) + - - 90 END * 38 + + + 80 + 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL CAST( - + 89 AS SIGNED ) * - - 38
----
-3382

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL CAST ( - + 89 AS INTEGER ) * - - 38
----
-3382

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT DISTINCT COUNT( * ) + + 4 col2, + COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-3994
SELECT DISTINCT COUNT ( * ) + + 4 col2, + COUNT ( * ) AS col0
----
5
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT ALL + 97 DIV 97 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + 97 / 97 AS col0
----
1

query II rowsort
SELECT + 88 AS col0, - 72 + + - 36
----
88
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT COALESCE ( - 99, + 64 ) DIV 49 + - + ( - 89 ) DIV 42 + 53 + - ( + 98 )
----
-45

skipif mysql # not compatible
query I rowsort label-3997
SELECT COALESCE ( - 99, + 64 ) / 49 + - + ( - 89 ) / 42 + 53 + - ( + 98 )
----
-45

query I rowsort
SELECT ALL 76 + 52
----
128

query I rowsort
SELECT + 42 col0
----
42

query II rowsort
SELECT 9 AS col1, + 8 * + 71
----
9
568

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT - COUNT( * ) * - 60 + + - 59 + + 0
----
1

skipif mysql # not compatible
query I rowsort label-4001
SELECT - COUNT ( * ) * - 60 + + - 59 + + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT 48 - - CASE 66 WHEN - 17 THEN NULL WHEN + 56 THEN + 22 WHEN + 35 THEN - COUNT( * ) - + 81 + - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT 48 - - CASE 66 WHEN - 17 THEN NULL WHEN + 56 THEN + 22 WHEN + 35 THEN - COUNT ( * ) - + 81 + - 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + MAX( ALL + - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4003
SELECT + MAX ( ALL + - 21 ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT + - 14 * - CASE + 0 WHEN - MAX( DISTINCT + 99 ) / + - CAST( NULL AS SIGNED ) THEN + - 81 WHEN - 34 * 3 + - 97 + 44 + + 41 * + 97 * 43 + 81 + - NULLIF ( + + 99, 31 * + - 64 ) THEN NULL ELSE NULL END + - + NULLIF ( + - 98, - ( - 2 ) + - 65 ) - 21 - + + 58 / - 49 * - - MIN( DISTINCT + 45 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + - 14 * - CASE + 0 WHEN - MAX ( DISTINCT + 99 ) / + - CAST ( NULL AS INTEGER ) THEN + - 81 WHEN - 34 * 3 + - 97 + 44 + + 41 * + 97 * 43 + 81 + - NULLIF ( + + 99, 31 * + - 64 ) THEN NULL ELSE NULL END + - + NULLIF ( + - 98, - ( - 2 ) + - 65 ) - 21 - + + 58 / - 49 * - - MIN ( DISTINCT + 45 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + + COUNT( + 59 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4005
SELECT + + COUNT ( + 59 ) col2
----
1

query II rowsort
SELECT - 98, 14 col0
----
-98
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + 81 * + COALESCE ( + 95, 28 ) * - COUNT( * ) AS col2
----
-7695

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + 81 * + COALESCE ( + 95, 28 ) * - COUNT ( * ) AS col2
----
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + + COUNT( * ) * + - 64 + + 66 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + + COUNT ( * ) * + - 64 + + 66 AS col0
----
2

query II rowsort
SELECT ALL - 7 AS col1, - NULLIF ( ( - 56 ), - 3 ) - + - 14 * + - 7 + + 50 col2
----
-7
8

query I rowsort
SELECT + 33 AS col0
----
33

query I rowsort
SELECT DISTINCT - + 8 col0
----
-8

query I rowsort
SELECT + 82 + - 45 col1
----
37

query II rowsort
SELECT - 22 AS col1, + 55 AS col0
----
-22
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4014
SELECT 76 * - COUNT( * ) AS col2, COUNT( * ) AS col0
----
-76
1

skipif mysql # not compatible
query II rowsort label-4014
SELECT 76 * - COUNT ( * ) AS col2, COUNT ( * ) AS col0
----
-76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + 32 * - MAX( DISTINCT - 63 ) + + 19 + - CASE + + 32 WHEN + + 98 THEN + ( MAX( DISTINCT - 61 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT + 32 * - MAX ( DISTINCT - 63 ) + + 19 + - CASE + + 32 WHEN + + 98 THEN + ( MAX ( DISTINCT - 61 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 76 * + 98 AS col1
----
7448

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT ALL + 64 DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + 64 / 48 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT 32 + COUNT( DISTINCT - 18 ) + COALESCE ( - + COALESCE ( + - 94, + 68, - + 90, + + 20 ), - + 8 + + 80 ) + - 10 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-4018
SELECT 32 + COUNT ( DISTINCT - 18 ) + COALESCE ( - + COALESCE ( + - 94, + 68, - + 90, + + 20 ), - + 8 + + 80 ) + - 10 AS col2
----
117

query I rowsort
SELECT ALL 96 + + 93
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4020
SELECT DISTINCT + 92 * - COUNT( - CAST( NULL AS SIGNED ) ) AS col0, - 26 AS col0
----
0
-26

skipif mysql # not compatible
query II rowsort label-4020
SELECT DISTINCT + 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, - 26 AS col0
----
0
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT 12 * - MAX( ALL + + 94 )
----
-1128

skipif mysql # not compatible
query I rowsort label-4021
SELECT 12 * - MAX ( ALL + + 94 )
----
-1128

query I rowsort
SELECT 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT 22 * COUNT( * ) AS col2, - 27 * - COUNT( * ) * 16
----
22
432

skipif mysql # not compatible
query II rowsort label-4023
SELECT 22 * COUNT ( * ) AS col2, - 27 * - COUNT ( * ) * 16
----
22
432

query I rowsort
SELECT DISTINCT ( - 82 ) + - 63 + - 83 - - + 87 * - 2 + 24 + - + 72
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT COUNT( * ) + + 41
----
42

skipif mysql # not compatible
query I rowsort label-4025
SELECT COUNT ( * ) + + 41
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT DISTINCT + MIN( ALL + 81 ) + SUM( ALL - + COALESCE ( + 97, + 89, - 15 ) ), COUNT( * ) AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-4026
SELECT DISTINCT + MIN ( ALL + 81 ) + SUM ( ALL - + COALESCE ( + 97, + 89, - 15 ) ), COUNT ( * ) AS col1
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL - 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL - 2 + - COUNT ( * )
----
-3

query II rowsort
SELECT ALL 65 * 77 AS col2, 75 AS col1
----
5005
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT 24 + + COALESCE ( + 60, 94 ) * 0 * + 57 DIV + 31 * - 92 - - 97 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT 24 + + COALESCE ( + 60, 94 ) * 0 * + 57 / + 31 * - 92 - - 97 AS col1
----
121

query I rowsort
SELECT ( + 33 ) * 61 * + 96 AS col0
----
193248

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT DISTINCT 94 DIV 23
----
4

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT 94 / 23
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4032
SELECT COALESCE ( - 72, + 15, - 15 ) * - + 91 * 10 + + ( - - 73 ) * - + ( CAST( NULL AS DECIMAL ) ) * + ( + 73 ) + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT COALESCE ( - 72, + 15, - 15 ) * - + 91 * 10 + + ( - - 73 ) * - + ( CAST ( NULL AS REAL ) ) * + ( + 73 ) + - 88
----
NULL

query I rowsort
SELECT ALL - 18 col1
----
-18

query I rowsort
SELECT ALL 29 * + 15 * - + 19 * 60
----
-495900

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT COUNT( ALL + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-4035
SELECT COUNT ( ALL + 86 )
----
1

query I rowsort
SELECT + 64 * + 41
----
2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4037
SELECT ALL - CAST( - + COUNT( DISTINCT + + 61 ) AS SIGNED ) * - 79 * - - CASE WHEN - 51 IS NULL THEN 96 + - 43 ELSE NULL END - + - 85 AS col0, + 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-4037
SELECT ALL - CAST ( - + COUNT ( DISTINCT + + 61 ) AS INTEGER ) * - 79 * - - CASE WHEN - 51 IS NULL THEN 96 + - 43 ELSE NULL END - + - 85 AS col0, + 55
----
NULL
55

query I rowsort
SELECT + 54 col2
----
54

query I rowsort
SELECT ALL - - 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + COUNT ( * ) * 69
----
69

query I rowsort
SELECT ALL - - 30 AS col2
----
30

query I rowsort
SELECT DISTINCT - + 53
----
-53

query I rowsort
SELECT ALL + - 97 * 36 - + - ( - 33 ) - - 35
----
-3490

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4044
SELECT 65 DIV 26 + - CAST( - 96 AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4044
SELECT 65 / 26 + - CAST ( - 96 AS INTEGER ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT + - CAST( + 90 AS SIGNED ) * + - 99 AS col0
----
8910

skipif mysql # not compatible
query I rowsort label-4045
SELECT + - CAST ( + 90 AS INTEGER ) * + - 99 AS col0
----
8910

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT - 84 * + COUNT( * ) * - - 79 + + 82 + - - ( - 64 )
----
-6618

skipif mysql # not compatible
query I rowsort label-4046
SELECT - 84 * + COUNT ( * ) * - - 79 + + 82 + - - ( - 64 )
----
-6618

query I rowsort
SELECT + COALESCE ( + 83, + 6 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT - COUNT( * ) + - + 57 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - COUNT ( * ) + - + 57 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4049
SELECT - 30 * - 74 + CAST( + 1 AS SIGNED ) + + CASE - + COUNT( * ) WHEN ( + CAST( 30 AS DECIMAL ) ) THEN - + 53 WHEN SUM( DISTINCT 26 ) THEN 64 WHEN - - 4 * + - 68 + COUNT( * ) * + 16 THEN - + CASE 13 WHEN + 78 THEN - + 77 WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE NULL END * COUNT( * ) - - 18 - + 62 + + 26 ELSE NULL END + COALESCE ( - - 87, - 25 + + COUNT( * ) ) * + + 36 - - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 30 * - 74 + CAST ( + 1 AS INTEGER ) + + CASE - + COUNT ( * ) WHEN ( + CAST ( 30 AS REAL ) ) THEN - + 53 WHEN SUM ( DISTINCT 26 ) THEN 64 WHEN - - 4 * + - 68 + COUNT ( * ) * + 16 THEN - + CASE 13 WHEN + 78 THEN - + 77 WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END * COUNT ( * ) - - 18 - + 62 + + 26 ELSE NULL END + COALESCE ( - - 87, - 25 + + COUNT ( * ) ) * + + 36 - - 50 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT ALL - 7 + - + 9 DIV 14 + - + 38
----
-45

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - 7 + - + 9 / 14 + - + 38
----
-45

query I rowsort
SELECT - 43 * ( + - 43 )
----
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL + COALESCE ( - 16, 39, 67 * COUNT( * ) - + ( + + 5 ) + - 44, - 74 * 81 * + COUNT( * ) * - 63 * 2 + - 84 ) + + 61 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL + COALESCE ( - 16, 39, 67 * COUNT ( * ) - + ( + + 5 ) + - 44, - 74 * 81 * + COUNT ( * ) * - 63 * 2 + - 84 ) + + 61 AS col0
----
45

query I rowsort
SELECT + 31 + + 99 AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT - 49 DIV - 5 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4054
SELECT - 49 / - 5 AS col0
----
9

query I rowsort
SELECT - 55 * + 1 * - 0 * + - 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL - NULLIF ( + + COUNT( ALL + + 57 ), + 37 ) + - 50 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - NULLIF ( + + COUNT ( ALL + + 57 ), + 37 ) + - 50 AS col1
----
-51

query I rowsort
SELECT ALL + 69 + 26 + 38 + - 38 AS col2
----
95

query I rowsort
SELECT - 43 - + - 91 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4059
SELECT DISTINCT CASE + - 26 WHEN + - 87 * - 85 + + - ( + COUNT( * ) ) + 62 * 35 / CAST( - + 60 AS SIGNED ) * + 98 * 0 * + 38 THEN NULL WHEN + + 79 THEN + 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT CASE + - 26 WHEN + - 87 * - 85 + + - ( + COUNT ( * ) ) + 62 * 35 / CAST ( - + 60 AS INTEGER ) * + 98 * 0 * + 38 THEN NULL WHEN + + 79 THEN + 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - 97 * - + COALESCE ( + 79, - 33, 10, + + CASE - + 18 WHEN + 59 THEN NULL WHEN 54 / + + 32 + + COUNT( * ) * + 34 - 76 - - - COUNT( * ) * - + 3 THEN 74 END )
----
7663

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - 97 * - + COALESCE ( + 79, - 33, 10, + + CASE - + 18 WHEN + 59 THEN NULL WHEN 54 / + + 32 + + COUNT ( * ) * + 34 - 76 - - - COUNT ( * ) * - + 3 THEN 74 END )
----
7663

query II rowsort
SELECT 39, - 14 * 10 AS col1
----
39
-140

query I rowsort
SELECT - 89 * 56
----
-4984

query I rowsort
SELECT DISTINCT - 98 * - - 14 AS col0
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL + 43 * + - COUNT( * ) * - 7 * + 0 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + 43 * + - COUNT ( * ) * - 7 * + 0 * + 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 35 + - 99 * + 8
----
-827

query I rowsort
SELECT - CASE 83 WHEN + - 87 THEN 99 - + 68 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - ( - COUNT( * ) ) + + - 84 + - 49 * ( + 89 )
----
-4444

skipif mysql # not compatible
query I rowsort label-4068
SELECT - ( - COUNT ( * ) ) + + - 84 + - 49 * ( + 89 )
----
-4444

onlyif mysql # DIV for integer division: 
query II rowsort label-4069
SELECT + - 80 AS col1, 80 DIV 11 AS col2
----
-80
7

skipif mysql # not compatible
query II rowsort label-4069
SELECT + - 80 AS col1, 80 / 11 AS col2
----
-80
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT + - COUNT( * ) * + CASE 42 WHEN + 46 THEN 33 + 53 END * + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + - COUNT ( * ) * + CASE 42 WHEN + 46 THEN 33 + 53 END * + + 15
----
NULL

query I rowsort
SELECT ALL + - 19 AS col1
----
-19

query I rowsort
SELECT ALL + 1 AS col0
----
1

query I rowsort
SELECT DISTINCT + - 63 col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT + 2 + + COALESCE ( 8, + ( 50 ), - - ( - 98 ) * - + ( - COUNT( * ) ) ) DIV + 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4074
SELECT + 2 + + COALESCE ( 8, + ( 50 ), - - ( - 98 ) * - + ( - COUNT ( * ) ) ) / + 37 AS col1
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4075
SELECT ALL + ( - ( - 87 ) ) AS col2, 52 + CASE + 3 WHEN - CAST( + 43 AS DECIMAL ) THEN + 75 + - + 3 - - - 60 WHEN - 77 THEN 47 END AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-4075
SELECT ALL + ( - ( - 87 ) ) AS col2, 52 + CASE + 3 WHEN - CAST ( + 43 AS REAL ) THEN + 75 + - + 3 - - - 60 WHEN - 77 THEN 47 END AS col2
----
87
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT ALL + 78 AS col1, 16 * + - 19 * + - MIN( - - 97 )
----
78
29488

skipif mysql # not compatible
query II rowsort label-4077
SELECT ALL + 78 AS col1, 16 * + - 19 * + - MIN ( - - 97 )
----
78
29488

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4078
SELECT ALL - CAST( NULL AS DECIMAL ) / 6 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - CAST ( NULL AS REAL ) / 6 + 82
----
NULL

query I rowsort
SELECT 99 * - - 43 + - 52 AS col1
----
4205

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - CASE 75 WHEN - - SUM( ALL - NULLIF ( - 95, 47 ) ) * - - 52 THEN - - COUNT( * ) + + 1 END * - 33 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT - CASE 75 WHEN - - SUM ( ALL - NULLIF ( - 95, 47 ) ) * - - 52 THEN - - COUNT ( * ) + + 1 END * - 33 * - 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT + + 33 DIV - 83 + - - 9 + - 43
----
-34

skipif mysql # not compatible
query I rowsort label-4081
SELECT + + 33 / - 83 + - - 9 + - 43
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL 22 * MAX( DISTINCT - 74 )
----
-1628

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL 22 * MAX ( DISTINCT - 74 )
----
-1628

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT 25 col0, + 88 + - COUNT( * ) + - 66 + 99
----
25
120

skipif mysql # not compatible
query II rowsort label-4083
SELECT 25 col0, + 88 + - COUNT ( * ) + - 66 + 99
----
25
120

query I rowsort
SELECT ALL - 40 * + + 30 + + + 45
----
-1155

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT DISTINCT 44 * 88 DIV 43 + + - 81 * + 52
----
-4122

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT 44 * 88 / 43 + + - 81 * + 52
----
-4122

query II rowsort
SELECT 69 AS col1, + 25 AS col0
----
69
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + - NULLIF ( + CASE 44 WHEN - 91 THEN CASE 2 WHEN + 83 THEN NULL WHEN 43 THEN NULL ELSE 90 * + 39 END ELSE NULL END, COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT + - NULLIF ( + CASE 44 WHEN - 91 THEN CASE 2 WHEN + 83 THEN NULL WHEN 43 THEN NULL ELSE 90 * + 39 END ELSE NULL END, COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT ALL + + COALESCE ( + 8, - - COUNT( * ) DIV + COALESCE ( 51, - - NULLIF ( - 62, + - NULLIF ( - - 86, - - 21 * + + 80 ) + - 49 + 11 * 75 * 56 ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + + COALESCE ( + 8, - - COUNT ( * ) / + COALESCE ( 51, - - NULLIF ( - 62, + - NULLIF ( - - 86, - - 21 * + + 80 ) + - 49 + 11 * 75 * 56 ) ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT + 80 + + 15 * - - COUNT( * ) col0
----
95

skipif mysql # not compatible
query I rowsort label-4089
SELECT + 80 + + 15 * - - COUNT ( * ) col0
----
95

query I rowsort
SELECT + 32 * + 81 AS col0
----
2592

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT + 49 + + 75 + 77 + 79 * + 59 * 96 DIV - 8, - 12 AS col2
----
-55731
-12

skipif mysql # not compatible
query II rowsort label-4091
SELECT + 49 + + 75 + 77 + 79 * + 59 * 96 / - 8, - 12 AS col2
----
-55731
-12

query I rowsort
SELECT DISTINCT + 47 * 5 + + 42 - 13
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT ALL CAST( NULL AS SIGNED ) * + 71 + ( + 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL CAST ( NULL AS INTEGER ) * + 71 + ( + 89 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT - 70 * - CAST( NULL AS SIGNED ) / MIN( DISTINCT 7 ) + + - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - 70 * - CAST ( NULL AS INTEGER ) / MIN ( DISTINCT 7 ) + + - 31 AS col2
----
NULL

query II rowsort
SELECT ALL - 11 * + 77 AS col1, 96 AS col1
----
-847
96

query I rowsort
SELECT - 95 + - 21 + - 48 * + 31 + 90 AS col1
----
-1514

query I rowsort
SELECT DISTINCT 19 * 67 AS col1
----
1273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4098
SELECT + 42 * + 37, CAST( NULL AS SIGNED ) AS col2
----
1554
NULL

skipif mysql # not compatible
query II rowsort label-4098
SELECT + 42 * + 37, CAST ( NULL AS INTEGER ) AS col2
----
1554
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT - CAST( NULL AS SIGNED ) + - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT - CAST ( NULL AS INTEGER ) + - - 66
----
NULL

query I rowsort
SELECT ALL ( - ( 40 ) )
----
-40

query I rowsort
SELECT - 12 * - 47
----
564

query I rowsort
SELECT - 18 + 39 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4103
SELECT - 29 DIV 61 col0, 50 + COUNT( * ) AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-4103
SELECT - 29 / 61 col0, 50 + COUNT ( * ) AS col2
----
0
51

query I rowsort
SELECT 11 col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL CAST( + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL CAST ( + 20 AS INTEGER )
----
20

query I rowsort
SELECT ALL + - 13 * ( + - 43 ) * - 97 * + 28 + 35
----
-1518209

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT - + MAX( - 67 ), + 35 AS col1
----
67
35

skipif mysql # not compatible
query II rowsort label-4107
SELECT - + MAX ( - 67 ), + 35 AS col1
----
67
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + + 46 * MAX( ALL - 45 ) * - 81 AS col0
----
167670

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + + 46 * MAX ( ALL - 45 ) * - 81 AS col0
----
167670

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT 5 * - SUM( 48 ) * - - 60 * + 51
----
-734400

skipif mysql # not compatible
query I rowsort label-4109
SELECT 5 * - SUM ( 48 ) * - - 60 * + 51
----
-734400

query I rowsort
SELECT + + 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT 36 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT 36 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL - - COUNT( * ) * - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - - COUNT ( * ) * - + 31
----
-31

query I rowsort
SELECT DISTINCT - 54 col0
----
-54

query I rowsort
SELECT + + 97 AS col2
----
97

query I rowsort
SELECT DISTINCT - - 11
----
11

query I rowsort
SELECT ALL 20 + ( - 34 ) * - 59 * 90
----
180560

query I rowsort
SELECT ALL - + 59 AS col0
----
-59

query I rowsort
SELECT 70 * 9 + + 98 AS col2
----
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4119
SELECT MAX( NULLIF ( - 15, 32 ) ) AS col1, - CAST( - 34 AS SIGNED )
----
-15
34

skipif mysql # not compatible
query II rowsort label-4119
SELECT MAX ( NULLIF ( - 15, 32 ) ) AS col1, - CAST ( - 34 AS INTEGER )
----
-15
34

query I rowsort
SELECT ALL - + 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL + + CAST( NULL AS SIGNED ) + - - 7 * + SUM( + - 0 ) / + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + + CAST ( NULL AS INTEGER ) + - - 7 * + SUM ( + - 0 ) / + - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + 58 * + 17 + - 36 + - 15 + - + 8
----
927

query I rowsort
SELECT NULLIF ( - - 25, + - 13 - + - ( + 24 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT + - 28 * - 62 + - COUNT( * ) AS col2
----
1735

skipif mysql # not compatible
query I rowsort label-4124
SELECT + - 28 * - 62 + - COUNT ( * ) AS col2
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL NULLIF ( - + 52, + 49 ) * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL NULLIF ( - + 52, + 49 ) * COUNT ( * )
----
-52

query I rowsort
SELECT DISTINCT - 99 AS col1
----
-99

query I rowsort
SELECT DISTINCT 55 * - 3 AS col0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4128
SELECT ALL 72 - COALESCE ( - - 87, + 63 ) * - CAST( NULL AS SIGNED ), 51 AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL 72 - COALESCE ( - - 87, + 63 ) * - CAST ( NULL AS INTEGER ), 51 AS col2
----
NULL
51

query I rowsort
SELECT DISTINCT 63 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4130
SELECT COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4130
SELECT COUNT ( * ) / + COUNT ( * )
----
1

query I rowsort
SELECT ( + + 6 ) * + + 73 * 85 AS col2
----
37230

query I rowsort
SELECT DISTINCT 71 - + NULLIF ( - 35, - 2 ) * - ( - 11 )
----
456

query I rowsort
SELECT - 25 AS col1
----
-25

query I rowsort
SELECT 76 * + 17
----
1292

query I rowsort
SELECT DISTINCT 87 AS col1
----
87

query I rowsort
SELECT - 91 col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL + CASE + COUNT( * ) WHEN - - 68 + + + 96 THEN NULL WHEN - - 84 * + + 57 / - + ( - 78 ) THEN + COUNT( * ) ELSE + MIN( + + 53 ) END AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + CASE + COUNT ( * ) WHEN - - 68 + + + 96 THEN NULL WHEN - - 84 * + + 57 / - + ( - 78 ) THEN + COUNT ( * ) ELSE + MIN ( + + 53 ) END AS col2
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4138
SELECT 41 * - - 61 * + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT 41 * - - 61 * + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL CAST( NULL AS SIGNED ) * + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL CAST ( NULL AS INTEGER ) * + + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT 28 + - 39 + - MIN( ALL + 44 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-4140
SELECT 28 + - 39 + - MIN ( ALL + 44 ) col0
----
-55

query I rowsort
SELECT - - 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - COUNT( * ) + + 9 - - 91 * 91 AS col0
----
8289

skipif mysql # not compatible
query I rowsort label-4142
SELECT - COUNT ( * ) + + 9 - - 91 * 91 AS col0
----
8289

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT COUNT( * ) + ( + 7 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4143
SELECT COUNT ( * ) + ( + 7 ) AS col1
----
8

query I rowsort
SELECT - 7 * - ( - 19 ) + - - 38 * 83 + + 26 * 77 * + 95
----
193211

query I rowsort
SELECT - 29 AS col2
----
-29

query I rowsort
SELECT DISTINCT - - 99 AS col0
----
99

query I rowsort
SELECT ALL + 22 + + 79
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT - 10 * 66 / - COUNT( * ) + - + 30 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT - 10 * 66 / - COUNT ( * ) + - + 30 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MIN( ( + CASE + 18 WHEN - - 84 + 12 THEN NULL ELSE + 5 END ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MIN ( ( + CASE + 18 WHEN - - 84 + 12 THEN NULL ELSE + 5 END ) )
----
-5

query I rowsort
SELECT DISTINCT - + 48 AS col1
----
-48

query I rowsort
SELECT + - 20 AS col1
----
-20

query I rowsort
SELECT DISTINCT - - 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + CASE COUNT( * ) WHEN - 8 THEN NULL ELSE + - 64 END + + - 25
----
-89

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + CASE COUNT ( * ) WHEN - 8 THEN NULL ELSE + - 64 END + + - 25
----
-89

query I rowsort
SELECT - 40 * - + COALESCE ( + 24, + 0 )
----
960

query I rowsort
SELECT 68 * + - 69 AS col0
----
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - 23 + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4156
SELECT - 23 + COUNT ( * )
----
-22

query I rowsort
SELECT + - 99 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4158
SELECT + - 38 * - 97 * - 76 + - - NULLIF ( 68, - + 67 - + + 69 + + 49 * - 79 * - 90 ) - - + 13 + - + CAST( NULL AS DECIMAL ) + + 31 * + - 0 + + CASE - - 17 WHEN 7 THEN - 34 * + 28 + 91 END * 44 / - + 33 - - + CASE + - 45 WHEN 23 * + ( 55 ) * + COUNT( * ) + + COUNT( * ) THEN NULL WHEN ( 47 ) * - + 15 - 36 + + + ( + - 61 ) * - 2 * NULLIF ( + - 76, + 14 * - - 43 * 14 ) * 55 THEN + 75 END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT + - 38 * - 97 * - 76 + - - NULLIF ( 68, - + 67 - + + 69 + + 49 * - 79 * - 90 ) - - + 13 + - + CAST ( NULL AS REAL ) + + 31 * + - 0 + + CASE - - 17 WHEN 7 THEN - 34 * + 28 + 91 END * 44 / - + 33 - - + CASE + - 45 WHEN 23 * + ( 55 ) * + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN ( 47 ) * - + 15 - 36 + + + ( + - 61 ) * - 2 * NULLIF ( + - 76, + 14 * - - 43 * 14 ) * 55 THEN + 75 END * 38
----
NULL

query II rowsort
SELECT ALL - + 15 AS col1, + 72
----
-15
72

query I rowsort
SELECT 51 + + CASE ( + 36 ) WHEN - 77 THEN NULL WHEN + - 81 * + AVG ( 5 ) + - 18 THEN + 96 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4161
SELECT ALL - 86 col2, + 16 + + NULLIF ( - SUM( ALL - - 90 ), 56 )
----
-86
-74

skipif mysql # not compatible
query II rowsort label-4161
SELECT ALL - 86 col2, + 16 + + NULLIF ( - SUM ( ALL - - 90 ), 56 )
----
-86
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT - MIN( - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - MIN ( - 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + MAX( ALL - 71 ) * - 70 + + 65 * 0
----
4970

skipif mysql # not compatible
query I rowsort label-4163
SELECT + MAX ( ALL - 71 ) * - 70 + + 65 * 0
----
4970

query I rowsort
SELECT 67 * - 57 AS col0
----
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - ( 45 ) * COUNT( * ) + - 97
----
-142

skipif mysql # not compatible
query I rowsort label-4165
SELECT - ( 45 ) * COUNT ( * ) + - 97
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT 47 + - - 12 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT 47 + - - 12 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 84 * + 15 * 18 AS col2
----
22680

query I rowsort
SELECT 57 + + 76 - - 1 col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT 95 + - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4169
SELECT 95 + - COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4170
SELECT DISTINCT 65 * - - MAX( DISTINCT + CASE - - 22 WHEN - COALESCE ( + 55, - - 9 ) * - 33 THEN NULL WHEN - 99 THEN - 43 * + 81 END ) AS col2, + 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-4170
SELECT DISTINCT 65 * - - MAX ( DISTINCT + CASE - - 22 WHEN - COALESCE ( + 55, - - 9 ) * - 33 THEN NULL WHEN - 99 THEN - 43 * + 81 END ) AS col2, + 41
----
NULL
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT COUNT( + ( + + 80 ) ) DIV + 31 col1
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT COUNT ( + ( + + 80 ) ) / + 31 col1
----
0

query II rowsort
SELECT 58, + 60 AS col1
----
58
60

query I rowsort
SELECT DISTINCT + 67 * + + ( + - 87 ) AS col0
----
-5829

query I rowsort
SELECT ALL 37 col1
----
37

query I rowsort
SELECT ALL 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ( 39 ) + + - ( + + 16 ) - + 35 * MIN( DISTINCT - 45 )
----
1598

skipif mysql # not compatible
query I rowsort label-4176
SELECT ( 39 ) + + - ( + + 16 ) - + 35 * MIN ( DISTINCT - 45 )
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL MIN( 41 ) + + - 26 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL MIN ( 41 ) + + - 26 AS col0
----
15

query I rowsort
SELECT - ( + - 31 ) * + ( - - 11 )
----
341

query I rowsort
SELECT + - ( - 28 ) + 41 + - + ( 61 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4180
SELECT ALL + 30, 10 + - COUNT( * ) AS col0
----
30
9

skipif mysql # not compatible
query II rowsort label-4180
SELECT ALL + 30, 10 + - COUNT ( * ) AS col0
----
30
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT ALL - 17 DIV - - 46
----
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - 17 / - - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + + COUNT( * ) + - SUM( ALL - - 56 ) + + 16
----
-39

skipif mysql # not compatible
query I rowsort label-4182
SELECT + + COUNT ( * ) + - SUM ( ALL - - 56 ) + + 16
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-4183
SELECT - 85, - COALESCE ( - + 24, + ( + - 75 ) DIV - 43 + - - 65 ) + 71 AS col0
----
-85
95

skipif mysql # not compatible
query II rowsort label-4183
SELECT - 85, - COALESCE ( - + 24, + ( + - 75 ) / - 43 + - - 65 ) + 71 AS col0
----
-85
95

query I rowsort
SELECT ALL - 25 + + 47 * - 69
----
-3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4185
SELECT - 36 AS col1, 24 DIV 41 - + 94 + + COUNT( * ) AS col1
----
-36
-93

skipif mysql # not compatible
query II rowsort label-4185
SELECT - 36 AS col1, 24 / 41 - + 94 + + COUNT ( * ) AS col1
----
-36
-93

query II rowsort
SELECT CASE - + COALESCE ( + 59, - + 99 ) WHEN - + 62 THEN + 5 END AS col1, 1 * + 19 col1
----
NULL
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4187
SELECT ALL COUNT( * ) AS col1, + 43 + - - 82 + - + 36 + + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4187
SELECT ALL COUNT ( * ) AS col1, + 43 + - - 82 + - + 36 + + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT DISTINCT - COUNT( * ) + CAST( + COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER )
----
0

query I rowsort
SELECT ALL + - 66 * - - 90 AS col0
----
-5940

query I rowsort
SELECT ( - COALESCE ( + 27, ( + 10 ) ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL CASE WHEN ( NOT - COUNT( * ) >= - 80 ) THEN 65 END + - - 49 + - + CASE + + 79 WHEN + + COUNT( * ) * - + ( + 3 ) THEN + 39 + - COUNT( * ) * - - 72 ELSE 73 END * - 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL CASE WHEN ( NOT - COUNT ( * ) >= - 80 ) THEN 65 END + - - 49 + - + CASE + + 79 WHEN + + COUNT ( * ) * - + ( + 3 ) THEN + 39 + - COUNT ( * ) * - - 72 ELSE 73 END * - 41 col0
----
NULL

query I rowsort
SELECT + - 84 - + + 40 * + - 27 AS col0
----
996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT + + 10 * - CAST( + 83 AS SIGNED ) col1
----
-830

skipif mysql # not compatible
query I rowsort label-4193
SELECT + + 10 * - CAST ( + 83 AS INTEGER ) col1
----
-830

query I rowsort
SELECT - + 4 * + - 55 AS col0
----
220

query I rowsort
SELECT ALL + ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT COUNT( ALL - ( - 79 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4196
SELECT COUNT ( ALL - ( - 79 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT 63, + MIN( + + 86 ) AS col2
----
63
86

skipif mysql # not compatible
query II rowsort label-4197
SELECT 63, + MIN ( + + 86 ) AS col2
----
63
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - ( - - MIN( - - 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4198
SELECT - ( - - MIN ( - - 2 ) )
----
-2

query I rowsort
SELECT + 54 AS col2
----
54

query II rowsort
SELECT ALL 99 * - 5 - - 79 - + + 31 AS col2, ( - - 8 )
----
-447
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT ALL + 4, - COUNT( * ) AS col1
----
4
-1

skipif mysql # not compatible
query II rowsort label-4201
SELECT ALL + 4, - COUNT ( * ) AS col1
----
4
-1

query I rowsort
SELECT + 44 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT + MIN( DISTINCT - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT + MIN ( DISTINCT - 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT ALL - 52 * + 8 * CAST( + 23 AS SIGNED ) AS col2
----
-9568

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - 52 * + 8 * CAST ( + 23 AS INTEGER ) AS col2
----
-9568

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 72 * + ( + COUNT( * ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 72 * + ( + COUNT ( * ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - COUNT( * ) * + + 83 + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4206
SELECT - COUNT ( * ) * + + 83 + COUNT ( * ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - COALESCE ( - 56, - COALESCE ( COALESCE ( 94, 48 * + 20, - - 77 ), + COUNT( * ) * - COALESCE ( COUNT( * ), + - 40, 28 ) ) * + + 72 ) * + + COUNT( * ) * - 61 * + 46
----
-157136

skipif mysql # not compatible
query I rowsort label-4207
SELECT - COALESCE ( - 56, - COALESCE ( COALESCE ( 94, 48 * + 20, - - 77 ), + COUNT ( * ) * - COALESCE ( COUNT ( * ), + - 40, 28 ) ) * + + 72 ) * + + COUNT ( * ) * - 61 * + 46
----
-157136

query II rowsort
SELECT + ( + 77 ) AS col0, ( 48 )
----
77
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT + 19 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 19 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 89 * - + 29 - 6
----
-2587

query I rowsort
SELECT ALL - 52 * - 64
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - 36 * CASE 72 WHEN 49 * - 54 * - ( + 64 ) * - COUNT( * ) + - COUNT( * ) * + - ( - + 13 ) THEN NULL WHEN + - 39 THEN - 10 * + COUNT( * ) + 84 * + 7 END * + 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT - 36 * CASE 72 WHEN 49 * - 54 * - ( + 64 ) * - COUNT ( * ) + - COUNT ( * ) * + - ( - + 13 ) THEN NULL WHEN + - 39 THEN - 10 * + COUNT ( * ) + 84 * + 7 END * + 15 col2
----
NULL

query I rowsort
SELECT - 18 * 51 AS col2
----
-918

query II rowsort
SELECT DISTINCT + 7 * - 0 col2, 33
----
0
33

query I rowsort
SELECT ALL + 11 AS col1
----
11

query II rowsort
SELECT DISTINCT + ( - 2 ) AS col0, 3
----
-2
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4217
SELECT + 11 * + COALESCE ( 18, - AVG ( DISTINCT - + 79 ) * + 58 DIV + 48 + + 21 ) * + COUNT( * ) + + 81 * + ( - 38 ) + 54
----
-2826

skipif mysql # not compatible
query I rowsort label-4217
SELECT + 11 * + COALESCE ( 18, - AVG ( DISTINCT - + 79 ) * + 58 / + 48 + + 21 ) * + COUNT ( * ) + + 81 * + ( - 38 ) + 54
----
-2826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + CAST( + CAST( - 48 AS SIGNED ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + CAST ( + CAST ( - 48 AS INTEGER ) AS INTEGER )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-4219
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * 84
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + + 86 * + + ( - - 32 ) + 16 - 91 * + + 24
----
-4920

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + + 86 * + + ( - - 32 ) + 16 - 91 * + + 24
----
-4920

query I rowsort
SELECT ALL 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4222
SELECT - 70 - + - SUM( 20 ) * COALESCE ( - 93, + 81 ) * + 68 + 81 + - 85 + - 80 + COUNT( * ) * COUNT( + CAST( NULL AS SIGNED ) ) * 4 - + - 65
----
-126569

skipif mysql # not compatible
query I rowsort label-4222
SELECT - 70 - + - SUM ( 20 ) * COALESCE ( - 93, + 81 ) * + 68 + 81 + - 85 + - 80 + COUNT ( * ) * COUNT ( + CAST ( NULL AS INTEGER ) ) * 4 - + - 65
----
-126569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT - CAST( NULL AS SIGNED ) * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT - CAST ( NULL AS INTEGER ) * - 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT - COALESCE ( 20, COUNT( * ) * + 38 + - 61 ) AS col1, - ( - MAX( + - 52 ) ) * - ( - ( + 65 ) ) * + + 41 AS col0
----
-20
-138580

skipif mysql # not compatible
query II rowsort label-4225
SELECT - COALESCE ( 20, COUNT ( * ) * + 38 + - 61 ) AS col1, - ( - MAX ( + - 52 ) ) * - ( - ( + 65 ) ) * + + 41 AS col0
----
-20
-138580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL CAST( - 83 AS SIGNED ) + + 91
----
8

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL CAST ( - 83 AS INTEGER ) + + 91
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - COUNT( * ) - + 19 + + - 44 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4227
SELECT - COUNT ( * ) - + 19 + + - 44 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4228
SELECT ALL - CAST( NULL AS SIGNED ) * - - COALESCE ( 67, + - MAX( ALL - - 19 ) ), 27 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4228
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COALESCE ( 67, + - MAX ( ALL - - 19 ) ), 27 AS col1
----
NULL
27

query I rowsort
SELECT - - 80
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT ALL SUM( DISTINCT - 13 ), 24 AS col2
----
-13
24

skipif mysql # not compatible
query II rowsort label-4230
SELECT ALL SUM ( DISTINCT - 13 ), 24 AS col2
----
-13
24

query I rowsort
SELECT DISTINCT ( - 27 )
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-4232
SELECT - + 14 + + 31 AS col2, 94 DIV - - 43
----
17
2

skipif mysql # not compatible
query II rowsort label-4232
SELECT - + 14 + + 31 AS col2, 94 / - - 43
----
17
2

query I rowsort
SELECT CASE + 4 WHEN - 83 THEN 46 ELSE + 11 - - - NULLIF ( + 60, 45 * 63 * - 7 ) END AS col2
----
-49

query I rowsort
SELECT ALL - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT - - 39 + - COUNT( * ) * + + 72 col0
----
-33

skipif mysql # not compatible
query I rowsort label-4235
SELECT - - 39 + - COUNT ( * ) * + + 72 col0
----
-33

query I rowsort
SELECT + - NULLIF ( + 45, - 43 ) - - + 88
----
43

query I rowsort
SELECT - 31 * 6 AS col0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + + 64 + + MAX( 97 ) * + - 83 AS col2
----
-7987

skipif mysql # not compatible
query I rowsort label-4238
SELECT + + 64 + + MAX ( 97 ) * + - 83 AS col2
----
-7987

query I rowsort
SELECT - 77 AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( + 16, 96 * - - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( + 16, 96 * - - 57 )
----
NULL

query I rowsort
SELECT ALL + 85 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4242
SELECT + 58 + - 82 * CAST( - 73 AS SIGNED ) * 45 DIV 16
----
16893

skipif mysql # not compatible
query I rowsort label-4242
SELECT + 58 + - 82 * CAST ( - 73 AS INTEGER ) * 45 / 16
----
16893

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL SUM( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL SUM ( 90 )
----
90

query I rowsort
SELECT ALL + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT + + ( + + MAX( - + 77 ) ) * 42 + CASE + - 11 WHEN 8 THEN + 40 * - - 55 END + + + 13 * 25 * - + 78 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT + + ( + + MAX ( - + 77 ) ) * 42 + CASE + - 11 WHEN 8 THEN + 40 * - - 55 END + + + 13 * 25 * - + 78 * - 48
----
NULL

query I rowsort
SELECT ALL - 87 * + 57 AS col1
----
-4959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + ( - 6 ) + 80 * + 91 AS col2
----
7274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT CAST( - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-4249
SELECT CAST ( - 79 AS INTEGER )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT + CAST( NULL AS SIGNED ) * 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT + CAST ( NULL AS INTEGER ) * 39 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL 55 * - + CAST( 72 AS SIGNED )
----
-3960

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL 55 * - + CAST ( 72 AS INTEGER )
----
-3960

query I rowsort
SELECT + ( - NULLIF ( + 14, - 2 ) ) col2
----
-14

query I rowsort
SELECT - COALESCE ( - - 11, - + 40 ) + 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + ( + NULLIF ( - 42, + + ( - COUNT( * ) ) + - 45 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-4254
SELECT + ( + NULLIF ( - 42, + + ( - COUNT ( * ) ) + - 45 ) )
----
-42

query I rowsort
SELECT + 95 * + 59 col2
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + 13 / + CASE + - COALESCE ( + 60, 39 ) WHEN COUNT( * ) / - 12 + + - 98 + + - 63 THEN NULL WHEN - 43 THEN - 56 - COUNT( - 65 ) END * + - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT + 13 / + CASE + - COALESCE ( + 60, 39 ) WHEN COUNT ( * ) / - 12 + + - 98 + + - 63 THEN NULL WHEN - 43 THEN - 56 - COUNT ( - 65 ) END * + - 50 AS col0
----
NULL

query II rowsort
SELECT ALL + 11 AS col0, 55 AS col1
----
11
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4258
SELECT DISTINCT COUNT( * ) DIV - 89 + + - 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT COUNT ( * ) / - 89 + + - 86 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4259
SELECT - 83 DIV + + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4259
SELECT - 83 / + + COUNT ( * ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4260
SELECT ALL CASE - CASE + 82 WHEN - - 79 * + AVG ( DISTINCT + - 79 ) + + MAX( - CASE 4 WHEN - - 37 * + + CAST( + CAST( 5 AS SIGNED ) AS SIGNED ) * 43 THEN - 61 ELSE NULL END ) THEN - + 7 * + - 62 - + 18 WHEN - 32 THEN + - 23 END WHEN + COUNT( * ) THEN + ( + 20 ) ELSE NULL END * + 3 + + AVG ( - - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL CASE - CASE + 82 WHEN - - 79 * + AVG ( DISTINCT + - 79 ) + + MAX ( - CASE 4 WHEN - - 37 * + + CAST ( + CAST ( 5 AS INTEGER ) AS INTEGER ) * 43 THEN - 61 ELSE NULL END ) THEN - + 7 * + - 62 - + 18 WHEN - 32 THEN + - 23 END WHEN + COUNT ( * ) THEN + ( + 20 ) ELSE NULL END * + 3 + + AVG ( - - 10 )
----
NULL

query I rowsort
SELECT 75 - + ( - - 3 ) + + - 32 * - ( - + ( - 14 ) ) col2
----
520

query I rowsort
SELECT ALL - 22 * - 31 AS col1
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT 49 * - 91 - - + 54 * - - NULLIF ( + COUNT( * ), - 27 ) AS col2
----
-4405

skipif mysql # not compatible
query I rowsort label-4263
SELECT 49 * - 91 - - + 54 * - - NULLIF ( + COUNT ( * ), - 27 ) AS col2
----
-4405

query I rowsort
SELECT + 87 AS col0
----
87

query I rowsort
SELECT ALL + 49 + + + 72 * + - 3
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT 78 * + 81 + COUNT( * )
----
6319

skipif mysql # not compatible
query I rowsort label-4266
SELECT 78 * + 81 + COUNT ( * )
----
6319

query I rowsort
SELECT DISTINCT ( + - 46 ) AS col1
----
-46

query I rowsort
SELECT ALL + 51 AS col0
----
51

query I rowsort
SELECT ALL + - 95 - - + 30
----
-65

query I rowsort
SELECT DISTINCT 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - 93 * - ( - 82 ) + + COUNT( * ) AS col0
----
-7625

skipif mysql # not compatible
query I rowsort label-4271
SELECT - 93 * - ( - 82 ) + + COUNT ( * ) AS col0
----
-7625

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT - 62 + 78 + - + 84 + - SUM( - 72 ) * + 50 AS col0, 36
----
3532
36

skipif mysql # not compatible
query II rowsort label-4272
SELECT - 62 + 78 + - + 84 + - SUM ( - 72 ) * + 50 AS col0, 36
----
3532
36

query I rowsort
SELECT DISTINCT - 15
----
-15

query I rowsort
SELECT ALL ( + - 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT - 76 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT - 76 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT 64 + - + 5 DIV 80
----
64

skipif mysql # not compatible
query I rowsort label-4276
SELECT 64 + - + 5 / 80
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4277
SELECT ALL - 82 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL - 82 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT + COUNT( * ) * + COUNT( * ) * + 40 + - 90 + - 12 + + - 28 * - COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4278
SELECT + COUNT ( * ) * + COUNT ( * ) * + 40 + - 90 + - 12 + + - 28 * - COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT DISTINCT 66 col2
----
66

query I rowsort
SELECT DISTINCT 27 col2
----
27

query I rowsort
SELECT DISTINCT 50 AS col2
----
50

query I rowsort
SELECT ALL + ( - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT DISTINCT - 88 * - + 52 + + MAX( 82 ) * - + 35
----
1706

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - 88 * - + 52 + + MAX ( 82 ) * - + 35
----
1706

query I rowsort
SELECT + 83 * - - 74 * - ( + ( 33 ) ) AS col0
----
-202686

query I rowsort
SELECT 23 - - 9 col0
----
32

query I rowsort
SELECT ALL - COALESCE ( - - 67, + ( - 27 ) ) AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4287
SELECT MAX( ALL - 16 ) * + NULLIF ( COUNT( ALL CAST( NULL AS DECIMAL ) ), 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4287
SELECT MAX ( ALL - 16 ) * + NULLIF ( COUNT ( ALL CAST ( NULL AS REAL ) ), 41 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4288
SELECT ALL 7 DIV COUNT( * ) AS col2, - 36
----
7
-36

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL 7 / COUNT ( * ) AS col2, - 36
----
7
-36

query I rowsort
SELECT ALL - NULLIF ( - - 86, - 86 )
----
-86

query I rowsort
SELECT ( 65 ) * - - 18 + - - 2 - + 79 AS col2
----
1093

query I rowsort
SELECT ALL 1 + - 14 * - 57 * + - ( + - 12 ) + 19 AS col1
----
9596

query I rowsort
SELECT 16 * + + 42 + 75 + - 85 * 1
----
662

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4293
SELECT DISTINCT 36 + - CAST( NULL AS SIGNED ), + 12 AS col1
----
NULL
12

skipif mysql # not compatible
query II rowsort label-4293
SELECT DISTINCT 36 + - CAST ( NULL AS INTEGER ), + 12 AS col1
----
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT 95 * - 16 * COUNT( * )
----
-1520

skipif mysql # not compatible
query I rowsort label-4294
SELECT 95 * - 16 * COUNT ( * )
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT ALL 48 + + 9 * - CASE - CAST( 55 AS SIGNED ) WHEN COUNT( * ) / + 89 THEN NULL ELSE + + COALESCE ( - - 45, - COALESCE ( 60, + ( - CAST( + + 13 AS SIGNED ) ) * 97, - - 51 ) * + + 3 ) + ( - ( 6 ) ) + + 46 + + 76 END AS col1
----
-1401

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL 48 + + 9 * - CASE - CAST ( 55 AS INTEGER ) WHEN COUNT ( * ) / + 89 THEN NULL ELSE + + COALESCE ( - - 45, - COALESCE ( 60, + ( - CAST ( + + 13 AS INTEGER ) ) * 97, - - 51 ) * + + 3 ) + ( - ( 6 ) ) + + 46 + + 76 END AS col1
----
-1401

query I rowsort
SELECT 72 * - 56 AS col2
----
-4032

query I rowsort
SELECT 85 + + 36 + + 19 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL 35 + - MIN( ALL + 58 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 35 + - MIN ( ALL + 58 ) AS col0
----
-23

query I rowsort
SELECT 74 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4300
SELECT ALL - CAST( + + 72 AS SIGNED ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - CAST ( + + 72 AS INTEGER ) / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL MAX( 72 ) - + ( - 67 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL MAX ( 72 ) - + ( - 67 ) AS col0
----
139

query I rowsort
SELECT + + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + COUNT( DISTINCT 17 ) * - - 81 col2
----
81

skipif mysql # not compatible
query I rowsort label-4303
SELECT + COUNT ( DISTINCT 17 ) * - - 81 col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT 10 * - COUNT( * ) + + 47 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4304
SELECT 10 * - COUNT ( * ) + + 47 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4305
SELECT COUNT( * ) DIV + 1 + - COUNT( * ) * + + 58 AS col2, 55 * + - COUNT( * )
----
-57
-55

skipif mysql # not compatible
query II rowsort label-4305
SELECT COUNT ( * ) / + 1 + - COUNT ( * ) * + + 58 AS col2, 55 * + - COUNT ( * )
----
-57
-55

query I rowsort
SELECT - 5 AS col2
----
-5

query I rowsort
SELECT ALL 16 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT DISTINCT - 44 * 18 DIV + + ( + NULLIF ( + + SUM( DISTINCT + - 76 ), MIN( DISTINCT - 34 ) ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT - 44 * 18 / + + ( + NULLIF ( + + SUM ( DISTINCT + - 76 ), MIN ( DISTINCT - 34 ) ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - CASE - 41 WHEN 7 / - 15 * COUNT( * ) + 41 - 16 + - ( + - 46 ) THEN 7 WHEN + + 80 + + 55 THEN COUNT( * ) * - COUNT( * ) - + 43 + + - 54 * + 52 * 76 + - 52 + - 13 - - + 64 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT - CASE - 41 WHEN 7 / - 15 * COUNT ( * ) + 41 - 16 + - ( + - 46 ) THEN 7 WHEN + + 80 + + 55 THEN COUNT ( * ) * - COUNT ( * ) - + 43 + + - 54 * + 52 * 76 + - 52 + - 13 - - + 64 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + COUNT( * ) * + 33 * + COUNT( * ) - 48 * + + ( + COUNT( * ) ) * - COUNT( * ) * - - 32 + COUNT( * ) + - + 92
----
1478

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + COUNT ( * ) * + 33 * + COUNT ( * ) - 48 * + + ( + COUNT ( * ) ) * - COUNT ( * ) * - - 32 + COUNT ( * ) + - + 92
----
1478

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT - 59 * COUNT( * ) * - 52 + + 28 - + 86 AS col0
----
3010

skipif mysql # not compatible
query I rowsort label-4311
SELECT - 59 * COUNT ( * ) * - 52 + + 28 - + 86 AS col0
----
3010

query I rowsort
SELECT ALL - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + COUNT( * ) - 90 + - 15 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-4313
SELECT + COUNT ( * ) - 90 + - 15 AS col2
----
-104

query I rowsort
SELECT ALL - 68 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + 40 - + + 52 * - + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 40 - + + 52 * - + COUNT ( * )
----
92

query I rowsort
SELECT ALL + 56
----
56

query I rowsort
SELECT - - 58 col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT AVG ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT AVG ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT - 76 - - CAST( NULL AS SIGNED ) / 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT - 76 - - CAST ( NULL AS INTEGER ) / 11 AS col1
----
NULL

query I rowsort
SELECT ALL - + 13 + + 90
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT COUNT( * ) + ( + 24 ) + - 70 AS col0, 28 * - SUM( ALL - - 1 )
----
-45
-28

skipif mysql # not compatible
query II rowsort label-4321
SELECT COUNT ( * ) + ( + 24 ) + - 70 AS col0, 28 * - SUM ( ALL - - 1 )
----
-45
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4322
SELECT + CAST( ( COUNT( ALL - + 92 ) ) AS SIGNED ) - - CAST( NULL AS DECIMAL ) + - 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT + CAST ( ( COUNT ( ALL - + 92 ) ) AS INTEGER ) - - CAST ( NULL AS REAL ) + - 2 col0
----
NULL

query I rowsort
SELECT - 95 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL + 93 + COUNT( * ) * - COALESCE ( 1, CAST( - ( - 95 ) AS SIGNED ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + 93 + COUNT ( * ) * - COALESCE ( 1, CAST ( - ( - 95 ) AS INTEGER ) ) col1
----
92

query I rowsort
SELECT - 97 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL + 66 + - + COUNT( + - 64 ) + + 54 * - - CAST( NULL AS SIGNED ) * 99 * COALESCE ( COUNT( * ), - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + 66 + - + COUNT ( + - 64 ) + + 54 * - - CAST ( NULL AS INTEGER ) * 99 * COALESCE ( COUNT ( * ), - 52 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT 76 + + 80 DIV - 36 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4327
SELECT 76 + + 80 / - 36 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL + 21 * NULLIF ( - COUNT( * ), - 23 ) * - + 87
----
1827

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + 21 * NULLIF ( - COUNT ( * ), - 23 ) * - + 87
----
1827

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4329
SELECT COALESCE ( - + 19, - + 33 * 0 + - 63 ) * CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT COALESCE ( - + 19, - + 33 * 0 + - 63 ) * CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT ALL ( - 39 ) * + 71 * + 40 - 7 DIV 58 + - - 27 + + + 14 AS col1
----
-110719

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL ( - 39 ) * + 71 * + 40 - 7 / 58 + - - 27 + + + 14 AS col1
----
-110719

query II rowsort
SELECT NULLIF ( - 38, 70 + + 69 * - 74 ), + 22 AS col1
----
-38
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - COUNT( + 52 ) * - 73 + + COALESCE ( - 8, - 92 + - + 15 + - - 22, + 80, COUNT( * ) - - 14 + + 41 * + - 72 ) + + 55 * ( + 91 ) + - 9
----
5061

skipif mysql # not compatible
query I rowsort label-4332
SELECT - COUNT ( + 52 ) * - 73 + + COALESCE ( - 8, - 92 + - + 15 + - - 22, + 80, COUNT ( * ) - - 14 + + 41 * + - 72 ) + + 55 * ( + 91 ) + - 9
----
5061

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - 47 + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4333
SELECT - 47 + + COUNT ( * )
----
-46

query I rowsort
SELECT - 48 * + 55 + - + 36
----
-2676

query I rowsort
SELECT + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT 67 * - - 8 + - 7 * - COALESCE ( + 82, - 82, + 86 * + 95 * + COUNT( * ) ) * - - 41
----
24070

skipif mysql # not compatible
query I rowsort label-4336
SELECT 67 * - - 8 + - 7 * - COALESCE ( + 82, - 82, + 86 * + 95 * + COUNT ( * ) ) * - - 41
----
24070

query I rowsort
SELECT ALL + 15 * - 96 + - 7 + 95 * - 29 AS col2
----
-4202

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT CASE - 97 WHEN - 39 THEN - - 51 WHEN 74 / + 84 THEN NULL WHEN - - ( - + SUM( 25 ) ) THEN NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT CASE - 97 WHEN - 39 THEN - - 51 WHEN 74 / + 84 THEN NULL WHEN - - ( - + SUM ( 25 ) ) THEN NULL END / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 10 ) AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT + 76 DIV ( - - 78 ) * 13 col0
----
0

skipif mysql # not compatible
query I rowsort label-4340
SELECT + 76 / ( - - 78 ) * 13 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + 94 + + 78 - - + COUNT( * ) + - 42
----
131

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 94 + + 78 - - + COUNT ( * ) + - 42
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL + MIN( ( - 21 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + MIN ( ( - 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT MIN( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4343
SELECT MIN ( + 38 )
----
38

query I rowsort
SELECT DISTINCT + 76 * 58 AS col2
----
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - 65 * - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - 65 * - COUNT ( * )
----
65

query I rowsort
SELECT ALL + - 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - - COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-4347
SELECT - - COUNT ( * ) + 28
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4348
SELECT - MIN( ALL 84 ) - 15 + + 93 * 99, MAX( - 67 ) col1
----
9108
-67

skipif mysql # not compatible
query II rowsort label-4348
SELECT - MIN ( ALL 84 ) - 15 + + 93 * 99, MAX ( - 67 ) col1
----
9108
-67

query I rowsort
SELECT + 35 * CASE + 99 WHEN - - 93 * + AVG ( ALL 62 ) * - 38 * + + 96 * 2 THEN - - 12 END * - + 19 * + 85 * + 84 * - ( 3 ) AS col1
----
NULL

query I rowsort
SELECT + + 26 + 10
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4351
SELECT + - 75 * + ( + + ( + + COUNT( * ) ) ) + + 10 + 45 DIV 86
----
-65

skipif mysql # not compatible
query I rowsort label-4351
SELECT + - 75 * + ( + + ( + + COUNT ( * ) ) ) + + 10 + 45 / 86
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT DISTINCT - 15 * + 54 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - 15 * + 54 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + - 46 + - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4354
SELECT + - 46 + - COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT + + 77 * - 5 AS col1
----
-385

query I rowsort
SELECT DISTINCT - 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + COALESCE ( + COUNT( * ), 76 * - 50 ) + MIN( - + 27 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4357
SELECT + COALESCE ( + COUNT ( * ), 76 * - 50 ) + MIN ( - + 27 ) AS col1
----
-26

query I rowsort
SELECT + 38 + 53 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT - - 14 AS col0, COALESCE ( - + 95, 84 + 17 + + + 26 * 94 + + 95 / + + COUNT( * ) * 90 ) * - - COALESCE ( - + 47, - 60 ) + + - CASE - COUNT( * ) WHEN 72 THEN - COALESCE ( - - 75, 93 + - + 61 * + 36 * + CASE COUNT( * ) WHEN + 11 THEN - 89 WHEN 65 THEN + ( - 16 ) WHEN - - 89 / - 24 THEN 60 + - + ( - - 6 ) END, - + 96 * + 81 / 99 ) WHEN 68 THEN NULL ELSE NULL END
----
14
NULL

skipif mysql # not compatible
query II rowsort label-4359
SELECT - - 14 AS col0, COALESCE ( - + 95, 84 + 17 + + + 26 * 94 + + 95 / + + COUNT ( * ) * 90 ) * - - COALESCE ( - + 47, - 60 ) + + - CASE - COUNT ( * ) WHEN 72 THEN - COALESCE ( - - 75, 93 + - + 61 * + 36 * + CASE COUNT ( * ) WHEN + 11 THEN - 89 WHEN 65 THEN + ( - 16 ) WHEN - - 89 / - 24 THEN 60 + - + ( - - 6 ) END, - + 96 * + 81 / 99 ) WHEN 68 THEN NULL ELSE NULL END
----
14
NULL

query I rowsort
SELECT + ( + + 8 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT + 88 DIV 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + 88 / 81 AS col2
----
1

query I rowsort
SELECT ALL 21 + + 64
----
85

query I rowsort
SELECT - - 19 + + 14
----
33

query I rowsort
SELECT + - 50 * - 63 - + CASE 59 WHEN - 24 THEN - ( + + 58 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL + COUNT( * ) * 1 + 94 + - 23
----
72

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + COUNT ( * ) * 1 + 94 + - 23
----
72

query I rowsort
SELECT + + 75 * + 26 * + + 94 - + 52 * + 28
----
181844

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT MAX( ALL - NULLIF ( - 84, - 86 * + 97 * - - 80 ) )
----
84

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT MAX ( ALL - NULLIF ( - 84, - 86 * + 97 * - - 80 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4368
SELECT - ( + COUNT( * ) ) AS col1, 14 DIV - + 99, 85 AS col2
----
-1
0
85

skipif mysql # not compatible
query III rowsort label-4368
SELECT - ( + COUNT ( * ) ) AS col1, 14 / - + 99, 85 AS col2
----
-1
0
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL 78 + - + COUNT( * ), COUNT( * ) AS col0
----
77
1

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL 78 + - + COUNT ( * ), COUNT ( * ) AS col0
----
77
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT DISTINCT 37 + + 19 * + 86 * - COUNT( * ), + 94 * + + 84 + 65 * 96 col1
----
-1597
14136

skipif mysql # not compatible
query II rowsort label-4370
SELECT DISTINCT 37 + + 19 * + 86 * - COUNT ( * ), + 94 * + + 84 + 65 * 96 col1
----
-1597
14136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL - COUNT( * ) + - CAST( - ( 56 ) AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - COUNT ( * ) + - CAST ( - ( 56 ) AS INTEGER ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL 72 + - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL 72 + - COUNT ( * ) AS col0
----
71

query II rowsort
SELECT 12, - 97 AS col2
----
12
-97

query I rowsort
SELECT + 54 - - 53
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT + COALESCE ( + - 70, - ( CAST( - 40 AS SIGNED ) ), - AVG ( - - 96 ) * 6 * + - 83 * - 88 ) - - 90 + - 56 * CASE - - 3 WHEN + - COUNT( + 39 ) * + MAX( - + 70 ) + + + 56 THEN + 3 WHEN - 28 / - - ( + SUM( DISTINCT 15 ) ) * - 58 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT + COALESCE ( + - 70, - ( CAST ( - 40 AS INTEGER ) ), - AVG ( - - 96 ) * 6 * + - 83 * - 88 ) - - 90 + - 56 * CASE - - 3 WHEN + - COUNT ( + 39 ) * + MAX ( - + 70 ) + + + 56 THEN + 3 WHEN - 28 / - - ( + SUM ( DISTINCT 15 ) ) * - 58 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - 36 * + 6 * - MAX( DISTINCT - 20 ) AS col2
----
-4320

skipif mysql # not compatible
query I rowsort label-4376
SELECT - 36 * + 6 * - MAX ( DISTINCT - 20 ) AS col2
----
-4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT CAST( - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4377
SELECT CAST ( - 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT 90 DIV - 48 + + + 79
----
78

skipif mysql # not compatible
query I rowsort label-4378
SELECT 90 / - 48 + + + 79
----
78

query I rowsort
SELECT - 89 * - 22
----
1958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT 57 DIV + 14 - COUNT( - - 40 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT 57 / + 14 - COUNT ( - - 40 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + COUNT ( * ) * 32
----
32

query II rowsort
SELECT - 70 * 74 AS col1, 41 + - + ( 58 ) + 62 AS col2
----
-5180
45

query I rowsort
SELECT ( 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ( + + MAX( ALL - 47 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-4384
SELECT ( + + MAX ( ALL - 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + MIN( - + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + MIN ( - + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4386
SELECT + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 72 + - - 64 col0
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT + - 66 DIV 76 - - 95 * - + 85 + + NULLIF ( - - 6, + 57 * ( 71 ) )
----
-8069

skipif mysql # not compatible
query I rowsort label-4388
SELECT + - 66 / 76 - - 95 * - + 85 + + NULLIF ( - - 6, + 57 * ( 71 ) )
----
-8069

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT + - MIN( DISTINCT 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT + - MIN ( DISTINCT 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL + ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4392
SELECT ALL COUNT( * ) DIV - MIN( ALL - 64 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL COUNT ( * ) / - MIN ( ALL - 64 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT + + COUNT( ALL + + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + + COUNT ( ALL + + 56 )
----
1

query II rowsort
SELECT ALL + 62 AS col2, + 7
----
62
7

query I rowsort
SELECT + - 49
----
-49

query I rowsort
SELECT DISTINCT - 3 * + + 19 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4397
SELECT - + NULLIF ( + 46, - COUNT( * ) ) - + ( - 37 ) + + - COUNT( * ) + - + COALESCE ( 44, + 57 + + COUNT( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT( * ) * - 98 ) / + 99 ) - + 15 * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / 93 AS col2, 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4397
SELECT - + NULLIF ( + 46, - COUNT ( * ) ) - + ( - 37 ) + + - COUNT ( * ) + - + COALESCE ( 44, + 57 + + COUNT ( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT ( * ) * - 98 ) / + 99 ) - + 15 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 93 AS col2, 33 AS col2
----
NULL
33

query I rowsort
SELECT - 13 AS col1
----
-13

query I rowsort
SELECT + - 65 * + 25
----
-1625

query I rowsort
SELECT ALL - 12 * + 43 + 5 + 86 col0
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT + ( + COALESCE ( NULLIF ( 40, - 47 ), - 16 * + 82 + - COUNT( * ) - 34, - 16 + + - 1 ) ) * - - 98 + + 18 AS col1
----
3938

skipif mysql # not compatible
query I rowsort label-4401
SELECT + ( + COALESCE ( NULLIF ( 40, - 47 ), - 16 * + 82 + - COUNT ( * ) - 34, - 16 + + - 1 ) ) * - - 98 + + 18 AS col1
----
3938

query II rowsort
SELECT ALL - 10 * + 15 AS col2, + 56
----
-150
56

query I rowsort
SELECT + - 4 * + 44
----
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT + - COUNT( * ) * + ( - 97 ) + + + COALESCE ( + 9, - 44, - MAX( DISTINCT + - 57 ) DIV + + 4 ) + - + 7 * + 47 AS col0
----
-223

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + - COUNT ( * ) * + ( - 97 ) + + + COALESCE ( + 9, - 44, - MAX ( DISTINCT + - 57 ) / + + 4 ) + - + 7 * + 47 AS col0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4405
SELECT DISTINCT 2, ( + ( CAST( NULL AS SIGNED ) ) ) / + - 37 AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-4405
SELECT DISTINCT 2, ( + ( CAST ( NULL AS INTEGER ) ) ) / + - 37 AS col2
----
2
NULL

query I rowsort
SELECT ALL 55 + 83
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + COUNT( * ) - + 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4407
SELECT + COUNT ( * ) - + 87 AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4408
SELECT ALL + 41 AS col0, + CAST( NULL AS SIGNED ) + + 44 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4408
SELECT ALL + 41 AS col0, + CAST ( NULL AS INTEGER ) + + 44 AS col0
----
41
NULL

query I rowsort
SELECT 66 + + 79 - 70
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT ALL 25 DIV + ( + 63 )
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL 25 / + ( + 63 )
----
0

query I rowsort
SELECT 11 - - + 91 + + + 94 AS col0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT AVG ( - 92 ) + + CASE - + 88 WHEN + 59 * - - ( 58 ) THEN MIN( ALL - 10 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT AVG ( - 92 ) + + CASE - + 88 WHEN + 59 * - - ( 58 ) THEN MIN ( ALL - 10 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT 20 - MIN( DISTINCT ( 51 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4413
SELECT 20 - MIN ( DISTINCT ( 51 ) ) AS col0
----
-31

query I rowsort
SELECT ALL 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT 94 + - 2 * - 61 + - 85 + MAX( + 43 )
----
174

skipif mysql # not compatible
query I rowsort label-4415
SELECT 94 + - 2 * - 61 + - 85 + MAX ( + 43 )
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT ALL 89 DIV COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL 89 / COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT 18 AS col1
----
18

query I rowsort
SELECT ALL 70 AS col0
----
70

query I rowsort
SELECT DISTINCT 41 * - - 4
----
164

query I rowsort
SELECT ALL - 91 AS col1
----
-91

query I rowsort
SELECT ALL - 62 col2
----
-62

query I rowsort
SELECT ( + 13 ) + - 53 AS col1
----
-40

query I rowsort
SELECT 96 * + 88 * 16 + 1 AS col0
----
135169

query I rowsort
SELECT + - 64
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT + 82 * 49 + + ( - CAST( NULLIF ( + - 97, 85 + - 82 ) AS SIGNED ) )
----
4115

skipif mysql # not compatible
query I rowsort label-4425
SELECT + 82 * 49 + + ( - CAST ( NULLIF ( + - 97, 85 + - 82 ) AS INTEGER ) )
----
4115

query I rowsort
SELECT DISTINCT - + ( + 35 )
----
-35

query I rowsort
SELECT ALL + 24 + 5 * + 19 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT - + 37 DIV - 97 + - 27 + + 50 + - + 44 + - - 32 + + 65 col0
----
76

skipif mysql # not compatible
query I rowsort label-4428
SELECT - + 37 / - 97 + - 27 + + 50 + - + 44 + - - 32 + + 65 col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT ALL + 55 DIV - + 84 + 33 DIV - ( + 27 ) + + 86 col1
----
85

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 55 / - + 84 + 33 / - ( + 27 ) + + 86 col1
----
85

query I rowsort
SELECT DISTINCT - 32 * 54 * 35 col1
----
-60480

query I rowsort
SELECT ALL - + 37 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - 59 + 71 + + CASE + ( - ( + + 77 ) ) WHEN - 45 THEN - 2 + - COUNT( * ) ELSE NULL END + 15 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 59 + 71 + + CASE + ( - ( + + 77 ) ) WHEN - 45 THEN - 2 + - COUNT ( * ) ELSE NULL END + 15 * 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT 77 * - 83 DIV + + COUNT( * ) - 79
----
-6470

skipif mysql # not compatible
query I rowsort label-4433
SELECT 77 * - 83 / + + COUNT ( * ) - 79
----
-6470

query I rowsort
SELECT + + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT + MAX( DISTINCT + 95 ) + - MIN( DISTINCT + - 31 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + MAX ( DISTINCT + 95 ) + - MIN ( DISTINCT + - 31 ) AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL + 47 + + COUNT( * ) * - - 90 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + 47 + + COUNT ( * ) * - - 90 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL + - MIN( ALL + 2 ) + - - 55 + 20 + - 58 * + 82 col1
----
-4683

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + - MIN ( ALL + 2 ) + - - 55 + 20 + - 58 * + 82 col1
----
-4683

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT ALL - 78 DIV 36
----
-2

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - 78 / 36
----
-2

query I rowsort
SELECT DISTINCT 31
----
31

query I rowsort
SELECT ALL 62 * + 75 - - 62
----
4712

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL NULLIF ( + COUNT( * ), SUM( + - 31 ) * 6 ) * - + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL NULLIF ( + COUNT ( * ), SUM ( + - 31 ) * 6 ) * - + 38 AS col0
----
-38

query II rowsort
SELECT - 92 AS col2, + 56 AS col1
----
-92
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4443
SELECT ALL + 35 - - + SUM( DISTINCT - + 12 ) DIV - 87 * + 17 * + + 66 * 67 * + 98 AS col0, + 85 * 79 + 2
----
35
6717

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL + 35 - - + SUM ( DISTINCT - + 12 ) / - 87 * + 17 * + + 66 * 67 * + 98 AS col0, + 85 * 79 + 2
----
35
6717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT DISTINCT + COUNT( * ) - + - CAST( - 94 AS SIGNED ) * 90 AS col1
----
-8459

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + COUNT ( * ) - + - CAST ( - 94 AS INTEGER ) * 90 AS col1
----
-8459

query I rowsort
SELECT 20 + 75
----
95

query I rowsort
SELECT 91 * 92
----
8372

query I rowsort
SELECT DISTINCT 36 * + + 59 AS col1
----
2124

query I rowsort
SELECT ALL 13 col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT MIN( - ( + 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT MIN ( - ( + 83 ) )
----
-83

query I rowsort
SELECT ALL 71 AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT DISTINCT 24 DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT 24 / 64 AS col0
----
0

query I rowsort
SELECT 29 * - 53
----
-1537

query I rowsort
SELECT 0 - 60
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT 36 / 28 * COUNT( * ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT 36 / 28 * COUNT ( * ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT NULLIF ( - 61, + - COUNT( * ) * + - NULLIF ( - 66, - - 1 ) + 34 ) - + ( - + 6 )
----
-55

skipif mysql # not compatible
query I rowsort label-4455
SELECT NULLIF ( - 61, + - COUNT ( * ) * + - NULLIF ( - 66, - - 1 ) + 34 ) - + ( - + 6 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - MIN( 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4456
SELECT - MIN ( 31 ) AS col0
----
-31

query I rowsort
SELECT 10 * - 70 + 45 + 46 * - 41 * - 9 * - 23 * + 26 * + 12 + - 46 + + - 3
----
-121806128

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT MAX( DISTINCT - - NULLIF ( 55, + + 44 ) )
----
55

skipif mysql # not compatible
query I rowsort label-4458
SELECT MAX ( DISTINCT - - NULLIF ( 55, + + 44 ) )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT 26 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT 26 / 62
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT DISTINCT 20 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT 20 / + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT MIN( + 48 ) DIV + - 10 - 74 + - 27 - 72 * - 6 - 23 col1
----
304

skipif mysql # not compatible
query I rowsort label-4461
SELECT MIN ( + 48 ) / + - 10 - 74 + - 27 - 72 * - 6 - 23 col1
----
304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL - CAST( + 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - CAST ( + 6 AS INTEGER ) AS col1
----
-6

query I rowsort
SELECT 33 * + 27 * 23 * - - 45
----
922185

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL + + 61 * - + MIN( ALL - 75 ) * + + 43 + 95 * 74 + + - COUNT( * )
----
203754

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + + 61 * - + MIN ( ALL - 75 ) * + + 43 + 95 * 74 + + - COUNT ( * )
----
203754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4465
SELECT - 36 AS col1, 16 * CASE - + CAST( NULL AS SIGNED ) WHEN - CAST( - 4 AS DECIMAL ) THEN 3 * + 13 DIV + - 10 * + 6 * 32 WHEN + CAST( NULL AS SIGNED ) * + + NULLIF ( - COUNT( * ), + 12 * 11 ) + 22 + + 27 + - 86 DIV - 8 THEN + CAST( NULL AS SIGNED ) * + COUNT( * ) * - 28 ELSE + COUNT( * ) END col2
----
-36
16

skipif mysql # not compatible
query II rowsort label-4465
SELECT - 36 AS col1, 16 * CASE - + CAST ( NULL AS INTEGER ) WHEN - CAST ( - 4 AS REAL ) THEN 3 * + 13 / + - 10 * + 6 * 32 WHEN + CAST ( NULL AS INTEGER ) * + + NULLIF ( - COUNT ( * ), + 12 * 11 ) + 22 + + 27 + - 86 / - 8 THEN + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 28 ELSE + COUNT ( * ) END col2
----
-36
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT 81 + - COUNT( DISTINCT 85 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4466
SELECT 81 + - COUNT ( DISTINCT 85 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL - COUNT( - CAST( - 22 AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - COUNT ( - CAST ( - 22 AS INTEGER ) ) col0
----
-1

query I rowsort
SELECT 32 * - 23 + - 94 + + - 62 * - - 48 + + 66 AS col2
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 71 - - SUM( ALL + - 51 ) - 78
----
-58

skipif mysql # not compatible
query I rowsort label-4469
SELECT 71 - - SUM ( ALL + - 51 ) - 78
----
-58

query I rowsort
SELECT DISTINCT - 30
----
-30

query I rowsort
SELECT ALL + - 41 + + + 19 AS col2
----
-22

query I rowsort
SELECT DISTINCT - - 49
----
49

query I rowsort
SELECT ALL - 48 col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4474
SELECT + 93 * - - CASE - COUNT( + + 78 ) WHEN + 80 THEN NULL WHEN - - ( + COUNT( * ) ) + 34 * 58 * - + COUNT( * ) THEN - - 70 WHEN 82 THEN - CAST( NULL AS DECIMAL ) END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT + 93 * - - CASE - COUNT ( + + 78 ) WHEN + 80 THEN NULL WHEN - - ( + COUNT ( * ) ) + 34 * 58 * - + COUNT ( * ) THEN - - 70 WHEN 82 THEN - CAST ( NULL AS REAL ) END * 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-4475
SELECT ALL + + ( - MIN( DISTINCT + - 41 ) ) AS col1, MIN( DISTINCT + ( - 8 ) ) AS col1, - - CASE + CAST( NULL AS DECIMAL ) WHEN 86 THEN - COUNT( * ) END + + CAST( NULL AS DECIMAL ) AS col1
----
41
-8
NULL

skipif mysql # not compatible
query III rowsort label-4475
SELECT ALL + + ( - MIN ( DISTINCT + - 41 ) ) AS col1, MIN ( DISTINCT + ( - 8 ) ) AS col1, - - CASE + CAST ( NULL AS REAL ) WHEN 86 THEN - COUNT ( * ) END + + CAST ( NULL AS REAL ) AS col1
----
41
-8
NULL

query I rowsort
SELECT ALL 76 - 14 * - - 96 * ( ( - 69 ) )
----
92812

query I rowsort
SELECT ALL - + 62 * - - 20 col0
----
-1240

query I rowsort
SELECT + 60 + 14 col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT - NULLIF ( + 99, - + 98 * - CAST( NULL AS SIGNED ) ) * - 20 + + + 70
----
2050

skipif mysql # not compatible
query I rowsort label-4479
SELECT - NULLIF ( + 99, - + 98 * - CAST ( NULL AS INTEGER ) ) * - 20 + + + 70
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL MIN( - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL MIN ( - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT CASE COUNT( - 44 ) WHEN 37 * 63 * - 48 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT CASE COUNT ( - 44 ) WHEN 37 * 63 * - 48 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4482
SELECT - 1 - 25 + + - 95 + + + 48 + - 45 * + - ( 66 ) + CAST( NULL AS DECIMAL ) * - - ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 1 - 25 + + - 95 + + + 48 + - 45 * + - ( 66 ) + CAST ( NULL AS REAL ) * - - ( COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT - 60 * 6 col0, 82
----
-360
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4484
SELECT ALL + CAST( NULL AS SIGNED ) * - 9 AS col1, - CAST( COUNT( * ) AS SIGNED ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL + CAST ( NULL AS INTEGER ) * - 9 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4485
SELECT DISTINCT + 59 DIV COUNT( ALL + 35 )
----
59

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + 59 / COUNT ( ALL + 35 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - 71 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 71 * COUNT ( * )
----
-71

query II rowsort
SELECT - 30 + 30 AS col2, 33
----
0
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT ALL CASE + CAST( + + 48 AS SIGNED ) WHEN + ( - + 76 ) * + 65 + + + CASE + + CASE ( - 47 ) WHEN - ( - 35 ) THEN - + COALESCE ( - COUNT( * ), + + 58 + 38 + + 5 ) * + + 48 END WHEN 90 - - 38 + + 20 * 86 - - 23 THEN NULL WHEN - 4 - - - 80 THEN - 87 END THEN NULL ELSE 18 END
----
18

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL CASE + CAST ( + + 48 AS INTEGER ) WHEN + ( - + 76 ) * + 65 + + + CASE + + CASE ( - 47 ) WHEN - ( - 35 ) THEN - + COALESCE ( - COUNT ( * ), + + 58 + 38 + + 5 ) * + + 48 END WHEN 90 - - 38 + + 20 * 86 - - 23 THEN NULL WHEN - 4 - - - 80 THEN - 87 END THEN NULL ELSE 18 END
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - 41 + + MIN( ( 48 ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4489
SELECT - 41 + + MIN ( ( 48 ) ) AS col2
----
7

query I rowsort
SELECT + 6 * 15 * 81 * + 24
----
174960

query I rowsort
SELECT - 18 + + - 32 AS col2
----
-50

query I rowsort
SELECT ALL - 68 * + - 13 * + 4 col1
----
3536

query I rowsort
SELECT - 35 * 23
----
-805

query I rowsort
SELECT - 94 + NULLIF ( - 65, + 2 ) * - 38 col0
----
2376

query I rowsort
SELECT + NULLIF ( + COALESCE ( + - 66, 86 ), 64 ) - - 78
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4496
SELECT - 70 * 57 AS col2, CAST( NULL AS SIGNED ) col0
----
-3990
NULL

skipif mysql # not compatible
query II rowsort label-4496
SELECT - 70 * 57 AS col2, CAST ( NULL AS INTEGER ) col0
----
-3990
NULL

query I rowsort
SELECT ALL 82 + - 33 - 65 * - 11
----
764

query I rowsort
SELECT ALL - ( + 30 ) * - 22 AS col1
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT - + 40 * - COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - + 40 * - COUNT ( * ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT + CAST( - 1 AS SIGNED ) DIV - 90 + + 30 * - 97 + - + 45 DIV - 56
----
-2910

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + CAST ( - 1 AS INTEGER ) / - 90 + + 30 * - 97 + - + 45 / - 56
----
-2910

query I rowsort
SELECT ALL - 29 * ( - + 97 ) + - - 91
----
2904

query I rowsort
SELECT + + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL - 22 * COUNT( * ) * + + 85 + 66 AS col0
----
-1804

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - 22 * COUNT ( * ) * + + 85 + 66 AS col0
----
-1804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT DISTINCT + CAST( 2 AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT + CAST ( 2 AS INTEGER ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT - - 41 + - 95 - - CAST( NULL AS SIGNED ) * - 29 * - + 16 + + - COUNT( * ) / - 82 * - ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT - - 41 + - 95 - - CAST ( NULL AS INTEGER ) * - 29 * - + 16 + + - COUNT ( * ) / - 82 * - ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + COUNT( * ) * - + 87 * 81
----
-7047

skipif mysql # not compatible
query I rowsort label-4506
SELECT + COUNT ( * ) * - + 87 * 81
----
-7047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4507
SELECT + - 85 * - 1 + + CASE 47 WHEN COALESCE ( - - 11, - + COUNT( * ) ) THEN - 43 * - 26 + - 7 * CAST( - - NULLIF ( + + CASE + 63 WHEN + + 94 + - NULLIF ( 62, + - 8 ) THEN + - 24 ELSE + - 58 + - COUNT( * ) END, - - 99 + 26 * - ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) WHEN ( + ( + 15 ) ) * COUNT( * ) THEN - + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT + - 85 * - 1 + + CASE 47 WHEN COALESCE ( - - 11, - + COUNT ( * ) ) THEN - 43 * - 26 + - 7 * CAST ( - - NULLIF ( + + CASE + 63 WHEN + + 94 + - NULLIF ( 62, + - 8 ) THEN + - 24 ELSE + - 58 + - COUNT ( * ) END, - - 99 + 26 * - ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) WHEN ( + ( + 15 ) ) * COUNT ( * ) THEN - + 5 END
----
NULL

query I rowsort
SELECT + - 27 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT ALL CAST( NULL AS SIGNED ) * + 34 + + 8 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL CAST ( NULL AS INTEGER ) * + 34 + + 8 * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL 39 * + MIN( ALL + 92 ) + - 96 + - - 92 AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 39 * + MIN ( ALL + 92 ) + - 96 + - - 92 AS col2
----
3584

query I rowsort
SELECT ALL + 11 * + 28
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT + 6 / - + 10 * + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 6 / - + 10 * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 17 col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT ALL 65 * - + CAST( - 86 AS SIGNED ) - + 62 * + NULLIF ( - 26, NULLIF ( - - 53, - 64 ) * 85 ) * - 17 * - 86
----
2362334

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL 65 * - + CAST ( - 86 AS INTEGER ) - + 62 * + NULLIF ( - 26, NULLIF ( - - 53, - 64 ) * 85 ) * - 17 * - 86
----
2362334

query I rowsort
SELECT + - 85 * 58 + 63 AS col1
----
-4867

query I rowsort
SELECT - CASE - 85 WHEN - 18 THEN + - 86 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT - 14 + 80 * - 44 + + 50 + 87 AS col0, - COUNT( * ) col1
----
-3397
-1

skipif mysql # not compatible
query II rowsort label-4517
SELECT - 14 + 80 * - 44 + + 50 + 87 AS col0, - COUNT ( * ) col1
----
-3397
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT COUNT( - + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4518
SELECT COUNT ( - + 84 )
----
1

query I rowsort
SELECT 72 * ( - 47 ) + - ( + 44 ) AS col2
----
-3428

query I rowsort
SELECT DISTINCT ( + - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL + COUNT( * ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + COUNT ( * ) * - 5
----
-5

query I rowsort
SELECT - 54 + + 28
----
-26

query I rowsort
SELECT - ( 90 ) AS col2
----
-90

query I rowsort
SELECT + 18 * + 21 AS col0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - COUNT( * ) + + - 16 + CASE - 50 WHEN - - SUM( - 98 ) / 59 + + 91 / + + COUNT( * ) THEN NULL WHEN + + 16 / - 33 THEN 42 + - 42 + + 55 * + ( COUNT( * ) ) ELSE NULL END + + 57 / 54 * - ( + 34 ) * - 79 * - COUNT( + 61 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT - COUNT ( * ) + + - 16 + CASE - 50 WHEN - - SUM ( - 98 ) / 59 + + 91 / + + COUNT ( * ) THEN NULL WHEN + + 16 / - 33 THEN 42 + - 42 + + 55 * + ( COUNT ( * ) ) ELSE NULL END + + 57 / 54 * - ( + 34 ) * - 79 * - COUNT ( + 61 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT + COUNT( * ) + 37
----
38

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + COUNT ( * ) + 37
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT 17 * - ( + CASE - ( ( + 11 ) ) WHEN - + 47 THEN COUNT( * ) ELSE - - 70 END ) * + 68
----
-80920

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT 17 * - ( + CASE - ( ( + 11 ) ) WHEN - + 47 THEN COUNT ( * ) ELSE - - 70 END ) * + 68
----
-80920

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL + 10 + + COUNT( + - 33 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL + 10 + + COUNT ( + - 33 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - COUNT( ALL + 39 ) + + + ( - 33 )
----
-34

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - COUNT ( ALL + 39 ) + + + ( - 33 )
----
-34

query I rowsort
SELECT DISTINCT + 28 + 44 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4531
SELECT - NULLIF ( - - 17, 46 DIV + 19 ) DIV + + 99, + 95 * + + COUNT( * ) AS col2
----
0
95

skipif mysql # not compatible
query II rowsort label-4531
SELECT - NULLIF ( - - 17, 46 / + 19 ) / + + 99, + 95 * + + COUNT ( * ) AS col2
----
0
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL + COUNT( * ) + - CASE - NULLIF ( + 30, - CAST( 1 AS SIGNED ) + CASE ( - 54 ) WHEN - 69 THEN 99 + 43 END * 42 ) WHEN - 18 / 87 THEN NULL WHEN 29 THEN - 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + COUNT ( * ) + - CASE - NULLIF ( + 30, - CAST ( 1 AS INTEGER ) + CASE ( - 54 ) WHEN - 69 THEN 99 + 43 END * 42 ) WHEN - 18 / 87 THEN NULL WHEN 29 THEN - 17 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 12 )
----
12

query I rowsort
SELECT - 16 * - 64 AS col1
----
1024

query I rowsort
SELECT - 28 - 87 AS col2
----
-115

query I rowsort
SELECT - NULLIF ( - 28, + 32 ) - - 19 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - COALESCE ( - COUNT( * ), 60, - 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4537
SELECT - COALESCE ( - COUNT ( * ), 60, - 29 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 20 * - 43
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + CASE 43 WHEN 70 THEN NULL ELSE ( 16 ) END * COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4539
SELECT + CASE 43 WHEN 70 THEN NULL ELSE ( 16 ) END * COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + 38 * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + 38 * COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4541
SELECT ALL COUNT( * ) / CAST( - 61 AS DECIMAL ) - - CASE + COUNT( * ) + 84 WHEN ( + 6 ) - 68 THEN + 71 WHEN + 71 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL COUNT ( * ) / CAST ( - 61 AS REAL ) - - CASE + COUNT ( * ) + 84 WHEN ( + 6 ) - 68 THEN + 71 WHEN + 71 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 5 AS col0
----
5

query I rowsort
SELECT DISTINCT + 21 * - 82
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - 66 - CASE NULLIF ( - 95, + ( - 56 ) ) WHEN COALESCE ( 42, + COUNT( ALL + 80 ) ) THEN 50 ELSE NULL END * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - 66 - CASE NULLIF ( - 95, + ( - 56 ) ) WHEN COALESCE ( 42, + COUNT ( ALL + 80 ) ) THEN 50 ELSE NULL END * - 65
----
NULL

query I rowsort
SELECT ALL - 50 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - ( - MIN( DISTINCT + 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - ( - MIN ( DISTINCT + 89 ) )
----
89

query I rowsort
SELECT ALL - 48 - - 45 col1
----
-3

query I rowsort
SELECT DISTINCT - ( + 9 )
----
-9

query I rowsort
SELECT 69 * 94 AS col0
----
6486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT NULLIF ( 70, - 89 * + 65 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT NULLIF ( 70, - 89 * + 65 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 79 AS col2
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4552
SELECT CAST( NULL AS DECIMAL ) - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT CAST ( NULL AS REAL ) - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT ALL + 76 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL + 76 / 38
----
2

query I rowsort
SELECT 4 * - 36 AS col2
----
-144

query I rowsort
SELECT DISTINCT + 58 * - COALESCE ( + 6, 52 )
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL - MIN( 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - MIN ( 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT 20 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4557
SELECT 20 * + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL COUNT( * ) * - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL COUNT ( * ) * - ( COUNT ( * ) )
----
-1

query I rowsort
SELECT 94 * 1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT NULLIF ( 21, NULLIF ( 27, COUNT( * ) ) * - 18 ) * + COALESCE ( - 65 + + 70 * + SUM( ALL 23 * - 77 ), + 97 )
----
-2604735

skipif mysql # not compatible
query I rowsort label-4560
SELECT NULLIF ( 21, NULLIF ( 27, COUNT ( * ) ) * - 18 ) * + COALESCE ( - 65 + + 70 * + SUM ( ALL 23 * - 77 ), + 97 )
----
-2604735

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT COUNT( * ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4561
SELECT COUNT ( * ) + - 92
----
-91

query I rowsort
SELECT 88 AS col0
----
88

query I rowsort
SELECT ALL 12 + - 27
----
-15

query I rowsort
SELECT COALESCE ( 2, ( 9 ) ) + + 15 AS col2
----
17

query I rowsort
SELECT 55 * 46 AS col0
----
2530

query I rowsort
SELECT DISTINCT 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL 76 + - NULLIF ( - MIN( DISTINCT 17 ) + 11, 55 * NULLIF ( + 42, + 77 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL 76 + - NULLIF ( - MIN ( DISTINCT 17 ) + 11, 55 * NULLIF ( + 42, + 77 ) ) AS col1
----
82

query I rowsort
SELECT 35 - 19 * + 44 col1
----
-801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT DISTINCT 11 + - COALESCE ( - 33, 40 + - 56, - 54 * - 2 + + ( + 97 ) * + 0 ) DIV + NULLIF ( - 53, ( + COUNT( * ) ) * + COUNT( * ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT 11 + - COALESCE ( - 33, 40 + - 56, - 54 * - 2 + + ( + 97 ) * + 0 ) / + NULLIF ( - 53, ( + COUNT ( * ) ) * + COUNT ( * ) ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT MIN( ( 72 ) ) + + 30 * - 46 AS col0
----
-1308

skipif mysql # not compatible
query I rowsort label-4570
SELECT MIN ( ( 72 ) ) + + 30 * - 46 AS col0
----
-1308

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL COUNT( * ) + COUNT( * ) * + 2
----
3

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL COUNT ( * ) + COUNT ( * ) * + 2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT DISTINCT CAST( NULL AS SIGNED ) * 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 38 col2
----
NULL

query I rowsort
SELECT DISTINCT 35 AS col0
----
35

query I rowsort
SELECT ( 39 ) + - 1 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT 85 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4575
SELECT 85 * - COUNT ( * )
----
-85

query I rowsort
SELECT ALL 27 * 30 AS col1
----
810

query I rowsort
SELECT - 71 - - 56 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + COUNT( * ) + - 21 * 5
----
-104

skipif mysql # not compatible
query I rowsort label-4578
SELECT + COUNT ( * ) + - 21 * 5
----
-104

query I rowsort
SELECT 77 + 8 * 43 AS col1
----
421

query I rowsort
SELECT ALL + 55 - ( 51 ) AS col0
----
4

query I rowsort
SELECT 64 * 70
----
4480

query I rowsort
SELECT ALL 93 * 11
----
1023

query I rowsort
SELECT ALL + 23 col2
----
23

query I rowsort
SELECT ALL - ( 63 ) AS col1
----
-63

query I rowsort
SELECT 56 + + 64
----
120

query I rowsort
SELECT ALL + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + - 68 - CASE - 58 WHEN CASE - 68 WHEN + 40 THEN NULL WHEN - ( 46 ) THEN - 13 - - 70 * - 56 ELSE 47 * 70 END + - 42 THEN NULL WHEN - COUNT( * ) THEN 33 * 94 + COUNT( 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + - 68 - CASE - 58 WHEN CASE - 68 WHEN + 40 THEN NULL WHEN - ( 46 ) THEN - 13 - - 70 * - 56 ELSE 47 * 70 END + - 42 THEN NULL WHEN - COUNT ( * ) THEN 33 * 94 + COUNT ( 18 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4588
SELECT COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT + CASE - 11 WHEN + 8 + - CAST( NULL AS SIGNED ) THEN + 44 WHEN 88 THEN NULL WHEN 84 * + 77 THEN NULL ELSE NULL END / 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT + CASE - 11 WHEN + 8 + - CAST ( NULL AS INTEGER ) THEN + 44 WHEN 88 THEN NULL WHEN 84 * + 77 THEN NULL ELSE NULL END / 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL - - 55 * MAX( + ( 26 ) ) AS col1
----
1430

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - - 55 * MAX ( + ( 26 ) ) AS col1
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT 66 + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4591
SELECT 66 + COUNT ( * ) AS col1
----
67

query I rowsort
SELECT + + 82
----
82

query I rowsort
SELECT + 59 * 70 + ( + 57 ) * + 75 AS col2
----
8405

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 15 col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - NULLIF ( - 81, COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - NULLIF ( - 81, COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL ( - 84 ) + COUNT( * ) * - 8 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL ( - 84 ) + COUNT ( * ) * - 8 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT COUNT( * ) + + - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4598
SELECT COUNT ( * ) + + - 82 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT + COUNT( DISTINCT + 53 ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT + COUNT ( DISTINCT + 53 ) * 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT 20 + - 53 - - NULLIF ( + 57, COUNT( * ) ) * + 90 col2
----
5097

skipif mysql # not compatible
query I rowsort label-4600
SELECT 20 + - 53 - - NULLIF ( + 57, COUNT ( * ) ) * + 90 col2
----
5097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL - CAST( - 80 AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - CAST ( - 80 AS INTEGER ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - SUM( ( - 28 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - SUM ( ( - 28 ) ) AS col0
----
28

query I rowsort
SELECT ALL + 45 + + 88 col1
----
133

query I rowsort
SELECT 0 * 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL + 82 + 13 + 38 * COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + 82 + 13 + 38 * COUNT ( * )
----
133

query I rowsort
SELECT DISTINCT - COALESCE ( + ( + 97 ), 75 ) + 22 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT 20 DIV + + 82
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT 20 / + + 82
----
0

query I rowsort
SELECT 55 + + 62 AS col2
----
117

query I rowsort
SELECT ALL 6 + 92 AS col0
----
98

query I rowsort
SELECT ALL - 94 AS col0
----
-94

query I rowsort
SELECT DISTINCT - 28 + 97
----
69

query I rowsort
SELECT DISTINCT 0 * + 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL 59 + ( 96 ) * ( COUNT( * ) ) AS col1
----
155

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL 59 + ( 96 ) * ( COUNT ( * ) ) AS col1
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4614
SELECT 45 DIV - COUNT( ALL 9 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4614
SELECT 45 / - COUNT ( ALL 9 ) AS col2
----
-45

query I rowsort
SELECT ALL - ( 15 ) + + 21 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL CASE COUNT( * ) WHEN + 90 - - COUNT( * ) THEN NULL WHEN 59 - + SUM( DISTINCT + 54 ) * + 57 THEN 80 / CASE - 78 WHEN 30 THEN NULL ELSE 91 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL CASE COUNT ( * ) WHEN + 90 - - COUNT ( * ) THEN NULL WHEN 59 - + SUM ( DISTINCT + 54 ) * + 57 THEN 80 / CASE - 78 WHEN 30 THEN NULL ELSE 91 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4617
SELECT CASE - COUNT( * ) WHEN - 42 THEN 91 + + CAST( 87 AS SIGNED ) WHEN 11 THEN NULL ELSE + 54 DIV + 26 - + COUNT( * ) END * 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4617
SELECT CASE - COUNT ( * ) WHEN - 42 THEN 91 + + CAST ( 87 AS INTEGER ) WHEN 11 THEN NULL ELSE + 54 / + 26 - + COUNT ( * ) END * 6 AS col0
----
6

query I rowsort
SELECT DISTINCT 5 * + 4 * + 0 AS col2
----
0

query I rowsort
SELECT 29 * + 7
----
203

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT 35 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT 35 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT 70 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4621
SELECT 70 * COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - SUM( DISTINCT + 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4622
SELECT - SUM ( DISTINCT + 67 ) AS col1
----
-67

query I rowsort
SELECT DISTINCT 58 - + 81 * + 39
----
-3101

query I rowsort
SELECT - - 2 AS col2
----
2

query I rowsort
SELECT - 68 + 34 col2
----
-34

query I rowsort
SELECT DISTINCT 86 - - 30 * 67
----
2096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT ALL - CAST( + 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - CAST ( + 79 AS INTEGER ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT COALESCE ( COUNT( * ), 28 + + 13 * - 1, - 58 - - 85 DIV 78, - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT COALESCE ( COUNT ( * ), 28 + + 13 * - 1, - 58 - - 85 / 78, - 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT + MIN( + + 89 ) * 61
----
5429

skipif mysql # not compatible
query I rowsort label-4629
SELECT + MIN ( + + 89 ) * 61
----
5429

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + 57 * COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4630
SELECT + 57 * COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL COUNT( * ) * + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL COUNT ( * ) * + 28 AS col2
----
28

query I rowsort
SELECT ALL 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL 45 * + + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL 45 * + + COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + COUNT( * ) + + - 81 * 40
----
-3239

skipif mysql # not compatible
query I rowsort label-4634
SELECT + COUNT ( * ) + + - 81 * 40
----
-3239

query I rowsort
SELECT - + 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL COUNT( + 33 ) * + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL COUNT ( + 33 ) * + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + + 77 * - COUNT( * ) - 70 * - 14 AS col2
----
903

skipif mysql # not compatible
query I rowsort label-4637
SELECT + + 77 * - COUNT ( * ) - 70 * - 14 AS col2
----
903

query I rowsort
SELECT ALL + - 68
----
-68

query I rowsort
SELECT ALL - 93 * 30 + 79 + + 80 AS col0
----
-2631

query I rowsort
SELECT + + ( - - 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT ALL + - 76 * COUNT( - 8 ) - 12 DIV - 87 + + COALESCE ( 5 + - NULLIF ( 69, + COUNT( + 43 ) + ( ( - 15 ) ) ), + 38, 80 + SUM( DISTINCT + 91 ) ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + - 76 * COUNT ( - 8 ) - 12 / - 87 + + COALESCE ( 5 + - NULLIF ( 69, + COUNT ( + 43 ) + ( ( - 15 ) ) ), + 38, 80 + SUM ( DISTINCT + 91 ) ) AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - 60 * MAX( ALL + 15 )
----
-900

skipif mysql # not compatible
query I rowsort label-4642
SELECT - 60 * MAX ( ALL + 15 )
----
-900

query I rowsort
SELECT DISTINCT 11 * + + 2 * - 34 + 40 + + 27 AS col2
----
-681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT DISTINCT - CAST( - 71 AS SIGNED ) * NULLIF ( COUNT( * ), + ( ( 78 ) ) ) + ( - 51 ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) * NULLIF ( COUNT ( * ), + ( ( 78 ) ) ) + ( - 51 ) * COUNT ( * )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT + COALESCE ( + 62, + 24 DIV ( 55 DIV COALESCE ( 85, - 80, COUNT( ALL ( + COALESCE ( 26, 4 DIV 63 ) ) ) + 43 * + 55 ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-4645
SELECT + COALESCE ( + 62, + 24 / ( 55 / COALESCE ( 85, - 80, COUNT ( ALL ( + COALESCE ( 26, 4 / 63 ) ) ) + 43 * + 55 ) ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), + CAST( + 80 AS SIGNED ) * + 60 + - ( 86 ) * 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-4646
SELECT NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), + CAST ( + 80 AS INTEGER ) * + 60 + - ( 86 ) * 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL - 35 * + 52 + + 4 + - COUNT( * ) col2
----
-1817

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - 35 * + 52 + + 4 + - COUNT ( * ) col2
----
-1817

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + 43 * - MIN( ALL + - 6 ) AS col0
----
258

skipif mysql # not compatible
query I rowsort label-4648
SELECT + 43 * - MIN ( ALL + - 6 ) AS col0
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT - 10 DIV + + 4 + COALESCE ( + 96, 52 + 44 ) + 14
----
108

skipif mysql # not compatible
query I rowsort label-4649
SELECT - 10 / + + 4 + COALESCE ( + 96, 52 + 44 ) + 14
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - 19 * - MAX( - 8 )
----
-152

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 19 * - MAX ( - 8 )
----
-152

query I rowsort
SELECT - COALESCE ( 34, 23 ) * 93 AS col0
----
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL + COUNT( ALL 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + COUNT ( ALL 39 )
----
1

query I rowsort
SELECT ALL - ( - ( + 44 ) ) * - 71 AS col2
----
-3124

query I rowsort
SELECT NULLIF ( 48, - 78 )
----
48

query I rowsort
SELECT ALL + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT - COUNT( * ) * - 26 * - - 1 + 9
----
35

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - COUNT ( * ) * - 26 * - - 1 + 9
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT - ( COUNT( * ) ) * + COUNT( * ) * 95 + ( + 63 )
----
-32

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - ( COUNT ( * ) ) * + COUNT ( * ) * 95 + ( + 63 )
----
-32

query I rowsort
SELECT ALL + ( - 33 )
----
-33

query I rowsort
SELECT ALL - 24 * - 46 * + - 67 col2
----
-73968

query I rowsort
SELECT - 53 + - - 90 AS col2
----
37

query I rowsort
SELECT DISTINCT + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + ( COUNT ( * ) )
----
1

query I rowsort
SELECT - 29 + 65 + - 28 + + 57 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + COALESCE ( + 64, - + 6 DIV NULLIF ( - 46 DIV 72, - 38 * - 6 ), 36 ) - 54 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4664
SELECT + COALESCE ( + 64, - + 6 / NULLIF ( - 46 / 72, - 38 * - 6 ), 36 ) - 54 AS col2
----
10

query I rowsort
SELECT + 93 * COALESCE ( + 23, - ( - 73 ), + 7 * + 26, + 21 ) col2
----
2139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4666
SELECT + 11 DIV + CAST( 39 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 11 / + CAST ( 39 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL ( - + MAX( 34 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL ( - + MAX ( 34 ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * )
----
1

query I rowsort
SELECT - + 50 + + 80 AS col1
----
30

query I rowsort
SELECT DISTINCT 83 col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT ALL - ( + - 52 ) DIV + - 68 * 32
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - ( + - 52 ) / + - 68 * 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT + COUNT( * ) + 57 * - 17 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT + COUNT ( * ) + 57 * - 17 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - 37 AS col2, 34
----
-37
34

query II rowsort
SELECT - 11, 78 + - 86 AS col1
----
-11
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT + 42 DIV + - 12 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4676
SELECT + 42 / + - 12 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT - 62 * - - CAST( NULL AS SIGNED ) * + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT - 62 * - - CAST ( NULL AS INTEGER ) * + + 11 AS col0
----
NULL

query I rowsort
SELECT ALL 16 * 74 AS col0
----
1184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4679
SELECT 51 AS col2, CAST( NULL AS SIGNED )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4679
SELECT 51 AS col2, CAST ( NULL AS INTEGER )
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT - 99 + - CAST( - - MAX( 70 ) AS SIGNED ) + - 19 AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-4680
SELECT - 99 + - CAST ( - - MAX ( 70 ) AS INTEGER ) + - 19 AS col1
----
-188

query I rowsort
SELECT + - COALESCE ( + - 9, + + 1 ) + 38 AS col2
----
47

query I rowsort
SELECT - ( - 34 ) col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT 95 col0, COUNT( ALL - 36 ) * 87 + - 98 AS col1
----
95
-11

skipif mysql # not compatible
query II rowsort label-4683
SELECT 95 col0, COUNT ( ALL - 36 ) * 87 + - 98 AS col1
----
95
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL - - COUNT( * ) + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - - COUNT ( * ) + + 70 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT - - CAST( - 86 AS SIGNED ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-4685
SELECT - - CAST ( - 86 AS INTEGER ) col0
----
-86

query I rowsort
SELECT ALL 61 + - CASE - 94 WHEN - 74 + - 93 THEN - 12 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT DISTINCT COUNT( * ) + - NULLIF ( + ( + 41 ), 87 * + COUNT( * ) + - NULLIF ( + COALESCE ( ( - COUNT( * ) ), + 24 * + 9 + 95, - ( COUNT( * ) ) * 65, + ( 69 ) ), + COUNT( * ) * 81 ) * + ( COUNT( * ) ) ) + + COALESCE ( - 78 - + 25 * ( COUNT( * ) * MAX( 49 * CAST( NULL AS SIGNED ) ) + COUNT( * ) ), + 11 * 77 )
----
807

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT COUNT ( * ) + - NULLIF ( + ( + 41 ), 87 * + COUNT ( * ) + - NULLIF ( + COALESCE ( ( - COUNT ( * ) ), + 24 * + 9 + 95, - ( COUNT ( * ) ) * 65, + ( 69 ) ), + COUNT ( * ) * 81 ) * + ( COUNT ( * ) ) ) + + COALESCE ( - 78 - + 25 * ( COUNT ( * ) * MAX ( 49 * CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ), + 11 * 77 )
----
807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4688
SELECT ALL - 86, 81 DIV + CASE ( + 73 ) WHEN 55 DIV - COALESCE ( CASE + CASE + 97 WHEN - 28 THEN + 43 * 73 - 14 * 58 END WHEN 75 + - ( 44 ) THEN NULL WHEN - 54 + - 79 THEN CAST( 10 AS SIGNED ) ELSE NULL END, + 69 + + CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN COUNT( * ) * 79 END, - 57 * + 22 - 13 ) - 48 THEN - 6 WHEN - 86 - - 55 THEN NULL ELSE + COALESCE ( - 69, SUM( 15 ) ) END AS col2
----
-86
-1

skipif mysql # not compatible
query II rowsort label-4688
SELECT ALL - 86, 81 / + CASE ( + 73 ) WHEN 55 / - COALESCE ( CASE + CASE + 97 WHEN - 28 THEN + 43 * 73 - 14 * 58 END WHEN 75 + - ( 44 ) THEN NULL WHEN - 54 + - 79 THEN CAST ( 10 AS INTEGER ) ELSE NULL END, + 69 + + CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN COUNT ( * ) * 79 END, - 57 * + 22 - 13 ) - 48 THEN - 6 WHEN - 86 - - 55 THEN NULL ELSE + COALESCE ( - 69, SUM ( 15 ) ) END AS col2
----
-86
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4689
SELECT COUNT( * ) AS col1, + 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-4689
SELECT COUNT ( * ) AS col1, + 98 AS col0
----
1
98

query I rowsort
SELECT + 58 * + - 51 + - 26 * 15 AS col1
----
-3348

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4691
SELECT + 80 col0, + 61 + - 84 + 44 DIV - 31 * - COUNT( * )
----
80
-22

skipif mysql # not compatible
query II rowsort label-4691
SELECT + 80 col0, + 61 + - 84 + 44 / - 31 * - COUNT ( * )
----
80
-22

query II rowsort
SELECT + 43 + 42 col1, - 63 AS col2
----
85
-63

query I rowsort
SELECT + 2 * - 32
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT CAST( 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-4694
SELECT CAST ( 67 AS INTEGER )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT + 19 + 51 * - CAST( + 62 AS SIGNED ) * 69 + + 87 * 17 AS col2
----
-216680

skipif mysql # not compatible
query I rowsort label-4695
SELECT + 19 + 51 * - CAST ( + 62 AS INTEGER ) * 69 + + 87 * 17 AS col2
----
-216680

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - 25 * + 47 * CASE WHEN NULL NOT BETWEEN + MAX( DISTINCT + 8 ) AND ( + 90 ) THEN + 19 ELSE + 19 + + 99 END
----
-138650

skipif mysql # not compatible
query I rowsort label-4696
SELECT - 25 * + 47 * CASE WHEN NULL NOT BETWEEN + MAX ( DISTINCT + 8 ) AND ( + 90 ) THEN + 19 ELSE + 19 + + 99 END
----
-138650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT DISTINCT - 75 / + + COUNT( * ) + CAST( NULL AS SIGNED ) - - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - 75 / + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - - + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL + COUNT( DISTINCT + - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + COUNT ( DISTINCT + - 28 ) AS col2
----
1

query I rowsort
SELECT + ( 13 ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT ALL + 31 DIV - 78 + + - 2
----
-2

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + 31 / - 78 + + - 2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT + CAST( + COALESCE ( + ( + 8 ), + 38 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-4701
SELECT + CAST ( + COALESCE ( + ( + 8 ), + 38 ) AS INTEGER )
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4702
SELECT DISTINCT - CASE + 78 WHEN - + AVG ( + 41 ) THEN 97 WHEN AVG ( ( CAST( 58 AS DECIMAL ) ) ) THEN + 86 END / - 48 + - MIN( DISTINCT 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - CASE + 78 WHEN - + AVG ( + 41 ) THEN 97 WHEN AVG ( ( CAST ( 58 AS REAL ) ) ) THEN + 86 END / - 48 + - MIN ( DISTINCT 8 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4703
SELECT ALL 80 DIV + + 14 + - 33 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL 80 / + + 14 + - 33 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4704
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 87 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT + 53 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-4706
SELECT + 53 / - 87
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT + 88 DIV COUNT( DISTINCT 76 )
----
88

skipif mysql # not compatible
query I rowsort label-4707
SELECT + 88 / COUNT ( DISTINCT 76 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL 98 * + 65 - + COUNT( * )
----
6369

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL 98 * + 65 - + COUNT ( * )
----
6369

query I rowsort
SELECT ALL - 93 * - 44
----
4092

query I rowsort
SELECT DISTINCT + NULLIF ( 56, + 57 / + 14 + - 68 ) AS col2
----
56

query I rowsort
SELECT + 82 col2
----
82

query I rowsort
SELECT ALL - ( - 74 )
----
74

query I rowsort
SELECT + 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL - COALESCE ( - + COUNT( + 73 ), + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - COALESCE ( - + COUNT ( + 73 ), + 28 )
----
1

query I rowsort
SELECT ALL - + ( 95 ) * + 14 * + + 75 AS col1
----
-99750

query I rowsort
SELECT DISTINCT 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT DISTINCT - AVG ( ALL 1 ) * 19 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - AVG ( ALL 1 ) * 19 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 56 AS col1
----
56

query I rowsort
SELECT + ( + 27 ) - + - 0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT - MAX( 35 ), 57 AS col2
----
-35
57

skipif mysql # not compatible
query II rowsort label-4720
SELECT - MAX ( 35 ), 57 AS col2
----
-35
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL NULLIF ( - 30, - + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL NULLIF ( - 30, - + COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + COUNT( DISTINCT + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-4722
SELECT + COUNT ( DISTINCT + 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT - - ( - ( - - MIN( - 77 ) ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4723
SELECT - - ( - ( - - MIN ( - 77 ) ) ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4724
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ), - 41 AS col1
----
1
-41

skipif mysql # not compatible
query II rowsort label-4724
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ), - 41 AS col1
----
1
-41

query I rowsort
SELECT + 97 * + - 31 + + 92
----
-2915

query I rowsort
SELECT - - 11
----
11

query I rowsort
SELECT ALL + 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - COUNT( * ) * 15 * - 26 * 70 + 33
----
27333

skipif mysql # not compatible
query I rowsort label-4728
SELECT - COUNT ( * ) * 15 * - 26 * 70 + 33
----
27333

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL CASE - - 8 WHEN + - 37 * - COUNT( * ) THEN - ( - 87 ) WHEN - 12 - - 67 THEN NULL ELSE + 85 + 0 END AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL CASE - - 8 WHEN + - 37 * - COUNT ( * ) THEN - ( - 87 ) WHEN - 12 - - 67 THEN NULL ELSE + 85 + 0 END AS col0
----
85

query II rowsort
SELECT DISTINCT + - 44 + + 19 AS col2, + 89
----
-25
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL - 31 + + MAX( DISTINCT - 67 ) - + + CAST( NULL AS SIGNED ) / ( - 91 + - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL - 31 + + MAX ( DISTINCT - 67 ) - + + CAST ( NULL AS INTEGER ) / ( - 91 + - 27 )
----
NULL

query I rowsort
SELECT - 25 AS col2
----
-25

query I rowsort
SELECT ALL + + 94 + + 9 + 54 * COALESCE ( + 98, 59 * 92 ) AS col1
----
5395

query I rowsort
SELECT ( - 99 ) * - 32
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL CAST( + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL CAST ( + 56 AS INTEGER )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4736
SELECT 13 + - 4 - 98 + + 41 DIV ( + NULLIF ( - 65, 33 * 58 + + 60 ) ) + 13 * - COUNT( * )
----
-102

skipif mysql # not compatible
query I rowsort label-4736
SELECT 13 + - 4 - 98 + + 41 / ( + NULLIF ( - 65, 33 * 58 + + 60 ) ) + 13 * - COUNT ( * )
----
-102

query II rowsort
SELECT DISTINCT 90 AS col1, + 69
----
90
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT COUNT( * ) + - + 11
----
-10

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT COUNT ( * ) + - + 11
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT - 41 * - NULLIF ( 24, COUNT( DISTINCT - - 60 ) )
----
984

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT - 41 * - NULLIF ( 24, COUNT ( DISTINCT - - 60 ) )
----
984

query I rowsort
SELECT ALL - 0 AS col0
----
0

query II rowsort
SELECT ALL 42 - - 66 + + 37, 97 - 52 AS col1
----
145
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT COUNT( * ) * 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4742
SELECT COUNT ( * ) * 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL - CASE + - 40 WHEN - NULLIF ( + + 47, + - 16 / - 67 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 90 WHEN SUM( 81 ) * 20 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - CASE + - 40 WHEN - NULLIF ( + + 47, + - 16 / - 67 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 90 WHEN SUM ( 81 ) * 20 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT 48 - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4745
SELECT 48 - COUNT ( * ) AS col1
----
47

query I rowsort
SELECT DISTINCT - 87 AS col1
----
-87

query I rowsort
SELECT ALL - 90
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT ALL COALESCE ( 7, + 2, - 5 ) - + 18 + + 44 DIV 51 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL COALESCE ( 7, + 2, - 5 ) - + 18 + + 44 / 51 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT CASE + + 75 WHEN - 8 * - + NULLIF ( MIN( + 39 ), 47 ) THEN + 41 END * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT CASE + + 75 WHEN - 8 * - + NULLIF ( MIN ( + 39 ), 47 ) THEN + 41 END * 23 AS col1
----
NULL

query I rowsort
SELECT + 15 col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT 83 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-4751
SELECT 83 / + - 42
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT CASE 46 WHEN - - 25 THEN NULL WHEN 81 / + 38 THEN CAST( NULL AS SIGNED ) + - 36 END * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT CASE 46 WHEN - - 25 THEN NULL WHEN 81 / + 38 THEN CAST ( NULL AS INTEGER ) + - 36 END * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL ( 2 ) * + 28 * - SUM( + 66 ) AS col2
----
-3696

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL ( 2 ) * + 28 * - SUM ( + 66 ) AS col2
----
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT ALL - COUNT( * ) AS col1, 82
----
-1
82

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL - COUNT ( * ) AS col1, 82
----
-1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT CASE + 66 WHEN - 77 + 74 * 53 THEN - COUNT( * ) + + 93 * - 94 WHEN 45 THEN NULL ELSE NULL END - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT CASE + 66 WHEN - 77 + 74 * 53 THEN - COUNT ( * ) + + 93 * - 94 WHEN 45 THEN NULL ELSE NULL END - 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - COUNT( * ) / + - 61 * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / + - 61 * + 11
----
NULL

query I rowsort
SELECT ALL 40 * - 52 AS col2
----
-2080

query I rowsort
SELECT DISTINCT - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4759
SELECT ALL + COUNT( * ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + COUNT ( * ) / + 86
----
0

query I rowsort
SELECT DISTINCT - 5 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + 40 + + CASE 59 WHEN - - ( COUNT( * ) ) THEN 97 + + 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT + 40 + + CASE 59 WHEN - - ( COUNT ( * ) ) THEN 97 + + 12 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT + COUNT( * ) DIV - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT + COUNT ( * ) / - 12 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + 15 / - - CAST( NULL AS SIGNED ) / + + ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 15 / - - CAST ( NULL AS INTEGER ) / + + ( - 57 )
----
NULL

query I rowsort
SELECT + 54 + 46 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - COALESCE ( - 18, 9, COALESCE ( - 43, 70 * + 54 ) + - 8 ) - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4765
SELECT - COALESCE ( - 18, 9, COALESCE ( - 43, 70 * + 54 ) + - 8 ) - + COUNT ( * )
----
17

query I rowsort
SELECT ALL - + 46 * - - 61 - + 18
----
-2824

query I rowsort
SELECT - 81 + + 31 AS col0
----
-50

query I rowsort
SELECT ALL - + 21 + 37 * 45 + 46
----
1690

query I rowsort
SELECT ALL - 77 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4770
SELECT ALL + 21 + + + 0 + - COALESCE ( - SUM( 53 ), + ( + 76 ) + - NULLIF ( ( + 84 ) + + 83, NULLIF ( 61, - 56 + 49 * 12 ) * + COUNT( * ) ) ) - CASE ( - CAST( NULL AS DECIMAL ) ) + 28 WHEN - 4 + - 52 THEN NULL WHEN - 85 + 60 * 54 THEN 55 WHEN + 43 + + 2 THEN - 5 * 80 ELSE NULL END * + ( COUNT( * ) ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + 21 + + + 0 + - COALESCE ( - SUM ( 53 ), + ( + 76 ) + - NULLIF ( ( + 84 ) + + 83, NULLIF ( 61, - 56 + 49 * 12 ) * + COUNT ( * ) ) ) - CASE ( - CAST ( NULL AS REAL ) ) + 28 WHEN - 4 + - 52 THEN NULL WHEN - 85 + 60 * 54 THEN 55 WHEN + 43 + + 2 THEN - 5 * 80 ELSE NULL END * + ( COUNT ( * ) ) * 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - NULLIF ( + 12, 69 ) + + + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4771
SELECT - NULLIF ( + 12, 69 ) + + + COUNT ( * ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL + 10 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + 10 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 8 * 57 + 33 AS col1, + 15
----
489
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - - MAX( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4774
SELECT - - MAX ( 32 )
----
32

query I rowsort
SELECT ALL + - 42 + + 8
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + CASE - 59 WHEN ( - + 92 ) * - + ( - 23 ) THEN - 1 + + 85 * CASE - 77 + + 41 WHEN + MIN( ALL + NULLIF ( + ( - 37 ), 23 / + 58 ) ) + 49 THEN 90 ELSE NULL END WHEN + 1 THEN NULL ELSE NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + CASE - 59 WHEN ( - + 92 ) * - + ( - 23 ) THEN - 1 + + 85 * CASE - 77 + + 41 WHEN + MIN ( ALL + NULLIF ( + ( - 37 ), 23 / + 58 ) ) + 49 THEN 90 ELSE NULL END WHEN + 1 THEN NULL ELSE NULL END * 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT - CASE + - 63 WHEN + ( AVG ( ALL 99 ) ) * 32 THEN NULL WHEN - 45 / ( - AVG ( ( + CAST( NULL AS SIGNED ) ) ) ) + 31 THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT - CASE + - 63 WHEN + ( AVG ( ALL 99 ) ) * 32 THEN NULL WHEN - 45 / ( - AVG ( ( + CAST ( NULL AS INTEGER ) ) ) ) + 31 THEN 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT 18 + + 62 * + + ( - 85 ) * + 64 * COUNT( * ) + + 70
----
-337192

skipif mysql # not compatible
query I rowsort label-4778
SELECT 18 + + 62 * + + ( - 85 ) * + 64 * COUNT ( * ) + + 70
----
-337192

query I rowsort
SELECT 29 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT 94 + + COALESCE ( 59, 21 ) DIV - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4780
SELECT 94 + + COALESCE ( 59, 21 ) / - + COUNT ( * )
----
35

query I rowsort
SELECT - + 82
----
-82

query I rowsort
SELECT ALL + 64 - 9
----
55

query I rowsort
SELECT DISTINCT NULLIF ( + 10, + 41 )
----
10

query II rowsort
SELECT 37 AS col0, 85
----
37
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT DISTINCT + ( - 28 ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + ( - 28 ) / - 51
----
0

query II rowsort
SELECT ALL 49, + 63 AS col1
----
49
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4787
SELECT - 50 AS col2, COUNT( ALL - 62 ) AS col1
----
-50
1

skipif mysql # not compatible
query II rowsort label-4787
SELECT - 50 AS col2, COUNT ( ALL - 62 ) AS col1
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL COUNT( + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL COUNT ( + 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL - 65 * - + 92 * - COUNT( * )
----
-5980

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - 65 * - + 92 * - COUNT ( * )
----
-5980

query I rowsort
SELECT 35 + - 56 + + 92 + + 88 * - 11
----
-897

onlyif mysql # aggregate syntax: 
query II rowsort label-4791
SELECT + 58, + MIN( ALL 66 ) AS col0
----
58
66

skipif mysql # not compatible
query II rowsort label-4791
SELECT + 58, + MIN ( ALL 66 ) AS col0
----
58
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT COUNT( + 32 ) * + + 39
----
39

skipif mysql # not compatible
query I rowsort label-4792
SELECT COUNT ( + 32 ) * + + 39
----
39

query I rowsort
SELECT ALL + 92 * + 69 * + 82
----
520536

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ( - NULLIF ( + + 34, - - MIN( 46 ) + - CASE - 12 WHEN + 1 + + 57 THEN - 46 * - ( 18 ) - 35 END ) ) * - 33 + 12
----
1134

skipif mysql # not compatible
query I rowsort label-4794
SELECT ( - NULLIF ( + + 34, - - MIN ( 46 ) + - CASE - 12 WHEN + 1 + + 57 THEN - 46 * - ( 18 ) - 35 END ) ) * - 33 + 12
----
1134

query II rowsort
SELECT ALL + 25 AS col2, 13
----
25
13

query II rowsort
SELECT ALL + 28 AS col0, - 22
----
28
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT - CASE + + 83 WHEN 71 THEN + - 50 ELSE NULL END * NULLIF ( CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT - CASE + + 83 WHEN 71 THEN + - 50 ELSE NULL END * NULLIF ( CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL + ( + COUNT( + - 44 ) ) * + 32 * - - ( - COUNT( * ) ) * 92
----
-2944

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + ( + COUNT ( + - 44 ) ) * + 32 * - - ( - COUNT ( * ) ) * 92
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT MAX( ALL + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4799
SELECT MAX ( ALL + 41 )
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4800
SELECT ALL + 44, CAST( NULL AS DECIMAL ) col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-4800
SELECT ALL + 44, CAST ( NULL AS REAL ) col0
----
44
NULL

query I rowsort
SELECT + 52 + - 18 + - - 42 * 81 * - 87 * + 60
----
-17758406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL 2 * + 82 + - 92 * + + CAST( + 52 AS SIGNED )
----
-4620

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL 2 * + 82 + - 92 * + + CAST ( + 52 AS INTEGER )
----
-4620

query II rowsort
SELECT + 83 AS col0, 81 * + 38 * - - 83 + + 77 + + 73 * - 28 AS col1
----
83
253507

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT 80 * + + 86 + COALESCE ( + - 91, + 97, - 5 DIV + 5 - 86, - 85 DIV COALESCE ( 70 * - 82, + 37 * 6 ) ) * 80 AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-4804
SELECT 80 * + + 86 + COALESCE ( + - 91, + 97, - 5 / + 5 - 86, - 85 / COALESCE ( 70 * - 82, + 37 * 6 ) ) * 80 AS col2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT + - SUM( ALL - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT + - SUM ( ALL - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL + 5 * CASE - ( + 6 ) WHEN + COUNT( * ) THEN - 98 ELSE NULL END + + ( 22 ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + 5 * CASE - ( + 6 ) WHEN + COUNT ( * ) THEN - 98 ELSE NULL END + + ( 22 ) * 40
----
NULL

query I rowsort
SELECT + 52 * - 84 + - ( - 17 ) * + + 3 AS col1
----
-4317

query I rowsort
SELECT + - 71 AS col1
----
-71

query I rowsort
SELECT ALL + 27 * + + 57 + + 35 AS col0
----
1574

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + - COALESCE ( - CASE + - COUNT( ALL - + 6 ) WHEN + 36 THEN - 45 WHEN - 12 THEN NULL WHEN - 81 * - 27 THEN NULL ELSE 85 * 11 END, + 69 ) col2
----
935

skipif mysql # not compatible
query I rowsort label-4810
SELECT + - COALESCE ( - CASE + - COUNT ( ALL - + 6 ) WHEN + 36 THEN - 45 WHEN - 12 THEN NULL WHEN - 81 * - 27 THEN NULL ELSE 85 * 11 END, + 69 ) col2
----
935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4811
SELECT + - COUNT( * ) * + 77 DIV - + 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4811
SELECT + - COUNT ( * ) * + 77 / - + 72 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT ALL COUNT( * ), - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4812
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col0
----
1
-1

query I rowsort
SELECT DISTINCT 67 + + 85 + 36 * + 75 AS col2
----
2852

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ALL + 64 + + 84 DIV + 64
----
65

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + 64 + + 84 / + 64
----
65

query I rowsort
SELECT - COALESCE ( - + 64, + 58 * 1, + + 8 ) AS col2
----
64

query I rowsort
SELECT ALL 85 + + + 48 - - 79 col1
----
212

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT + 54 - - - 40 DIV 37
----
53

skipif mysql # not compatible
query I rowsort label-4817
SELECT + 54 - - - 40 / 37
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + COUNT( * ) * + 25 + - 52
----
-27

skipif mysql # not compatible
query I rowsort label-4818
SELECT + COUNT ( * ) * + 25 + - 52
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4819
SELECT DISTINCT 94 DIV + 10 DIV COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT 94 / + 10 / COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + ( - - 3 ) * - + 90 + - + COUNT( 37 ) AS col1
----
-271

skipif mysql # not compatible
query I rowsort label-4820
SELECT + ( - - 3 ) * - + 90 + - + COUNT ( 37 ) AS col1
----
-271

query I rowsort
SELECT DISTINCT - 81 - + 95 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query III rowsort label-4822
SELECT - + 66 AS col0, - 6 AS col0, + + NULLIF ( + + 79, - COUNT( * ) )
----
-66
-6
79

skipif mysql # not compatible
query III rowsort label-4822
SELECT - + 66 AS col0, - 6 AS col0, + + NULLIF ( + + 79, - COUNT ( * ) )
----
-66
-6
79

query I rowsort
SELECT ALL + 48 - - + 20
----
68

query I rowsort
SELECT + - 43 * 43 * - 30
----
55470

query I rowsort
SELECT ALL - 40 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT - 49 - + 6 DIV + 91 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4826
SELECT - 49 - + 6 / + 91 AS col2
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4827
SELECT ALL CAST( NULL AS DECIMAL ) - + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL CAST ( NULL AS REAL ) - + 90 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 62, - 40 ) * - 51
----
-3162

query I rowsort
SELECT - ( 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT + 89 + NULLIF ( 45, - 69 * - COUNT( - CAST( NULL AS SIGNED ) ) - AVG ( ALL 83 ) ) - 53 * SUM( 14 ) AS col0
----
-608

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 89 + NULLIF ( 45, - 69 * - COUNT ( - CAST ( NULL AS INTEGER ) ) - AVG ( ALL 83 ) ) - 53 * SUM ( 14 ) AS col0
----
-608

query II rowsort
SELECT - 6 * 89, 49 AS col2
----
-534
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT - 12 + - + 43 * + CAST( 87 AS SIGNED ) + + + ( + - SUM( 10 ) ) AS col2
----
-3763

skipif mysql # not compatible
query I rowsort label-4832
SELECT - 12 + - + 43 * + CAST ( 87 AS INTEGER ) + + + ( + - SUM ( 10 ) ) AS col2
----
-3763

query I rowsort
SELECT DISTINCT NULLIF ( - 56, + 10 ) AS col1
----
-56

query I rowsort
SELECT ALL ( - + 91 )
----
-91

query I rowsort
SELECT ALL + 99 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT DISTINCT 49 DIV 56 + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT 49 / 56 + - 73
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT DISTINCT - COUNT( * ) * - 81 AS col2, - 37 AS col2
----
81
-37

skipif mysql # not compatible
query II rowsort label-4837
SELECT DISTINCT - COUNT ( * ) * - 81 AS col2, - 37 AS col2
----
81
-37

query I rowsort
SELECT - 11 + - - 29 + + 51 * - 51 AS col0
----
-2583

query I rowsort
SELECT ALL - 34 * + 31 AS col2
----
-1054

query I rowsort
SELECT ( ( + - 98 ) ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT - 29 DIV - 48 col0
----
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT - 29 / - 48 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT - 40 - + CAST( + 26 AS SIGNED ) * 32
----
-872

skipif mysql # not compatible
query I rowsort label-4842
SELECT - 40 - + CAST ( + 26 AS INTEGER ) * 32
----
-872

query I rowsort
SELECT DISTINCT - 16 * + - 87
----
1392

query I rowsort
SELECT ALL 36 * - - 11 + + 67 + 34
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + 48 * - COUNT( * ) - + 25 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4845
SELECT + 48 * - COUNT ( * ) - + 25 AS col1
----
-73

query I rowsort
SELECT ( + 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT + NULLIF ( + + 74, + COALESCE ( CAST( NULL AS SIGNED ), 49 + 1 ) * NULLIF ( - 13, 70 * 59 ) * + 46 )
----
74

skipif mysql # not compatible
query I rowsort label-4847
SELECT + NULLIF ( + + 74, + COALESCE ( CAST ( NULL AS INTEGER ), 49 + 1 ) * NULLIF ( - 13, 70 * 59 ) * + 46 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4848
SELECT - - COUNT( * ) DIV 80 * - + 82 + + 4 col1
----
4

skipif mysql # not compatible
query I rowsort label-4848
SELECT - - COUNT ( * ) / 80 * - + 82 + + 4 col1
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4849
SELECT + - 34 DIV - 38, + ( 22 ) AS col0
----
0
22

skipif mysql # not compatible
query II rowsort label-4849
SELECT + - 34 / - 38, + ( 22 ) AS col0
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - - 20 * - CASE + 15 WHEN + 80 THEN NULL WHEN + 38 THEN NULL ELSE COUNT( ALL + 38 ) * - 18 END - - 12 * 50 + - 83
----
877

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - - 20 * - CASE + 15 WHEN + 80 THEN NULL WHEN + 38 THEN NULL ELSE COUNT ( ALL + 38 ) * - 18 END - - 12 * 50 + - 83
----
877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4851
SELECT DISTINCT - + 13 * + COUNT( * ) DIV 93 * + + 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - + 13 * + COUNT ( * ) / 93 * + + 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL + + COUNT( * ) * - 15 * - - ( + 67 ) * - 9 * + 34 + 20 + 81 * + COUNT( * ) AS col2
----
307631

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + + COUNT ( * ) * - 15 * - - ( + 67 ) * - 9 * + 34 + 20 + 81 * + COUNT ( * ) AS col2
----
307631

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT - - COUNT( * ) - + 1 - + 53 AS col2, 71
----
-53
71

skipif mysql # not compatible
query II rowsort label-4853
SELECT - - COUNT ( * ) - + 1 - + 53 AS col2, 71
----
-53
71

query I rowsort
SELECT DISTINCT + 43 * 42 + - - 56 AS col0
----
1862

query I rowsort
SELECT DISTINCT + 58 AS col0
----
58

query I rowsort
SELECT DISTINCT 0 * + 97 + + + 82 + - + 80 + + + ( - - 67 ) * - + 25 AS col0
----
-1673

query I rowsort
SELECT + CASE - - 3 WHEN + 98 + - 91 + - + 9 THEN + 21 END col1
----
NULL

query I rowsort
SELECT ALL + + 16
----
16

query I rowsort
SELECT + 86 * + + 38
----
3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT ALL CASE NULLIF ( - - 28, 1 * 48 * 72 + - 69 ) WHEN + 31 THEN + 42 DIV + 65 ELSE 94 END * + 41 + COUNT( * ) AS col2
----
3855

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL CASE NULLIF ( - - 28, 1 * 48 * 72 + - 69 ) WHEN + 31 THEN + 42 / + 65 ELSE 94 END * + 41 + COUNT ( * ) AS col2
----
3855

query I rowsort
SELECT ALL + + 60
----
60

query I rowsort
SELECT 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4863
SELECT ALL MIN( ALL + 86 ) * 40 AS col2, + 6 * + 1 AS col1
----
3440
6

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL MIN ( ALL + 86 ) * 40 AS col2, + 6 * + 1 AS col1
----
3440
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4864
SELECT - 52 + + + 39 + 15 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 52 + + + 39 + 15 - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT + + 32 - - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4865
SELECT + + 32 - - COUNT ( * ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL - COUNT ( * ) col0
----
-1

query II rowsort
SELECT + - 58 - - 8 AS col2, 9 * + ( + COALESCE ( + 71, - 52 * COALESCE ( - 82, 39 ) ) ) AS col0
----
-50
639

query I rowsort
SELECT - + 19 AS col2
----
-19

query I rowsort
SELECT + + ( + - 29 ) * 43
----
-1247

query I rowsort
SELECT DISTINCT + 52
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4871
SELECT + NULLIF ( - 42, + - 92 ) + - + 89 DIV - - COUNT( * ) AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-4871
SELECT + NULLIF ( - 42, + - 92 ) + - + 89 / - - COUNT ( * ) AS col0
----
-131

query I rowsort
SELECT ALL 35 AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT - 37 DIV COUNT( * ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-4873
SELECT - 37 / COUNT ( * ) col0
----
-37

query I rowsort
SELECT + 43 * - + 20 col1
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + NULLIF ( ( + 57 ), - 8 ) + - COUNT( * ) * + 84 * - 80
----
6777

skipif mysql # not compatible
query I rowsort label-4875
SELECT + NULLIF ( ( + 57 ), - 8 ) + - COUNT ( * ) * + 84 * - 80
----
6777

query II rowsort
SELECT DISTINCT 41 AS col2, 94
----
41
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4877
SELECT ALL 83 DIV - NULLIF ( - + 77, 65 - 93 * - CAST( - COALESCE ( - SUM( ALL + NULLIF ( + 32, - ( 18 ) ) ), 87 ) AS SIGNED ) DIV 92 )
----
1

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL 83 / - NULLIF ( - + 77, 65 - 93 * - CAST ( - COALESCE ( - SUM ( ALL + NULLIF ( + 32, - ( 18 ) ) ), 87 ) AS INTEGER ) / 92 )
----
1

query I rowsort
SELECT - ( 61 ) col0
----
-61

query II rowsort
SELECT 0, + 91 AS col0
----
0
91

query II rowsort
SELECT + 7 * + 76 * + 40 AS col1, + 20 AS col2
----
21280
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT - CAST( + 49 AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4881
SELECT - CAST ( + 49 AS INTEGER ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT 83 + + - ( COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-4882
SELECT 83 + + - ( COUNT ( * ) )
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-4883
SELECT ALL 1, 71 DIV 32 AS col0
----
1
2

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL 1, 71 / 32 AS col0
----
1
2

query I rowsort
SELECT 54 * - + 13
----
-702

query I rowsort
SELECT ALL + 2 * - 91 AS col0
----
-182

query I rowsort
SELECT ALL + 93 + + 57 + + + 40 * 88 * + + 3 AS col1
----
10710

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT 82 + - COUNT( - 59 ) - + - ( + 70 ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT 82 + - COUNT ( - 59 ) - + - ( + 70 ) AS col2
----
151

query I rowsort
SELECT ALL - 29 + + + 94
----
65

query I rowsort
SELECT 80 * + ( 18 ) AS col1
----
1440

query II rowsort
SELECT DISTINCT 59 + ( 81 ), 55 * - - 53 * - 80 AS col1
----
140
-233200

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT - COUNT( * ) + - ( 58 ) - + 97
----
-156

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT - COUNT ( * ) + - ( 58 ) - + 97
----
-156

query I rowsort
SELECT - 68 AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4893
SELECT - 69 AS col1, 35 DIV 65 DIV - + 12 * CASE - - 7 WHEN 88 * COUNT( * ) + 54 THEN NULL WHEN + 40 - - 49 THEN NULL ELSE 74 END - 0 * 27 col1
----
-69
0

skipif mysql # not compatible
query II rowsort label-4893
SELECT - 69 AS col1, 35 / 65 / - + 12 * CASE - - 7 WHEN 88 * COUNT ( * ) + 54 THEN NULL WHEN + 40 - - 49 THEN NULL ELSE 74 END - 0 * 27 col1
----
-69
0

query II rowsort
SELECT 81, + 52 * + 77 col0
----
81
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL - 30 + - + MIN( DISTINCT + 13 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - 30 + - + MIN ( DISTINCT + 13 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT 70 + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4896
SELECT 70 + - COUNT ( * )
----
69

query II rowsort
SELECT 24 AS col0, + 43 * - + 0 * + + 81 col1
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT + 58 + + MIN( 34 ) + + 9
----
101

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + 58 + + MIN ( 34 ) + + 9
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT ALL - 53 AS col0, - 11 - + COUNT( * ) * + 39
----
-53
-50

skipif mysql # not compatible
query II rowsort label-4899
SELECT ALL - 53 AS col0, - 11 - + COUNT ( * ) * + 39
----
-53
-50

query I rowsort
SELECT ALL - ( - - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT - - CASE 52 WHEN + - 17 THEN NULL WHEN + 39 THEN NULL ELSE + - 38 END * + - MIN( DISTINCT - + 28 ) + + 32 * 17
----
-520

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT - - CASE 52 WHEN + - 17 THEN NULL WHEN + 39 THEN NULL ELSE + - 38 END * + - MIN ( DISTINCT - + 28 ) + + 32 * 17
----
-520

query I rowsort
SELECT DISTINCT - 55 + - + 51
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT ALL + 97 + + 93 DIV + 71 + - 59
----
39

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL + 97 + + 93 / + 71 + - 59
----
39

query I rowsort
SELECT ALL - + 27 * + 72 col0
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT COUNT( * ) + - 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4905
SELECT COUNT ( * ) + - 29 AS col1
----
-28

query I rowsort
SELECT ALL - + 10 - + 39 + + ( + 75 ) * 48 AS col0
----
3551

query I rowsort
SELECT + 9 * 48 AS col1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT + 6 * - + 76 * - 56 * - 54 + - + 66 + + 56 - + COUNT( * ) AS col0
----
-1378955

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + 6 * - + 76 * - 56 * - 54 + - + 66 + + 56 - + COUNT ( * ) AS col0
----
-1378955

query I rowsort
SELECT + ( 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4910
SELECT COUNT( * ) * + - 23 * + - COUNT( * ) AS col2, - ( CAST( - 67 AS SIGNED ) ) * + ( + 59 ) * CAST( NULL AS DECIMAL ) - + 56
----
23
NULL

skipif mysql # not compatible
query II rowsort label-4910
SELECT COUNT ( * ) * + - 23 * + - COUNT ( * ) AS col2, - ( CAST ( - 67 AS INTEGER ) ) * + ( + 59 ) * CAST ( NULL AS REAL ) - + 56
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT ALL + + COALESCE ( + 27, + SUM( - 85 ) + - + COUNT( * ) * ( - CAST( NULL AS SIGNED ) ), + COUNT( * ) + + 1 ) * NULLIF ( COUNT( * ), + COALESCE ( + 41, - NULLIF ( 55, - 59 ) ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + + COALESCE ( + 27, + SUM ( - 85 ) + - + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) + + 1 ) * NULLIF ( COUNT ( * ), + COALESCE ( + 41, - NULLIF ( 55, - 59 ) ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - ( - 71 ) * + - MAX( - 91 )
----
6461

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - ( - 71 ) * + - MAX ( - 91 )
----
6461

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4913
SELECT ALL - - CAST( NULL AS DECIMAL ) - - 37 + - + SUM( - + 19 ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL - - CAST ( NULL AS REAL ) - - 37 + - + SUM ( - + 19 ) * - 43
----
NULL

query I rowsort
SELECT ALL + 12 * + 38
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT - 72 DIV + 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4915
SELECT - 72 / + 65 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT COALESCE ( - CASE - 16 WHEN + 9 THEN - 38 WHEN - + COUNT( + 28 ) / CAST( - COUNT( * ) AS SIGNED ) + SUM( ALL 24 ) / - 39 THEN NULL ELSE NULL END, 48 ) * 91
----
4368

skipif mysql # not compatible
query I rowsort label-4916
SELECT COALESCE ( - CASE - 16 WHEN + 9 THEN - 38 WHEN - + COUNT ( + 28 ) / CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( ALL 24 ) / - 39 THEN NULL ELSE NULL END, 48 ) * 91
----
4368

query II rowsort
SELECT ALL - - 16, 12 AS col0
----
16
12

query I rowsort
SELECT ALL - - 56
----
56

query II rowsort
SELECT ALL 22 AS col1, 47
----
22
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT + MAX( DISTINCT - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + MAX ( DISTINCT - 4 ) AS col0
----
-4

query I rowsort
SELECT - ( - 48 ) col1
----
48

query I rowsort
SELECT - 84 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT 33 * - + COALESCE ( + - ( + 60 ), + 61 DIV + + 58 ) - + 94 AS col2
----
1886

skipif mysql # not compatible
query I rowsort label-4923
SELECT 33 * - + COALESCE ( + - ( + 60 ), + 61 / + + 58 ) - + 94 AS col2
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT COUNT( * ) - + 32 + + 84 * + 17 AS col0
----
1397

skipif mysql # not compatible
query I rowsort label-4924
SELECT COUNT ( * ) - + 32 + + 84 * + 17 AS col0
----
1397

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT 48 * - + COUNT( * ) * - NULLIF ( + 69, - 98 + - 76 + - - 20 ) * + 26 AS col2
----
86112

skipif mysql # not compatible
query I rowsort label-4925
SELECT 48 * - + COUNT ( * ) * - NULLIF ( + 69, - 98 + - 76 + - - 20 ) * + 26 AS col2
----
86112

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL 77 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL 77 * COUNT ( * )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4927
SELECT ALL - CAST( 87 AS SIGNED ) + 92 + - + 60 AS col1, + 56 * - 5
----
-55
-280

skipif mysql # not compatible
query II rowsort label-4927
SELECT ALL - CAST ( 87 AS INTEGER ) + 92 + - + 60 AS col1, + 56 * - 5
----
-55
-280

query I rowsort
SELECT ALL 71 + - 85 col2
----
-14

query I rowsort
SELECT ALL 30 + - 35 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT MAX( ALL - 17 ) - + CASE - + 26 WHEN AVG ( 73 ) THEN NULL WHEN + - 50 THEN + ( 20 ) + 13 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT MAX ( ALL - 17 ) - + CASE - + 26 WHEN AVG ( 73 ) THEN NULL WHEN + - 50 THEN + ( 20 ) + 13 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT COUNT( DISTINCT - 77 ) + 47 + + + ( - + 50 ) * - - 95 AS col2
----
-4702

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT COUNT ( DISTINCT - 77 ) + 47 + + + ( - + 50 ) * - - 95 AS col2
----
-4702

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL 35 + - ( - NULLIF ( 97, - 72 * + COUNT( * ) * 57 ) ) * 98
----
9541

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL 35 + - ( - NULLIF ( 97, - 72 * + COUNT ( * ) * 57 ) ) * 98
----
9541

query I rowsort
SELECT 73 + - - 95 AS col0
----
168

query I rowsort
SELECT 15 + + - 21 + 6 + 79 * + COALESCE ( - 85, 74 ) * - 22 * 70
----
10341100

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT 5 + - + COALESCE ( + 24, 33 ) + + 18 * - - 23 + + 41 + - - SUM( ALL ( - 46 ) ) AS col1
----
390

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT 5 + - + COALESCE ( + 24, 33 ) + + 18 * - - 23 + + 41 + - - SUM ( ALL ( - 46 ) ) AS col1
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL SUM( - 87 ) * + 2 * + + 19 * + + 94 AS col0
----
-310764

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL SUM ( - 87 ) * + 2 * + + 19 * + + 94 AS col0
----
-310764

query I rowsort
SELECT DISTINCT 28 AS col2
----
28

query I rowsort
SELECT ALL - - 75 * + + 23
----
1725

query I rowsort
SELECT + NULLIF ( 37, + 9 ) * 45 * - - 33 + + 87 * 82 - 9 + - ( 26 )
----
62044

query I rowsort
SELECT ALL - - 15 AS col2
----
15

query I rowsort
SELECT + ( + + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL + COUNT( NULLIF ( 9, 37 + + + 12 ) ) * + + COALESCE ( 3, 55 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + COUNT ( NULLIF ( 9, 37 + + + 12 ) ) * + + COALESCE ( 3, 55 ) AS col1
----
3

query I rowsort
SELECT + - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ( - MIN( DISTINCT + 6 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4944
SELECT ( - MIN ( DISTINCT + 6 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + 87 * - COUNT( * ) + + 80 + - + 88 + ( 99 ) + 72
----
76

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 87 * - COUNT ( * ) + + 80 + - + 88 + ( 99 ) + 72
----
76

query I rowsort
SELECT DISTINCT - 66 col1
----
-66

query I rowsort
SELECT + - 69
----
-69

query I rowsort
SELECT ALL - - 73
----
73

query I rowsort
SELECT ALL - 28 AS col0
----
-28

query I rowsort
SELECT DISTINCT - + 83 AS col2
----
-83

query I rowsort
SELECT DISTINCT - + 22 AS col1
----
-22

query II rowsort
SELECT 18 * + 6, COALESCE ( + 41, - 91 * + + 17 ) AS col1
----
108
41

query I rowsort
SELECT ALL + 61 * + 46 * + + 45
----
126270

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + ( - COUNT( * ) ) * + 55 + - + 90 col0
----
-145

skipif mysql # not compatible
query I rowsort label-4954
SELECT + ( - COUNT ( * ) ) * + 55 + - + 90 col0
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT 97 DIV + 74
----
1

skipif mysql # not compatible
query I rowsort label-4956
SELECT 97 / + 74
----
1

query I rowsort
SELECT + 97 * - 44
----
-4268

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + + 15 * - SUM( DISTINCT - 2 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + + 15 * - SUM ( DISTINCT - 2 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ( + + 85 ) + CASE - 63 WHEN 64 / - + 13 * - 31 THEN NULL WHEN - + 18 THEN - 27 END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT ( + + 85 ) + CASE - 63 WHEN 64 / - + 13 * - 31 THEN NULL WHEN - + 18 THEN - 27 END / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 73 AS col2
----
73

query I rowsort
SELECT ALL - 25 + - 79 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT COUNT( * ) * - 68 + + + 52 + - + 20 - - - 12 * - ( + 15 ) * + COUNT( * ) * - COALESCE ( + 42, 3, 12 )
----
-7596

skipif mysql # not compatible
query I rowsort label-4962
SELECT COUNT ( * ) * - 68 + + + 52 + - + 20 - - - 12 * - ( + 15 ) * + COUNT ( * ) * - COALESCE ( + 42, 3, 12 )
----
-7596

query I rowsort
SELECT 74 - ( + + 75 ) col1
----
-1

query I rowsort
SELECT ALL - 65 * 98
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - COALESCE ( + 43, ( + 80 ) ) * + 28 * - COUNT( * ) * - - 17 * - 95 + NULLIF ( + 56, 29 - - COUNT( * ) ) + 66 * 81
----
-1939058

skipif mysql # not compatible
query I rowsort label-4965
SELECT - COALESCE ( + 43, ( + 80 ) ) * + 28 * - COUNT ( * ) * - - 17 * - 95 + NULLIF ( + 56, 29 - - COUNT ( * ) ) + 66 * 81
----
-1939058

query I rowsort
SELECT - 89 col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - 42 + - NULLIF ( - CASE - 10 WHEN + - 5 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + + 4 END, - COUNT( * ) + - - COUNT( * ) ) + + COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4967
SELECT - 42 + - NULLIF ( - CASE - 10 WHEN + - 5 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + + 4 END, - COUNT ( * ) + - - COUNT ( * ) ) + + COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT DISTINCT + 20 + 38 * + - 22 col1
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT - 29 + + 19 * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT - 29 + + 19 * - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT ALL + 75 + - SUM( 58 ) - - 75 * - 26 AS col1, MIN( - - 88 ) * - - 70 * COUNT( * )
----
-1933
6160

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL + 75 + - SUM ( 58 ) - - 75 * - 26 AS col1, MIN ( - - 88 ) * - - 70 * COUNT ( * )
----
-1933
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT - CAST( NULL AS SIGNED ) + 65 * + COUNT( ALL - + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT - CAST ( NULL AS INTEGER ) + 65 * + COUNT ( ALL - + 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT 11 AS col0, COUNT( * ) AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-4972
SELECT 11 AS col0, COUNT ( * ) AS col0
----
11
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL CASE - - 93 WHEN - + 26 + 47 THEN - ( CAST( + 62 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL CASE - - 93 WHEN - + 26 + 47 THEN - ( CAST ( + 62 AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL - 75 + + + 4
----
-71

query I rowsort
SELECT - 17 + + 47 AS col0
----
30

query I rowsort
SELECT + 82 * 31 AS col0
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL + COUNT( * ) * 58 col1
----
58

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + COUNT ( * ) * 58 col1
----
58

query I rowsort
SELECT 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT COUNT( * ) * + + 42 * + 9 AS col0
----
378

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT COUNT ( * ) * + + 42 * + 9 AS col0
----
378

query I rowsort
SELECT ALL 23 AS col2
----
23

query I rowsort
SELECT ALL 78 AS col2
----
78

query I rowsort
SELECT DISTINCT 81 AS col0
----
81

query I rowsort
SELECT - - 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - - ( - 8 ) * - MAX( ALL 80 )
----
640

skipif mysql # not compatible
query I rowsort label-4984
SELECT - - ( - 8 ) * - MAX ( ALL 80 )
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT + - 11 * - + 32 + MIN( + 51 )
----
403

skipif mysql # not compatible
query I rowsort label-4985
SELECT + - 11 * - + 32 + MIN ( + 51 )
----
403

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4986
SELECT ALL 49 AS col1, CAST( NULL AS DECIMAL )
----
49
NULL

skipif mysql # not compatible
query II rowsort label-4986
SELECT ALL 49 AS col1, CAST ( NULL AS REAL )
----
49
NULL

query I rowsort
SELECT + ( + 8 ) AS col2
----
8

query I rowsort
SELECT + - 61 AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4989
SELECT ( - 40 ) DIV SUM( - 46 ) + + + 64 - 35 + - 71 * + 65
----
-4586

skipif mysql # not compatible
query I rowsort label-4989
SELECT ( - 40 ) / SUM ( - 46 ) + + + 64 - 35 + - 71 * + 65
----
-4586

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT - 95 * COUNT( * ) - + COUNT( * ) + + 6 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - 95 * COUNT ( * ) - + COUNT ( * ) + + 6 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT + ( + 22 ) * 64 * - 45 + + 7 DIV 52 AS col0
----
-63360

skipif mysql # not compatible
query I rowsort label-4991
SELECT + ( + 22 ) * 64 * - 45 + + 7 / 52 AS col0
----
-63360

query I rowsort
SELECT + 88 + + 31
----
119

query I rowsort
SELECT ALL + - 62 AS col2
----
-62

query I rowsort
SELECT ALL + + 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT - - 23 * + 51 * + - 84 + + - 72 + + NULLIF ( + 7, + - COUNT( * ) )
----
-98597

skipif mysql # not compatible
query I rowsort label-4995
SELECT - - 23 * + 51 * + - 84 + + - 72 + + NULLIF ( + 7, + - COUNT ( * ) )
----
-98597

query I rowsort
SELECT DISTINCT + + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL + ( - + 30 ) * + - COUNT( * ) + - - 15
----
45

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL + ( - + 30 ) * + - COUNT ( * ) + - - 15
----
45

query I rowsort
SELECT + + 84 + 66
----
150

query I rowsort
SELECT DISTINCT + - 94 AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5000
SELECT DISTINCT + 87 * + + 54 + + MAX( ALL + 30 ) DIV - 78 + - + 96 col1, 10
----
4602
10

skipif mysql # not compatible
query II rowsort label-5000
SELECT DISTINCT + 87 * + + 54 + + MAX ( ALL + 30 ) / - 78 + - + 96 col1, 10
----
4602
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT CAST( - COALESCE ( - - 75, + - 58 ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5001
SELECT CAST ( - COALESCE ( - - 75, + - 58 ) AS INTEGER )
----
-75

query I rowsort
SELECT + 18 AS col2
----
18

query I rowsort
SELECT - 95 * + - 1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5004
SELECT + COUNT( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT( * ) DIV + 0 + - + 45, + COUNT( * ) DIV 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT( * ) - 85 END + - COUNT( * ) DIV CAST( 76 * COUNT( * ) - 10 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-5004
SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER )
----
-86

query I rowsort
SELECT ALL + COALESCE ( + + 62, + - 13 + - - 15 + - NULLIF ( + 34, - + 82 - - CASE - COALESCE ( + - 59, ( 38 ) * 93, 67 + + 96 ) WHEN ( 9 ) THEN - ( - 56 ) ELSE NULL END ) * + 8 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT CASE + 98 WHEN - 76 THEN + 76 * + 47 WHEN + ( + SUM( DISTINCT - CASE - 29 WHEN - 72 * NULLIF ( + NULLIF ( 8, - 21 * 31 ), - 30 - 18 ) + - 79 THEN NULL ELSE + 74 * 29 - - 45 * ( + 82 ) END ) ) * - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT CASE + 98 WHEN - 76 THEN + 76 * + 47 WHEN + ( + SUM ( DISTINCT - CASE - 29 WHEN - 72 * NULLIF ( + NULLIF ( 8, - 21 * 31 ), - 30 - 18 ) + - 79 THEN NULL ELSE + 74 * 29 - - 45 * ( + 82 ) END ) ) * - 68 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT + COALESCE ( - NULLIF ( + 51, + 80 * + 30 ), - 78, - COUNT( * ) ) DIV + 9 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5007
SELECT + COALESCE ( - NULLIF ( + 51, + 80 * + 30 ), - 78, - COUNT ( * ) ) / + 9 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT DISTINCT COUNT( * ) * + - 69 * + 98 + + CAST( NULL AS SIGNED ) + + 21 + 88 / + - COUNT( * ) + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT COUNT ( * ) * + - 69 * + 98 + + CAST ( NULL AS INTEGER ) + + 21 + 88 / + - COUNT ( * ) + - 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT + COALESCE ( + - 40, - + 54, + + 66 ) * + - COUNT( + 38 ), 48 * ( + SUM( + + 81 ) ) AS col2
----
40
3888

skipif mysql # not compatible
query II rowsort label-5009
SELECT + COALESCE ( + - 40, - + 54, + + 66 ) * + - COUNT ( + 38 ), 48 * ( + SUM ( + + 81 ) ) AS col2
----
40
3888

query I rowsort
SELECT DISTINCT - 98 * + 83 col1
----
-8134

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL COUNT( * ) * - - SUM( DISTINCT + + 51 ) + + 6 + + CASE + + 16 WHEN 51 * - ( + COUNT( * ) ) + - - 97 THEN - 36 * 69 WHEN + 59 THEN NULL END * 4 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL COUNT ( * ) * - - SUM ( DISTINCT + + 51 ) + + 6 + + CASE + + 16 WHEN 51 * - ( + COUNT ( * ) ) + - - 97 THEN - 36 * 69 WHEN + 59 THEN NULL END * 4 * 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5012
SELECT - 54 AS col0, 36 - + - CAST( - AVG ( + - 72 ) AS DECIMAL ) + + CAST( NULL AS SIGNED ) col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-5012
SELECT - 54 AS col0, 36 - + - CAST ( - AVG ( + - 72 ) AS REAL ) + + CAST ( NULL AS INTEGER ) col1
----
-54
NULL

query I rowsort
SELECT + 76 - 94
----
-18

query III rowsort
SELECT - 62 AS col0, + 62 AS col1, 87 AS col0
----
-62
62
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT ALL 58 - - COUNT( * ) + + 11 / + ( + NULLIF ( - - ( + - 25 ), + 68 / - 17 ) ) * + - CAST( NULL AS SIGNED ) * COUNT( ALL 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL 58 - - COUNT ( * ) + + 11 / + ( + NULLIF ( - - ( + - 25 ), + 68 / - 17 ) ) * + - CAST ( NULL AS INTEGER ) * COUNT ( ALL 21 ) AS col1
----
NULL

query I rowsort
SELECT 10 col2
----
10

query I rowsort
SELECT DISTINCT ( - 56 ) AS col0
----
-56

query I rowsort
SELECT ALL - 44 - 7 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT - 46 DIV 35
----
-1

skipif mysql # not compatible
query I rowsort label-5019
SELECT - 46 / 35
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL CAST( - 63 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL CAST ( - 63 AS INTEGER ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT ( + + COUNT( ALL + 80 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT ( + + COUNT ( ALL + 80 ) )
----
1

query II rowsort
SELECT - 30 AS col0, - 1 AS col1
----
-30
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT - SUM( + 31 ) + + 75 + + 48 - + 82 * 68 * - 3 * + COUNT( * ) * NULLIF ( + 73, 43 * 34 ) * + 61 AS col0
----
74489876

skipif mysql # not compatible
query I rowsort label-5023
SELECT - SUM ( + 31 ) + + 75 + + 48 - + 82 * 68 * - 3 * + COUNT ( * ) * NULLIF ( + 73, 43 * 34 ) * + 61 AS col0
----
74489876

query I rowsort
SELECT - 50 * - + 64
----
3200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5025
SELECT ( 21 ), 67 * - - 43 * - - 17 + - + 96 - - - CAST( NULL AS SIGNED ) AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-5025
SELECT ( 21 ), 67 * - - 43 * - - 17 + - + 96 - - - CAST ( NULL AS INTEGER ) AS col0
----
21
NULL

query I rowsort
SELECT ALL - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT + COUNT( * ) AS col1, - 75 AS col1
----
1
-75

skipif mysql # not compatible
query II rowsort label-5027
SELECT + COUNT ( * ) AS col1, - 75 AS col1
----
1
-75

query III rowsort
SELECT ALL + 98 AS col2, 67, - - 0 col2
----
98
67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT + SUM( DISTINCT - 1 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + SUM ( DISTINCT - 1 ) col1
----
-1

query I rowsort
SELECT + + 55 + + - 9
----
46

query I rowsort
SELECT ALL + 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + 52 * + 84 * - + COUNT( * )
----
-4368

skipif mysql # not compatible
query I rowsort label-5032
SELECT + 52 * + 84 * - + COUNT ( * )
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT ALL - 97 DIV - COUNT( * ) + - + 53 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - 97 / - COUNT ( * ) + - + 53 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - 92 - - CASE + - 89 WHEN - COUNT( * ) THEN - + 40 * - 68 * + COUNT( * ) * - + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 92 - - CASE + - 89 WHEN - COUNT ( * ) THEN - + 40 * - 68 * + COUNT ( * ) * - + 2 END
----
NULL

query I rowsort
SELECT + - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT - 51 AS col1, COALESCE ( 30, + + COUNT( * ), + 79 ) AS col1
----
-51
30

skipif mysql # not compatible
query II rowsort label-5036
SELECT - 51 AS col1, COALESCE ( 30, + + COUNT ( * ), + 79 ) AS col1
----
-51
30

query I rowsort
SELECT - - 33 * - 99 - + + 51 AS col2
----
-3318

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT + + NULLIF ( 45, + COUNT( * ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + + NULLIF ( 45, + COUNT ( * ) ) col0
----
45

query I rowsort
SELECT 78 * - 50 + - 41 AS col1
----
-3941

query I rowsort
SELECT 55 * + + COALESCE ( - ( - - 46 ), - 54, + - 98 ) AS col1
----
-2530

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT ALL - ( + - 48 ) DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL - ( + - 48 ) / + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT ALL - COUNT( * ) AS col2, 97 AS col2
----
-1
97

skipif mysql # not compatible
query II rowsort label-5042
SELECT ALL - COUNT ( * ) AS col2, 97 AS col2
----
-1
97

query II rowsort
SELECT ALL + - 44 + - + 81 AS col2, ( - 76 )
----
-125
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-5044
SELECT DISTINCT - 75 AS col0, - 39 DIV - 50
----
-75
0

skipif mysql # not compatible
query II rowsort label-5044
SELECT DISTINCT - 75 AS col0, - 39 / - 50
----
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT ALL - CAST( NULL AS SIGNED ) + + - 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 61 col2
----
NULL

query I rowsort
SELECT 34 - + 99
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5047
SELECT ALL - ( 40 ) DIV - - MIN( ALL 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - ( 40 ) / - - MIN ( ALL 59 ) AS col1
----
0

query I rowsort
SELECT + 10 * 68 - - - 87
----
593

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL COUNT( * ) * 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL COUNT ( * ) * 85 AS col1
----
85

query I rowsort
SELECT DISTINCT - 15 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL 18 + + - CAST( - NULLIF ( - - 83, - 10 * - 15 + + 28 ) AS SIGNED )
----
101

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL 18 + + - CAST ( - NULLIF ( - - 83, - 10 * - 15 + + 28 ) AS INTEGER )
----
101

query I rowsort
SELECT + 43 AS col1
----
43

query I rowsort
SELECT 88 col1
----
88

query I rowsort
SELECT CASE - 98 WHEN + - 14 THEN + 90 END + + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL COUNT( * ) * + 52 * 93
----
4836

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL COUNT ( * ) * + 52 * 93
----
4836

query I rowsort
SELECT 8 - - 43 * + 95 AS col2
----
4093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT 82 + - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT 82 + - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 59 * 78 col0
----
4602

query I rowsort
SELECT DISTINCT 10 col0
----
10

query I rowsort
SELECT ALL 62 AS col2
----
62

query I rowsort
SELECT DISTINCT 13 col1
----
13

query I rowsort
SELECT 8 + + 88 + 50 AS col0
----
146

query I rowsort
SELECT ALL - 40 * + 90 AS col1
----
-3600

query I rowsort
SELECT 14 * 30
----
420

query I rowsort
SELECT 27 + - 37 * + - NULLIF ( - 54, - 16 + - 12 )
----
-1971

query I rowsort
SELECT DISTINCT 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL - ( + + MIN( DISTINCT - 98 ) ) * - 85
----
-8330

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - ( + + MIN ( DISTINCT - 98 ) ) * - 85
----
-8330

query I rowsort
SELECT - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( * ) + - - 46
----
47

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( * ) + - - 46
----
47

query I rowsort
SELECT ALL + + 88 * - 31 col1
----
-2728

query I rowsort
SELECT ( + 23 ) + - 55 + + COALESCE ( + 37, + 15 * - - 33 * + - 72 ) + 78 * + + 91 col2
----
7103

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT + 0 DIV - 99 - + 5
----
-5

skipif mysql # not compatible
query I rowsort label-5072
SELECT + 0 / - 99 - + 5
----
-5

query I rowsort
SELECT ALL - 23 + + - 45 * - 46
----
2047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT + CASE + 83 WHEN - 94 * + + CASE - 27 WHEN 71 THEN + + 12 - - ( + - 69 ) * + - CASE - ( + - CAST( NULL AS SIGNED ) ) WHEN + 36 THEN - 63 END + - 77 ELSE 55 END THEN - 21 + 75 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + CASE + 83 WHEN - 94 * + + CASE - 27 WHEN 71 THEN + + 12 - - ( + - 69 ) * + - CASE - ( + - CAST ( NULL AS INTEGER ) ) WHEN + 36 THEN - 63 END + - 77 ELSE 55 END THEN - 21 + 75 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT DISTINCT - CAST( - 8 AS SIGNED ) + 40 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - CAST ( - 8 AS INTEGER ) + 40 AS col0
----
48

query I rowsort
SELECT - 24 AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT 0 + - - 61 + - - 28 * + 56 + 2 + + 91 DIV 30 + + + 32 AS col1
----
1666

skipif mysql # not compatible
query I rowsort label-5077
SELECT 0 + - - 61 + - - 28 * + 56 + 2 + + 91 / 30 + + + 32 AS col1
----
1666

query I rowsort
SELECT ALL + - 84 + + 69
----
-15

query I rowsort
SELECT ALL - + 21 + 5
----
-16

query I rowsort
SELECT + 58 AS col0
----
58

query I rowsort
SELECT ALL - + 33
----
-33

query I rowsort
SELECT ( + - 51 ) + 88
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL - COUNT( * ) * 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - COUNT ( * ) * 19 AS col0
----
-19

query I rowsort
SELECT + + 26
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5085
SELECT + 0 DIV - + ( - 29 ) + 29 DIV - MIN( + - 68 ) + + - 5 + + 89 * - 56
----
-4989

skipif mysql # not compatible
query I rowsort label-5085
SELECT + 0 / - + ( - 29 ) + 29 / - MIN ( + - 68 ) + + - 5 + + 89 * - 56
----
-4989

query I rowsort
SELECT DISTINCT - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT + + 66 + + 61 + - COALESCE ( + - 61, 10 ) * - - 72 * - 81 - - COUNT( * ) + - - 33 * - 82 * + NULLIF ( + - 13, - 17 ) col2
----
-320446

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT + + 66 + + 61 + - COALESCE ( + - 61, 10 ) * - - 72 * - 81 - - COUNT ( * ) + - - 33 * - 82 * + NULLIF ( + - 13, - 17 ) col2
----
-320446

query II rowsort
SELECT DISTINCT - 44, 82 + - 86 AS col2
----
-44
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL + 43 - ( - COUNT( * ) ) col1
----
44

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + 43 - ( - COUNT ( * ) ) col1
----
44

query I rowsort
SELECT 57 * + 42 col2
----
2394

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT 63 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-5091
SELECT 63 / 48
----
1

query I rowsort
SELECT 36 col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT - MIN( + 22 ) * - + 81 + + CASE - 74 WHEN 43 - + - 81 THEN NULL WHEN + CASE - 29 WHEN - 25 + - - 96 + - + 90 * + + 95 + CAST( 63 AS SIGNED ) THEN NULL WHEN CAST( 28 AS SIGNED ) THEN COUNT( * ) + CAST( NULL AS SIGNED ) ELSE COUNT( * ) * ( 5 ) END + - SUM( ALL + 78 ) THEN NULL WHEN 30 + + 76 * 21 THEN - 49 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT - MIN ( + 22 ) * - + 81 + + CASE - 74 WHEN 43 - + - 81 THEN NULL WHEN + CASE - 29 WHEN - 25 + - - 96 + - + 90 * + + 95 + CAST ( 63 AS INTEGER ) THEN NULL WHEN CAST ( 28 AS INTEGER ) THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE COUNT ( * ) * ( 5 ) END + - SUM ( ALL + 78 ) THEN NULL WHEN 30 + + 76 * 21 THEN - 49 END col2
----
NULL

query II rowsort
SELECT DISTINCT - 50, 84 * + 23 AS col0
----
-50
1932

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT 89 DIV - 79 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5095
SELECT 89 / - 79 AS col0
----
-1

query I rowsort
SELECT DISTINCT - COALESCE ( + 97, - 58 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT 98 * CASE 21 WHEN + 54 THEN - 86 ELSE - + 70 END DIV - + 55 + + 48
----
172

skipif mysql # not compatible
query I rowsort label-5097
SELECT 98 * CASE 21 WHEN + 54 THEN - 86 ELSE - + 70 END / - + 55 + + 48
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT ALL + 53 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + 53 / + 60 AS col0
----
0

query II rowsort
SELECT DISTINCT - 40 col0, 34
----
-40
34

query I rowsort
SELECT - 14 col0
----
-14

query I rowsort
SELECT ALL 16 AS col1
----
16

query II rowsort
SELECT - 17 AS col2, - 63
----
-17
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT - MAX( DISTINCT - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5103
SELECT - MAX ( DISTINCT - 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - MAX( ALL + 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5104
SELECT - MAX ( ALL + 47 ) AS col2
----
-47

query I rowsort
SELECT ALL 58 * + + 36 * + 75 AS col0
----
156600

query I rowsort
SELECT 7 - + 97 + + 47 - + - 0 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT - COUNT( * ), + ( - 92 ) AS col2
----
-1
-92

skipif mysql # not compatible
query II rowsort label-5107
SELECT - COUNT ( * ), + ( - 92 ) AS col2
----
-1
-92

query I rowsort
SELECT 14 * - 30
----
-420

query I rowsort
SELECT NULLIF ( + + 79, + 19 + - 50 ) + 9 * + 53
----
556

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5110
SELECT ALL + 2, 80 + + + 92 + - 58 DIV - SUM( 56 ) AS col2, - 12 AS col2
----
2
173
-12

skipif mysql # not compatible
query III rowsort label-5110
SELECT ALL + 2, 80 + + + 92 + - 58 / - SUM ( 56 ) AS col2, - 12 AS col2
----
2
173
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL - MIN( ALL CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - MIN ( ALL CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT ALL 29 + + 67 DIV - 76
----
29

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL 29 + + 67 / - 76
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT + MAX( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + MAX ( + 68 )
----
68

query I rowsort
SELECT + 7 * - 2
----
-14

query I rowsort
SELECT - 25 - 82 * - 28 + + 66 AS col1
----
2337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5116
SELECT ALL - 33 + - - MAX( - 96 ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - 33 + - - MAX ( - 96 ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 74 * + 7 * + ( - + 44 )
----
22792

query II rowsort
SELECT - + 61, + 60 AS col2
----
-61
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5119
SELECT - - 48 AS col0, + CAST( 43 AS SIGNED ) AS col0
----
48
43

skipif mysql # not compatible
query II rowsort label-5119
SELECT - - 48 AS col0, + CAST ( 43 AS INTEGER ) AS col0
----
48
43

query I rowsort
SELECT - + 73 * - 56
----
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + MIN( DISTINCT ( + + 59 ) ) + - COUNT( * ) * NULLIF ( - 57, + 17 * 56 + - + 14 + - - 70 * - + ( 2 ) ) + - 19 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + MIN ( DISTINCT ( + + 59 ) ) + - COUNT ( * ) * NULLIF ( - 57, + 17 * 56 + - + 14 + - - 70 * - + ( 2 ) ) + - 19 AS col1
----
97

query II rowsort
SELECT ALL 25 AS col2, 79 * 3 + COALESCE ( - 94, + - 70 ) + + 80 + 14
----
25
237

query I rowsort
SELECT ALL 48 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT + CASE + NULLIF ( - 5, - 67 ) WHEN + - 11 + + - 91 THEN + 94 + + + 61 * - + CASE - 98 WHEN 25 * + 84 * - - ( - 78 ) + ( 16 ) THEN 40 * COALESCE ( + 45, - COUNT( * ) + + 87 ) ELSE + 98 END * + 33 + - 89 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT + CASE + NULLIF ( - 5, - 67 ) WHEN + - 11 + + - 91 THEN + 94 + + + 61 * - + CASE - 98 WHEN 25 * + 84 * - - ( - 78 ) + ( 16 ) THEN 40 * COALESCE ( + 45, - COUNT ( * ) + + 87 ) ELSE + 98 END * + 33 + - 89 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5125
SELECT - CAST( NULL AS SIGNED ) * + - SUM( ALL + CAST( + - 69 AS DECIMAL ) ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT - CAST ( NULL AS INTEGER ) * + - SUM ( ALL + CAST ( + - 69 AS REAL ) ) + - 97 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 2 * - 79 AS col0
----
-158

query II rowsort
SELECT 59 AS col0, - 42
----
59
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + SUM( ALL + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5128
SELECT + SUM ( ALL + 58 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT COALESCE ( + 13, + - 18 + + COALESCE ( 87, + 86, - CASE + CAST( NULL AS SIGNED ) WHEN + 87 THEN + + 26 + 37 END * + + CAST( + + 14 AS SIGNED ) + + - 69 ) + 11 )
----
13

skipif mysql # not compatible
query I rowsort label-5129
SELECT COALESCE ( + 13, + - 18 + + COALESCE ( 87, + 86, - CASE + CAST ( NULL AS INTEGER ) WHEN + 87 THEN + + 26 + 37 END * + + CAST ( + + 14 AS INTEGER ) + + - 69 ) + 11 )
----
13

query I rowsort
SELECT + 2 * - 57 + + 7
----
-107

query I rowsort
SELECT ALL + 38 col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT ( + 72 ) DIV - - 30 + + + ( COALESCE ( - + ( 44 ), COUNT( * ) * - ( SUM( 49 ) ) + 16 + ( + - COUNT( * ) ), - 16, 6 * 4 ) ) + + 27 * 38 AS col2
----
984

skipif mysql # not compatible
query I rowsort label-5132
SELECT ( + 72 ) / - - 30 + + + ( COALESCE ( - + ( 44 ), COUNT ( * ) * - ( SUM ( 49 ) ) + 16 + ( + - COUNT ( * ) ), - 16, 6 * 4 ) ) + + 27 * 38 AS col2
----
984

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5133
SELECT NULLIF ( + 70, - 99 - - - CAST( NULL AS DECIMAL ) + - 29 )
----
70

skipif mysql # not compatible
query I rowsort label-5133
SELECT NULLIF ( + 70, - 99 - - - CAST ( NULL AS REAL ) + - 29 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT COALESCE ( 63, - COUNT( * ) * COUNT( * ) ) AS col0, + 91
----
63
91

skipif mysql # not compatible
query II rowsort label-5134
SELECT COALESCE ( 63, - COUNT ( * ) * COUNT ( * ) ) AS col0, + 91
----
63
91

query II rowsort
SELECT DISTINCT + COALESCE ( + - 58, + 11, + 46 ) AS col0, + 51 AS col0
----
-58
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT DISTINCT + COUNT( * ) * + + 62 * - 94 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + COUNT ( * ) * + + 62 * - 94 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT - 70 * - COALESCE ( 27, - - 6 + - 42, + + MIN( DISTINCT + + 39 ) + 60 + - + 42 - 18 * - 35 ) + + 9 + - 71
----
1828

skipif mysql # not compatible
query I rowsort label-5137
SELECT - 70 * - COALESCE ( 27, - - 6 + - 42, + + MIN ( DISTINCT + + 39 ) + 60 + - + 42 - 18 * - 35 ) + + 9 + - 71
----
1828

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT + CASE + 87 WHEN 14 * - + MAX( ALL - 91 ) - - - 50 THEN - COUNT( DISTINCT - + 94 ) + + 20 WHEN 97 + - 19 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + CASE + 87 WHEN 14 * - + MAX ( ALL - 91 ) - - - 50 THEN - COUNT ( DISTINCT - + 94 ) + + 20 WHEN 97 + - 19 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - 87 + + COUNT( + 62 )
----
-86

skipif mysql # not compatible
query I rowsort label-5139
SELECT - 87 + + COUNT ( + 62 )
----
-86

query I rowsort
SELECT ALL + 40 * + 0 + - - 85 + - + 10 * - + 85 * 0 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + MIN( 19 ) - - COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-5141
SELECT + MIN ( 19 ) - - COUNT ( * ) col1
----
20

query I rowsort
SELECT - 40 + 36 + - + 20
----
-24

query II rowsort
SELECT + - 43 + - 47 + ( - - 54 ), 71 AS col0
----
-36
71

query I rowsort
SELECT - 58 AS col0
----
-58

query I rowsort
SELECT + + 68 + - 17 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - - 57 * MIN( ALL - + 47 ) AS col0
----
-2679

skipif mysql # not compatible
query I rowsort label-5146
SELECT - - 57 * MIN ( ALL - + 47 ) AS col0
----
-2679

query I rowsort
SELECT - 19 AS col0
----
-19

query I rowsort
SELECT ( - 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT DISTINCT + 80 - + NULLIF ( + 75, + 58 * COALESCE ( + CAST( 96 AS SIGNED ), + 18 ) * - 0 / + 2 - - 64 )
----
5

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 80 - + NULLIF ( + 75, + 58 * COALESCE ( + CAST ( 96 AS INTEGER ), + 18 ) * - 0 / + 2 - - 64 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5150
SELECT ALL - COUNT( * ) * 75 - + 79 DIV + 93 + 89 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - COUNT ( * ) * 75 - + 79 / + 93 + 89 AS col1
----
14

query I rowsort
SELECT - COALESCE ( - + 24, 74, 97 ) col1
----
24

query I rowsort
SELECT + + 25 + + 98 AS col0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5153
SELECT DISTINCT 91 - + COUNT( * ) col2, 33 AS col1
----
90
33

skipif mysql # not compatible
query II rowsort label-5153
SELECT DISTINCT 91 - + COUNT ( * ) col2, 33 AS col1
----
90
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT + - ( - MAX( DISTINCT + - 1 ) ) * + + NULLIF ( - COUNT( * ), + - 13 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT + - ( - MAX ( DISTINCT + - 1 ) ) * + + NULLIF ( - COUNT ( * ), + - 13 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT + CAST( - + 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5155
SELECT + CAST ( - + 55 AS INTEGER ) AS col1
----
-55

query I rowsort
SELECT + ( - 63 ) + - 56
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT + ( COALESCE ( + 68, 42, + 61 * + - 95 + + NULLIF ( + 8, NULLIF ( - - ( MAX( ALL - 11 ) ), + 71 ) - + 67 ) ) ) + - 62 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5157
SELECT + ( COALESCE ( + 68, 42, + 61 * + - 95 + + NULLIF ( + 8, NULLIF ( - - ( MAX ( ALL - 11 ) ), + 71 ) - + 67 ) ) ) + - 62 AS col0
----
6

query I rowsort
SELECT - 57 + - 48 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT - 62 * - ( + 37 ) + + COUNT( * ) + 47 + 44 col0
----
2386

skipif mysql # not compatible
query I rowsort label-5159
SELECT - 62 * - ( + 37 ) + + COUNT ( * ) + 47 + 44 col0
----
2386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT CAST( 55 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5160
SELECT CAST ( 55 AS INTEGER ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT DISTINCT 1 DIV + ( + 27 ) * - - 36
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT 1 / + ( + 27 ) * - - 36
----
0

query I rowsort
SELECT ALL + 53 col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT + CAST( NULL AS SIGNED ) * - - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT + CAST ( NULL AS INTEGER ) * - - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL 36 * + COALESCE ( COUNT( * ), + 97 ) * + 62 * 0 + - 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL 36 * + COALESCE ( COUNT ( * ), + 97 ) * + 62 * 0 + - 86 AS col0
----
-86

query I rowsort
SELECT + 6 * + 27
----
162

query I rowsort
SELECT ALL 30 * - + 31 AS col0
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - 0 * + COUNT( * ) * + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5167
SELECT - 0 * + COUNT ( * ) * + 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ( + MAX( + ( + 72 ) ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5168
SELECT ( + MAX ( + ( + 72 ) ) ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT DISTINCT - 8 DIV 3
----
-2

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - 8 / 3
----
-2

query I rowsort
SELECT ( - 32 ) col0
----
-32

query I rowsort
SELECT ( 41 ) AS col0
----
41

query I rowsort
SELECT ( - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT COUNT( * ) * - COUNT( * ) + - COALESCE ( - 6, + NULLIF ( - - COUNT( * ), + ( 57 ) * - 73 / - 63 * + 93 + ( + 98 ) ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5173
SELECT COUNT ( * ) * - COUNT ( * ) + - COALESCE ( - 6, + NULLIF ( - - COUNT ( * ), + ( 57 ) * - 73 / - 63 * + 93 + ( + 98 ) ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT 84 * + 57 * + - 98 * 89 + + COUNT( * ) AS col0
----
-41760935

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT 84 * + 57 * + - 98 * 89 + + COUNT ( * ) AS col0
----
-41760935

query I rowsort
SELECT DISTINCT + 13 * + NULLIF ( 62, + 59 ) + 66
----
872

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT + 36 * - - 90 + - 14 + + ( COUNT( * ) ) * CASE - + COUNT( * ) WHEN - - 83 THEN - 93 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + 36 * - - 90 + - 14 + + ( COUNT ( * ) ) * CASE - + COUNT ( * ) WHEN - - 83 THEN - 93 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT - + ( + - 90 ) * NULLIF ( + 51, + 20 * + 66 - - ( + ( - COUNT( * ) ) ) + + 48 )
----
4590

skipif mysql # not compatible
query I rowsort label-5177
SELECT - + ( + - 90 ) * NULLIF ( + 51, + 20 * + 66 - - ( + ( - COUNT ( * ) ) ) + + 48 )
----
4590

query I rowsort
SELECT DISTINCT + + 54
----
54

query I rowsort
SELECT + - 78
----
-78

query II rowsort
SELECT - - 9, 22 AS col2
----
9
22

query I rowsort
SELECT ALL 86 col2
----
86

query II rowsort
SELECT ALL + 17 + + 2 + + 24, 89 * 72 col2
----
43
6408

query I rowsort
SELECT - 47 - + + 71
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT 98 * - ( - COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-5184
SELECT 98 * - ( - COUNT ( * ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - - MIN( DISTINCT + NULLIF ( - 3, 94 * - 97 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5185
SELECT - - MIN ( DISTINCT + NULLIF ( - 3, 94 * - 97 ) ) AS col2
----
-3

query I rowsort
SELECT - 60 + + 87 col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5187
SELECT CASE COUNT( * ) WHEN + 74 + + 22 + + 27 THEN NULL ELSE - 76 DIV + + SUM( DISTINCT - + 60 ) END AS col1, 18 * + 87
----
1
1566

skipif mysql # not compatible
query II rowsort label-5187
SELECT CASE COUNT ( * ) WHEN + 74 + + 22 + + 27 THEN NULL ELSE - 76 / + + SUM ( DISTINCT - + 60 ) END AS col1, 18 * + 87
----
1
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT COUNT( 97 ) * + - ( - COUNT( - 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT COUNT ( 97 ) * + - ( - COUNT ( - 10 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT ALL NULLIF ( + 4, - 86 ) DIV + - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL NULLIF ( + 4, - 86 ) / + - 55 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5190
SELECT DISTINCT - 1 * + 11 DIV - 49, MIN( - 85 ) AS col2
----
0
-85

skipif mysql # not compatible
query II rowsort label-5190
SELECT DISTINCT - 1 * + 11 / - 49, MIN ( - 85 ) AS col2
----
0
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT + COUNT( * ) - - + SUM( 77 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5191
SELECT + COUNT ( * ) - - + SUM ( 77 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT ALL - - CAST( NULL AS SIGNED ) / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - - CAST ( NULL AS INTEGER ) / + 86
----
NULL

query I rowsort
SELECT 57 * + 42
----
2394

query I rowsort
SELECT - 19 * - NULLIF ( - + 53, + 66 )
----
-1007

query I rowsort
SELECT - 63 * + 97 AS col2
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL COUNT( * ) * - - 2 + + COUNT( 39 ) * - - ( - + 13 ) + + - 86 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL COUNT ( * ) * - - 2 + + COUNT ( 39 ) * - - ( - + 13 ) + + - 86 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - MAX( + - 48 ) + - + 11 + 60 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5197
SELECT - MAX ( + - 48 ) + - + 11 + 60 AS col2
----
97

query II rowsort
SELECT - + 80 AS col2, + 67 AS col1
----
-80
67

query I rowsort
SELECT - - 24 AS col0
----
24

query I rowsort
SELECT DISTINCT 50 col2
----
50

query I rowsort
SELECT - 34 AS col2
----
-34

query I rowsort
SELECT ALL 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL ( + + NULLIF ( + - 69, + COUNT( * ) ) ) + 29
----
-40

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL ( + + NULLIF ( + - 69, + COUNT ( * ) ) ) + 29
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ( 74 ) * + ( - COUNT( * ) ) * 18 - + 66
----
-1398

skipif mysql # not compatible
query I rowsort label-5204
SELECT ( 74 ) * + ( - COUNT ( * ) ) * 18 - + 66
----
-1398

query I rowsort
SELECT ALL - 47 col0
----
-47

query II rowsort
SELECT + 0 col0, 84 AS col0
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL 82 + COUNT( ALL - 86 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL 82 + COUNT ( ALL - 86 ) AS col0
----
83

query II rowsort
SELECT 95, 18 col2
----
95
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT - 61 DIV + 33 + + 31 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5209
SELECT - 61 / + 33 + + 31 AS col0
----
30

query II rowsort
SELECT + 58, - 33 AS col0
----
58
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT ALL 35 * + ( - 49 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL 35 * + ( - 49 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 17 + - 93 AS col0
----
-76

query I rowsort
SELECT ALL 46 + 24 + + 58 AS col1
----
128

query I rowsort
SELECT 23 * + - ( - + 48 ) AS col2
----
1104

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT DISTINCT - 94 AS col2, - ( - 23 ) * - + 48 * + + COUNT( * ) * 40 + 22 - COALESCE ( + 7, + 66 * + 62 ) col1
----
-94
-44145

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT - 94 AS col2, - ( - 23 ) * - + 48 * + + COUNT ( * ) * 40 + 22 - COALESCE ( + 7, + 66 * + 62 ) col1
----
-94
-44145

query I rowsort
SELECT ALL - 59 + 91
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5217
SELECT 23 * + 53 + - COUNT( * ) DIV - - 39, - 53 DIV + + 50 AS col2
----
1219
-1

skipif mysql # not compatible
query II rowsort label-5217
SELECT 23 * + 53 + - COUNT ( * ) / - - 39, - 53 / + + 50 AS col2
----
1219
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT 13 * COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5218
SELECT 13 * COUNT ( * ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5219
SELECT DISTINCT - 84, + 96 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 67 AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-5219
SELECT DISTINCT - 84, + 96 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 67 AS col1
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - 92 + - - MAX( 20 ) + + + 25 * 0 * - - COUNT( * ) * - 89 * - 73 - - 4 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5220
SELECT - 92 + - - MAX ( 20 ) + + + 25 * 0 * - - COUNT ( * ) * - 89 * - 73 - - 4 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT COUNT( * ) + - - 40
----
41

skipif mysql # not compatible
query I rowsort label-5221
SELECT COUNT ( * ) + - - 40
----
41

query I rowsort
SELECT + ( + - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT + + COALESCE ( + + COUNT( * ), - COUNT( - 10 ) * - + NULLIF ( - 43, + - 79 ), - 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5223
SELECT + + COALESCE ( + + COUNT ( * ), - COUNT ( - 10 ) * - + NULLIF ( - 43, + - 79 ), - 29 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - ( CASE ( 81 ) WHEN 57 THEN 93 * + 66 * - + COUNT( * ) + 63 - 85 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT - ( CASE ( 81 ) WHEN 57 THEN 93 * + 66 * - + COUNT ( * ) + 63 - 85 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 52 - - 1 + 12 AS col2
----
-39

query I rowsort
SELECT - 94 + 29
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * - 40 / + + 48 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * - 40 / + + 48 * - 5
----
NULL

query I rowsort
SELECT + 3 * 10 + - 46
----
-16

query I rowsort
SELECT 3 + - 55
----
-52

query II rowsort
SELECT 3 AS col1, + 28
----
3
28

query I rowsort
SELECT + 83 * + + 16 AS col0
----
1328

query II rowsort
SELECT ALL + 39 col1, + 22
----
39
22

query I rowsort
SELECT ALL + 53 + - 72 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5234
SELECT 99 + + 33 - - 20 / + - 43 * - + 12 + - + 93 * + - 84 * CASE + - MIN( + 76 ) WHEN 11 THEN + - COUNT( * ) + - 62 WHEN + 86 THEN NULL ELSE NULL END + - CAST( NULL AS SIGNED ) + - MIN( DISTINCT - 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT 99 + + 33 - - 20 / + - 43 * - + 12 + - + 93 * + - 84 * CASE + - MIN ( + 76 ) WHEN 11 THEN + - COUNT ( * ) + - 62 WHEN + 86 THEN NULL ELSE NULL END + - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - 65 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT 8 + - ( - - CAST( 77 AS SIGNED ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5235
SELECT 8 + - ( - - CAST ( 77 AS INTEGER ) ) AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT DISTINCT - 8 + + + 80 DIV - 66 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - 8 + + + 80 / - 66 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT 98 * + 13 / + CAST( NULL AS SIGNED ) * - 73 * - - 15 * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT 98 * + 13 / + CAST ( NULL AS INTEGER ) * - 73 * - - 15 * + - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5238
SELECT COUNT ( * ) + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT DISTINCT COALESCE ( + 63, - 80, + - 0, - + 64 + - 4 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT 8 * + + COUNT( * ) * + + MAX( 14 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-5240
SELECT 8 * + + COUNT ( * ) * + + MAX ( 14 ) AS col1
----
112

query I rowsort
SELECT ALL - 82
----
-82

query I rowsort
SELECT DISTINCT + 75 * - - 97 + - 71 AS col1
----
7204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5243
SELECT DISTINCT - 97 * COUNT( * ) * + 23 + + 50 * CAST( - 69 AS SIGNED ) AS col0
----
-5681

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - 97 * COUNT ( * ) * + 23 + + 50 * CAST ( - 69 AS INTEGER ) AS col0
----
-5681

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT ALL - 42 * 42 + + - NULLIF ( 29, - + COUNT( * ) ) + - 26 col1
----
-1819

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL - 42 * 42 + + - NULLIF ( 29, - + COUNT ( * ) ) + - 26 col1
----
-1819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT 33 * 43 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT 33 * 43 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5246
SELECT ALL - 18 * + COUNT( * ) / + 42 * - CASE 65 WHEN + 7 + + - AVG ( DISTINCT - - ( - 91 ) ) THEN - ( + - 11 ) ELSE NULL END * COUNT( * ) AS col2, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL - 18 * + COUNT ( * ) / + 42 * - CASE 65 WHEN + 7 + + - AVG ( DISTINCT - - ( - 91 ) ) THEN - ( + - 11 ) ELSE NULL END * COUNT ( * ) AS col2, 2
----
NULL
2

query I rowsort
SELECT ALL - ( 94 )
----
-94

query I rowsort
SELECT DISTINCT + 84
----
84

query I rowsort
SELECT - 98 * + 85 AS col1
----
-8330

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5250
SELECT + 4 * NULLIF ( + + 22, 82 DIV - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 DIV - - COUNT( * ) AS col0
----
-1933888
46

skipif mysql # not compatible
query II rowsort label-5250
SELECT + 4 * NULLIF ( + + 22, 82 / - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 / - - COUNT ( * ) AS col0
----
-1933888
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5251
SELECT + SUM( DISTINCT 18 ) AS col1, + NULLIF ( 49, - 63 ) + + 65 DIV - MAX( - 90 ) * - - 13 col1
----
18
49

skipif mysql # not compatible
query II rowsort label-5251
SELECT + SUM ( DISTINCT 18 ) AS col1, + NULLIF ( 49, - 63 ) + + 65 / - MAX ( - 90 ) * - - 13 col1
----
18
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5252
SELECT SUM( + 96 ) AS col1, + 20 * + ( + - MIN( CAST( + 83 AS SIGNED ) ) ) AS col2
----
96
-1660

skipif mysql # not compatible
query II rowsort label-5252
SELECT SUM ( + 96 ) AS col1, + 20 * + ( + - MIN ( CAST ( + 83 AS INTEGER ) ) ) AS col2
----
96
-1660

query I rowsort
SELECT ALL + 79 AS col1
----
79

query I rowsort
SELECT + 38 * - - 5 * + + 50 - + - 41
----
9541

query I rowsort
SELECT + ( - 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT DISTINCT + CASE + COALESCE ( - ( 33 ), - - ( 80 ) * - ( + 0 ) - + 88 ) WHEN + 95 * - 44 * 77 + 61 + - 90 - - + AVG ( 74 ) + + 81 * - 89 THEN CAST( SUM( CAST( NULL AS SIGNED ) ) AS SIGNED ) END * COUNT( * ) - + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + CASE + COALESCE ( - ( 33 ), - - ( 80 ) * - ( + 0 ) - + 88 ) WHEN + 95 * - 44 * 77 + 61 + - 90 - - + AVG ( 74 ) + + 81 * - 89 THEN CAST ( SUM ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) END * COUNT ( * ) - + 30 AS col2
----
NULL

query I rowsort
SELECT ALL + 18 AS col1
----
18

query I rowsort
SELECT DISTINCT + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT DISTINCT 39 * + - ( + 74 ) - COUNT( * )
----
-2887

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT 39 * + - ( + 74 ) - COUNT ( * )
----
-2887

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT + + 43 * 76 AS col1, 22 * + MIN( + 58 ) * - 97 * 87
----
3268
-10768164

skipif mysql # not compatible
query II rowsort label-5260
SELECT + + 43 * 76 AS col1, 22 * + MIN ( + 58 ) * - 97 * 87
----
3268
-10768164

query I rowsort
SELECT DISTINCT + + 57
----
57

query I rowsort
SELECT ALL - 97 AS col0
----
-97

query I rowsort
SELECT - + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + + MIN( - 30 ) - - 55 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5264
SELECT + + MIN ( - 30 ) - - 55 AS col1
----
25

query I rowsort
SELECT DISTINCT + 61
----
61

query I rowsort
SELECT DISTINCT - 38
----
-38

query I rowsort
SELECT ALL + - 80 + + 98 AS col1
----
18

query I rowsort
SELECT - 68 AS col2
----
-68

query I rowsort
SELECT - 83 - 67
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5270
SELECT 85, 32 + + + CAST( + 48 AS SIGNED ) * + 69 AS col1
----
85
3344

skipif mysql # not compatible
query II rowsort label-5270
SELECT 85, 32 + + + CAST ( + 48 AS INTEGER ) * + 69 AS col1
----
85
3344

query I rowsort
SELECT - 1 * + + ( 38 ) col1
----
-38

query I rowsort
SELECT ALL - 22 + + 99 * - 80 AS col0
----
-7942

query I rowsort
SELECT - ( - 84 ) AS col2
----
84

query I rowsort
SELECT - ( 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - 47 + - - 27 * - - 50 - - + COALESCE ( COUNT( * ), + - 64 * - COUNT( * ) + + - CASE - + 37 WHEN - 15 - + 21 + - 4 * - + 70 + + 71 THEN 95 ELSE + + 76 END + - COUNT( DISTINCT 89 ) * 48 ) + + 70 * + COUNT( * ) AS col2
----
1374

skipif mysql # not compatible
query I rowsort label-5275
SELECT - 47 + - - 27 * - - 50 - - + COALESCE ( COUNT ( * ), + - 64 * - COUNT ( * ) + + - CASE - + 37 WHEN - 15 - + 21 + - 4 * - + 70 + + 71 THEN 95 ELSE + + 76 END + - COUNT ( DISTINCT 89 ) * 48 ) + + 70 * + COUNT ( * ) AS col2
----
1374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT ALL COALESCE ( 55, 41, 86 DIV + ( - + 89 ) * - - ( COUNT( * ) ) * + 46 + + 64 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL COALESCE ( 55, 41, 86 / + ( - + 89 ) * - - ( COUNT ( * ) ) * + 46 + + 64 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT - 65 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT - 65 / - - 88
----
0

query I rowsort
SELECT DISTINCT ( - 41 )
----
-41

query I rowsort
SELECT ALL - NULLIF ( 93, + - 90 ) + + + 69 * - 89
----
-6234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5280
SELECT - 35 DIV COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5280
SELECT - 35 / COUNT ( * )
----
-35

query II rowsort
SELECT - 8, 44 AS col0
----
-8
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5282
SELECT ALL + 72 AS col1, 5 + - NULLIF ( + 93, + COUNT( * ) ) AS col2
----
72
-88

skipif mysql # not compatible
query II rowsort label-5282
SELECT ALL + 72 AS col1, 5 + - NULLIF ( + 93, + COUNT ( * ) ) AS col2
----
72
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5283
SELECT DISTINCT + CASE 32 WHEN - 11 * - - COUNT( * ) + - ( + - 83 ) / + + 11 - + + CAST( + 39 AS SIGNED ) + - ( + 8 ) - - COALESCE ( + 86, COUNT( * ) ) THEN NULL WHEN + + 88 + + MIN( ALL 63 ) THEN - + ( - 34 ) END / 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + CASE 32 WHEN - 11 * - - COUNT ( * ) + - ( + - 83 ) / + + 11 - + + CAST ( + 39 AS INTEGER ) + - ( + 8 ) - - COALESCE ( + 86, COUNT ( * ) ) THEN NULL WHEN + + 88 + + MIN ( ALL 63 ) THEN - + ( - 34 ) END / 8
----
NULL

query I rowsort
SELECT ( - 19 ) AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 7 AS col2
----
NULL

query I rowsort
SELECT - 99 + 79 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - COUNT( * ) * - 52 * - 48 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-5287
SELECT - COUNT ( * ) * - 52 * - 48 AS col0
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT 60 * - 65 + + MIN( DISTINCT - + CAST( + - 44 AS SIGNED ) )
----
-3856

skipif mysql # not compatible
query I rowsort label-5288
SELECT 60 * - 65 + + MIN ( DISTINCT - + CAST ( + - 44 AS INTEGER ) )
----
-3856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT + 81 - - - NULLIF ( 87, - 33 + - CAST( - - 52 AS SIGNED ) ) + + 81 + + + 65 + COALESCE ( - + 4, 85 + + CAST( - - 72 AS SIGNED ) ) + 47 / + COUNT( ALL - + 93 ) * + 29 * CASE - COUNT( * ) WHEN SUM( - 69 ) + MIN( DISTINCT 87 ) THEN ( 50 ) + 46 / 87 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT + 81 - - - NULLIF ( 87, - 33 + - CAST ( - - 52 AS INTEGER ) ) + + 81 + + + 65 + COALESCE ( - + 4, 85 + + CAST ( - - 72 AS INTEGER ) ) + 47 / + COUNT ( ALL - + 93 ) * + 29 * CASE - COUNT ( * ) WHEN SUM ( - 69 ) + MIN ( DISTINCT 87 ) THEN ( 50 ) + 46 / 87 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5290
SELECT - NULLIF ( ( - 86 ), - COUNT( * ) * + + 52 ) DIV - 9 + SUM( ALL 13 ) * + 75 + - 6 col1
----
960

skipif mysql # not compatible
query I rowsort label-5290
SELECT - NULLIF ( ( - 86 ), - COUNT ( * ) * + + 52 ) / - 9 + SUM ( ALL 13 ) * + 75 + - 6 col1
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL + CASE + COUNT( * ) WHEN + - 96 THEN + 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + CASE + COUNT ( * ) WHEN + - 96 THEN + 0 END AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 98, - + 35 * + - 63 ) + - 88
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT - - COUNT( * ) * - 58 - 0
----
-58

skipif mysql # not compatible
query I rowsort label-5293
SELECT - - COUNT ( * ) * - 58 - 0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL - 27 * + 97 * COUNT( * ) + 89
----
-2530

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - 27 * + 97 * COUNT ( * ) + 89
----
-2530

query I rowsort
SELECT + + 58 + + - 70 AS col1
----
-12

query I rowsort
SELECT ALL + + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT CASE + CASE + 48 WHEN + COUNT( DISTINCT - 39 ) * + + CASE - + 23 WHEN + - 47 + + CASE - + 49 WHEN + - MAX( ALL - 29 ) THEN NULL WHEN - MAX( - - 32 ) + 1 THEN + 51 END THEN NULL WHEN - 65 THEN 89 END + + 97 THEN 42 * + 53 WHEN 45 THEN + COALESCE ( 39, 49 * - 97 ) / COUNT( * ) END WHEN AVG ( DISTINCT + ( - 64 ) ) / - 67 - + 21 THEN 58 * - 3 ELSE 38 END * + 30 + 7
----
1147

skipif mysql # not compatible
query I rowsort label-5297
SELECT CASE + CASE + 48 WHEN + COUNT ( DISTINCT - 39 ) * + + CASE - + 23 WHEN + - 47 + + CASE - + 49 WHEN + - MAX ( ALL - 29 ) THEN NULL WHEN - MAX ( - - 32 ) + 1 THEN + 51 END THEN NULL WHEN - 65 THEN 89 END + + 97 THEN 42 * + 53 WHEN 45 THEN + COALESCE ( 39, 49 * - 97 ) / COUNT ( * ) END WHEN AVG ( DISTINCT + ( - 64 ) ) / - 67 - + 21 THEN 58 * - 3 ELSE 38 END * + 30 + 7
----
1147

query I rowsort
SELECT - - 72 * - - 66 AS col2
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT + 72 * + 51 / - CASE + 70 WHEN 31 * + - 96 + + + 47 - + ( + COUNT( * ) ) + + - 49 / + 21 + 62 + - COUNT( * ) THEN - + 63 ELSE NULL END * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 72 * + 51 / - CASE + 70 WHEN 31 * + - 96 + + + 47 - + ( + COUNT ( * ) ) + + - 49 / + 21 + 62 + - COUNT ( * ) THEN - + 63 ELSE NULL END * 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT + + 8 + + AVG ( DISTINCT - - CASE 91 WHEN + 7 THEN + 24 * + 65 + + CAST( NULL AS SIGNED ) END ) - COUNT( * ) + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT + + 8 + + AVG ( DISTINCT - - CASE 91 WHEN + 7 THEN + 24 * + 65 + + CAST ( NULL AS INTEGER ) END ) - COUNT ( * ) + 66 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT ALL + + NULLIF ( - COALESCE ( + + 76, - 72, - 51 + + 63 + - 40 + - 60 - + - 35 + + 79 DIV - - ( + 88 ) * - + 55 * - + 66 * + - 67 ), + 90 )
----
-76

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + + NULLIF ( - COALESCE ( + + 76, - 72, - 51 + + 63 + - 40 + - 60 - + - 35 + + 79 / - - ( + 88 ) * - + 55 * - + 66 * + - 67 ), + 90 )
----
-76

query II rowsort
SELECT + - ( - + 62 ) + + 30 AS col1, + 45 AS col2
----
92
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + - 88 * - - COUNT( * ) + ( - 28 ) * - 32
----
808

skipif mysql # not compatible
query I rowsort label-5303
SELECT + - 88 * - - COUNT ( * ) + ( - 28 ) * - 32
----
808

query I rowsort
SELECT ALL 68 * + 1 * 77 AS col2
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + ( 69 ) * - - COUNT( * ) * + - 15
----
-1035

skipif mysql # not compatible
query I rowsort label-5305
SELECT + ( 69 ) * - - COUNT ( * ) * + - 15
----
-1035

query I rowsort
SELECT + - 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - SUM( DISTINCT + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-5307
SELECT - SUM ( DISTINCT + 37 )
----
-37

query I rowsort
SELECT ALL + 51 * 10
----
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT + - 81 + - COUNT( * ) + + COUNT( * ) DIV + + 59 * 99
----
-82

skipif mysql # not compatible
query I rowsort label-5309
SELECT + - 81 + - COUNT ( * ) + + COUNT ( * ) / + + 59 * 99
----
-82

query I rowsort
SELECT DISTINCT + ( + + 44 ) * - - ( + - 20 ) + 69 AS col0
----
-811

query I rowsort
SELECT ALL 66 + ( - + 11 ) + - - 0 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT MAX( DISTINCT 57 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-5312
SELECT MAX ( DISTINCT 57 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + 48 * COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5313
SELECT + 48 * COUNT ( * ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT ALL ( - 66 ) DIV - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL ( - 66 ) / - 96 AS col2
----
0

query I rowsort
SELECT ALL 30 + - 93
----
-63

query I rowsort
SELECT DISTINCT 92
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5317
SELECT ALL + 36 + 46 col2, MIN( ALL - 25 ) DIV - 78 AS col2
----
82
0

skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL + 36 + 46 col2, MIN ( ALL - 25 ) / - 78 AS col2
----
82
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT + 35 + 12 DIV - + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5318
SELECT + 35 + 12 / - + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5319
SELECT - 94 * COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) * - 71 + - 71 + - + COUNT( * ) col2
----
-94
-1

skipif mysql # not compatible
query II rowsort label-5319
SELECT - 94 * COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) * - 71 + - 71 + - + COUNT ( * ) col2
----
-94
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5320
SELECT - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT - 11 + + 1 AS col2
----
-10

query I rowsort
SELECT 52 + - 61 * + 44 + 3 * + 83 AS col0
----
-2383

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT 68 + + 18 DIV 15
----
69

skipif mysql # not compatible
query I rowsort label-5323
SELECT 68 + + 18 / 15
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT DISTINCT ( + - ( + - CAST( NULL AS SIGNED ) ) ) * - + 45 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT ( + - ( + - CAST ( NULL AS INTEGER ) ) ) * - + 45 * - 83
----
NULL

query I rowsort
SELECT DISTINCT - 84 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 55
----
55

query I rowsort
SELECT ALL - 11 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT - - SUM( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - - SUM ( - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT + COUNT( * ) * 3 + + 41
----
44

skipif mysql # not compatible
query I rowsort label-5330
SELECT + COUNT ( * ) * 3 + + 41
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT ALL + + 63 DIV - 16 col1
----
-3

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + + 63 / - 16 col1
----
-3

query I rowsort
SELECT + - 47 AS col0
----
-47

query I rowsort
SELECT + - 91 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT 26 DIV - 42 - - + 51
----
51

skipif mysql # not compatible
query I rowsort label-5334
SELECT 26 / - 42 - - + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + MAX( ALL + + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5335
SELECT + MAX ( ALL + + 12 )
----
12

query I rowsort
SELECT - 13 * + 3
----
-39

query I rowsort
SELECT - 46 AS col2
----
-46

query I rowsort
SELECT ALL + - ( - + 63 ) + + 22
----
85

query I rowsort
SELECT DISTINCT - 29
----
-29

query I rowsort
SELECT ALL + - 59 + - + 14 * + 10 AS col1
----
-199

query I rowsort
SELECT ALL - 91 + - 59 AS col0
----
-150

query I rowsort
SELECT DISTINCT - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT + ( 51 ) AS col1, + MAX( 19 )
----
51
19

skipif mysql # not compatible
query II rowsort label-5343
SELECT + ( 51 ) AS col1, + MAX ( 19 )
----
51
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT + MIN( - 85 ) + + + ( + NULLIF ( + + ( + 80 ), ( + 21 ) / - 29 - + + 81 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + MIN ( - 85 ) + + + ( + NULLIF ( + + ( + 80 ), ( + 21 ) / - 29 - + + 81 ) )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT ALL - COUNT( * ) + - NULLIF ( + COUNT( - 43 ), - AVG ( 17 ) ) DIV + + 82 * 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - COUNT ( * ) + - NULLIF ( + COUNT ( - 43 ), - AVG ( 17 ) ) / + + 82 * 73 AS col2
----
-1

query I rowsort
SELECT 85 * + ( 83 )
----
7055

query I rowsort
SELECT + - 11 * + 57 - - 96 + + 62 * + 69 - - 97 + 1
----
3845

query I rowsort
SELECT ALL + 60 AS col2
----
60

query I rowsort
SELECT - 77 col1
----
-77

query I rowsort
SELECT 1 + 66 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL + 4 - COUNT( DISTINCT 82 )
----
3

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + 4 - COUNT ( DISTINCT 82 )
----
3

query I rowsort
SELECT DISTINCT 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL COUNT( * ) - + 49
----
-48

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL COUNT ( * ) - + 49
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5354
SELECT ( + - 27 ) - 47 - - 37 DIV 63 + + 87 * 28 * 35
----
85186

skipif mysql # not compatible
query I rowsort label-5354
SELECT ( + - 27 ) - 47 - - 37 / 63 + + 87 * 28 * 35
----
85186

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT COUNT( * ) * 15 * - + 6
----
-90

skipif mysql # not compatible
query I rowsort label-5355
SELECT COUNT ( * ) * 15 * - + 6
----
-90

query II rowsort
SELECT - 52, - 55 AS col0
----
-52
-55

query I rowsort
SELECT 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT COUNT( * ) - + COUNT( * ) * 25 * - 55 AS col1
----
1376

skipif mysql # not compatible
query I rowsort label-5358
SELECT COUNT ( * ) - + COUNT ( * ) * 25 * - 55 AS col1
----
1376

query I rowsort
SELECT 62 * + - 89 AS col0
----
-5518

query II rowsort
SELECT 96, + ( - 28 ) AS col2
----
96
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ( - + CASE 77 WHEN + 24 THEN - + 52 WHEN + 39 + - COUNT( * ) THEN + 94 ELSE NULL END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT ( - + CASE 77 WHEN + 24 THEN - + 52 WHEN + 39 + - COUNT ( * ) THEN + 94 ELSE NULL END ) * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT DISTINCT 5 DIV 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT 5 / 19 AS col0
----
0

query I rowsort
SELECT DISTINCT 67 col0
----
67

query I rowsort
SELECT ALL 19 AS col2
----
19

query I rowsort
SELECT 58 - 34
----
24

query II rowsort
SELECT ( - 44 ) * + 36, - 4 col0
----
-1584
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5367
SELECT ( - ( COUNT( * ) ) ) - - 85 + + MIN( + + 20 ) DIV - COUNT( * ) - - + 59 + NULLIF ( 63, - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 71 * + 91 + - 67 - 29 * - ( + COUNT( * ) ) + - MAX( ALL - - 62 ) + - 46 DIV + 56 ) AS col0
----
186

skipif mysql # not compatible
query I rowsort label-5367
SELECT ( - ( COUNT ( * ) ) ) - - 85 + + MIN ( + + 20 ) / - COUNT ( * ) - - + 59 + NULLIF ( 63, - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 71 * + 91 + - 67 - 29 * - ( + COUNT ( * ) ) + - MAX ( ALL - - 62 ) + - 46 / + 56 ) AS col0
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - COUNT( * ) AS col2, 7 + - 93
----
-1
-86

skipif mysql # not compatible
query II rowsort label-5368
SELECT - COUNT ( * ) AS col2, 7 + - 93
----
-1
-86

query I rowsort
SELECT + - 13
----
-13

query I rowsort
SELECT ALL - - 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT + COALESCE ( + - 88, + - 96 * - 50, - 7, - - 31 ) * - 91 / + 4 - - CAST( NULL AS SIGNED ) * + 57 * COUNT( * ) / - 36 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT + COALESCE ( + - 88, + - 96 * - 50, - 7, - - 31 ) * - 91 / + 4 - - CAST ( NULL AS INTEGER ) * + 57 * COUNT ( * ) / - 36 + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT - 44 * - COUNT( ALL - 38 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - 44 * - COUNT ( ALL - 38 ) AS col1
----
44

query I rowsort
SELECT ALL - 86 + 16
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + 67 - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5375
SELECT + 67 - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT + 11 + - + ( - 3 ) - + 4 * - - 42
----
-154

query I rowsort
SELECT + + 69
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT DISTINCT 90 * - 20 DIV COUNT( * ) + 79 AS col0
----
-1721

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT 90 * - 20 / COUNT ( * ) + 79 AS col0
----
-1721

query I rowsort
SELECT ALL + 25 + - 36 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT DISTINCT - + CAST( 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - + CAST ( 53 AS INTEGER )
----
-53

query I rowsort
SELECT DISTINCT - 3 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5382
SELECT DISTINCT - 92 + + CASE + NULLIF ( + + 5, 71 ) WHEN - AVG ( - 64 ) * 38 + + 10 * 64 THEN + CAST( NULL AS SIGNED ) WHEN CAST( ( + COALESCE ( + + 99, - 12 + + - NULLIF ( - 63, 65 ) ) ) AS DECIMAL ) THEN NULL ELSE 97 END
----
5

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT - 92 + + CASE + NULLIF ( + + 5, 71 ) WHEN - AVG ( - 64 ) * 38 + + 10 * 64 THEN + CAST ( NULL AS INTEGER ) WHEN CAST ( ( + COALESCE ( + + 99, - 12 + + - NULLIF ( - 63, 65 ) ) ) AS REAL ) THEN NULL ELSE 97 END
----
5

query I rowsort
SELECT + 75 col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5384
SELECT - SUM( ALL 93 ) * + + COALESCE ( 28, - + ( + + 48 ), - - CAST( 4 AS SIGNED ) * 92 ) + 5 * + 66 + 84 + - 66
----
-2256

skipif mysql # not compatible
query I rowsort label-5384
SELECT - SUM ( ALL 93 ) * + + COALESCE ( 28, - + ( + + 48 ), - - CAST ( 4 AS INTEGER ) * 92 ) + 5 * + 66 + 84 + - 66
----
-2256

query I rowsort
SELECT ALL + + 56 + + + 38
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-5386
SELECT 54 + - 69 DIV - 93 AS col2, - 73 AS col0
----
54
-73

skipif mysql # not compatible
query II rowsort label-5386
SELECT 54 + - 69 / - 93 AS col2, - 73 AS col0
----
54
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT COUNT( * ) * - 83 * + 45 + 74
----
-3661

skipif mysql # not compatible
query I rowsort label-5387
SELECT COUNT ( * ) * - 83 * + 45 + 74
----
-3661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT + ( + 84 ) * - 67 + AVG ( DISTINCT + + CASE - 34 WHEN + 82 + - + 92 THEN - CAST( 70 AS SIGNED ) + + 84 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT + ( + 84 ) * - 67 + AVG ( DISTINCT + + CASE - 34 WHEN + 82 + - + 92 THEN - CAST ( 70 AS INTEGER ) + + 84 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - COALESCE ( 55, - 84, - - CASE 85 WHEN COUNT( * ) THEN NULL WHEN - 29 THEN 97 ELSE NULL END ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - COALESCE ( 55, - 84, - - CASE 85 WHEN COUNT ( * ) THEN NULL WHEN - 29 THEN 97 ELSE NULL END ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5390
SELECT 31 + - COUNT( * ) + 96 * - ( CAST( 38 AS SIGNED ) ) + - 26 + - - 75 * + + CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT 31 + - COUNT ( * ) + 96 * - ( CAST ( 38 AS INTEGER ) ) + - 26 + - - 75 * + + CAST ( NULL AS REAL ) / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT DISTINCT 1 DIV + SUM( - COALESCE ( + ( - 94 ), + 95 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT 1 / + SUM ( - COALESCE ( + ( - 94 ), + 95 ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT + ( - 11 ) - - ( - - 14 ) * - + 34
----
-487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT 17 * + 45 * + CAST( - 93 AS SIGNED ) AS col1
----
-71145

skipif mysql # not compatible
query I rowsort label-5393
SELECT 17 * + 45 * + CAST ( - 93 AS INTEGER ) AS col1
----
-71145

query I rowsort
SELECT ALL - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL + 9 * - COUNT( * ) * - + 50 AS col1
----
450

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL + 9 * - COUNT ( * ) * - + 50 AS col1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT 27 * - COALESCE ( - + MAX( DISTINCT - - 66 ), - 10, 68 * + 67 - + 54 - + - 55 + - CASE - + COUNT( * ) WHEN - MIN( ALL 43 ) THEN NULL WHEN - - 80 THEN 46 + + + 51 WHEN 17 * - + 73 THEN + 83 END + + 76 * + + 21 + - 62 * COUNT( * ), COUNT( 50 ) )
----
1782

skipif mysql # not compatible
query I rowsort label-5396
SELECT 27 * - COALESCE ( - + MAX ( DISTINCT - - 66 ), - 10, 68 * + 67 - + 54 - + - 55 + - CASE - + COUNT ( * ) WHEN - MIN ( ALL 43 ) THEN NULL WHEN - - 80 THEN 46 + + + 51 WHEN 17 * - + 73 THEN + 83 END + + 76 * + + 21 + - 62 * COUNT ( * ), COUNT ( 50 ) )
----
1782

query I rowsort
SELECT - 82 * + 97 AS col2
----
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - 76 + + - ( - 75 ) + + 60 + 85 * - SUM( DISTINCT 51 ) * + 41
----
-177676

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 76 + + - ( - 75 ) + + 60 + 85 * - SUM ( DISTINCT 51 ) * + 41
----
-177676

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT + 40 DIV + + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT + 40 / + + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT DISTINCT SUM( ALL 52 ) AS col2, 23 * + COUNT( * ) * 49 * - 91 AS col1
----
52
-102557

skipif mysql # not compatible
query II rowsort label-5400
SELECT DISTINCT SUM ( ALL 52 ) AS col2, 23 * + COUNT ( * ) * 49 * - 91 AS col1
----
52
-102557

query I rowsort
SELECT DISTINCT COALESCE ( - 85, 11 ) AS col1
----
-85

query I rowsort
SELECT + 22 + + 72 col0
----
94

query I rowsort
SELECT + ( 66 ) + - + 33 AS col2
----
33

query I rowsort
SELECT DISTINCT 29 AS col1
----
29

query I rowsort
SELECT - + 84 * - - 54 AS col2
----
-4536

query I rowsort
SELECT - - ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL + 15 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + 15 + + COUNT ( * )
----
16

query II rowsort
SELECT ALL 35, - 49 AS col2
----
35
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5409
SELECT ALL - 4 * MAX( - - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) AS col2, - MAX( 42 )
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-5409
SELECT ALL - 4 * MAX ( - - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) AS col2, - MAX ( 42 )
----
NULL
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT DISTINCT + - 74, - COUNT( - 33 ) * + - 3 * + 68 AS col2
----
-74
204

skipif mysql # not compatible
query II rowsort label-5410
SELECT DISTINCT + - 74, - COUNT ( - 33 ) * + - 3 * + 68 AS col2
----
-74
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5411
SELECT ALL + 54 * + 71 + + + 18 + + 48 DIV - 3 + 29 DIV MAX( 17 )
----
3837

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + 54 * + 71 + + + 18 + + 48 / - 3 + 29 / MAX ( 17 )
----
3837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT DISTINCT CAST( MIN( + CAST( 15 AS SIGNED ) ) AS SIGNED ) * - 89 * - 37 - 22 + 55 + - + ( + 26 )
----
49402

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT CAST ( MIN ( + CAST ( 15 AS INTEGER ) ) AS INTEGER ) * - 89 * - 37 - 22 + 55 + - + ( + 26 )
----
49402

query I rowsort
SELECT ALL - + 29 * 34 + + 22
----
-964

query I rowsort
SELECT + + 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + - MAX( + 81 ) * + - 94 col0
----
7614

skipif mysql # not compatible
query I rowsort label-5415
SELECT + - MAX ( + 81 ) * + - 94 col0
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT + + CASE + - 9 WHEN - - ( + COUNT( * ) ) + + + 18 THEN NULL ELSE 90 + + 95 END * 51 AS col2
----
9435

skipif mysql # not compatible
query I rowsort label-5416
SELECT + + CASE + - 9 WHEN - - ( + COUNT ( * ) ) + + + 18 THEN NULL ELSE 90 + + 95 END * 51 AS col2
----
9435

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT + + 53 AS col1, ( + 83 ) * COUNT( * ) + 2
----
53
85

skipif mysql # not compatible
query II rowsort label-5417
SELECT + + 53 AS col1, ( + 83 ) * COUNT ( * ) + 2
----
53
85

query I rowsort
SELECT ALL + 39 * 32
----
1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT + + 33 * CAST( + ( + 15 ) AS SIGNED )
----
495

skipif mysql # not compatible
query I rowsort label-5419
SELECT + + 33 * CAST ( + ( + 15 ) AS INTEGER )
----
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT - CAST( - CAST( - 3 AS SIGNED ) AS SIGNED ) * - + 33
----
99

skipif mysql # not compatible
query I rowsort label-5420
SELECT - CAST ( - CAST ( - 3 AS INTEGER ) AS INTEGER ) * - + 33
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5421
SELECT ALL - - 79 * - COUNT( * ) DIV COUNT( * ) * 72 * - - CAST( - 41 AS SIGNED ) - - + 71
----
233279

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - - 79 * - COUNT ( * ) / COUNT ( * ) * 72 * - - CAST ( - 41 AS INTEGER ) - - + 71
----
233279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5422
SELECT DISTINCT + COALESCE ( - NULLIF ( 69, - + 62 ), + 81 * - COALESCE ( + COALESCE ( - COUNT( * ), 83 ), 37 * - 26 - - 34 + 83 ) + + 34, - NULLIF ( + COUNT( * ), + 34 + + 56 ) DIV - 44 + - + 83 * + 8 * - 78 )
----
-69

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + COALESCE ( - NULLIF ( 69, - + 62 ), + 81 * - COALESCE ( + COALESCE ( - COUNT ( * ), 83 ), 37 * - 26 - - 34 + 83 ) + + 34, - NULLIF ( + COUNT ( * ), + 34 + + 56 ) / - 44 + - + 83 * + 8 * - 78 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL ( + 72 ) * - 98 - + - MAX( + 13 ) + - 42
----
-7085

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL ( + 72 ) * - 98 - + - MAX ( + 13 ) + - 42
----
-7085

query II rowsort
SELECT ALL + ( + + 18 ), + ( - 51 ) AS col0
----
18
-51

query I rowsort
SELECT 14 * + ( - 30 ) + + 14 + 50
----
-356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5426
SELECT + 83 DIV SUM( DISTINCT 54 )
----
1

skipif mysql # not compatible
query I rowsort label-5426
SELECT + 83 / SUM ( DISTINCT 54 )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-5427
SELECT - 88 * + 43 AS col2, 90 - 13 * + - CASE 66 WHEN + 66 THEN + 17 * 34 * - 74 END AS col1, - + 71 + - COUNT( * ) - - 41 + 7 + - 47
----
-3784
-555946
-71

skipif mysql # not compatible
query III rowsort label-5427
SELECT - 88 * + 43 AS col2, 90 - 13 * + - CASE 66 WHEN + 66 THEN + 17 * 34 * - 74 END AS col1, - + 71 + - COUNT ( * ) - - 41 + 7 + - 47
----
-3784
-555946
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL - CAST( NULL AS SIGNED ) / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL - CAST ( NULL AS INTEGER ) / 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - 81 * - 11 * + - 2 * + - COUNT( * ) + - NULLIF ( - 49, MIN( + 74 ) ) AS col1
----
1831

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 81 * - 11 * + - 2 * + - COUNT ( * ) + - NULLIF ( - 49, MIN ( + 74 ) ) AS col1
----
1831

query I rowsort
SELECT - ( - - 73 ) * + 21 - COALESCE ( - 83, + 12 )
----
-1450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5431
SELECT - CAST( 15 AS SIGNED ), + 84 AS col0
----
-15
84

skipif mysql # not compatible
query II rowsort label-5431
SELECT - CAST ( 15 AS INTEGER ), + 84 AS col0
----
-15
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5432
SELECT ALL COUNT( * ) DIV + 50 AS col2, 87
----
0
87

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL COUNT ( * ) / + 50 AS col2, 87
----
0
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT - 52 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT - 52 / - 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT ALL MAX( + 19 ) DIV + + 20 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL MAX ( + 19 ) / + + 20 * - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT ALL - 42 * 20 DIV + 73 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - 42 * 20 / + 73 AS col1
----
-11

query I rowsort
SELECT - 29 * + 89 AS col0
----
-2581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 29 - + - 62 + - 5 / - COUNT( * ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 29 - + - 62 + - 5 / - COUNT ( * ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL + 69 + - + 67 * - - SUM( ALL + 81 )
----
-5358

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + 69 + - + 67 * - - SUM ( ALL + 81 )
----
-5358

query I rowsort
SELECT DISTINCT - 15 + - 85
----
-100

query I rowsort
SELECT ALL - 42 * - 97
----
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - 93 * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 93 * COUNT ( * )
----
-93

query I rowsort
SELECT - 70 AS col2
----
-70

query I rowsort
SELECT 45 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL + 70 + + ( + COUNT( + 84 ) )
----
71

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + 70 + + ( + COUNT ( + 84 ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT - 66 * ( 76 ) + COUNT( * ) col1
----
-5015

skipif mysql # not compatible
query I rowsort label-5445
SELECT - 66 * ( 76 ) + COUNT ( * ) col1
----
-5015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL CAST( - 27 AS SIGNED ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL CAST ( - 27 AS INTEGER ) AS col2
----
-27

query I rowsort
SELECT - 14 col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5448
SELECT ALL + 58 + - - COUNT( * ), 48 AS col0
----
59
48

skipif mysql # not compatible
query II rowsort label-5448
SELECT ALL + 58 + - - COUNT ( * ), 48 AS col0
----
59
48

query I rowsort
SELECT DISTINCT - ( 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL - + COUNT( * ) * + 87
----
-87

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL - + COUNT ( * ) * + 87
----
-87

query I rowsort
SELECT - + 28 + + + 80 + + 17 * - ( 5 ) + - + 23 + - 63 * 63 * + 29
----
-115157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 69 + - - 2 - - 49 AS col1
----
-18

query I rowsort
SELECT + + 48 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5455
SELECT + + 73 * - 44 * COUNT( * ) * + COUNT( * ) * + + MIN( DISTINCT ( - + 19 ) ) AS col1, + 19 + - + CASE - 68 WHEN + 55 THEN + NULLIF ( 7, + 13 * 80 ) * + 81 * 90 - - 37 END - + - AVG ( - 3 ) + CAST( - 0 AS SIGNED ) * 71 * + COUNT( * ) col0
----
61028
NULL

skipif mysql # not compatible
query II rowsort label-5455
SELECT + + 73 * - 44 * COUNT ( * ) * + COUNT ( * ) * + + MIN ( DISTINCT ( - + 19 ) ) AS col1, + 19 + - + CASE - 68 WHEN + 55 THEN + NULLIF ( 7, + 13 * 80 ) * + 81 * 90 - - 37 END - + - AVG ( - 3 ) + CAST ( - 0 AS INTEGER ) * 71 * + COUNT ( * ) col0
----
61028
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT - ( - COALESCE ( 2, - 99 * COUNT( * ) * + COUNT( * ) * - + 25 + 10 + - COUNT( * ) + + 10, - 54 + + 67 ) ) * + 17 + + 39 + - 93 - 75 - - - 15
----
-110

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT - ( - COALESCE ( 2, - 99 * COUNT ( * ) * + COUNT ( * ) * - + 25 + 10 + - COUNT ( * ) + + 10, - 54 + + 67 ) ) * + 17 + + 39 + - 93 - 75 - - - 15
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT + + ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + + ( + COUNT ( * ) ) col1
----
1

query I rowsort
SELECT + - 71 * + 92
----
-6532

onlyif mysql # aggregate syntax: 
query II rowsort label-5459
SELECT DISTINCT + - MIN( + - 51 ), - 31 AS col0
----
51
-31

skipif mysql # not compatible
query II rowsort label-5459
SELECT DISTINCT + - MIN ( + - 51 ), - 31 AS col0
----
51
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL + CASE - - 35 WHEN - 91 THEN - 84 WHEN + SUM( - + 13 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + CASE - - 35 WHEN - 91 THEN - 84 WHEN + SUM ( - + 13 ) THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL + COUNT( * ) * CAST( 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + COUNT ( * ) * CAST ( 40 AS INTEGER ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-5462
SELECT ALL - 72, 25 DIV + 76 AS col2
----
-72
0

skipif mysql # not compatible
query II rowsort label-5462
SELECT ALL - 72, 25 / + 76 AS col2
----
-72
0

query I rowsort
SELECT 43 * - ( - + ( 26 ) ) AS col0
----
1118

query II rowsort
SELECT + 83 AS col0, 26 * 23 + + 98
----
83
696

query I rowsort
SELECT 33 + - 17
----
16

query I rowsort
SELECT DISTINCT 88 * 77 * + 39 AS col2
----
264264

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL COUNT( * ) * 65
----
65

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL COUNT ( * ) * 65
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT + 49 AS col1, - COUNT( * )
----
49
-1

skipif mysql # not compatible
query II rowsort label-5469
SELECT + 49 AS col1, - COUNT ( * )
----
49
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT ALL + 1 + + 42 DIV - - 98 * ( + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + 1 + + 42 / - - 98 * ( + 12 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT 77 DIV - 13 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5471
SELECT 77 / - 13 AS col2
----
-5

query I rowsort
SELECT - 15 col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT 58 + - CAST( + - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT 58 + - CAST ( + - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ( - MIN( ALL + 73 ) ) * - + COALESCE ( + + 90, + COUNT( * ) * - 23 ) col0
----
6570

skipif mysql # not compatible
query I rowsort label-5474
SELECT ( - MIN ( ALL + 73 ) ) * - + COALESCE ( + + 90, + COUNT ( * ) * - 23 ) col0
----
6570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5475
SELECT ( + MAX( COALESCE ( + - 13, - + 35 + + 43 ) ) ) + - NULLIF ( - 80, + COUNT( * ) * CASE - 37 WHEN + 97 THEN NULL WHEN + COUNT( * ) * - 43 THEN NULL ELSE + - 38 * - 51 END ) DIV - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5475
SELECT ( + MAX ( COALESCE ( + - 13, - + 35 + + 43 ) ) ) + - NULLIF ( - 80, + COUNT ( * ) * CASE - 37 WHEN + 97 THEN NULL WHEN + COUNT ( * ) * - 43 THEN NULL ELSE + - 38 * - 51 END ) / - COUNT ( * )
----
-93

query I rowsort
SELECT 3 - - + 37
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5477
SELECT DISTINCT + 46 DIV + 97 + - CAST( 42 AS SIGNED ) - + - COUNT( - 31 ) + CAST( 94 AS SIGNED ) + 40 * - SUM( + 93 ) + + COUNT( * ) col1
----
-3666

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT + 46 / + 97 + - CAST ( 42 AS INTEGER ) - + - COUNT ( - 31 ) + CAST ( 94 AS INTEGER ) + 40 * - SUM ( + 93 ) + + COUNT ( * ) col1
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL + MAX( DISTINCT + 59 ) + - ( + ( - + 35 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL + MAX ( DISTINCT + 59 ) + - ( + ( - + 35 ) ) AS col2
----
94

query I rowsort
SELECT ALL 38 + + COALESCE ( + 89, - - 22 * 15 ) AS col0
----
127

query I rowsort
SELECT DISTINCT - 65 * - 13
----
845

query I rowsort
SELECT ALL + 7 + + 96 AS col2
----
103

query I rowsort
SELECT COALESCE ( 78, - ( 17 ), + 24 * + 1 * + 83, ( 64 ) - + - 71 * + 5 ) + 6
----
84

query I rowsort
SELECT 67 + + 16
----
83

query I rowsort
SELECT - 14 + 96 AS col1
----
82

query I rowsort
SELECT ALL - 57 AS col1
----
-57

query I rowsort
SELECT - - 1 AS col0
----
1

query I rowsort
SELECT + CASE - - 23 WHEN + 21 THEN NULL ELSE + 13 * 89 + - 44 + + - 55 / + 53 * + 6 * - 85 * 80 + + 41 + + 75 * CASE + - 43 WHEN + 63 THEN NULL WHEN - 46 THEN + + 92 WHEN + 64 THEN NULL ELSE NULL END - - 68 END
----
NULL

query I rowsort
SELECT 90 + 48 AS col1
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT COUNT( * ) col2, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-5489
SELECT COUNT ( * ) col2, 93
----
1
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 67 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT - + COUNT( DISTINCT 4 ) - + 53
----
-54

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT - + COUNT ( DISTINCT 4 ) - + 53
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-5493
SELECT + 77 AS col2, - 14 DIV + ( - - NULLIF ( ( + 80 ), + 59 ) ) + 17 AS col1
----
77
17

skipif mysql # not compatible
query II rowsort label-5493
SELECT + 77 AS col2, - 14 / + ( - - NULLIF ( ( + 80 ), + 59 ) ) + 17 AS col1
----
77
17

onlyif mysql # DIV for integer division: 
query II rowsort label-5494
SELECT ALL + ( + 48 ) DIV + 45 col1, + 18 * - - 67 AS col0
----
1
1206

skipif mysql # not compatible
query II rowsort label-5494
SELECT ALL + ( + 48 ) / + 45 col1, + 18 * - - 67 AS col0
----
1
1206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT CAST( - - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-5495
SELECT CAST ( - - 83 AS INTEGER )
----
83

query I rowsort
SELECT + + 65 col1
----
65

query I rowsort
SELECT ALL - 81 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT 36 - + COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-5498
SELECT 36 - + COUNT ( * ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT 42 * - + COALESCE ( - NULLIF ( + - 22, 17 ), - CASE + - 50 WHEN - - 3 THEN NULL ELSE 13 END - COALESCE ( + COUNT( + - 2 ), - + 84, + 43 * 4 * 23 + - 82 * - 44 * - ( - COALESCE ( + ( - - 15 ), 83 - + NULLIF ( ( + 34 ), + 5 + + SUM( 89 ) ), + 22 + 61, + MIN( DISTINCT - 23 ) ) ) + + 89 * 9 ), 99 ) AS col0
----
-924

skipif mysql # not compatible
query I rowsort label-5499
SELECT 42 * - + COALESCE ( - NULLIF ( + - 22, 17 ), - CASE + - 50 WHEN - - 3 THEN NULL ELSE 13 END - COALESCE ( + COUNT ( + - 2 ), - + 84, + 43 * 4 * 23 + - 82 * - 44 * - ( - COALESCE ( + ( - - 15 ), 83 - + NULLIF ( ( + 34 ), + 5 + + SUM ( 89 ) ), + 22 + 61, + MIN ( DISTINCT - 23 ) ) ) + + 89 * 9 ), 99 ) AS col0
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT 35 + 15 - + 33 * - + 37 + 47 * + 21 * - - 13 * CAST( + 83 AS SIGNED ) col1
----
1066244

skipif mysql # not compatible
query I rowsort label-5500
SELECT 35 + 15 - + 33 * - + 37 + 47 * + 21 * - - 13 * CAST ( + 83 AS INTEGER ) col1
----
1066244

query I rowsort
SELECT 71 - - - 40 + - 9 - - - 15
----
7

query I rowsort
SELECT DISTINCT 5 + - 34
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL 64 + - + 1 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL 64 + - + 1 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 58 col0
----
58

query I rowsort
SELECT 84 col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT DISTINCT - 70 + + 75 DIV 17 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT - 70 + + 75 / 17 AS col1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5507
SELECT ALL 45 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL 45 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + COUNT( 27 ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-5508
SELECT + COUNT ( 27 ) + + 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT NULLIF ( - 24, + MAX( DISTINCT 87 ) * + COALESCE ( + CASE + - 2 WHEN ( + 23 ) / - 92 THEN NULL WHEN - - CASE + + 96 WHEN - 26 THEN + COUNT( * ) / + 66 WHEN + COALESCE ( + - COUNT( + - 98 ), + 66 ) THEN 93 * 20 END / + COUNT( * ) THEN + ( - + 18 ) * 81 + + 74 END, - 52, 10 ) + + 63 )
----
-24

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT NULLIF ( - 24, + MAX ( DISTINCT 87 ) * + COALESCE ( + CASE + - 2 WHEN ( + 23 ) / - 92 THEN NULL WHEN - - CASE + + 96 WHEN - 26 THEN + COUNT ( * ) / + 66 WHEN + COALESCE ( + - COUNT ( + - 98 ), + 66 ) THEN 93 * 20 END / + COUNT ( * ) THEN + ( - + 18 ) * 81 + + 74 END, - 52, 10 ) + + 63 )
----
-24

query I rowsort
SELECT ALL - 26 col0
----
-26

query I rowsort
SELECT 85 * + 30
----
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT + COALESCE ( + 59, - AVG ( - 39 ) ) DIV - 51 - - + 43 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5512
SELECT + COALESCE ( + 59, - AVG ( - 39 ) ) / - 51 - - + 43 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT DISTINCT - 84 DIV - + 98 + 27 + 89
----
116

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - 84 / - + 98 + 27 + 89
----
116

query I rowsort
SELECT 62 + + 7 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL - + 35 * + + MIN( + ( 16 ) ) - - + 43 AS col1
----
-517

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - + 35 * + + MIN ( + ( 16 ) ) - - + 43 AS col1
----
-517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT + 78 * - 46 * NULLIF ( CAST( NULL AS SIGNED ), COALESCE ( 22, - 26, ( - + COUNT( * ) ) + - 57, - 89 ) * - ( - 23 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT + 78 * - 46 * NULLIF ( CAST ( NULL AS INTEGER ), COALESCE ( 22, - 26, ( - + COUNT ( * ) ) + - 57, - 89 ) * - ( - 23 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT ALL + 40 DIV 31 + + 87 * + + 7 * - 11 * + + 93
----
-623006

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + 40 / 31 + + 87 * + + 7 * - 11 * + + 93
----
-623006

query I rowsort
SELECT DISTINCT + 67 AS col1
----
67

query I rowsort
SELECT DISTINCT 56 * - 86 - - 41 + ( + 12 ) * - - 7 AS col1
----
-4691

query I rowsort
SELECT ALL + - 22 * 54 * - 40 AS col2
----
47520

query I rowsort
SELECT - ( + + 4 ) - 3 AS col0
----
-7

query I rowsort
SELECT DISTINCT - COALESCE ( + 67, 86, 90 + + COALESCE ( - 22, + + 48 ) * + 32 * - + ( 49 ) * - 83 + 30 * 32 + 10 ) * 3 + - - 82 AS col1
----
-119

query I rowsort
SELECT + 58 * + 64 + - 95
----
3617

query I rowsort
SELECT + + 77
----
77

query I rowsort
SELECT + + 8
----
8

query I rowsort
SELECT ALL + 97 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT + 85 * + 20 * - - 97 * COUNT( * ) + - 79
----
164821

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + 85 * + 20 * - - 97 * COUNT ( * ) + - 79
----
164821

query I rowsort
SELECT ALL 62 * - 80 * + 81 + 81
----
-401679

query I rowsort
SELECT - 12 + - 27
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5530
SELECT ALL - CAST( 52 AS SIGNED ) * + - 14 + 40 + 90 AS col1, - COUNT( ALL 62 ) AS col1
----
858
-1

skipif mysql # not compatible
query II rowsort label-5530
SELECT ALL - CAST ( 52 AS INTEGER ) * + - 14 + 40 + 90 AS col1, - COUNT ( ALL 62 ) AS col1
----
858
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT + CASE - - 79 WHEN + - ( + 99 ) - - 22 + + + 89 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + CASE - - 79 WHEN + - ( + 99 ) - - 22 + + + 89 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT COALESCE ( 80, + 21 + CAST( NULL AS SIGNED ) + 91 )
----
80

skipif mysql # not compatible
query I rowsort label-5532
SELECT COALESCE ( 80, + 21 + CAST ( NULL AS INTEGER ) + 91 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL 6 * - 13 * - 94 + + SUM( DISTINCT - - 28 ) + - 6
----
7354

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL 6 * - 13 * - 94 + + SUM ( DISTINCT - - 28 ) + - 6
----
7354

query I rowsort
SELECT NULLIF ( + - 73, + 58 ) AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT + 30 DIV COUNT( * ) + - + NULLIF ( 9, + 90 )
----
21

skipif mysql # not compatible
query I rowsort label-5535
SELECT + 30 / COUNT ( * ) + - + NULLIF ( 9, + 90 )
----
21

query I rowsort
SELECT - 70 * + ( 17 ) * + 14
----
-16660

query I rowsort
SELECT DISTINCT + 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - SUM( ALL ( + + 43 ) ) + + + 6 * 96 AS col1
----
533

skipif mysql # not compatible
query I rowsort label-5538
SELECT - SUM ( ALL ( + + 43 ) ) + + + 6 * 96 AS col1
----
533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL 80 * + - CAST( NULL AS SIGNED ) - - + MIN( DISTINCT - - 11 ) / + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL 80 * + - CAST ( NULL AS INTEGER ) - - + MIN ( DISTINCT - - 11 ) / + - 43
----
NULL

query II rowsort
SELECT + 13 AS col0, ( 13 ) AS col2
----
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5541
SELECT DISTINCT 51 DIV - 96 * - MIN( - + 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT 51 / - 96 * - MIN ( - + 63 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 19 AS col0
----
19

query I rowsort
SELECT ALL + ( - + 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL + 71 * + COALESCE ( - 29, + 74 ) * 61 - ( + COUNT( * ) ) + - COUNT( * )
----
-125601

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + 71 * + COALESCE ( - 29, + 74 ) * 61 - ( + COUNT ( * ) ) + - COUNT ( * )
----
-125601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT + 92 DIV - + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 92 / - + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5546
SELECT ALL - COUNT( * ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - COUNT ( * ) / - 45
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT + - 85 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT + - 85 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT + 73 * + 8 - + 26 + 45 * + 59 - + CASE AVG ( + 98 ) WHEN + 17 * - 0 + + 74 THEN - 50 ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT + 73 * + 8 - + 26 + 45 * + 59 - + CASE AVG ( + 98 ) WHEN + 17 * - 0 + + 74 THEN - 50 ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + + COUNT( * ) + + 26 - ( + 82 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5549
SELECT + + COUNT ( * ) + + 26 - ( + 82 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL + CASE - - 87 WHEN + 73 THEN 18 + + 39 * - - MIN( ALL 52 ) / - + 57 * 68 / 47 WHEN - - 15 + + 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL + CASE - - 87 WHEN + 73 THEN 18 + + 39 * - - MIN ( ALL 52 ) / - + 57 * 68 / 47 WHEN - - 15 + + 50 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 56 - - 75 * + 86
----
6506

query I rowsort
SELECT - - 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT - - COUNT( * ) + 8 * - 98 * 18
----
-14111

skipif mysql # not compatible
query I rowsort label-5553
SELECT - - COUNT ( * ) + 8 * - 98 * 18
----
-14111

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT + + 61 * + 47 * + COUNT( * ), + 97 AS col2
----
2867
97

skipif mysql # not compatible
query II rowsort label-5554
SELECT + + 61 * + 47 * + COUNT ( * ), + 97 AS col2
----
2867
97

query I rowsort
SELECT ALL + ( + 46 ) * - 86 AS col1
----
-3956

query II rowsort
SELECT - 39 AS col2, + 98 * + + 61
----
-39
5978

query I rowsort
SELECT DISTINCT + 11 * + 1 AS col2
----
11

query I rowsort
SELECT DISTINCT 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5559
SELECT ALL 45 * + + MIN( + 55 ) AS col0, + 22 * 83 + - + 89 + 73 AS col2
----
2475
1810

skipif mysql # not compatible
query II rowsort label-5559
SELECT ALL 45 * + + MIN ( + 55 ) AS col0, + 22 * 83 + - + 89 + 73 AS col2
----
2475
1810

query II rowsort
SELECT DISTINCT 51, - 96 AS col2
----
51
-96

query I rowsort
SELECT DISTINCT - 20 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-5562
SELECT - 34 + - - 7 * + 19 AS col0, 90 DIV - 42
----
99
-2

skipif mysql # not compatible
query II rowsort label-5562
SELECT - 34 + - - 7 * + 19 AS col0, 90 / - 42
----
99
-2

query I rowsort
SELECT ALL - 79 + - 87 + 32
----
-134

query II rowsort
SELECT DISTINCT 75 AS col2, 49 * 43
----
75
2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT + COUNT( * ) * - 30 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5565
SELECT + COUNT ( * ) * - 30 / + 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT + CAST( 32 AS SIGNED ) col1
----
32

skipif mysql # not compatible
query I rowsort label-5566
SELECT + CAST ( 32 AS INTEGER ) col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT CAST( 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-5567
SELECT CAST ( 53 AS INTEGER )
----
53

query I rowsort
SELECT - 6 * 13
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5569
SELECT + COUNT( 26 ) * COUNT( * ) * - + COUNT( * ) DIV + CASE + COALESCE ( COALESCE ( + + 65, - 55 * - COUNT( * ) + - ( + + ( + CASE - - 31 WHEN - + 94 THEN NULL WHEN + 13 THEN - 64 END ) ) * - - 67 + + - ( - 37 ) ), COUNT( * ), 93 * 10 * + SUM( ALL + + 69 ) + - - 70 ) WHEN + 64 - 77 THEN NULL WHEN 14 THEN NULL WHEN + 39 + CAST( NULL AS SIGNED ) * + COUNT( * ) THEN NULL ELSE + 72 END
----
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT + COUNT ( 26 ) * COUNT ( * ) * - + COUNT ( * ) / + CASE + COALESCE ( COALESCE ( + + 65, - 55 * - COUNT ( * ) + - ( + + ( + CASE - - 31 WHEN - + 94 THEN NULL WHEN + 13 THEN - 64 END ) ) * - - 67 + + - ( - 37 ) ), COUNT ( * ), 93 * 10 * + SUM ( ALL + + 69 ) + - - 70 ) WHEN + 64 - 77 THEN NULL WHEN 14 THEN NULL WHEN + 39 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN NULL ELSE + 72 END
----
0

query I rowsort
SELECT - ( 1 ) * + ( - - 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5571
SELECT CAST( + - COUNT( * ) AS SIGNED ), + 72 AS col1
----
-1
72

skipif mysql # not compatible
query II rowsort label-5571
SELECT CAST ( + - COUNT ( * ) AS INTEGER ), + 72 AS col1
----
-1
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT - CAST( NULL AS SIGNED ) + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT - CAST ( NULL AS INTEGER ) + 84
----
NULL

query II rowsort
SELECT + 43 col1, ( - 9 ) AS col0
----
43
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5574
SELECT ALL COUNT( ALL + 1 ) DIV - + COUNT( * ) + + 12 col0
----
11

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL COUNT ( ALL + 1 ) / - + COUNT ( * ) + + 12 col0
----
11

query I rowsort
SELECT ALL + 22 AS col0
----
22

query II rowsort
SELECT + ( + - 64 ) - - + 7 * + 90, + 80 AS col1
----
566
80

query I rowsort
SELECT ALL + 32 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT DISTINCT 70 * + 45 * 28 DIV - 6
----
-14700

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT 70 * + 45 * 28 / - 6
----
-14700

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT + 8 AS col0, 35 * 29 * - + CASE - - COUNT( * ) WHEN ( + 27 ) * + 63 THEN NULL WHEN - - MAX( DISTINCT 61 ) THEN NULL ELSE COUNT( * ) + 67 * - 47 + + 26 END * - 88
----
8
-278857040

skipif mysql # not compatible
query II rowsort label-5579
SELECT + 8 AS col0, 35 * 29 * - + CASE - - COUNT ( * ) WHEN ( + 27 ) * + 63 THEN NULL WHEN - - MAX ( DISTINCT 61 ) THEN NULL ELSE COUNT ( * ) + 67 * - 47 + + 26 END * - 88
----
8
-278857040

query I rowsort
SELECT - 16 * 64 AS col0
----
-1024

query I rowsort
SELECT + 66 AS col1
----
66

query I rowsort
SELECT ( + 66 )
----
66

query II rowsort
SELECT DISTINCT + NULLIF ( 75, + AVG ( - 18 ) ) AS col2, - 69 AS col1
----
75
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL - SUM( ALL - 15 ) * - + MAX( - + 30 )
----
450

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - SUM ( ALL - 15 ) * - + MAX ( - + 30 )
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT - 80 * 51 DIV + 23
----
-177

skipif mysql # not compatible
query I rowsort label-5585
SELECT - 80 * 51 / + 23
----
-177

query I rowsort
SELECT - 86 * + 73 AS col0
----
-6278

query I rowsort
SELECT - - 81 - + 4 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + + NULLIF ( 10, + + MAX( DISTINCT + 12 ) - + + 9 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-5589
SELECT + + NULLIF ( 10, + + MAX ( DISTINCT + 12 ) - + + 9 ) col1
----
10

onlyif mysql # aggregate syntax: 
query III rowsort label-5590
SELECT ALL + - 50 AS col0, 41 * MAX( 63 ) AS col1, - CASE - 81 WHEN - 53 * - 44 THEN NULL WHEN - 6 THEN - - 56 END
----
-50
2583
NULL

skipif mysql # not compatible
query III rowsort label-5590
SELECT ALL + - 50 AS col0, 41 * MAX ( 63 ) AS col1, - CASE - 81 WHEN - 53 * - 44 THEN NULL WHEN - 6 THEN - - 56 END
----
-50
2583
NULL

query I rowsort
SELECT + - 53
----
-53

query I rowsort
SELECT ALL 33 col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT - COALESCE ( - - COALESCE ( + 14, - 23 ), + 20 DIV - 57, + 57, - 3 * + 24 + - - 61 ) * + + COUNT( * ) * - 3 * - 61 AS col2
----
-2562

skipif mysql # not compatible
query I rowsort label-5593
SELECT - COALESCE ( - - COALESCE ( + 14, - 23 ), + 20 / - 57, + 57, - 3 * + 24 + - - 61 ) * + + COUNT ( * ) * - 3 * - 61 AS col2
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT - SUM( ALL 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - SUM ( ALL 99 ) AS col0
----
-99

query I rowsort
SELECT DISTINCT - + 1 * + 54 * 66 AS col0
----
-3564

query I rowsort
SELECT DISTINCT + + 88 + - - 81
----
169

query I rowsort
SELECT DISTINCT - 2 * + 96
----
-192

query II rowsort
SELECT - + 68 AS col0, 40 col1
----
-68
40

query I rowsort
SELECT ALL - 32 + + 43
----
11

query I rowsort
SELECT 1 - - 57 AS col2
----
58

query I rowsort
SELECT - COALESCE ( + 81, 57 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - 49 + + 98 * - - COALESCE ( 28, - MAX( ALL + 8 ) ) AS col0
----
2695

skipif mysql # not compatible
query I rowsort label-5602
SELECT - 49 + + 98 * - - COALESCE ( 28, - MAX ( ALL + 8 ) ) AS col0
----
2695

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT 86 AS col0, - 38 + + COUNT( - 29 ) AS col1
----
86
-37

skipif mysql # not compatible
query II rowsort label-5603
SELECT 86 AS col0, - 38 + + COUNT ( - 29 ) AS col1
----
86
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-5604
SELECT ALL 91 AS col2, 61 * + 29 - + 0 + 83 * - ( 82 ) * + 39 + - - 54 DIV + 56
----
91
-263665

skipif mysql # not compatible
query II rowsort label-5604
SELECT ALL 91 AS col2, 61 * + 29 - + 0 + 83 * - ( 82 ) * + 39 + - - 54 / + 56
----
91
-263665

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT 94 + + - 84 + + - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5605
SELECT 94 + + - 84 + + - COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL + 97 + - 76 AS col2
----
21

query I rowsort
SELECT ALL 2 + 33 * 64
----
2114

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT + MIN( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT + MIN ( ALL 26 )
----
26

query I rowsort
SELECT 52 * - 49 * + CASE + + 49 WHEN 41 THEN NULL ELSE + + 83 END AS col1
----
-211484

query I rowsort
SELECT ALL 76 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT 53 + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT 53 + + COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT 36 + 39 * + 56 - COALESCE ( NULLIF ( 86, - 44 ), + 41 * + - ( + + 95 ) * + - COUNT( * ) * + ( - 11 ) * COUNT( * ) ) - 8
----
2126

skipif mysql # not compatible
query I rowsort label-5612
SELECT 36 + 39 * + 56 - COALESCE ( NULLIF ( 86, - 44 ), + 41 * + - ( + + 95 ) * + - COUNT ( * ) * + ( - 11 ) * COUNT ( * ) ) - 8
----
2126

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT 71 + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5613
SELECT 71 + + COUNT ( * )
----
72

query I rowsort
SELECT 42 * - + 24 AS col1
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT CAST( - SUM( 56 ) AS SIGNED ) + - - 3
----
-53

skipif mysql # not compatible
query I rowsort label-5615
SELECT CAST ( - SUM ( 56 ) AS INTEGER ) + - - 3
----
-53

query I rowsort
SELECT + 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT COUNT( * ) * + 50 + + + 58 + 17 * - + 34 + - COUNT( * )
----
-471

skipif mysql # not compatible
query I rowsort label-5617
SELECT COUNT ( * ) * + 50 + + + 58 + 17 * - + 34 + - COUNT ( * )
----
-471

query I rowsort
SELECT 96 * + 80 * + ( + 85 )
----
652800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5619
SELECT + 22 DIV + 99 + - + NULLIF ( - 35, 60 DIV + - 34 * + CAST( NULL AS SIGNED ) - + + 32 + + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-5619
SELECT + 22 / + 99 + - + NULLIF ( - 35, 60 / + - 34 * + CAST ( NULL AS INTEGER ) - + + 32 + + COUNT ( * ) )
----
35

query II rowsort
SELECT ALL 29 - - 99 col2, - 30 + + 37 AS col2
----
128
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT COUNT( ALL - 58 ) + + 12 col1
----
13

skipif mysql # not compatible
query I rowsort label-5621
SELECT COUNT ( ALL - 58 ) + + 12 col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT ALL + 20 - + COUNT( * ) col0, + 56
----
19
56

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL + 20 - + COUNT ( * ) col0, + 56
----
19
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT ALL 22 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL 22 / 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT 40 * - 55 * ( COUNT( * ) )
----
-2200

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT 40 * - 55 * ( COUNT ( * ) )
----
-2200

query II rowsort
SELECT ALL 75 * - 16, 27 * 26 AS col2
----
-1200
702

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL - - NULLIF ( - 9, + 48 * - MIN( ALL 5 ) * - 56 + ( 63 ) + + - 73 )
----
-9

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - - NULLIF ( - 9, + 48 * - MIN ( ALL 5 ) * - 56 + ( 63 ) + + - 73 )
----
-9

query I rowsort
SELECT 27 col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5628
SELECT 67 + + NULLIF ( + + 4, - 94 * + CAST( ( + 88 ) AS SIGNED ) * COALESCE ( + 41, 6 ) - + + COALESCE ( + 87, 94 ) + - 28 * + 78 * - + 69 * - - 45 * COUNT( * ) + + 96 ) + 76 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-5628
SELECT 67 + + NULLIF ( + + 4, - 94 * + CAST ( ( + 88 ) AS INTEGER ) * COALESCE ( + 41, 6 ) - + + COALESCE ( + 87, 94 ) + - 28 * + 78 * - + 69 * - - 45 * COUNT ( * ) + + 96 ) + 76 AS col1
----
147

query I rowsort
SELECT DISTINCT - + 56 AS col0
----
-56

query I rowsort
SELECT ALL - 70 AS col0
----
-70

query I rowsort
SELECT + 31 * 61 * - + 94 AS col1
----
-177754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5632
SELECT DISTINCT + 36 + + + 23 - - 25 DIV + COALESCE ( - + 75, + 93 * + 5 * CAST( - 54 AS SIGNED ) - + - ( + + COUNT( * ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT + 36 + + + 23 - - 25 / + COALESCE ( - + 75, + 93 * + 5 * CAST ( - 54 AS INTEGER ) - + - ( + + COUNT ( * ) ) )
----
59

query I rowsort
SELECT + ( ( + - 98 ) ) * + - 91 col2
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT - + 98 + + COALESCE ( - + 80, - - 5 * 64 + + 17 + + + CASE 75 WHEN - + COUNT( * ) THEN + 94 + + 66 WHEN COUNT( * ) THEN NULL END + - 77 + - ( 80 ) * + - NULLIF ( - 13, - 72 ) )
----
-178

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT - + 98 + + COALESCE ( - + 80, - - 5 * 64 + + 17 + + + CASE 75 WHEN - + COUNT ( * ) THEN + 94 + + 66 WHEN COUNT ( * ) THEN NULL END + - 77 + - ( 80 ) * + - NULLIF ( - 13, - 72 ) )
----
-178

query I rowsort
SELECT - - 39
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5636
SELECT - COUNT( - 58 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT - COUNT ( - 58 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT - CASE + + 92 WHEN + 14 + - 22 THEN + 50 - + + 27 - + - COALESCE ( + 12, - ( + + 2 ), + - 69 - 10, - NULLIF ( - COUNT( * ), + - 73 + - 53 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - CASE + + 92 WHEN + 14 + - 22 THEN + 50 - + + 27 - + - COALESCE ( + 12, - ( + + 2 ), + - 69 - 10, - NULLIF ( - COUNT ( * ), + - 73 + - 53 ) ) END
----
NULL

query I rowsort
SELECT ALL + + 23 + - - 95 AS col0
----
118

query I rowsort
SELECT - 33 + 47 + 65 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5640
SELECT 60 + + NULLIF ( + 43, - COUNT( * ) ) - 51 AS col1, 70 DIV 10 AS col0
----
52
7

skipif mysql # not compatible
query II rowsort label-5640
SELECT 60 + + NULLIF ( + 43, - COUNT ( * ) ) - 51 AS col1, 70 / 10 AS col0
----
52
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT MIN( ALL + + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5641
SELECT MIN ( ALL + + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - - 11 + - - COUNT( * ) + + - 22
----
-10

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - - 11 + - - COUNT ( * ) + + - 22
----
-10

query I rowsort
SELECT ALL 97 col1
----
97

query I rowsort
SELECT ALL + 51 + - 16
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT + MIN( DISTINCT + + ( + ( - 36 ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5645
SELECT + MIN ( DISTINCT + + ( + ( - 36 ) ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT + - 81 + ( - MAX( - + 67 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + - 81 + ( - MAX ( - + 67 ) )
----
-14

query I rowsort
SELECT ALL + 51 - + 90 AS col2
----
-39

query I rowsort
SELECT 42 * - - 3 AS col0
----
126

query I rowsort
SELECT 51 * + 38
----
1938

query I rowsort
SELECT 87 * - - 74 col0
----
6438

onlyif mysql # aggregate syntax: 
query II rowsort label-5651
SELECT DISTINCT COUNT( * ), 47 + + 72 col1
----
1
119

skipif mysql # not compatible
query II rowsort label-5651
SELECT DISTINCT COUNT ( * ), 47 + + 72 col1
----
1
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL MAX( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL MAX ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT DISTINCT 0 - + COUNT( * ) - - MIN( ALL - 70 ), + 37 + + - 48 AS col0
----
-71
-11

skipif mysql # not compatible
query II rowsort label-5653
SELECT DISTINCT 0 - + COUNT ( * ) - - MIN ( ALL - 70 ), + 37 + + - 48 AS col0
----
-71
-11

query I rowsort
SELECT ALL 35 * + 49 AS col1
----
1715

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT - 79 * + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - 79 * + + COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5656
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, MIN( - 21 ) + + 29 AS col2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5656
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, MIN ( - 21 ) + + 29 AS col2
----
NULL
8

query II rowsort
SELECT + 99 AS col2, 32
----
99
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL + 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + 61 * - COUNT ( * )
----
-61

query II rowsort
SELECT + 53 col2, - 28 AS col2
----
53
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5660
SELECT 67 * 59 * 89 AS col0, CAST( NULL AS SIGNED ) * + 89 + + NULLIF ( - - 43, + + 11 ) * + 35
----
351817
NULL

skipif mysql # not compatible
query II rowsort label-5660
SELECT 67 * 59 * 89 AS col0, CAST ( NULL AS INTEGER ) * + 89 + + NULLIF ( - - 43, + + 11 ) * + 35
----
351817
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT CASE WHEN - COALESCE ( + 1, 76 ) NOT BETWEEN + + 67 + 79 AND NULL THEN NULL ELSE - CAST( - 11 AS SIGNED ) - - + 90 END * + 76 + ( + 26 ) + - 61 + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT CASE WHEN - COALESCE ( + 1, 76 ) NOT BETWEEN + + 67 + 79 AND NULL THEN NULL ELSE - CAST ( - 11 AS INTEGER ) - - + 90 END * + 76 + ( + 26 ) + - 61 + 21 AS col2
----
NULL

query II rowsort
SELECT ALL - 41 AS col0, - 95 AS col1
----
-41
-95

query I rowsort
SELECT DISTINCT - 47 AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5664
SELECT COALESCE ( 85, - - 40 * - 11, + COUNT( - + ( - + 37 ) ) * 91 ) DIV COUNT( * ) AS col2, - COUNT( * )
----
85
-1

skipif mysql # not compatible
query II rowsort label-5664
SELECT COALESCE ( 85, - - 40 * - 11, + COUNT ( - + ( - + 37 ) ) * 91 ) / COUNT ( * ) AS col2, - COUNT ( * )
----
85
-1

query I rowsort
SELECT ALL - 57 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5666
SELECT 95 - + ( - CAST( - + 50 AS SIGNED ) )
----
45

skipif mysql # not compatible
query I rowsort label-5666
SELECT 95 - + ( - CAST ( - + 50 AS INTEGER ) )
----
45

query I rowsort
SELECT DISTINCT - ( + 4 )
----
-4

query I rowsort
SELECT ALL + 68 * + 24
----
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT + CAST( + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5669
SELECT + CAST ( + 77 AS INTEGER ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5670
SELECT ALL - + NULLIF ( - COALESCE ( 26, - COALESCE ( COUNT( * ), - 72 + - + MIN( 58 ) DIV - + 58 ) * + CAST( 52 AS SIGNED ) * - 37 DIV - 90 ), - + 48 + COALESCE ( 97, - 27 ) + + + COALESCE ( - 96, + 77 * 0 ) ) * COALESCE ( - CASE CAST( NULL AS SIGNED ) WHEN + 12 THEN NULL ELSE - 25 END, - + 29 ) + MAX( ALL 64 ) * 7 + + 46
----
1144

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - + NULLIF ( - COALESCE ( 26, - COALESCE ( COUNT ( * ), - 72 + - + MIN ( 58 ) / - + 58 ) * + CAST ( 52 AS INTEGER ) * - 37 / - 90 ), - + 48 + COALESCE ( 97, - 27 ) + + + COALESCE ( - 96, + 77 * 0 ) ) * COALESCE ( - CASE CAST ( NULL AS INTEGER ) WHEN + 12 THEN NULL ELSE - 25 END, - + 29 ) + MAX ( ALL 64 ) * 7 + + 46
----
1144

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - 85 ) * 58 * - NULLIF ( ( + 39 ), + 39 ) + + - 81 AS col2
----
NULL

query I rowsort
SELECT ALL 12 * - 32
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT NULLIF ( COUNT( * ), 23 * - 42 + + 72 + - COUNT( * ) + 21 * - SUM( + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5673
SELECT NULLIF ( COUNT ( * ), 23 * - 42 + + 72 + - COUNT ( * ) + 21 * - SUM ( + 11 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5674
SELECT ALL NULLIF ( + COUNT( + 55 ), + 69 + + CAST( NULL AS SIGNED ) ) * - 94 col1, - 85 * + 41
----
-94
-3485

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL NULLIF ( + COUNT ( + 55 ), + 69 + + CAST ( NULL AS INTEGER ) ) * - 94 col1, - 85 * + 41
----
-94
-3485

query I rowsort
SELECT + + 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL - COUNT( * ) + + - COUNT( * ) * 41 + 91 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) * 41 + 91 AS col1
----
49

query I rowsort
SELECT + 30 AS col0
----
30

query I rowsort
SELECT - COALESCE ( - + 40, - - 33 * 72 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5679
SELECT ALL + + 48, - 78 * 98 * COUNT( * ) col2
----
48
-7644

skipif mysql # not compatible
query II rowsort label-5679
SELECT ALL + + 48, - 78 * 98 * COUNT ( * ) col2
----
48
-7644

query I rowsort
SELECT + 22 + - 70
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5681
SELECT DISTINCT + 59 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-5681
SELECT DISTINCT + 59 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
59
NULL

query II rowsort
SELECT DISTINCT + 50 + + 71 * - 37 AS col0, 95 - + - 66
----
-2577
161

query I rowsort
SELECT DISTINCT + 22 - 20 AS col1
----
2

query I rowsort
SELECT - - 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT - 67 * + - NULLIF ( - 99, - 60 + - COUNT( * ) )
----
-6633

skipif mysql # not compatible
query I rowsort label-5685
SELECT - 67 * + - NULLIF ( - 99, - 60 + - COUNT ( * ) )
----
-6633

query II rowsort
SELECT + NULLIF ( 62, + + 42 ) + 3 + - 9 + - 28 AS col1, 8
----
28
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT - + COUNT( * ) AS col2, 54 AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-5687
SELECT - + COUNT ( * ) AS col2, 54 AS col0
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL + MAX( - COALESCE ( + 24, + 88 ) ) * 96
----
-2304

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + MAX ( - COALESCE ( + 24, + 88 ) ) * 96
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + MAX( 81 ) * 19
----
1539

skipif mysql # not compatible
query I rowsort label-5689
SELECT + MAX ( 81 ) * 19
----
1539

query II rowsort
SELECT ALL + 56 * + 15 AS col1, 18
----
840
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) + - - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + - - 12 col2
----
NULL

query I rowsort
SELECT - ( - + 81 )
----
81

query I rowsort
SELECT ALL NULLIF ( + 73, + - 57 ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5694
SELECT - 47 + - MIN( - 11 ) * + CAST( - - 13 AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5694
SELECT - 47 + - MIN ( - 11 ) * + CAST ( - - 13 AS INTEGER ) col2
----
96

query I rowsort
SELECT ALL CASE - 76 WHEN 27 THEN - 74 WHEN + 21 * - 68 + 53 THEN NULL ELSE + 99 END AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT - COUNT( * ) + - 17 + 36
----
18

skipif mysql # not compatible
query I rowsort label-5696
SELECT - COUNT ( * ) + - 17 + 36
----
18

query I rowsort
SELECT ALL - 93 * - + 57 AS col1
----
5301

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL + CASE 81 WHEN - 47 + + - 18 THEN 5 WHEN + 92 THEN COUNT( * ) WHEN - 43 THEN + 15 + - 28 / - - 64 END / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + CASE 81 WHEN - 47 + + - 18 THEN 5 WHEN + 92 THEN COUNT ( * ) WHEN - 43 THEN + 15 + - 28 / - - 64 END / + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT ALL CASE 74 WHEN + 24 THEN - + 89 ELSE 83 - - + 51 + 39 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL CASE 74 WHEN + 24 THEN - + 89 ELSE 83 - - + 51 + 39 * - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 6 AS col0
----
6

query I rowsort
SELECT - 69 + + 64
----
-5

query I rowsort
SELECT - 46 + - 16
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT + SUM( DISTINCT + - 93 ) * ( 80 ) + + + 47 * + + 7
----
-7111

skipif mysql # not compatible
query I rowsort label-5703
SELECT + SUM ( DISTINCT + - 93 ) * ( 80 ) + + + 47 * + + 7
----
-7111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT ALL + COUNT( * ) * - CAST( - - 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL + COUNT ( * ) * - CAST ( - - 66 AS INTEGER ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT - 51 * - + ( - - 0 ) * 69 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 51 * - + ( - - 0 ) * 69 / 68 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT DISTINCT 19 DIV 13 + - - 12 * + 44 + + MAX( DISTINCT + 82 ) AS col0
----
611

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT 19 / 13 + - - 12 * + 44 + + MAX ( DISTINCT + 82 ) AS col0
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL + - COUNT( * ) * ( - + 39 ) - + - 67 * + 67 * + 5 * - - 88 * 4 + - 17 + 80 AS col2
----
7900742

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + - COUNT ( * ) * ( - + 39 ) - + - 67 * + 67 * + 5 * - - 88 * 4 + - 17 + 80 AS col2
----
7900742

query I rowsort
SELECT DISTINCT + + 39 * + 21 + + 89 AS col0
----
908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5709
SELECT - - COALESCE ( COALESCE ( 41, - COALESCE ( + COUNT( * ), + + 49 + - + 6 * 8 ) * - 76 * - COALESCE ( - + 53, + + ( + 35 ) ) DIV - COALESCE ( + + CASE - 76 WHEN + 1 THEN 72 ELSE ( - - 9 ) END, + - COUNT( * ) + - COUNT( DISTINCT CAST( + 13 AS SIGNED ) ) - - - 80 + 73 * 41 * + CAST( NULL AS SIGNED ) * - + 6 * + 97 + 30 ), MAX( DISTINCT 69 ) ), SUM( 62 ), - 60, - NULLIF ( 4, ( - 5 ) * 96 ) ) * - NULLIF ( 6, + 17 * 23 ) + 78
----
-168

skipif mysql # not compatible
query I rowsort label-5709
SELECT - - COALESCE ( COALESCE ( 41, - COALESCE ( + COUNT ( * ), + + 49 + - + 6 * 8 ) * - 76 * - COALESCE ( - + 53, + + ( + 35 ) ) / - COALESCE ( + + CASE - 76 WHEN + 1 THEN 72 ELSE ( - - 9 ) END, + - COUNT ( * ) + - COUNT ( DISTINCT CAST ( + 13 AS INTEGER ) ) - - - 80 + 73 * 41 * + CAST ( NULL AS INTEGER ) * - + 6 * + 97 + 30 ), MAX ( DISTINCT 69 ) ), SUM ( 62 ), - 60, - NULLIF ( 4, ( - 5 ) * 96 ) ) * - NULLIF ( 6, + 17 * 23 ) + 78
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT MAX( DISTINCT + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5710
SELECT MAX ( DISTINCT + 20 ) AS col1
----
20

query I rowsort
SELECT ALL + 5 * 82 * + 71 + - 25 + - 13
----
29072

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL - ( - 49 ) * + COALESCE ( - 74, - 12 + - COUNT( * ) ) + - 12
----
-3638

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - ( - 49 ) * + COALESCE ( - 74, - 12 + - COUNT ( * ) ) + - 12
----
-3638

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT COUNT( 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5713
SELECT COUNT ( 44 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT - - 65 + - 15 AS col2, COUNT( * ) AS col1
----
50
1

skipif mysql # not compatible
query II rowsort label-5714
SELECT - - 65 + - 15 AS col2, COUNT ( * ) AS col1
----
50
1

query I rowsort
SELECT + - 6 * - 51 * + 3 AS col1
----
918

query I rowsort
SELECT ALL + + 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT ALL + 95 DIV + - SUM( ALL + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + 95 / + - SUM ( ALL + 64 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL + - COUNT( + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL + - COUNT ( + 42 )
----
-1

query I rowsort
SELECT ALL + + 59
----
59

query I rowsort
SELECT DISTINCT - 62 * 5 * + 96 + - 32 * - 87 AS col1
----
-26976

query I rowsort
SELECT ALL + COALESCE ( - 7, - 47 ) * + 98 - - 72 - - + 51
----
-563

query I rowsort
SELECT + - 24 + 80
----
56

query I rowsort
SELECT - + 25 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT + + COALESCE ( + COUNT( * ), - 81 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT + + COALESCE ( + COUNT ( * ), - 81 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 74 + 45
----
-29

query I rowsort
SELECT - + 2
----
-2

query I rowsort
SELECT + - 5 * + 52
----
-260

query I rowsort
SELECT - 72 AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5729
SELECT SUM( ALL + - COALESCE ( - + 0, - 7 DIV + + 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT SUM ( ALL + - COALESCE ( - + 0, - 7 / + + 99 ) )
----
0

query I rowsort
SELECT + 6 - - 42 * + 19 AS col1
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT 71 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT 71 * - COUNT ( * )
----
-71

query I rowsort
SELECT + ( - + ( + 19 ) ) * - 50
----
950

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT ALL CASE + 89 WHEN - 17 THEN + + 82 * + ( - - 7 ) + COUNT( * ) - 99 WHEN 41 / + 36 THEN NULL END AS col0, MIN( 0 ) + + 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL CASE + 89 WHEN - 17 THEN + + 82 * + ( - - 7 ) + COUNT ( * ) - 99 WHEN 41 / + 36 THEN NULL END AS col0, MIN ( 0 ) + + 0 AS col1
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87
----
87

query I rowsort
SELECT ALL ( + - 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT ALL COUNT( * ), - COALESCE ( 41, - NULLIF ( + MIN( + 47 ), - COALESCE ( + 22, - COUNT( * ) / 50, - + 34 ) ), 22 ) AS col0
----
1
-41

skipif mysql # not compatible
query II rowsort label-5737
SELECT ALL COUNT ( * ), - COALESCE ( 41, - NULLIF ( + MIN ( + 47 ), - COALESCE ( + 22, - COUNT ( * ) / 50, - + 34 ) ), 22 ) AS col0
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL MAX( ALL + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL MAX ( ALL + 91 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT + ( 47 ) * 39 DIV 68 * + + 40 AS col2
----
1040

skipif mysql # not compatible
query I rowsort label-5739
SELECT + ( 47 ) * 39 / 68 * + + 40 AS col2
----
1040

query II rowsort
SELECT - 70 + + + 72 * 94 AS col0, 8 * 10 AS col2
----
6698
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT - CAST( - 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-5741
SELECT - CAST ( - 30 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT + NULLIF ( - - 63, 93 - - NULLIF ( + + 15, COUNT( * ) * - - 39 ) ) + + 63 + - 90
----
36

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + NULLIF ( - - 63, 93 - - NULLIF ( + + 15, COUNT ( * ) * - - 39 ) ) + + 63 + - 90
----
36

query I rowsort
SELECT ALL + 62 + + 73 * + - ( - - ( - 28 ) ) AS col1
----
2106

query II rowsort
SELECT - 52, - 1 * - 7 AS col2
----
-52
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT - 22 DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5745
SELECT - 22 / 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT + 34 * + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 34 * + COUNT ( * ) col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT ALL + 35 + 72 DIV 73 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + 35 + 72 / 73 AS col2
----
35

query I rowsort
SELECT DISTINCT 14 col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT 15 DIV - - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5749
SELECT 15 / - - 34 AS col1
----
0

query I rowsort
SELECT 21 * 37 * 1
----
777

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT ALL - 56, + COUNT( * ) * 16 AS col1
----
-56
16

skipif mysql # not compatible
query II rowsort label-5751
SELECT ALL - 56, + COUNT ( * ) * 16 AS col1
----
-56
16

query I rowsort
SELECT ALL + ( - 58 ) + + + 28
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT CAST( + 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5753
SELECT CAST ( + 92 AS INTEGER ) AS col2
----
92

query I rowsort
SELECT ( - 64 ) AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT DISTINCT - 74 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - 74 / + 93
----
0

query I rowsort
SELECT ALL + 16 + - + 70
----
-54

query I rowsort
SELECT + - 35
----
-35

query I rowsort
SELECT ALL - 24
----
-24

query I rowsort
SELECT DISTINCT - - 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT DISTINCT - CAST( 41 AS SIGNED ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT - CAST ( 41 AS INTEGER ) col0
----
-41

query I rowsort
SELECT DISTINCT + 33 * 34
----
1122

query I rowsort
SELECT + + 60
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT ALL - + 37 * 42 DIV + 58 + + 55
----
29

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - + 37 * 42 / + 58 + + 55
----
29

query I rowsort
SELECT + + 37
----
37

query I rowsort
SELECT DISTINCT - 73 * + 41 AS col0
----
-2993

query II rowsort
SELECT ALL - - 32 AS col0, ( + - 42 ) AS col1
----
32
-42

query I rowsort
SELECT ALL - ( + 45 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT 86 DIV 8
----
10

skipif mysql # not compatible
query I rowsort label-5768
SELECT 86 / 8
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT NULLIF ( 28, - ( + + COUNT( * ) ) + 64 + - - 70 ) + + 86 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT NULLIF ( 28, - ( + + COUNT ( * ) ) + 64 + - - 70 ) + + 86 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 50 AS col0, 66 AS col0
----
50
66

query II rowsort
SELECT ALL 25, 18 * - + 29 AS col0
----
25
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT 80 * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-5772
SELECT 80 * COUNT ( * )
----
80

query I rowsort
SELECT ALL 12 * + + 62 * - 29
----
-21576

query I rowsort
SELECT ALL 80 AS col0
----
80

query I rowsort
SELECT - 84 col2
----
-84

query II rowsort
SELECT 74, - 52 AS col1
----
74
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL 58 * NULLIF ( - COALESCE ( - + 56, + - COUNT( * ) ), + 90 ) AS col2
----
3248

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL 58 * NULLIF ( - COALESCE ( - + 56, + - COUNT ( * ) ), + 90 ) AS col2
----
3248

query I rowsort
SELECT 70 + - - 1 * - 45
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT COUNT( * ) * - SUM( 18 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-5779
SELECT COUNT ( * ) * - SUM ( 18 ) col2
----
-18

query I rowsort
SELECT ALL 76 + + + 21 + 98
----
195

query I rowsort
SELECT 76 + + 94 * - + 1 - + 24 AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT CAST( NULL AS SIGNED ) * - NULLIF ( - ( - 55 ), - 37 * AVG ( - 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT CAST ( NULL AS INTEGER ) * - NULLIF ( - ( - 55 ), - 37 * AVG ( - 13 ) )
----
NULL

query II rowsort
SELECT - 46 AS col2, + 4 * - 89 - + + 66 + + + 25
----
-46
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT MAX( - 59 ) + - 85 * - 60 + - - 75
----
5116

skipif mysql # not compatible
query I rowsort label-5784
SELECT MAX ( - 59 ) + - 85 * - 60 + - - 75
----
5116

query I rowsort
SELECT ALL 3 AS col0
----
3

query I rowsort
SELECT 5 + - 59
----
-54

query I rowsort
SELECT ALL 16 + - + 78 AS col0
----
-62

query II rowsort
SELECT DISTINCT 56, ( - 27 ) AS col1
----
56
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT ALL + CAST( NULL AS SIGNED ) + + - ( + 50 ) + COUNT( * ) * + + MAX( ALL 82 ) + 93 + - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL + CAST ( NULL AS INTEGER ) + + - ( + 50 ) + COUNT ( * ) * + + MAX ( ALL 82 ) + 93 + - 27 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + + 7, 19 ) + - 48 col0
----
-41

query II rowsort
SELECT ALL 14 AS col1, ( 1 ) + + - 87 AS col1
----
14
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT 95 + COALESCE ( + COUNT( * ), + 66 ) * - 90 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5792
SELECT 95 + COALESCE ( + COUNT ( * ), + 66 ) * - 90 AS col2
----
5

query I rowsort
SELECT 30 + + 49 - + + 37
----
42

query II rowsort
SELECT - 18, + 96 * ( - 39 ) AS col0
----
-18
-3744

query I rowsort
SELECT 40 + 87 * - 72
----
-6224

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL - COALESCE ( - 55, 66, + COUNT( * ) * MAX( DISTINCT - 58 ) ) + - + 47 - 83 * MIN( DISTINCT + + 93 ) + + - 75 + - 55 + - - 16
----
-7825

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - COALESCE ( - 55, 66, + COUNT ( * ) * MAX ( DISTINCT - 58 ) ) + - + 47 - 83 * MIN ( DISTINCT + + 93 ) + + - 75 + - 55 + - - 16
----
-7825

query I rowsort
SELECT ( - 26 )
----
-26

query I rowsort
SELECT - + 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ( + 99 ) + + 79 * + - MIN( DISTINCT - - 86 )
----
-6695

skipif mysql # not compatible
query I rowsort label-5799
SELECT ( + 99 ) + + 79 * + - MIN ( DISTINCT - - 86 )
----
-6695

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL 91 - - - CASE 55 WHEN + COUNT( * ) THEN - ( - - 60 ) END * + + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL 91 - - - CASE 55 WHEN + COUNT ( * ) THEN - ( - - 60 ) END * + + 28 AS col2
----
NULL

query I rowsort
SELECT + 81 * 7 + 24
----
591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5802
SELECT ALL - 28 * + COUNT( * ) - - 8 + CAST( NULL AS SIGNED ) * 92 * COUNT( * ) + + 5 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - 28 * + COUNT ( * ) - - 8 + CAST ( NULL AS INTEGER ) * 92 * COUNT ( * ) + + 5 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT DISTINCT - 17 DIV 33 + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT - 17 / 33 + 23 AS col0
----
23

query I rowsort
SELECT ALL - - ( 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5805
SELECT + MAX( ALL + - 41 ) AS col1, + 42 DIV + 93 AS col0
----
-41
0

skipif mysql # not compatible
query II rowsort label-5805
SELECT + MAX ( ALL + - 41 ) AS col1, + 42 / + 93 AS col0
----
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT COUNT( ALL - + 36 ) + 4
----
5

skipif mysql # not compatible
query I rowsort label-5806
SELECT COUNT ( ALL - + 36 ) + 4
----
5

query I rowsort
SELECT + 97 * + 28 AS col0
----
2716

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL + + 2 - COUNT( * ) * + 80 * + - 61 AS col0
----
4882

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + + 2 - COUNT ( * ) * + 80 * + - 61 AS col0
----
4882

query I rowsort
SELECT DISTINCT - 1
----
-1

query I rowsort
SELECT DISTINCT - 88 AS col0
----
-88

query I rowsort
SELECT + - 31 AS col1
----
-31

query I rowsort
SELECT - 33 * - 33 * - 78
----
-84942

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL - + ( + MIN( 21 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - + ( + MIN ( 21 ) ) AS col2
----
-21

query I rowsort
SELECT 8 * - 37
----
-296

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT ALL + 69 DIV + 79 * - + 62
----
0

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + 69 / + 79 * - + 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5816
SELECT - 56 col0, ( - NULLIF ( + + 35, 53 ) ) + - CAST( NULL AS SIGNED ) AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-5816
SELECT - 56 col0, ( - NULLIF ( + + 35, 53 ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
-56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT + CAST( NULL AS SIGNED ) + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT + CAST ( NULL AS INTEGER ) + 7 AS col1
----
NULL

query I rowsort
SELECT 72 * 32 + + 71
----
2375

query I rowsort
SELECT DISTINCT - - 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL + 61 + + - 41 - + - MAX( + - 37 ) + - 33 + + 33 + + 97 + - - 25
----
105

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + 61 + + - 41 - + - MAX ( + - 37 ) + - 33 + + 33 + + 97 + - - 25
----
105

query II rowsort
SELECT 61 * + 12 AS col0, 68 AS col0
----
732
68

query I rowsort
SELECT DISTINCT - 16 + - 5
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL + MAX( - + 73 ) + + MIN( - 90 )
----
-163

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL + MAX ( - + 73 ) + + MIN ( - 90 )
----
-163

query II rowsort
SELECT ALL - 7 * + 58, 19 + 37 AS col0
----
-406
56

query I rowsort
SELECT 15 + 25 + + CASE + ( - NULLIF ( + 31, - + 34 + - - 58 + ( 59 ) ) ) WHEN 60 + 97 THEN NULL WHEN - 11 THEN + 63 END AS col2
----
NULL

query II rowsort
SELECT 86 * + 82 AS col0, - 67 * - + 39 AS col2
----
7052
2613

query I rowsort
SELECT ALL NULLIF ( - 21, + 61 + 89 + ( - 3 ) ) + + + 30 + - ( 91 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL + 62 + - + SUM( DISTINCT - + 59 ) * 52 AS col1
----
3130

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL + 62 + - + SUM ( DISTINCT - + 59 ) * 52 AS col1
----
3130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5829
SELECT ALL COUNT( * ) DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL COUNT ( * ) / - 20
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT ALL 99 + - + 37 DIV - 29
----
100

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL 99 + - + 37 / - 29
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5831
SELECT ALL + COUNT( + 7 ) DIV 66, + 13 AS col2
----
0
13

skipif mysql # not compatible
query II rowsort label-5831
SELECT ALL + COUNT ( + 7 ) / 66, + 13 AS col2
----
0
13

query I rowsort
SELECT 29 col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT DISTINCT COALESCE ( 11, - CAST( NULL AS SIGNED ) + + 10 * + 83 ) * - - ( - 1 ) + - 69 + + - COUNT( * ) * - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT COALESCE ( 11, - CAST ( NULL AS INTEGER ) + + 10 * + 83 ) * - - ( - 1 ) + - 69 + + - COUNT ( * ) * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 63 - - 91, 73 AS col1
----
154
73

query I rowsort
SELECT - 27 * 50 * + 58 AS col1
----
-78300

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT + 45 DIV - ( + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT + 45 / - ( + 66 )
----
0

query I rowsort
SELECT DISTINCT + - 8 * 14 AS col1
----
-112

query I rowsort
SELECT ALL 99 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT + MAX( DISTINCT 84 ) * - - 39 AS col2
----
3276

skipif mysql # not compatible
query I rowsort label-5839
SELECT + MAX ( DISTINCT 84 ) * - - 39 AS col2
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT ALL + CASE - COUNT( * ) WHEN + 49 THEN + - 63 WHEN 7 + + 98 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL + CASE - COUNT ( * ) WHEN + 49 THEN + - 63 WHEN 7 + + 98 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 74 * 78 + - - ( + 0 ) + + 43 AS col1
----
-5729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5842
SELECT NULLIF ( + + NULLIF ( - COUNT( ALL - - 60 ), - CAST( + COALESCE ( - + 29, - 52 / - 60 + 68 + - + COUNT( * ), + 94 ) AS SIGNED ) * - 97 + + + CAST( NULL AS SIGNED ) ), - + 36 * - 28 * - + ( - 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5842
SELECT NULLIF ( + + NULLIF ( - COUNT ( ALL - - 60 ), - CAST ( + COALESCE ( - + 29, - 52 / - 60 + 68 + - + COUNT ( * ), + 94 ) AS INTEGER ) * - 97 + + + CAST ( NULL AS INTEGER ) ), - + 36 * - 28 * - + ( - 44 ) )
----
-1

query I rowsort
SELECT DISTINCT + + 87
----
87

query I rowsort
SELECT ALL + 33 col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5845
SELECT 92 DIV - 26 - + 21 * - 72 * MAX( ALL - 71 ) AS col2
----
-107355

skipif mysql # not compatible
query I rowsort label-5845
SELECT 92 / - 26 - + 21 * - 72 * MAX ( ALL - 71 ) AS col2
----
-107355

query I rowsort
SELECT ALL + + 14 AS col1
----
14

query I rowsort
SELECT + 45 col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5848
SELECT DISTINCT + + CASE + 12 WHEN - 35 + 64 THEN - - 23 WHEN + - ( + COUNT( * ) ) THEN NULL END AS col1, + ( - COALESCE ( - CASE + ( + - 90 ) WHEN + AVG ( + 72 ) * ( + + 58 ) - - COUNT( * ) THEN MAX( DISTINCT - 83 ) - - 45 ELSE + 66 + - NULLIF ( 38, 21 * - + 64 ) END, + COUNT( * ) * 32 ) )
----
NULL
28

skipif mysql # not compatible
query II rowsort label-5848
SELECT DISTINCT + + CASE + 12 WHEN - 35 + 64 THEN - - 23 WHEN + - ( + COUNT ( * ) ) THEN NULL END AS col1, + ( - COALESCE ( - CASE + ( + - 90 ) WHEN + AVG ( + 72 ) * ( + + 58 ) - - COUNT ( * ) THEN MAX ( DISTINCT - 83 ) - - 45 ELSE + 66 + - NULLIF ( 38, 21 * - + 64 ) END, + COUNT ( * ) * 32 ) )
----
NULL
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT ALL + 12 DIV + 34 + + + 89 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + 12 / + 34 + + + 89 / + 78
----
1

query I rowsort
SELECT + + 1 * - + ( + 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT SUM( - 38 ) * 22 AS col0
----
-836

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT SUM ( - 38 ) * 22 AS col0
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL 94 * 84 + + + MAX( - 4 )
----
7892

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL 94 * 84 + + + MAX ( - 4 )
----
7892

query I rowsort
SELECT + CASE + 22 WHEN + 39 THEN + 90 + - 53 ELSE NULL END / - 26 + + - 62
----
NULL

query I rowsort
SELECT - ( 25 ) * + - 66 col0
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT CASE + + 47 WHEN + + 58 * - - 7 + + COUNT( * ) + - 37 THEN NULL ELSE + 28 END
----
28

skipif mysql # not compatible
query I rowsort label-5855
SELECT CASE + + 47 WHEN + + 58 * - - 7 + + COUNT ( * ) + - 37 THEN NULL ELSE + 28 END
----
28

query I rowsort
SELECT - 71 * - - 23 AS col1
----
-1633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT ALL 54 * - + MIN( DISTINCT + + 34 ) * - + 87 + - + 52 DIV 36 * + 13 * + 95 + - 66 * + 48
----
155329

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL 54 * - + MIN ( DISTINCT + + 34 ) * - + 87 + - + 52 / 36 * + 13 * + 95 + - 66 * + 48
----
155329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5858
SELECT ALL 23 * - COALESCE ( - 42, 62, + - 11 ) + + - COUNT( * ) + 40 / - ( CAST( NULL AS SIGNED ) ) / - - ( - - 51 ) AS col2, 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-5858
SELECT ALL 23 * - COALESCE ( - 42, 62, + - 11 ) + + - COUNT ( * ) + 40 / - ( CAST ( NULL AS INTEGER ) ) / - - ( - - 51 ) AS col2, 95
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + ( - NULLIF ( - COUNT( * ), - COUNT( * ) * 87 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5859
SELECT + ( - NULLIF ( - COUNT ( * ), - COUNT ( * ) * 87 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5860
SELECT + CAST( + CASE + + COALESCE ( + 63, - + 88 ) WHEN + 16 THEN - - 2 WHEN + 57 / 96 + - 67 THEN NULL END AS SIGNED ) / + COALESCE ( - 66, - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT + CAST ( + CASE + + COALESCE ( + 63, - + 88 ) WHEN + 16 THEN - - 2 WHEN + 57 / 96 + - 67 THEN NULL END AS INTEGER ) / + COALESCE ( - 66, - 21 )
----
NULL

query I rowsort
SELECT ALL + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - COUNT( * ) * + - 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5862
SELECT - COUNT ( * ) * + - 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5863
SELECT COUNT( * ) AS col0, - 69
----
1
-69

skipif mysql # not compatible
query II rowsort label-5863
SELECT COUNT ( * ) AS col0, - 69
----
1
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT ALL - 75 * + 85 DIV + ( + COUNT( * ) ) + 73
----
-6302

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - 75 * + 85 / + ( + COUNT ( * ) ) + 73
----
-6302

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL - ( - + 74 ) * - MAX( DISTINCT - - 11 ) col1
----
-814

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - ( - + 74 ) * - MAX ( DISTINCT - - 11 ) col1
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT - 5 - - 3 + + 0 / + + CASE - - 79 WHEN 20 + 77 + + 82 + - 75 THEN + 94 WHEN COUNT( - 33 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT - 5 - - 3 + + 0 / + + CASE - - 79 WHEN 20 + 77 + + 82 + - 75 THEN + 94 WHEN COUNT ( - 33 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL COALESCE ( 55, + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL COALESCE ( 55, + COUNT ( * ) )
----
55

query I rowsort
SELECT + 75 + + - 50 + + - CASE ( + 92 ) WHEN + 43 THEN - 18 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL - ( + COUNT( + - 20 ) ) - + 43
----
-44

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - ( + COUNT ( + - 20 ) ) - + 43
----
-44

query I rowsort
SELECT - 51 + + 92 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - MIN( ALL + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5871
SELECT - MIN ( ALL + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL + CASE - + 62 WHEN ( + - 45 ) * 75 * - 67 THEN + 68 + MAX( + NULLIF ( + + 37, + 20 ) ) * - 4 * - + 41 END - + 44 + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL + CASE - + 62 WHEN ( + - 45 ) * 75 * - 67 THEN + 68 + MAX ( + NULLIF ( + + 37, + 20 ) ) * - 4 * - + 41 END - + 44 + 2 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 95 ) AS col2
----
-95

query I rowsort
SELECT - 45 + 48 * + 67 + - 73
----
3098

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5875
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 96 * - - 65 AS col1
----
NULL
6240

skipif mysql # not compatible
query II rowsort label-5875
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 96 * - - 65 AS col1
----
NULL
6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT ALL CAST( + + ( MIN( + - 35 ) ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL CAST ( + + ( MIN ( + - 35 ) ) AS INTEGER )
----
-35

query I rowsort
SELECT - 21 + - - 22 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL + 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL + 68 * + COUNT ( * )
----
68

query I rowsort
SELECT ALL 33 AS col0
----
33

query I rowsort
SELECT DISTINCT + 79 * + 44 * 36
----
125136

query I rowsort
SELECT - + 73 + - 1
----
-74

query I rowsort
SELECT + ( - COALESCE ( 73, 40 ) ) + + - 19 + 81 AS col0
----
-11

query I rowsort
SELECT ALL + 25 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT DISTINCT + 35 DIV + + 6
----
5

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + 35 / + + 6
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT - + AVG ( ALL + - 50 ) * - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT - + AVG ( ALL + - 50 ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 37 * 79
----
-2923

query I rowsort
SELECT + NULLIF ( 22, + 81 ) + - 72
----
-50

query I rowsort
SELECT ALL - 2 * 55
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT + - 91 DIV ( - - 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-5889
SELECT + - 91 / ( - - 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT - ( - SUM( 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-5890
SELECT - ( - SUM ( 46 ) )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT ALL + CAST( NULL AS SIGNED ) * - 36 / - 44 + + 51 * + 91 * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + CAST ( NULL AS INTEGER ) * - 36 / - 44 + + 51 * + 91 * - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5892
SELECT ALL - COUNT( * ) DIV 81 + + + 90 - + 49 * - 0 + - 29 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - COUNT ( * ) / 81 + + + 90 - + 49 * - 0 + - 29 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5893
SELECT 47 DIV - ( - 87 ) * - COUNT( * ) + + CASE + - COALESCE ( - ( - 77 ), - - 32 * - ( CAST( + - 57 AS SIGNED ) ) * - 74, - 29 * + - 82 * - 18 * + 41 + 21 * 14 * - COUNT( * ) + + COUNT( * ) + + 0 ) WHEN + + ( - 12 ) THEN + 79 ELSE - 82 END * + 60 * - 59 + 48 AS col1
----
290328

skipif mysql # not compatible
query I rowsort label-5893
SELECT 47 / - ( - 87 ) * - COUNT ( * ) + + CASE + - COALESCE ( - ( - 77 ), - - 32 * - ( CAST ( + - 57 AS INTEGER ) ) * - 74, - 29 * + - 82 * - 18 * + 41 + 21 * 14 * - COUNT ( * ) + + COUNT ( * ) + + 0 ) WHEN + + ( - 12 ) THEN + 79 ELSE - 82 END * + 60 * - 59 + 48 AS col1
----
290328

query II rowsort
SELECT - 2, + 19 - + ( - 13 ) AS col1
----
-2
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT ALL + ( - + CASE + + 25 WHEN 33 * + COUNT( * ) - 12 THEN COUNT( - 71 ) WHEN + 16 THEN + - 7 END ) / + 72 * - - 91 + 83 AS col2, - 98
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-5895
SELECT ALL + ( - + CASE + + 25 WHEN 33 * + COUNT ( * ) - 12 THEN COUNT ( - 71 ) WHEN + 16 THEN + - 7 END ) / + 72 * - - 91 + 83 AS col2, - 98
----
NULL
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5896
SELECT + 52 AS col1, - COUNT( * ) * - 73
----
52
73

skipif mysql # not compatible
query II rowsort label-5896
SELECT + 52 AS col1, - COUNT ( * ) * - 73
----
52
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - COUNT( * ) * + 57 + 14
----
-43

skipif mysql # not compatible
query I rowsort label-5897
SELECT - COUNT ( * ) * + 57 + 14
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5898
SELECT - ( CAST( NULL AS SIGNED ) ) * + 96 AS col1, 20 - - + 0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-5898
SELECT - ( CAST ( NULL AS INTEGER ) ) * + 96 AS col1, 20 - - + 0
----
NULL
20

query I rowsort
SELECT + + 94 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT 80 / + 9 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT 80 / + 9 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT ALL 50 DIV + + 16 + 58 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL 50 / + + 16 + 58 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT CAST( - - 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5902
SELECT CAST ( - - 77 AS INTEGER ) AS col2
----
77

query I rowsort
SELECT ALL + 51 AS col2
----
51

query I rowsort
SELECT ( - + 83 )
----
-83

query I rowsort
SELECT ( 84 ) + - 31 + - 10 * + + 92 AS col2
----
-867

query I rowsort
SELECT + 32 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT COUNT( ALL - - 41 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT COUNT ( ALL - - 41 ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 99 - + + 76
----
-175

query I rowsort
SELECT DISTINCT - 82
----
-82

query I rowsort
SELECT DISTINCT 52 - + - 36 AS col1
----
88

query I rowsort
SELECT + 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT 31 + - + 20 + + COUNT( * ) * 61
----
72

skipif mysql # not compatible
query I rowsort label-5912
SELECT 31 + - + 20 + + COUNT ( * ) * 61
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT 11 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5913
SELECT 11 / + 78 AS col1
----
0

query I rowsort
SELECT 90 AS col1
----
90

query I rowsort
SELECT DISTINCT 62 AS col1
----
62

query I rowsort
SELECT ALL - 0 * - 66
----
0

query I rowsort
SELECT 89 * + 0 * + 68 + - 2
----
-2

query I rowsort
SELECT - - 4 AS col0
----
4

query I rowsort
SELECT DISTINCT COALESCE ( - 15, + 27 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT - MAX( 93 ) * - 45
----
4185

skipif mysql # not compatible
query I rowsort label-5920
SELECT - MAX ( 93 ) * - 45
----
4185

query I rowsort
SELECT - - NULLIF ( + 3, - - 75 + + 21 ) AS col1
----
3

query I rowsort
SELECT - - ( 36 )
----
36

query I rowsort
SELECT + 34 * - NULLIF ( - + 87, - 16 ) * + 50 + - 55
----
147845

query I rowsort
SELECT 73 * 41
----
2993

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL + 56 + - COUNT( * ) + - 66 + - + 30 * 63 * ( - CASE 0 WHEN + MIN( DISTINCT + 10 ) THEN - - COUNT( * ) WHEN - + 28 / - 8 - - + 77 + - + COUNT( ALL + - 82 ) * - 70 * COALESCE ( + - NULLIF ( - 92, + + 34 ), - 86 ) THEN NULL ELSE NULL END ) * + + 70 - + + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + 56 + - COUNT ( * ) + - 66 + - + 30 * 63 * ( - CASE 0 WHEN + MIN ( DISTINCT + 10 ) THEN - - COUNT ( * ) WHEN - + 28 / - 8 - - + 77 + - + COUNT ( ALL + - 82 ) * - 70 * COALESCE ( + - NULLIF ( - 92, + + 34 ), - 86 ) THEN NULL ELSE NULL END ) * + + 70 - + + 67 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5926
SELECT ALL - + CAST( NULL AS SIGNED ) + 52 * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - + CAST ( NULL AS INTEGER ) + 52 * + 33 AS col0
----
NULL

query I rowsort
SELECT ALL 10 + - 54 AS col0
----
-44

query I rowsort
SELECT - 57 col2
----
-57

query I rowsort
SELECT - + 99 AS col2
----
-99

query I rowsort
SELECT ALL + - 23 + + 16 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT - SUM( DISTINCT + + NULLIF ( ( 61 ), + + 8 / + ( + - 9 ) * + 25 ) ) + - NULLIF ( + 40, + 48 ) + + + 97 * - 94 AS col2
----
-9219

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - SUM ( DISTINCT + + NULLIF ( ( 61 ), + + 8 / + ( + - 9 ) * + 25 ) ) + - NULLIF ( + 40, + 48 ) + + + 97 * - 94 AS col2
----
-9219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL - - 11 / + CASE CAST( NULL AS SIGNED ) WHEN + + 13 * 68 THEN - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL - - 11 / + CASE CAST ( NULL AS INTEGER ) WHEN + + 13 * 68 THEN - 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT + SUM( + + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5933
SELECT + SUM ( + + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + ( + + MAX( ALL 35 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5934
SELECT + ( + + MAX ( ALL 35 ) ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5935
SELECT ALL 12 + 54 * COUNT( * ) AS col2, - CAST( + NULLIF ( - 57, + 90 ) AS SIGNED ) * - 71 * - 62 * 66
----
66
16560324

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL 12 + 54 * COUNT ( * ) AS col2, - CAST ( + NULLIF ( - 57, + 90 ) AS INTEGER ) * - 71 * - 62 * 66
----
66
16560324

query I rowsort
SELECT ALL - 75 * 84 col2
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT COUNT( 56 ) + + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5937
SELECT COUNT ( 56 ) + + 84 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL + 3 * + MIN( 59 ) AS col0
----
177

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + 3 * + MIN ( 59 ) AS col0
----
177

query II rowsort
SELECT 37 col1, + 54
----
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT COUNT( * ) + - + 97 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5940
SELECT COUNT ( * ) + - + 97 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5941
SELECT NULLIF ( - + ( 28 ), + COUNT( * ) ) * + COUNT( * ) AS col1, + 16 * ( + + 41 ) AS col2
----
-28
656

skipif mysql # not compatible
query II rowsort label-5941
SELECT NULLIF ( - + ( 28 ), + COUNT ( * ) ) * + COUNT ( * ) AS col1, + 16 * ( + + 41 ) AS col2
----
-28
656

query I rowsort
SELECT ALL 40 * - 8 AS col0
----
-320

query I rowsort
SELECT 4 * 52 * - 79 - - 36 col0
----
-16396

query I rowsort
SELECT DISTINCT 75 * 48
----
3600

query II rowsort
SELECT ALL 92 * 52 * + 53, + 37 col1
----
253552
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT 40 * + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5946
SELECT 40 * + COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT - MIN( ALL + - 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-5947
SELECT - MIN ( ALL + - 81 ) col0
----
81

query I rowsort
SELECT DISTINCT 39 * + 56 AS col1
----
2184

query I rowsort
SELECT DISTINCT + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + 92 + - COALESCE ( - COUNT( DISTINCT - 34 ), + - 55, + 86 )
----
93

skipif mysql # not compatible
query I rowsort label-5950
SELECT + 92 + - COALESCE ( - COUNT ( DISTINCT - 34 ), + - 55, + 86 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT COALESCE ( - COUNT( * ), - COUNT( - ( ( + 60 ) ) ) ) * 37 * + 92 * + 23 col2
----
-78292

skipif mysql # not compatible
query I rowsort label-5951
SELECT COALESCE ( - COUNT ( * ), - COUNT ( - ( ( + 60 ) ) ) ) * 37 * + 92 * + 23 col2
----
-78292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT CAST( - 62 AS SIGNED ) + + 22
----
-40

skipif mysql # not compatible
query I rowsort label-5952
SELECT CAST ( - 62 AS INTEGER ) + + 22
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5953
SELECT - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 49, + 72, - 76 * - 3 + - - 96 * - 8 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT 42 DIV + ( 23 ) + - 26 * - - 94 AS col0
----
-2443

skipif mysql # not compatible
query I rowsort label-5955
SELECT 42 / + ( 23 ) + - 26 * - - 94 AS col0
----
-2443

query I rowsort
SELECT 29 + + 0 col1
----
29

query I rowsort
SELECT ALL 90 col1
----
90

query I rowsort
SELECT ALL 52 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT + 61 * - 36 + COALESCE ( + + 40, - COUNT( * ) ) - - 82 + - - 81
----
-1993

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + 61 * - 36 + COALESCE ( + + 40, - COUNT ( * ) ) - - 82 + - - 81
----
-1993

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - 68 + - 34 * - COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5960
SELECT - 68 + - 34 * - COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT ALL + + 75 + + 51
----
126

query I rowsort
SELECT ALL - ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT - 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT - 0 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT - MIN( - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5964
SELECT - MIN ( - 44 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5965
SELECT ( CAST( NULL AS SIGNED ) ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT ( CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 91 ) - 40
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT - 94 DIV 20 * - 12 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5967
SELECT - 94 / 20 * - 12 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT + ( - ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT + ( - ( - COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT - 64 DIV + 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5970
SELECT - 64 / + 9 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5971
SELECT ALL + 60 AS col0, - NULLIF ( + + 76, + - 92 ) + - COUNT( * )
----
60
-77

skipif mysql # not compatible
query II rowsort label-5971
SELECT ALL + 60 AS col0, - NULLIF ( + + 76, + - 92 ) + - COUNT ( * )
----
60
-77

query I rowsort
SELECT - 82 + - 49 AS col1
----
-131

query I rowsort
SELECT DISTINCT - 27 * + 91 AS col1
----
-2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT ALL + CAST( + - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL + CAST ( + - 62 AS INTEGER )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT - 28 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 28 / - 52
----
0

query I rowsort
SELECT + 34 * + 19
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL - COUNT( * ) * + MIN( DISTINCT 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - COUNT ( * ) * + MIN ( DISTINCT 39 )
----
-39

query I rowsort
SELECT - 46 + + 4 * + + 64 + + 51
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT - 22 * - + 30 - 61 DIV - MAX( 10 )
----
666

skipif mysql # not compatible
query I rowsort label-5979
SELECT - 22 * - + 30 - 61 / - MAX ( 10 )
----
666

query I rowsort
SELECT ALL + ( + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT - NULLIF ( - COUNT( * ), 74 ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 74 ) * 38
----
38

query I rowsort
SELECT ALL + 4 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT - 98 DIV 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5983
SELECT - 98 / 27 AS col2
----
-3

query I rowsort
SELECT ALL + 9 * + - 61
----
-549

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5985
SELECT ALL - CASE - - MIN( ALL + 73 ) WHEN - - NULLIF ( + 73, CAST( AVG ( ALL + 11 ) AS DECIMAL ) ) + COUNT( * ) + - 39 THEN + ( 31 ) * + - COUNT( ALL - + 55 ) ELSE - SUM( + + 19 ) DIV - - 73 + + SUM( DISTINCT + 26 ) END * - 90 + + 33
----
2373

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - CASE - - MIN ( ALL + 73 ) WHEN - - NULLIF ( + 73, CAST ( AVG ( ALL + 11 ) AS REAL ) ) + COUNT ( * ) + - 39 THEN + ( 31 ) * + - COUNT ( ALL - + 55 ) ELSE - SUM ( + + 19 ) / - - 73 + + SUM ( DISTINCT + 26 ) END * - 90 + + 33
----
2373

query I rowsort
SELECT + 74 * + 65 AS col2
----
4810

query I rowsort
SELECT ALL 97 * - 14 + - 8 + + + 68 * 93 * 53 * - 39
----
-13073074

query II rowsort
SELECT + 64, 59 + - 30 AS col1
----
64
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5989
SELECT + COALESCE ( - 4, - 5, + 67, + 91 - + 57 ), COUNT( * ) DIV + 44 - - - 51 + - NULLIF ( - 30, ( 79 ) ) - + COUNT( * ) * 25 * + COUNT( * ) * - 46 * + 0 AS col1
----
-4
-21

skipif mysql # not compatible
query II rowsort label-5989
SELECT + COALESCE ( - 4, - 5, + 67, + 91 - + 57 ), COUNT ( * ) / + 44 - - - 51 + - NULLIF ( - 30, ( 79 ) ) - + COUNT ( * ) * 25 * + COUNT ( * ) * - 46 * + 0 AS col1
----
-4
-21

query I rowsort
SELECT - 89 * - 11
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL 29 + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL 29 + + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - + COUNT( ALL 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5992
SELECT - + COUNT ( ALL 84 ) AS col2
----
-1

query I rowsort
SELECT ALL 42 + + - 51 AS col1
----
-9

query I rowsort
SELECT - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT COUNT( DISTINCT - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT COUNT ( DISTINCT - 65 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5996
SELECT ALL - 46 AS col1, 59 * 3 + + MIN( - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) - - ( 46 )
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL - 46 AS col1, 59 * 3 + + MIN ( - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) - - ( 46 )
----
-46
NULL

query I rowsort
SELECT - + 90
----
-90

query II rowsort
SELECT + 86, ( 75 ) AS col2
----
86
75

query I rowsort
SELECT ALL - 73 + + 41 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT - 59 AS col1, + COUNT( * ) AS col0
----
-59
1

skipif mysql # not compatible
query II rowsort label-6000
SELECT - 59 AS col1, + COUNT ( * ) AS col0
----
-59
1

query I rowsort
SELECT DISTINCT - 87 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL 58 - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL 58 - COUNT ( * )
----
57

query I rowsort
SELECT + 28 - - 27
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL MIN( ALL + + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL MIN ( ALL + + 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + + COUNT( * ) - 42 + - - 70 * + + 61 * + - 61 * NULLIF ( + + 45, + 14 )
----
-11721191

skipif mysql # not compatible
query I rowsort label-6005
SELECT + + COUNT ( * ) - 42 + - - 70 * + + 61 * + - 61 * NULLIF ( + + 45, + 14 )
----
-11721191

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6006
SELECT DISTINCT 37 AS col0, + CAST( NULL AS SIGNED ) - + 23 + AVG ( + 48 ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-6006
SELECT DISTINCT 37 AS col0, + CAST ( NULL AS INTEGER ) - + 23 + AVG ( + 48 ) AS col2
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT + + NULLIF ( NULLIF ( - 38, - 29 ), + 59 ) * + ( MIN( ALL + ( 7 ) ) ) * + 39
----
-10374

skipif mysql # not compatible
query I rowsort label-6007
SELECT + + NULLIF ( NULLIF ( - 38, - 29 ), + 59 ) * + ( MIN ( ALL + ( 7 ) ) ) * + 39
----
-10374

query I rowsort
SELECT - - ( - ( - 84 ) ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6009
SELECT DISTINCT COUNT( * ) DIV 54 AS col1, - 9 AS col1
----
0
-9

skipif mysql # not compatible
query II rowsort label-6009
SELECT DISTINCT COUNT ( * ) / 54 AS col1, - 9 AS col1
----
0
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT DISTINCT - 40 * NULLIF ( + 67, + + CAST( NULL AS SIGNED ) )
----
-2680

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - 40 * NULLIF ( + 67, + + CAST ( NULL AS INTEGER ) )
----
-2680

query I rowsort
SELECT + ( 88 ) + 35
----
123

query I rowsort
SELECT + 52 * + 4 * 21 * 84
----
366912

query I rowsort
SELECT - 58 * + 94
----
-5452

query I rowsort
SELECT ALL + 88 AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT - 5 + + - 31 + - ( + 47 ) + - 97 * + + ( + - CAST( 29 AS SIGNED ) )
----
2730

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 5 + + - 31 + - ( + 47 ) + - 97 * + + ( + - CAST ( 29 AS INTEGER ) )
----
2730

query I rowsort
SELECT - 22 * + + 77
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT DISTINCT COUNT( * ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT COUNT ( * ) * 38
----
38

query I rowsort
SELECT ( - + 63 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT DISTINCT 18 DIV + 64 + + + 98
----
98

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT 18 / + 64 + + + 98
----
98

query I rowsort
SELECT ALL ( - ( - ( 63 ) ) ) * + 97 + + + 76
----
6187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT - MIN( - CAST( NULL AS SIGNED ) ) * - 88 * + 17 * + + 23 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) * - 88 * + 17 * + + 23 * 23
----
NULL

query I rowsort
SELECT + 6 AS col0
----
6

query I rowsort
SELECT ( - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6024
SELECT - COUNT( * ) + - + 75 AS col0, + 32 AS col2
----
-76
32

skipif mysql # not compatible
query II rowsort label-6024
SELECT - COUNT ( * ) + - + 75 AS col0, + 32 AS col2
----
-76
32

query I rowsort
SELECT ( - 79 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6026
SELECT - NULLIF ( + - 72, COUNT( + 1 ) * - CAST( + + 73 AS SIGNED ) ) DIV - + COUNT( * ) AS col0, SUM( + 24 )
----
-72
24

skipif mysql # not compatible
query II rowsort label-6026
SELECT - NULLIF ( + - 72, COUNT ( + 1 ) * - CAST ( + + 73 AS INTEGER ) ) / - + COUNT ( * ) AS col0, SUM ( + 24 )
----
-72
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL MAX( ALL + 58 ) * + - 66 + 85 AS col1
----
-3743

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL MAX ( ALL + 58 ) * + - 66 + 85 AS col1
----
-3743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT - MIN( ALL + - 39 ) - - CAST( CAST( + + 42 AS SIGNED ) AS SIGNED ) * + 46 AS col1
----
1971

skipif mysql # not compatible
query I rowsort label-6028
SELECT - MIN ( ALL + - 39 ) - - CAST ( CAST ( + + 42 AS INTEGER ) AS INTEGER ) * + 46 AS col1
----
1971

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT + MIN( DISTINCT - 91 ) * + 32 - + 53
----
-2965

skipif mysql # not compatible
query I rowsort label-6029
SELECT + MIN ( DISTINCT - 91 ) * + 32 - + 53
----
-2965

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - 1 * - 52 * + SUM( ALL + - 44 ) * - 10
----
22880

skipif mysql # not compatible
query I rowsort label-6030
SELECT - 1 * - 52 * + SUM ( ALL + - 44 ) * - 10
----
22880

query I rowsort
SELECT DISTINCT + 40 AS col0
----
40

query I rowsort
SELECT ALL + + 54 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT ALL + - 81 * + COUNT( * ) + - 74 + - CAST( 9 AS SIGNED )
----
-164

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + - 81 * + COUNT ( * ) + - 74 + - CAST ( 9 AS INTEGER )
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT + 46 - - 12 DIV - + ( + 77 )
----
46

skipif mysql # not compatible
query I rowsort label-6034
SELECT + 46 - - 12 / - + ( + 77 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT - + 36 + - - COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6035
SELECT - + 36 + - - COUNT ( * ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT MAX( ALL + 5 ) + + 66 + 56 * + 82 - + CASE + COUNT( * ) WHEN - 77 THEN + 8 - - 16 ELSE NULL END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT MAX ( ALL + 5 ) + + 66 + 56 * + 82 - + CASE + COUNT ( * ) WHEN - 77 THEN + 8 - - 16 ELSE NULL END * 99
----
NULL

query I rowsort
SELECT ALL + ( + 15 ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT + 39 + + COALESCE ( + 24, 69, - - 96 DIV + 24 )
----
63

skipif mysql # not compatible
query I rowsort label-6038
SELECT + 39 + + COALESCE ( + 24, 69, - - 96 / + 24 )
----
63

query I rowsort
SELECT ALL 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query III rowsort label-6040
SELECT ALL 32 * + COUNT( * ) AS col2, 69, 66 - COUNT( 9 ) AS col2
----
32
69
65

skipif mysql # not compatible
query III rowsort label-6040
SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2
----
32
69
65

query I rowsort
SELECT 24 + 66 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT COUNT( * ) DIV + 2
----
0

skipif mysql # not compatible
query I rowsort label-6042
SELECT COUNT ( * ) / + 2
----
0

query I rowsort
SELECT ( + 70 ) * + 91
----
6370

query I rowsort
SELECT 43 + 74
----
117

query II rowsort
SELECT DISTINCT 79 col0, - 79
----
79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT ALL CAST( NULL AS SIGNED ) / + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL CAST ( NULL AS INTEGER ) / + 13 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ( + 41 ) DIV - 52 * - COALESCE ( - 62, + 13 DIV + 19, 13 + - - 87, + - 38 + - + 77 ) DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT ( + 41 ) / - 52 * - COALESCE ( - 62, + 13 / + 19, 13 + - - 87, + - 38 + - + 77 ) / + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT COUNT( * ) * + - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6048
SELECT COUNT ( * ) * + - 19 AS col1
----
-19

query I rowsort
SELECT DISTINCT - 9 + + 37 AS col2
----
28

query I rowsort
SELECT ALL + 55 + + 29 AS col0
----
84

query II rowsort
SELECT + 52, + CASE - 81 WHEN + 84 THEN 64 + + - 73 ELSE NULL END AS col0
----
52
NULL

query I rowsort
SELECT 65 + - 14 AS col0
----
51

query I rowsort
SELECT + 7 AS col2
----
7

query I rowsort
SELECT ALL + 92 + - + 58 + 1 + 12
----
47

query I rowsort
SELECT DISTINCT - 17 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT 80 + + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT 80 + + COUNT ( * ) AS col0
----
81

query I rowsort
SELECT + - 27
----
-27

query I rowsort
SELECT ALL + - 44 - - 49 + + 70 + + 2
----
77

query I rowsort
SELECT DISTINCT - + 86 AS col2
----
-86

query I rowsort
SELECT 4 + 13
----
17

query II rowsort
SELECT + 71, + 17 * + 61 AS col2
----
71
1037

query I rowsort
SELECT 96 + + + 12 * + 94
----
1224

query I rowsort
SELECT + ( 29 ) * - - 73 + - 37 + - 31 AS col0
----
2049

query I rowsort
SELECT - - 75
----
75

query I rowsort
SELECT - 37 * 63 + - 19 AS col2
----
-2350

query II rowsort
SELECT ALL + 9 AS col1, 3 AS col0
----
9
3

query I rowsort
SELECT - - 52
----
52

query I rowsort
SELECT ALL + - 97 * + + 76 col0
----
-7372

query I rowsort
SELECT ALL 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT NULLIF ( 55, COALESCE ( + + 57, + 85 ) + + COUNT( * ) ) * + ( 65 )
----
3575

skipif mysql # not compatible
query I rowsort label-6070
SELECT NULLIF ( 55, COALESCE ( + + 57, + 85 ) + + COUNT ( * ) ) * + ( 65 )
----
3575

query I rowsort
SELECT 14 - - 83 AS col0
----
97

query I rowsort
SELECT - 25 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT DISTINCT + COUNT( * ) + - + 66 + 46
----
-19

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + COUNT ( * ) + - + 66 + 46
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6074
SELECT ALL CAST( 0 AS SIGNED ) + + 68 DIV - - 16 + + + 98 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL CAST ( 0 AS INTEGER ) + + 68 / - - 16 + + + 98 AS col1
----
102

query I rowsort
SELECT DISTINCT 11 + 1 * 62
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL 70 + - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL 70 + - COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT 28 * - COUNT( * ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT 28 * - COUNT ( * ) col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL + MAX( - 99 ) + + + 48 + - - 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + MAX ( - 99 ) + + + 48 + - - 52 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT COUNT( * ) + 37 col2
----
38

skipif mysql # not compatible
query I rowsort label-6079
SELECT COUNT ( * ) + 37 col2
----
38

query I rowsort
SELECT ( + 28 ) - - 6 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6081
SELECT MIN( ALL - NULLIF ( - + 78, - NULLIF ( 93, + 33 * 83 * 0 ) * + - 67 ) ) AS col0, 30 AS col1
----
78
30

skipif mysql # not compatible
query II rowsort label-6081
SELECT MIN ( ALL - NULLIF ( - + 78, - NULLIF ( 93, + 33 * 83 * 0 ) * + - 67 ) ) AS col0, 30 AS col1
----
78
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT 78 DIV 12 * + - 34 AS col1
----
-204

skipif mysql # not compatible
query I rowsort label-6082
SELECT 78 / 12 * + - 34 AS col1
----
-204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6083
SELECT 49 * 47 * 60 DIV - + COUNT( + ( + 35 ) ) AS col0
----
-138180

skipif mysql # not compatible
query I rowsort label-6083
SELECT 49 * 47 * 60 / - + COUNT ( + ( + 35 ) ) AS col0
----
-138180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6084
SELECT DISTINCT - COUNT( * ) * + COUNT( DISTINCT - 93 ) DIV - 22 + COALESCE ( - 27, - 88 * - 57 * 15 * - - 97, 7 ) + 94
----
67

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT - COUNT ( * ) * + COUNT ( DISTINCT - 93 ) / - 22 + COALESCE ( - 27, - 88 * - 57 * 15 * - - 97, 7 ) + 94
----
67

query I rowsort
SELECT DISTINCT - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL - 35 * COUNT( * ) * COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - 35 * COUNT ( * ) * COUNT ( * )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6087
SELECT + 16 DIV 65 + + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-6087
SELECT + 16 / 65 + + - 13
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT + - CAST( + + 53 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6088
SELECT + - CAST ( + + 53 AS INTEGER ) AS col0
----
-53

query I rowsort
SELECT ALL - 62 AS col2
----
-62

query I rowsort
SELECT 2 AS col0
----
2

query I rowsort
SELECT + ( - + 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6092
SELECT + 8 + 74 AS col2, - COUNT( + 47 ) + + COUNT( * ) + 99 * - 35 + - 13 / - ( ( + 93 ) ) - + CAST( NULL AS SIGNED ) AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6092
SELECT + 8 + 74 AS col2, - COUNT ( + 47 ) + + COUNT ( * ) + 99 * - 35 + - 13 / - ( ( + 93 ) ) - + CAST ( NULL AS INTEGER ) AS col0
----
82
NULL

query I rowsort
SELECT DISTINCT + - 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT DISTINCT + 23 * + SUM( ALL + + 33 ) + + - 42 + - 96 * - 84
----
8781

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT + 23 * + SUM ( ALL + + 33 ) + + - 42 + - 96 * - 84
----
8781

query I rowsort
SELECT ALL + ( + 61 )
----
61

query I rowsort
SELECT - + 54 - - 18
----
-36

query I rowsort
SELECT - - 95 * + - 63 AS col2
----
-5985

query I rowsort
SELECT + + ( - 66 ) + - - 89 + - 84
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6099
SELECT - 53 * 3 + - 94 + - 34 DIV + - COALESCE ( - - 84, 12 ) AS col2, + 99 * + COUNT( * ) AS col1
----
-253
99

skipif mysql # not compatible
query II rowsort label-6099
SELECT - 53 * 3 + - 94 + - 34 / + - COALESCE ( - - 84, 12 ) AS col2, + 99 * + COUNT ( * ) AS col1
----
-253
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6100
SELECT + - 35 DIV + + CAST( + CAST( - 17 AS SIGNED ) AS SIGNED ) + + 54 + + + 76 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-6100
SELECT + - 35 / + + CAST ( + CAST ( - 17 AS INTEGER ) AS INTEGER ) + + 54 + + + 76 AS col0
----
132

query I rowsort
SELECT - 71 * ( 21 ) AS col2
----
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT DISTINCT - MIN( ALL + 34 ) * + + 68
----
-2312

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT - MIN ( ALL + 34 ) * + + 68
----
-2312

query I rowsort
SELECT ALL + 27 + - 25 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - 6 + - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6104
SELECT - 6 + - COUNT ( * ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL COALESCE ( - 51, 66, 7 + - - 77, + ( - 14 ) - - 76 ) + - COUNT( * ) * 1 + - 72
----
-124

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL COALESCE ( - 51, 66, 7 + - - 77, + ( - 14 ) - - 76 ) + - COUNT ( * ) * 1 + - 72
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT - 82 + - + COUNT( ALL 88 ) AS col1, 27
----
-83
27

skipif mysql # not compatible
query II rowsort label-6106
SELECT - 82 + - + COUNT ( ALL 88 ) AS col1, 27
----
-83
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6107
SELECT ALL NULLIF ( + ( CAST( - 34 AS SIGNED ) ), 97 + + AVG ( ALL 40 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL NULLIF ( + ( CAST ( - 34 AS INTEGER ) ), 97 + + AVG ( ALL 40 ) )
----
-34

query I rowsort
SELECT DISTINCT - 82 * - 64 AS col2
----
5248

query I rowsort
SELECT DISTINCT ( + - ( 19 ) ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL - SUM( DISTINCT + 74 ) + - 73 * - 41 AS col0
----
2919

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL - SUM ( DISTINCT + 74 ) + - 73 * - 41 AS col0
----
2919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6111
SELECT - 46 DIV COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6111
SELECT - 46 / COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - COUNT( * ) * + - 60
----
60

skipif mysql # not compatible
query I rowsort label-6112
SELECT - COUNT ( * ) * + - 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6113
SELECT - ( - - 98 ) + + - 85 + - + 36 + - 83 + 73 * + COUNT( * ) DIV + 84 * + - 34 * 8 - - NULLIF ( + ( + 83 ), + 96 ) + 22 DIV + 75 * 46 + - 68 + - 21
----
-308

skipif mysql # not compatible
query I rowsort label-6113
SELECT - ( - - 98 ) + + - 85 + - + 36 + - 83 + 73 * + COUNT ( * ) / + 84 * + - 34 * 8 - - NULLIF ( + ( + 83 ), + 96 ) + 22 / + 75 * 46 + - 68 + - 21
----
-308

query I rowsort
SELECT ALL + 91 + + - 59
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT DISTINCT NULLIF ( + 46, + + COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT NULLIF ( + 46, + + COUNT ( * ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT 19 * - 20 * + + COUNT( * ) * COUNT( * ) + - ( + ( - 88 ) )
----
-292

skipif mysql # not compatible
query I rowsort label-6116
SELECT 19 * - 20 * + + COUNT ( * ) * COUNT ( * ) + - ( + ( - 88 ) )
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + SUM( DISTINCT + - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6117
SELECT + SUM ( DISTINCT + - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL 67 * + + 8 - + + MIN( - 24 )
----
560

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL 67 * + + 8 - + + MIN ( - 24 )
----
560

query I rowsort
SELECT + 62 * + + 81
----
5022

query I rowsort
SELECT + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - - 86 * COUNT( * ) + - 14
----
72

skipif mysql # not compatible
query I rowsort label-6121
SELECT - - 86 * COUNT ( * ) + - 14
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL 86 * - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL 86 * - COUNT ( * ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT - MIN( + 52 ) * 72 AS col0
----
-3744

skipif mysql # not compatible
query I rowsort label-6123
SELECT - MIN ( + 52 ) * 72 AS col0
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT + 26 * COUNT( * ) - 32 * + - 25
----
826

skipif mysql # not compatible
query I rowsort label-6124
SELECT + 26 * COUNT ( * ) - 32 * + - 25
----
826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6125
SELECT - 76 DIV - 68 + MAX( 2 ) * - - COUNT( * ) + + 43
----
46

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 76 / - 68 + MAX ( 2 ) * - - COUNT ( * ) + + 43
----
46

query I rowsort
SELECT ALL + - 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ( + - 3 ) * - 19 - - COUNT( DISTINCT + 55 ) - - 52 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-6127
SELECT ( + - 3 ) * - 19 - - COUNT ( DISTINCT + 55 ) - - 52 AS col0
----
110

query I rowsort
SELECT ALL + 25 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT ALL + 63 DIV - - 3 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + 63 / - - 3 AS col1
----
21

query I rowsort
SELECT + + 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6131
SELECT ALL + + 75 AS col0, COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-6131
SELECT ALL + + 75 AS col0, COUNT ( * )
----
75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT + + 24 DIV - 88 * - ( + ( - 94 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT + + 24 / - 88 * - ( + ( - 94 ) ) AS col1
----
0

query I rowsort
SELECT + 28 + + + 59 AS col1
----
87

query I rowsort
SELECT + 72 * - 25 AS col0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6135
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 15 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - COUNT( * ) * + 19 + - 12 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6137
SELECT - COUNT ( * ) * + 19 + - 12 AS col1
----
-31

query I rowsort
SELECT ALL - 84 * + - 73 * - 60 + - 91
----
-368011

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + + 72 * COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6139
SELECT + + 72 * COUNT ( * )
----
72

query I rowsort
SELECT ALL - 85 * - 10 + - 27 AS col2
----
823

query I rowsort
SELECT ALL 67 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT - CAST( + 24 AS SIGNED ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-6142
SELECT - CAST ( + 24 AS INTEGER ) col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT SUM( - 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6143
SELECT SUM ( - 13 ) AS col2
----
-13

query II rowsort
SELECT DISTINCT 73 AS col0, + 0
----
73
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL 64 + 59 DIV 86
----
64

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL 64 + 59 / 86
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT + 76 * 10 * 53 * - CAST( + 57 AS SIGNED ) AS col1
----
-2295960

skipif mysql # not compatible
query I rowsort label-6146
SELECT + 76 * 10 * 53 * - CAST ( + 57 AS INTEGER ) AS col1
----
-2295960

query II rowsort
SELECT 77 AS col2, + ( - 30 ) AS col2
----
77
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT - 28 DIV - NULLIF ( 29, - 41 ) * + + 10
----
0

skipif mysql # not compatible
query I rowsort label-6148
SELECT - 28 / - NULLIF ( 29, - 41 ) * + + 10
----
0

query I rowsort
SELECT + 40 * 22
----
880

query II rowsort
SELECT 20, 68 AS col1
----
20
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6151
SELECT DISTINCT - 51 DIV + - 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - 51 / + - 35 AS col1
----
1

query II rowsort
SELECT ALL 93 AS col1, + 67 col0
----
93
67

query I rowsort
SELECT ALL - 33 * + 81
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT COUNT( ALL - + NULLIF ( + + 3, + - 81 * CASE 49 WHEN - 47 + + CASE - - 1 WHEN + + 19 THEN - + 79 END + 7 * - + 63 THEN 24 ELSE NULL END ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT COUNT ( ALL - + NULLIF ( + + 3, + - 81 * CASE 49 WHEN - 47 + + CASE - - 1 WHEN + + 19 THEN - + 79 END + 7 * - + 63 THEN 24 ELSE NULL END ) ) AS col1
----
1

query I rowsort
SELECT - 69 + - 91 AS col0
----
-160

query II rowsort
SELECT 15, 14 col2
----
15
14

query I rowsort
SELECT ALL NULLIF ( - 19, + + 8 )
----
-19

query I rowsort
SELECT ALL + 33 * - 11
----
-363

query I rowsort
SELECT + 33 + - 97
----
-64

query II rowsort
SELECT - 38 - 57 AS col1, 49
----
-95
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6161
SELECT ALL - 61 * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - 61 * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 56 AS col0
----
56

query II rowsort
SELECT + 89 AS col1, 83 AS col2
----
89
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6164
SELECT ALL - + 80 AS col1, 44 * - + 65 + - COUNT( + + 12 ) AS col0
----
-80
-2861

skipif mysql # not compatible
query II rowsort label-6164
SELECT ALL - + 80 AS col1, 44 * - + 65 + - COUNT ( + + 12 ) AS col0
----
-80
-2861

query I rowsort
SELECT + NULLIF ( + - 24, 47 )
----
-24

query I rowsort
SELECT ALL - + 24 AS col1
----
-24

query I rowsort
SELECT ALL - + 37
----
-37

query II rowsort
SELECT + 23 AS col1, + 63
----
23
63

query I rowsort
SELECT ALL + 34 * - 8 AS col1
----
-272

query I rowsort
SELECT 61 + + ( + 64 ) AS col2
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6171
SELECT - 56 DIV + MIN( ALL 29 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6171
SELECT - 56 / + MIN ( ALL 29 ) AS col2
----
-1

query I rowsort
SELECT + COALESCE ( 49, 42 * 88 * + - 50 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL + 82 + + SUM( ALL 69 )
----
151

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + 82 + + SUM ( ALL 69 )
----
151

query I rowsort
SELECT ALL + 13 * + + 37
----
481

query I rowsort
SELECT - 82 * + 7 + + 29 AS col2
----
-545

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT DISTINCT - - 32 AS col2, 34 * - 90 * - COUNT( - 49 ) AS col2
----
32
3060

skipif mysql # not compatible
query II rowsort label-6176
SELECT DISTINCT - - 32 AS col2, 34 * - 90 * - COUNT ( - 49 ) AS col2
----
32
3060

query II rowsort
SELECT DISTINCT - - 71 AS col1, + 76 AS col2
----
71
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT ALL 53 DIV 80 * + 72
----
0

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL 53 / 80 * + 72
----
0

query I rowsort
SELECT 63 AS col0
----
63

query I rowsort
SELECT 59 - + 85 AS col2
----
-26

query I rowsort
SELECT ALL 25 col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT ALL CAST( NULL AS SIGNED ) / + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL CAST ( NULL AS INTEGER ) / + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + 48 * - - 94 + ( + COUNT( * ) ) AS col0
----
4513

skipif mysql # not compatible
query I rowsort label-6183
SELECT + 48 * - - 94 + ( + COUNT ( * ) ) AS col0
----
4513

query I rowsort
SELECT - 82 AS col2
----
-82

query I rowsort
SELECT ALL 11 * + 15 AS col1
----
165

query I rowsort
SELECT 49 + - - 89 AS col1
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-6187
SELECT COUNT( ALL - + 27 ) * 72 * - ( 94 ), 90 AS col2
----
-6768
90

skipif mysql # not compatible
query II rowsort label-6187
SELECT COUNT ( ALL - + 27 ) * 72 * - ( 94 ), 90 AS col2
----
-6768
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT 93 + 1 - - 72 * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6188
SELECT 93 + 1 - - 72 * - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT MIN( DISTINCT - 1 ) * - + 54 * - + 88 AS col2
----
-4752

skipif mysql # not compatible
query I rowsort label-6189
SELECT MIN ( DISTINCT - 1 ) * - + 54 * - + 88 AS col2
----
-4752

query I rowsort
SELECT 3 + 4
----
7

query I rowsort
SELECT - 47 + 67
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT ALL CAST( NULL AS SIGNED ) + + 25 * COUNT( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL CAST ( NULL AS INTEGER ) + + 25 * COUNT ( 18 )
----
NULL

query I rowsort
SELECT + - 96 AS col1
----
-96

query II rowsort
SELECT ALL + + 17 + + + 47 AS col0, + 14 AS col2
----
64
14

query I rowsort
SELECT + 97 + - - 27
----
124

query II rowsort
SELECT 88 * - 53 AS col1, - 50 * + 59 col1
----
-4664
-2950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT - - MAX( ALL CAST( + + COALESCE ( - - ( + 68 ), 20 * 1 + + 51, COALESCE ( - 63, - 37 ) - + + 83 ) AS SIGNED ) ) + 89 * + 63
----
5675

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - - MAX ( ALL CAST ( + + COALESCE ( - - ( + 68 ), 20 * 1 + + 51, COALESCE ( - 63, - 37 ) - + + 83 ) AS INTEGER ) ) + 89 * + 63
----
5675

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT 17 * + COALESCE ( 97, + 65, 67 ) * + - 40 + 86 + COUNT( * )
----
-65873

skipif mysql # not compatible
query I rowsort label-6198
SELECT 17 * + COALESCE ( 97, + 65, 67 ) * + - 40 + 86 + COUNT ( * )
----
-65873

query I rowsort
SELECT - 63 + 15 col0
----
-48

query I rowsort
SELECT ALL - - 21 AS col0
----
21

query I rowsort
SELECT + - 45 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6202
SELECT ALL + CASE - 73 WHEN - CAST( NULL AS DECIMAL ) THEN - - ( + 23 ) / + - 0 WHEN + 96 / - 67 THEN + 71 END + + 89 + ( + NULLIF ( COALESCE ( + - 73, 3, - 77 / + ( + 64 ) + + + 91 ), + NULLIF ( + MAX( - 11 ), - 86 ) + - COUNT( * ) / + - 65 ) ) * + 35 * SUM( + ( - 42 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL + CASE - 73 WHEN - CAST ( NULL AS REAL ) THEN - - ( + 23 ) / + - 0 WHEN + 96 / - 67 THEN + 71 END + + 89 + ( + NULLIF ( COALESCE ( + - 73, 3, - 77 / + ( + 64 ) + + + 91 ), + NULLIF ( + MAX ( - 11 ), - 86 ) + - COUNT ( * ) / + - 65 ) ) * + 35 * SUM ( + ( - 42 ) ) AS col0
----
NULL

query I rowsort
SELECT + + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - MIN( DISTINCT + 90 ) - 9
----
-99

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - MIN ( DISTINCT + 90 ) - 9
----
-99

query I rowsort
SELECT 65 * 26 + 94 - - 94 AS col1
----
1878

onlyif mysql # aggregate syntax: 
query II rowsort label-6206
SELECT DISTINCT - 85 AS col0, COUNT( * ) + - + ( 11 )
----
-85
-10

skipif mysql # not compatible
query II rowsort label-6206
SELECT DISTINCT - 85 AS col0, COUNT ( * ) + - + ( 11 )
----
-85
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT + 77 AS col2, SUM( ALL 14 ) AS col2
----
77
14

skipif mysql # not compatible
query II rowsort label-6207
SELECT + 77 AS col2, SUM ( ALL 14 ) AS col2
----
77
14

query I rowsort
SELECT ALL + 60 * - 36 AS col0
----
-2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6209
SELECT DISTINCT + MIN( NULLIF ( 20, + NULLIF ( + + ( + - 97 ), + NULLIF ( 84, + - 60 ) DIV 58 - 58 ) ) ) * 79 DIV + SUM( - 42 ) + + 32
----
-5

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT + MIN ( NULLIF ( 20, + NULLIF ( + + ( + - 97 ), + NULLIF ( 84, + - 60 ) / 58 - 58 ) ) ) * 79 / + SUM ( - 42 ) + + 32
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6210
SELECT ALL NULLIF ( COALESCE ( COALESCE ( 33, + - 97 ), - 72 DIV + MAX( DISTINCT - ( + ( + + 54 ) ) ), + COALESCE ( 24, + 2 + - 27 DIV 56 + + ( 50 ) + MAX( ALL 97 ) DIV + - 14 DIV + CASE - + 81 WHEN + - 20 * 9 * + - 37 THEN - ( - 70 ) WHEN COALESCE ( COUNT( * ), - MAX( ALL 99 ) ) THEN + 60 - 53 ELSE - 64 - + 51 - - + COUNT( * ) END * + 27 * NULLIF ( + 67, 39 ) + + 97 DIV - - 30, - 96 * 42, - 25 - 75 * 3 ) + + 53 ), 23 * NULLIF ( CAST( 77 AS SIGNED ), ( 86 ) * + 7 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL NULLIF ( COALESCE ( COALESCE ( 33, + - 97 ), - 72 / + MAX ( DISTINCT - ( + ( + + 54 ) ) ), + COALESCE ( 24, + 2 + - 27 / 56 + + ( 50 ) + MAX ( ALL 97 ) / + - 14 / + CASE - + 81 WHEN + - 20 * 9 * + - 37 THEN - ( - 70 ) WHEN COALESCE ( COUNT ( * ), - MAX ( ALL 99 ) ) THEN + 60 - 53 ELSE - 64 - + 51 - - + COUNT ( * ) END * + 27 * NULLIF ( + 67, 39 ) + + 97 / - - 30, - 96 * 42, - 25 - 75 * 3 ) + + 53 ), 23 * NULLIF ( CAST ( 77 AS INTEGER ), ( 86 ) * + 7 ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT MAX( DISTINCT + 81 ) + + + 35 + + 45 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-6211
SELECT MAX ( DISTINCT + 81 ) + + + 35 + + 45 AS col2
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT - 51 DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT - 51 / + + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT - COUNT( * ) + + - COALESCE ( - MAX( DISTINCT 99 ), + 35 )
----
98

skipif mysql # not compatible
query I rowsort label-6213
SELECT - COUNT ( * ) + + - COALESCE ( - MAX ( DISTINCT 99 ), + 35 )
----
98

query II rowsort
SELECT 78 AS col2, - ( 94 ) + 97 AS col0
----
78
3

query I rowsort
SELECT + 33 * - - 13 col0
----
429

query II rowsort
SELECT - NULLIF ( + 49, + COALESCE ( + 97, ( - + ( - 75 ) ), 60 ) ) AS col2, 91
----
-49
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT ALL 10, - 74 + ( + COUNT( * ) ) * - COUNT( * ) AS col2
----
10
-75

skipif mysql # not compatible
query II rowsort label-6217
SELECT ALL 10, - 74 + ( + COUNT ( * ) ) * - COUNT ( * ) AS col2
----
10
-75

query I rowsort
SELECT + 3 - - 10
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT DISTINCT + 43 + - + 94 DIV 80 - + - 63 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT + 43 + - + 94 / 80 - + - 63 AS col0
----
105

query I rowsort
SELECT DISTINCT - - 61 + + - 64 AS col2
----
-3

query I rowsort
SELECT ALL 75 * + - 10 AS col1
----
-750

query II rowsort
SELECT DISTINCT - 56 + + 27 + 73, 32 AS col1
----
44
32

query I rowsort
SELECT ALL COALESCE ( + 29, - 3 ) + - - 93 * 27
----
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL + MIN( + 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + MIN ( + 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT - - COUNT( * ) * + 28 + + 68 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - - COUNT ( * ) * + 28 + + 68 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT + COUNT( 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6226
SELECT + COUNT ( 99 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT ALL - NULLIF ( - - COUNT( - 68 ), + - 51 * - - CASE - 48 WHEN COUNT( * ) - - 31 * + - CAST( 19 AS SIGNED ) - + 30 / - CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN + + 90 THEN NULL ELSE NULL END ) * 58 + CAST( NULL AS SIGNED ) * - 95 + + AVG ( DISTINCT + 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - NULLIF ( - - COUNT ( - 68 ), + - 51 * - - CASE - 48 WHEN COUNT ( * ) - - 31 * + - CAST ( 19 AS INTEGER ) - + 30 / - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN + + 90 THEN NULL ELSE NULL END ) * 58 + CAST ( NULL AS INTEGER ) * - 95 + + AVG ( DISTINCT + 92 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6228
SELECT ALL + + 23 * COUNT( * ) * + - COUNT( * ) * 29 AS col1, + 85 AS col1
----
-667
85

skipif mysql # not compatible
query II rowsort label-6228
SELECT ALL + + 23 * COUNT ( * ) * + - COUNT ( * ) * 29 AS col1, + 85 AS col1
----
-667
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL - 64 * + + ( + 25 ) - + - COUNT( * )
----
-1599

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - 64 * + + ( + 25 ) - + - COUNT ( * )
----
-1599

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT + - 59 AS col1, - COALESCE ( 98, COALESCE ( - - 85, + COUNT( * ) + 30, 92 * + 7 - + - COUNT( * ) + 3, 70 ) ) + COUNT( * ) AS col1
----
-59
-97

skipif mysql # not compatible
query II rowsort label-6231
SELECT + - 59 AS col1, - COALESCE ( 98, COALESCE ( - - 85, + COUNT ( * ) + 30, 92 * + 7 - + - COUNT ( * ) + 3, 70 ) ) + COUNT ( * ) AS col1
----
-59
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT + - COUNT( ALL + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT + - COUNT ( ALL + 24 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL - COUNT( * ) * - 58
----
58

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL - COUNT ( * ) * - 58
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6234
SELECT + - COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT + - COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 36
----
36

query I rowsort
SELECT - - 61 * - 68 * - 47 + 14 * + 96 * + 60 * 66 col1
----
5517196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6237
SELECT + 23 + + 41 * + CASE 85 WHEN + + 57 / + 1 * + + NULLIF ( CASE - 44 WHEN - 60 * 46 THEN + 30 * 74 + 75 ELSE NULL END, - + 53 * 35 ) THEN + + 16 END * - 32 + - + COUNT( * ) AS col1, + 36 * - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6237
SELECT + 23 + + 41 * + CASE 85 WHEN + + 57 / + 1 * + + NULLIF ( CASE - 44 WHEN - 60 * 46 THEN + 30 * 74 + 75 ELSE NULL END, - + 53 * 35 ) THEN + + 16 END * - 32 + - + COUNT ( * ) AS col1, + 36 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT + 41 - + - 43
----
84

query I rowsort
SELECT + 0 * + 93 * 50 AS col2
----
0

query I rowsort
SELECT ALL + 33 AS col1
----
33

query I rowsort
SELECT - 70 + - - 67 AS col2
----
-3

query I rowsort
SELECT ALL + 4 AS col1
----
4

query I rowsort
SELECT DISTINCT + NULLIF ( + 52, 53 )
----
52

query I rowsort
SELECT - ( + 54 ) * + COALESCE ( - 94, - + 7 ) * - 99 col0
----
-502524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6245
SELECT - 77 * ( - MAX( - - 59 ) ) + + SUM( + 67 ) + - - 63 + - NULLIF ( - CASE 77 WHEN + 47 * + COUNT( * ) * + + CAST( AVG ( - 39 ) AS SIGNED ) + + 28 * 85 * + + 46 THEN - COALESCE ( - COUNT( * ), 13 ) ELSE - + 2 DIV - 98 - - ( 14 ) END, 40 * + + COUNT( - 83 ) ) + + COUNT( * ) * - - 66
----
4753

skipif mysql # not compatible
query I rowsort label-6245
SELECT - 77 * ( - MAX ( - - 59 ) ) + + SUM ( + 67 ) + - - 63 + - NULLIF ( - CASE 77 WHEN + 47 * + COUNT ( * ) * + + CAST ( AVG ( - 39 ) AS INTEGER ) + + 28 * 85 * + + 46 THEN - COALESCE ( - COUNT ( * ), 13 ) ELSE - + 2 / - 98 - - ( 14 ) END, 40 * + + COUNT ( - 83 ) ) + + COUNT ( * ) * - - 66
----
4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT - CAST( 27 AS SIGNED ) - + 20 - + - COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6246
SELECT - CAST ( 27 AS INTEGER ) - + 20 - + - COUNT ( * ) AS col1
----
-46

query I rowsort
SELECT ALL NULLIF ( 77, + 77 - 97 * - + 23 + + 77 - + 95 * - + 4 )
----
77

query I rowsort
SELECT - 34 + + - 7 + + 94 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT - COUNT( * ) + - + 99 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-6249
SELECT - COUNT ( * ) + - + 99 AS col0
----
-100

query I rowsort
SELECT - 45 AS col0
----
-45

query II rowsort
SELECT ALL + 2 * + 43 AS col0, - 64 AS col0
----
86
-64

query I rowsort
SELECT + 92 + - - 91 + + 83
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - NULLIF ( - + 36, - 1 / + 88 - - 54 + - + CASE + 27 WHEN - 27 THEN NULL ELSE NULLIF ( + 45, + + 70 * + 46 - - 32 * 45 ) END * - + MIN( DISTINCT + 75 ) * - 97 + 74 ) + - 64 - + 17 * NULLIF ( - 3, ( - ( + - 98 ) ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6253
SELECT - NULLIF ( - + 36, - 1 / + 88 - - 54 + - + CASE + 27 WHEN - 27 THEN NULL ELSE NULLIF ( + 45, + + 70 * + 46 - - 32 * 45 ) END * - + MIN ( DISTINCT + 75 ) * - 97 + 74 ) + - 64 - + 17 * NULLIF ( - 3, ( - ( + - 98 ) ) ) AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL CAST( - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL CAST ( - 92 AS INTEGER )
----
-92

query I rowsort
SELECT - 34 + - + 48
----
-82

query I rowsort
SELECT ALL + 27 + + 51 + 90 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT - + COUNT( * ) * + MAX( - 43 ) * - ( + + 84 )
----
-3612

skipif mysql # not compatible
query I rowsort label-6257
SELECT - + COUNT ( * ) * + MAX ( - 43 ) * - ( + + 84 )
----
-3612

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6258
SELECT - 96 + + 51 + 82 + - 38 + COALESCE ( NULLIF ( + COUNT( * ), + 2 * - 82 + + + CAST( NULL AS DECIMAL ) + + 62 ), + - 78 * + 97 ) * + 95 - 28 DIV + + SUM( ALL - 41 ) * + ( + 98 )
----
94

skipif mysql # not compatible
query I rowsort label-6258
SELECT - 96 + + 51 + 82 + - 38 + COALESCE ( NULLIF ( + COUNT ( * ), + 2 * - 82 + + + CAST ( NULL AS REAL ) + + 62 ), + - 78 * + 97 ) * + 95 - 28 / + + SUM ( ALL - 41 ) * + ( + 98 )
----
94

query I rowsort
SELECT - 75 AS col1
----
-75

query I rowsort
SELECT - 36 * 91 - + 5 * + + 27 AS col0
----
-3411

query I rowsort
SELECT ALL + ( - 57 ) * + 10
----
-570

query I rowsort
SELECT + + 89 + + + 37
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT DISTINCT + 83 - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + 83 - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT COALESCE ( + 91, - - 2 * + 7, - 71 ) DIV - + 56 + + - 31 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6264
SELECT COALESCE ( + 91, - - 2 * + 7, - 71 ) / - + 56 + + - 31 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT DISTINCT + 89 DIV 65 - - ( 46 ) + - - 52 * + 97
----
5091

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT + 89 / 65 - - ( 46 ) + - - 52 * + 97
----
5091

query I rowsort
SELECT ALL + ( - 5 )
----
-5

query I rowsort
SELECT DISTINCT + + 60
----
60

query I rowsort
SELECT + + 90 * + 55 + - 64 AS col0
----
4886

query II rowsort
SELECT + 39 * + 35 AS col0, - ( 37 ) AS col0
----
1365
-37

query I rowsort
SELECT 73 * - - CASE - 16 WHEN - 40 * 31 + 96 * 57 * + + 2 THEN NULL ELSE 72 END + + 95 col2
----
5351

query I rowsort
SELECT ALL + 94 col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT CAST( - 97 AS SIGNED ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6272
SELECT CAST ( - 97 AS INTEGER ) AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT + 76 DIV - 19 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6273
SELECT + 76 / - 19 AS col0
----
-4

query I rowsort
SELECT ALL 88 * 26 AS col2
----
2288

query I rowsort
SELECT ( + - 50 ) col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT + CAST( + 31 AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6276
SELECT + CAST ( + 31 AS INTEGER ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL + COUNT( * ) * - + 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL + COUNT ( * ) * - + 4 AS col1
----
-4

query I rowsort
SELECT DISTINCT + 10 AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT NULLIF ( + + COUNT( * ), 84 - - 11 * + 55 ) * 35 + - 2 DIV - - 39 + + 63 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6279
SELECT NULLIF ( + + COUNT ( * ), 84 - - 11 * + 55 ) * 35 + - 2 / - - 39 + + 63 AS col0
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6280
SELECT - CAST( NULL AS DECIMAL ) * - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT - CAST ( NULL AS REAL ) * - 8 AS col1
----
NULL

query I rowsort
SELECT ALL 28 * - 1 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT 87 + - COUNT( ALL - + 25 ) + + + COALESCE ( 79, + 33 * + + 62 ) * 90
----
7196

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT 87 + - COUNT ( ALL - + 25 ) + + + COALESCE ( 79, + 33 * + + 62 ) * 90
----
7196

query I rowsort
SELECT ALL - 70 + - 98
----
-168

query I rowsort
SELECT 89 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT 13 * - + COUNT( * ) * + NULLIF ( - + 98, - + NULLIF ( - 73, - 98 + + COUNT( * ) * - - 19 ) ) AS col1
----
1274

skipif mysql # not compatible
query I rowsort label-6285
SELECT 13 * - + COUNT ( * ) * + NULLIF ( - + 98, - + NULLIF ( - 73, - 98 + + COUNT ( * ) * - - 19 ) ) AS col1
----
1274

onlyif mysql # DIV for integer division: 
query II rowsort label-6286
SELECT ALL 0 AS col2, + 42 + - 37 DIV + COALESCE ( - 16, - CASE - - 98 WHEN + 22 * 80 THEN - 94 END + 68, - - 43 )
----
0
44

skipif mysql # not compatible
query II rowsort label-6286
SELECT ALL 0 AS col2, + 42 + - 37 / + COALESCE ( - 16, - CASE - - 98 WHEN + 22 * 80 THEN - 94 END + 68, - - 43 )
----
0
44

query I rowsort
SELECT 3 col0
----
3

query I rowsort
SELECT ALL 86 + - + ( + 13 ) * + + 50 * - + 10 AS col1
----
6586

query I rowsort
SELECT 8 col2
----
8

query I rowsort
SELECT ALL + 44 + - - 25 + - 63
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT 4 + 89 * 39 * - - COUNT( * ) AS col0
----
3475

skipif mysql # not compatible
query I rowsort label-6291
SELECT 4 + 89 * 39 * - - COUNT ( * ) AS col0
----
3475

query I rowsort
SELECT - + 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT + MAX( DISTINCT + + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6293
SELECT + MAX ( DISTINCT + + 28 ) AS col0
----
28

query I rowsort
SELECT 51 + 24
----
75

query I rowsort
SELECT 94 * + 64 * + - 6 col2
----
-36096

query I rowsort
SELECT - 20 col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT + 63 + - - 74 - + 20 + - MAX( 16 ) DIV + ( - ( - 93 ) )
----
117

skipif mysql # not compatible
query I rowsort label-6297
SELECT + 63 + - - 74 - + 20 + - MAX ( 16 ) / + ( - ( - 93 ) )
----
117

query I rowsort
SELECT ALL + + 44 - + 8 + - 81 + - 3 + + - 13 - 11 * - + 4 * + 11 AS col1
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - MAX( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-6299
SELECT - MAX ( 51 )
----
-51

query I rowsort
SELECT 65 col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL CAST( - 26 AS SIGNED ) * 37
----
-962

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL CAST ( - 26 AS INTEGER ) * 37
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT + 87 - - - 71 + - COUNT( * ) + - NULLIF ( + 3, - COALESCE ( - + 86, + - 81 ) )
----
12

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT + 87 - - - 71 + - COUNT ( * ) + - NULLIF ( + 3, - COALESCE ( - + 86, + - 81 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT - - 14 * + - COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - - 14 * + - COUNT ( * ) AS col2
----
-14

query I rowsort
SELECT + 48 + 5 * ( + 36 ) + - 84 + + - 14
----
130

query I rowsort
SELECT 99 + + 82
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6306
SELECT DISTINCT - 30 DIV - - 95 * - COUNT( * ) * - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - 30 / - - 95 * - COUNT ( * ) * - 29 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT - 14 + - - ( NULLIF ( ( 91 ), CAST( COUNT( * ) AS SIGNED ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-6307
SELECT - 14 + - - ( NULLIF ( ( 91 ), CAST ( COUNT ( * ) AS INTEGER ) ) )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6308
SELECT 89 - - CAST( + - COUNT( * ) AS SIGNED ) + - 20 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6308
SELECT 89 - - CAST ( + - COUNT ( * ) AS INTEGER ) + - 20 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT - ( - - 24 ) * + CAST( + + COUNT( * ) AS SIGNED ) * 57
----
-1368

skipif mysql # not compatible
query I rowsort label-6309
SELECT - ( - - 24 ) * + CAST ( + + COUNT ( * ) AS INTEGER ) * 57
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT COUNT( * ) * - CASE + 71 WHEN - 95 * + + 46 / 85 * 46 THEN - - 30 WHEN + - 61 THEN + - 22 + 62 + - - 46 END + - 9 - - 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT COUNT ( * ) * - CASE + 71 WHEN - 95 * + + 46 / 85 * 46 THEN - - 30 WHEN + - 61 THEN + - 22 + 62 + - - 46 END + - 9 - - 80 col0
----
NULL

query I rowsort
SELECT 22 * + ( - 81 )
----
-1782

query I rowsort
SELECT - COALESCE ( - - 79, - - 44, - + 83 ) AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT DISTINCT + + 97 DIV + 85 + - 98 * + + 70 col1
----
-6859

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + + 97 / + 85 + - 98 * + + 70 col1
----
-6859

query I rowsort
SELECT DISTINCT - - ( - 47 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6315
SELECT ALL - 23 col0, CASE - - 1 WHEN - 85 / - - 82 - + + COUNT( - 26 ) + + - 82 * 2 THEN - + 71 WHEN - 33 THEN + 3 ELSE NULL END + + 58
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-6315
SELECT ALL - 23 col0, CASE - - 1 WHEN - 85 / - - 82 - + + COUNT ( - 26 ) + + - 82 * 2 THEN - + 71 WHEN - 33 THEN + 3 ELSE NULL END + + 58
----
-23
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT DISTINCT 47 * COUNT( * ) DIV - 51 * + + 52 * 37
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT 47 * COUNT ( * ) / - 51 * + + 52 * 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT DISTINCT - ( - + COUNT( * ) ) AS col0, 87 + + MAX( DISTINCT - 18 )
----
1
69

skipif mysql # not compatible
query II rowsort label-6317
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col0, 87 + + MAX ( DISTINCT - 18 )
----
1
69

query II rowsort
SELECT ALL - 42, 45 * 38 * - 85 AS col1
----
-42
-145350

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL + 74 + + COUNT( 78 ) + 69 col2
----
144

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + 74 + + COUNT ( 78 ) + 69 col2
----
144

query I rowsort
SELECT 69 col0
----
69

query I rowsort
SELECT + 28 AS col0
----
28

query I rowsort
SELECT 94 * - 9 * + 23 col2
----
-19458

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL 46 + + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL 46 + + COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6324
SELECT CASE + 78 WHEN + MIN( + - 65 ) * - + 37 + + 40 THEN - 96 WHEN + ( + + COUNT( * ) ) THEN NULL ELSE NULL END + + - MIN( DISTINCT + 86 ) AS col1, - 32 AS col0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-6324
SELECT CASE + 78 WHEN + MIN ( + - 65 ) * - + 37 + + 40 THEN - 96 WHEN + ( + + COUNT ( * ) ) THEN NULL ELSE NULL END + + - MIN ( DISTINCT + 86 ) AS col1, - 32 AS col0
----
NULL
-32

query II rowsort
SELECT 86 AS col2, ( + 74 )
----
86
74

query I rowsort
SELECT ALL - 2 + - 58 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL CASE - COALESCE ( - 41, + 23 ) WHEN ( CASE + COUNT( * ) WHEN + + 74 THEN NULL ELSE ( + + NULLIF ( - + 41, 68 * - - 99 ) ) + - 72 END ) THEN - 83 + 28 END + - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL CASE - COALESCE ( - 41, + 23 ) WHEN ( CASE + COUNT ( * ) WHEN + + 74 THEN NULL ELSE ( + + NULLIF ( - + 41, 68 * - - 99 ) ) + - 72 END ) THEN - 83 + 28 END + - - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT ALL 86 + - + 90 + - 82 * + CAST( - - 20 AS SIGNED ) + - ( + MAX( + 16 ) ) AS col0
----
-1660

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL 86 + - + 90 + - 82 * + CAST ( - - 20 AS INTEGER ) + - ( + MAX ( + 16 ) ) AS col0
----
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT COUNT( * ) + - + 23
----
-22

skipif mysql # not compatible
query I rowsort label-6329
SELECT COUNT ( * ) + - + 23
----
-22

query I rowsort
SELECT ALL + NULLIF ( + ( - - ( - + 1 ) ), + - 81 ) + - 88
----
-89

query I rowsort
SELECT COALESCE ( + 9, - 17 ) * 10
----
90

query I rowsort
SELECT DISTINCT 80 * - 26 * + 60 col0
----
-124800

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT 18 + - SUM( + + 47 )
----
-29

skipif mysql # not compatible
query I rowsort label-6333
SELECT 18 + - SUM ( + + 47 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6334
SELECT DISTINCT 73 + - 90 + COUNT( - 90 ) DIV + 7 * 41 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT 73 + - 90 + COUNT ( - 90 ) / + 7 * 41 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT COALESCE ( - 49, COUNT( * ), 5 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-6335
SELECT COALESCE ( - 49, COUNT ( * ), 5 ) col1
----
-49

query I rowsort
SELECT DISTINCT CASE 56 WHEN + - 99 THEN 7 ELSE NULL END - + + 62
----
NULL

query I rowsort
SELECT 88 + - 54
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL 88 - - ( COALESCE ( - ( - COUNT( * ) ), - COUNT( * ) + - 54, 53 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL 88 - - ( COALESCE ( - ( - COUNT ( * ) ), - COUNT ( * ) + - 54, 53 ) ) AS col2
----
89

query II rowsort
SELECT - - 19, - 4 AS col2
----
19
-4

query I rowsort
SELECT - 49 AS col0
----
-49

query I rowsort
SELECT - 54 * COALESCE ( - 37, 96 )
----
1998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - 85 * COUNT( * ) * + 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - 85 * COUNT ( * ) * + 57 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT + 81 + ( COUNT( * ) ) * + 7
----
88

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 81 + ( COUNT ( * ) ) * + 7
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT 0 * - CASE + + 12 WHEN - + NULLIF ( + - MIN( DISTINCT + 6 ), - - 48 / 4 - MIN( DISTINCT + + 67 ) * - ( - - 62 ) + - 6 + - 95 + - COALESCE ( - - 14, + CASE - - COUNT( * ) WHEN 12 + 4 THEN 63 + - 6 WHEN + + AVG ( - 87 ) + - 20 / + COALESCE ( + ( - CASE - 32 WHEN + - 51 THEN + COUNT( * ) WHEN + 66 * + - 26 THEN NULL END ), + 68 ) THEN NULL END * 32 / + + 43 * + 82 - + - COUNT( * ) ) - - 21 * - 65 + + - 72 - + 31 ) THEN NULL WHEN + COUNT( * ) THEN - + 37 - - 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT 0 * - CASE + + 12 WHEN - + NULLIF ( + - MIN ( DISTINCT + 6 ), - - 48 / 4 - MIN ( DISTINCT + + 67 ) * - ( - - 62 ) + - 6 + - 95 + - COALESCE ( - - 14, + CASE - - COUNT ( * ) WHEN 12 + 4 THEN 63 + - 6 WHEN + + AVG ( - 87 ) + - 20 / + COALESCE ( + ( - CASE - 32 WHEN + - 51 THEN + COUNT ( * ) WHEN + 66 * + - 26 THEN NULL END ), + 68 ) THEN NULL END * 32 / + + 43 * + 82 - + - COUNT ( * ) ) - - 21 * - 65 + + - 72 - + 31 ) THEN NULL WHEN + COUNT ( * ) THEN - + 37 - - 86 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT 68 + 4 + - 89 + + COUNT( * ) * - 35
----
-52

skipif mysql # not compatible
query I rowsort label-6345
SELECT 68 + 4 + - 89 + + COUNT ( * ) * - 35
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL + - 45 * + 23 + - COUNT( * )
----
-1036

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL + - 45 * + 23 + - COUNT ( * )
----
-1036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT + COUNT( * ) DIV + COUNT( * ) + - 64 * + COUNT( 95 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6347
SELECT + COUNT ( * ) / + COUNT ( * ) + - 64 * + COUNT ( 95 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL 40 * 68 + - 73 - 74 - + + ( - - COUNT( * ) ) * + 49 * 84 AS col0
----
-1543

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL 40 * 68 + - 73 - 74 - + + ( - - COUNT ( * ) ) * + 49 * 84 AS col0
----
-1543

query I rowsort
SELECT ALL - 42
----
-42

query I rowsort
SELECT NULLIF ( + - 27, 64 + 52 * 75 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL 46 * - + MIN( DISTINCT + 67 ) + - COUNT( * )
----
-3083

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL 46 * - + MIN ( DISTINCT + 67 ) + - COUNT ( * )
----
-3083

query I rowsort
SELECT NULLIF ( 62, + 73 ) AS col2
----
62

query I rowsort
SELECT COALESCE ( + 7, + 27 ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT - NULLIF ( 0, + - 66 ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-6354
SELECT - NULLIF ( 0, + - 66 ) / - 57
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6355
SELECT COALESCE ( + 78, - + 45 + + - SUM( 33 ) ), + 27 + - 25 col0
----
78
2

skipif mysql # not compatible
query II rowsort label-6355
SELECT COALESCE ( + 78, - + 45 + + - SUM ( 33 ) ), + 27 + - 25 col0
----
78
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT ALL COALESCE ( 57, - + 43 ) * 47 + - - 53, + 80 + + + COUNT( 28 ) AS col0
----
2732
81

skipif mysql # not compatible
query II rowsort label-6356
SELECT ALL COALESCE ( 57, - + 43 ) * 47 + - - 53, + 80 + + + COUNT ( 28 ) AS col0
----
2732
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT - CAST( NULL AS SIGNED ) / - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT - CAST ( NULL AS INTEGER ) / - 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT - MIN( 17 ) * 38
----
-646

skipif mysql # not compatible
query I rowsort label-6358
SELECT - MIN ( 17 ) * 38
----
-646

query I rowsort
SELECT DISTINCT - 98 * + 35 col2
----
-3430

query II rowsort
SELECT ALL 39 * + 73 * + 40 + + 18 + + + 97 AS col2, + 75 AS col1
----
113995
75

query I rowsort
SELECT ALL - 80 * + 15 AS col2
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT - COUNT( * ) * 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6362
SELECT - COUNT ( * ) * 93 AS col0
----
-93

query I rowsort
SELECT ALL + 67 AS col1
----
67

query I rowsort
SELECT ALL + - 19 col2
----
-19

query I rowsort
SELECT ALL - 54 col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL + CASE + + NULLIF ( - AVG ( ALL + - 67 ), - 78 * - COUNT( DISTINCT + CASE 92 WHEN + + 12 * + + ( - 24 ) * + + 1 THEN + - 1 / - 93 ELSE + - 23 END ) ) WHEN 60 THEN + 75 * 89 * - + 34 * - SUM( + 86 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + CASE + + NULLIF ( - AVG ( ALL + - 67 ), - 78 * - COUNT ( DISTINCT + CASE 92 WHEN + + 12 * + + ( - 24 ) * + + 1 THEN + - 1 / - 93 ELSE + - 23 END ) ) WHEN 60 THEN + 75 * 89 * - + 34 * - SUM ( + 86 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 42 * 81 * - - 46 + 26 + + 91
----
156609

query I rowsort
SELECT + - 2 * - 38 * + 20 AS col2
----
1520

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6369
SELECT DISTINCT - 96 / + CASE 34 WHEN - 50 THEN + - 21 + + - 63 WHEN 64 THEN NULL END / - + CAST( + 82 AS DECIMAL ) + - - 63, COUNT( * ) + COALESCE ( + - ( COUNT( * ) ), + 83 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6369
SELECT DISTINCT - 96 / + CASE 34 WHEN - 50 THEN + - 21 + + - 63 WHEN 64 THEN NULL END / - + CAST ( + 82 AS REAL ) + - - 63, COUNT ( * ) + COALESCE ( + - ( COUNT ( * ) ), + 83 ) AS col2
----
NULL
0

query I rowsort
SELECT + + ( + - 99 ) + + 85
----
-14

query I rowsort
SELECT - ( - ( - 28 ) ) AS col1
----
-28

query I rowsort
SELECT ALL + 72 * + - 33
----
-2376

query I rowsort
SELECT - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL + COUNT( * ) + + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + COUNT ( * ) + + ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT + 19 + - + CAST( - 99 AS SIGNED ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-6375
SELECT + 19 + - + CAST ( - 99 AS INTEGER ) AS col0
----
118

query I rowsort
SELECT ALL 15 + - ( - 3 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + SUM( ALL - 82 ) * - - 89 col1
----
-7298

skipif mysql # not compatible
query I rowsort label-6377
SELECT + SUM ( ALL - 82 ) * - - 89 col1
----
-7298

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT + 17 + - - 76 - + MIN( ALL - - 92 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6378
SELECT + 17 + - - 76 - + MIN ( ALL - - 92 ) col0
----
1

query II rowsort
SELECT - ( - + 77 ) - - - 77 AS col2, + 28 * 85
----
0
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL + 83 * - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + 83 * - COUNT ( * ) AS col2
----
-83

query I rowsort
SELECT - ( + 70 ) AS col1
----
-70

query I rowsort
SELECT ALL + 48 AS col0
----
48

query I rowsort
SELECT + 29 AS col1
----
29

query I rowsort
SELECT ALL 69 * - 82
----
-5658

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6385
SELECT CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL + MIN( ALL CAST( 7 AS SIGNED ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + MIN ( ALL CAST ( 7 AS INTEGER ) ) AS col1
----
7

query I rowsort
SELECT ( - - 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT 35 DIV - 18 * - 96 DIV + 99 DIV - 13 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT 35 / - 18 * - 96 / + 99 / - 13 - COUNT ( * )
----
-1

query I rowsort
SELECT - 33 * + 82 * - 84 AS col0
----
227304

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT + 85 DIV - 83 + - 49
----
-50

skipif mysql # not compatible
query I rowsort label-6390
SELECT + 85 / - 83 + - 49
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6391
SELECT - NULLIF ( COUNT( * ), - - COUNT( * ) ) + - 22 * - 39 + COUNT( * ) AS col2, COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6391
SELECT - NULLIF ( COUNT ( * ), - - COUNT ( * ) ) + - 22 * - 39 + COUNT ( * ) AS col2, COUNT ( * ) col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT ALL - ( + 81 ) DIV + + 84 + + 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - ( + 81 ) / + + 84 + + 8 AS col0
----
8

query I rowsort
SELECT - 97 * + 67
----
-6499

query I rowsort
SELECT ( 35 )
----
35

query I rowsort
SELECT - 15 + + ( + 50 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT - 40 * + + SUM( 68 ) + + - 67 - SUM( ALL + 94 )
----
-2881

skipif mysql # not compatible
query I rowsort label-6396
SELECT - 40 * + + SUM ( 68 ) + + - 67 - SUM ( ALL + 94 )
----
-2881

query I rowsort
SELECT ALL + 8 * - + 47 * - ( - 45 ) - - 99 * - 56 col1
----
-22464

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6398
SELECT ALL - 58 DIV + ( - 32 ) AS col0, COALESCE ( - - 73, 57 DIV 87 + + - COUNT( * ) )
----
1
73

skipif mysql # not compatible
query II rowsort label-6398
SELECT ALL - 58 / + ( - 32 ) AS col0, COALESCE ( - - 73, 57 / 87 + + - COUNT ( * ) )
----
1
73

query II rowsort
SELECT DISTINCT + + 52, 23 col1
----
52
23

query I rowsort
SELECT ALL + + 26
----
26

query I rowsort
SELECT + - ( + - 29 ) AS col2
----
29

query I rowsort
SELECT - + 72 + + 8 AS col2
----
-64

query I rowsort
SELECT + + 81 + + 86
----
167

query I rowsort
SELECT ALL 83 col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - - COUNT( * ) * - COUNT( * ) * + COALESCE ( + - 9, + 32, - - COUNT( * ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6405
SELECT - - COUNT ( * ) * - COUNT ( * ) * + COALESCE ( + - 9, + 32, - - COUNT ( * ) ) AS col1
----
9

query II rowsort
SELECT 27, + 24 AS col0
----
27
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT + 45 * - - MAX( ALL + - 12 )
----
-540

skipif mysql # not compatible
query I rowsort label-6407
SELECT + 45 * - - MAX ( ALL + - 12 )
----
-540

query I rowsort
SELECT DISTINCT - 36 * + 20 + + 46 AS col0
----
-674

query I rowsort
SELECT 33 AS col0
----
33

query I rowsort
SELECT - + 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT + - 28 + - 86 + ( - - SUM( 58 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + - 28 + - 86 + ( - - SUM ( 58 ) )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT DISTINCT 60 + + CAST( NULL AS SIGNED ) + - + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT 60 + + CAST ( NULL AS INTEGER ) + - + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT + - 96 * - + MAX( DISTINCT + 71 )
----
6816

skipif mysql # not compatible
query I rowsort label-6413
SELECT + - 96 * - + MAX ( DISTINCT + 71 )
----
6816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6414
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) * 91 * + - 48 AS col2
----
NULL
-4368

skipif mysql # not compatible
query II rowsort label-6414
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) * 91 * + - 48 AS col2
----
NULL
-4368

query II rowsort
SELECT ALL 41 AS col1, 74
----
41
74

query I rowsort
SELECT DISTINCT 64 * + 20
----
1280

query I rowsort
SELECT ALL 23 + 95 AS col2
----
118

query I rowsort
SELECT 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT CASE - - 12 WHEN 73 THEN + 79 END + - COUNT( ALL - 88 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT CASE - - 12 WHEN 73 THEN + 79 END + - COUNT ( ALL - 88 ) col1
----
NULL

query II rowsort
SELECT 87 * + + 93, 71 AS col2
----
8091
71

query I rowsort
SELECT DISTINCT 28 * - 62
----
-1736

query I rowsort
SELECT ALL 80 AS col2
----
80

query I rowsort
SELECT DISTINCT - 70
----
-70

query I rowsort
SELECT DISTINCT - 45 AS col0
----
-45

query I rowsort
SELECT 19 + - 56 col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT DISTINCT 57 - + + 2 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT 57 - + + 2 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 92 AS col0
----
92

query I rowsort
SELECT - 31 * 42 + + 16 AS col1
----
-1286

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT + COUNT( * ) * + + 55 * 28 AS col1
----
1540

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT + COUNT ( * ) * + + 55 * 28 AS col1
----
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT ALL 80 DIV - 17
----
-4

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL 80 / - 17
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT - 8 * + + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - 8 * + + COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT ALL - 63 col0
----
-63

query I rowsort
SELECT DISTINCT - 15 col2
----
-15

query I rowsort
SELECT ALL - 61 AS col1
----
-61

query I rowsort
SELECT ALL - - CASE + 7 WHEN 44 THEN - 79 END AS col0
----
NULL

query I rowsort
SELECT - 51 * + 34
----
-1734

query I rowsort
SELECT 63 * - 39 AS col0
----
-2457

query I rowsort
SELECT + + 9
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL + 55 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + 55 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT - + 89 * - + COUNT( * ) - 42 - - 42 DIV - 55
----
47

skipif mysql # not compatible
query I rowsort label-6440
SELECT - + 89 * - + COUNT ( * ) - 42 - - 42 / - 55
----
47

query I rowsort
SELECT ALL - NULLIF ( - - 77, 39 ) col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL - 64 * + 67 * - CASE 1 WHEN + - 59 THEN - 80 + + COUNT( + CAST( NULL AS SIGNED ) ) / - 90 + + CASE + 29 WHEN 20 THEN ( - + ( - 8 ) ) END - + 83 WHEN + 44 THEN NULL ELSE NULL END * - - NULLIF ( + + 63, 48 ) * ( 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - 64 * + 67 * - CASE 1 WHEN + - 59 THEN - 80 + + COUNT ( + CAST ( NULL AS INTEGER ) ) / - 90 + + CASE + 29 WHEN 20 THEN ( - + ( - 8 ) ) END - + 83 WHEN + 44 THEN NULL ELSE NULL END * - - NULLIF ( + + 63, 48 ) * ( 94 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6443
SELECT ALL + - ( 51 ) + + 71 + - 2 * ( - 82 ) DIV - 89 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + - ( 51 ) + + 71 + - 2 * ( - 82 ) / - 89 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 22 + + COUNT( DISTINCT 37 )
----
23

skipif mysql # not compatible
query I rowsort label-6444
SELECT 22 + + COUNT ( DISTINCT 37 )
----
23

query I rowsort
SELECT - 36 AS col0
----
-36

query I rowsort
SELECT 12 - ( - + 80 ) AS col2
----
92

query I rowsort
SELECT ALL - + 25 * + 42
----
-1050

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT - 81 + - + ( + - NULLIF ( + - 24, + - 76 ) ) * + AVG ( - 64 ) - + - CASE COUNT( * ) WHEN 76 THEN + + 85 END * - 20 AS col2, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-6448
SELECT - 81 + - + ( + - NULLIF ( + - 24, + - 76 ) ) * + AVG ( - 64 ) - + - CASE COUNT ( * ) WHEN 76 THEN + + 85 END * - 20 AS col2, 92
----
NULL
92

query I rowsort
SELECT - 36 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT MAX( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT MAX ( + 12 )
----
12

query I rowsort
SELECT ALL 82 - - 28
----
110

query I rowsort
SELECT 77 * - - 68
----
5236

query I rowsort
SELECT ALL - 84 * - 41
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT SUM( DISTINCT - - 76 ) + + ( 29 ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-6454
SELECT SUM ( DISTINCT - - 76 ) + + ( 29 ) AS col1
----
105

query I rowsort
SELECT ALL 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT 96 + - + 49 * 96 + + COUNT( * ) + + 64 * 84 AS col2
----
769

skipif mysql # not compatible
query I rowsort label-6456
SELECT 96 + - + 49 * 96 + + COUNT ( * ) + + 64 * 84 AS col2
----
769

query I rowsort
SELECT ALL - 57 - 34 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6458
SELECT 3 * + SUM( ALL + ( - ( - - 99 ) ) ), COALESCE ( - 51, + 94 ) AS col1
----
-297
-51

skipif mysql # not compatible
query II rowsort label-6458
SELECT 3 * + SUM ( ALL + ( - ( - - 99 ) ) ), COALESCE ( - 51, + 94 ) AS col1
----
-297
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL 69 * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL 69 * - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT - COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - COUNT ( * ) / + 92
----
0

query I rowsort
SELECT 86 + - 12
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6462
SELECT 22 DIV + COUNT( + - 89 ), - 38 * + COALESCE ( + - 82, - 73, - CASE + CAST( NULL AS SIGNED ) WHEN 66 THEN 56 * 54 ELSE + COUNT( * ) * - 74 + + MIN( DISTINCT + + 62 ) DIV + - 82 END + 24 * + - 6 ) + - 61 * - 96 AS col1
----
22
8972

skipif mysql # not compatible
query II rowsort label-6462
SELECT 22 / + COUNT ( + - 89 ), - 38 * + COALESCE ( + - 82, - 73, - CASE + CAST ( NULL AS INTEGER ) WHEN 66 THEN 56 * 54 ELSE + COUNT ( * ) * - 74 + + MIN ( DISTINCT + + 62 ) / + - 82 END + 24 * + - 6 ) + - 61 * - 96 AS col1
----
22
8972

query I rowsort
SELECT ALL 16 * + 53 AS col2
----
848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT ALL 33 * 62 * CAST( 40 AS SIGNED ) AS col2
----
81840

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL 33 * 62 * CAST ( 40 AS INTEGER ) AS col2
----
81840

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT COUNT( + 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6465
SELECT COUNT ( + 75 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT 12 DIV + + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6466
SELECT 12 / + + 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL - COUNT( * ) * + - COUNT( * ) * + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) * + - 74
----
-74

query I rowsort
SELECT ALL - 92 AS col1
----
-92

query I rowsort
SELECT ALL 74 * NULLIF ( + 36, + 7 )
----
2664

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT ALL - 66, + 27 * + COUNT( * ) AS col0
----
-66
27

skipif mysql # not compatible
query II rowsort label-6470
SELECT ALL - 66, + 27 * + COUNT ( * ) AS col0
----
-66
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT MIN( - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6471
SELECT MIN ( - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT COALESCE ( COUNT( * ), - ( + 44 ) ) - 55 * + ( + 45 ) AS col2
----
-2474

skipif mysql # not compatible
query I rowsort label-6472
SELECT COALESCE ( COUNT ( * ), - ( + 44 ) ) - 55 * + ( + 45 ) AS col2
----
-2474

query I rowsort
SELECT DISTINCT - 79 AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT 86 DIV COUNT( * ) + 79
----
165

skipif mysql # not compatible
query I rowsort label-6474
SELECT 86 / COUNT ( * ) + 79
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT 50 * + CAST( NULL AS SIGNED ) - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT 50 * + CAST ( NULL AS INTEGER ) - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT SUM( DISTINCT + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6476
SELECT SUM ( DISTINCT + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL - COUNT( * ) * + COUNT( - 12 ) + - COUNT( * ) * - 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL - COUNT ( * ) * + COUNT ( - 12 ) + - COUNT ( * ) * - 48 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT 37 * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-6478
SELECT 37 * + COUNT ( * )
----
37

query I rowsort
SELECT 72 * - CASE + 67 * 40 WHEN 53 THEN NULL WHEN + 74 * - ( ( 85 ) ) THEN 52 * 4 + - 46 * - 23 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT ALL 96 + + CAST( + 38 AS SIGNED ) * 30 AS col1
----
1236

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL 96 + + CAST ( + 38 AS INTEGER ) * 30 AS col1
----
1236

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT + MIN( DISTINCT 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6481
SELECT + MIN ( DISTINCT 88 )
----
88

query I rowsort
SELECT ALL ( 42 ) + + 48
----
90

query I rowsort
SELECT DISTINCT 25 + - 36
----
-11

query I rowsort
SELECT ALL - COALESCE ( + 25, 32 )
----
-25

query I rowsort
SELECT ALL - 27
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT MIN( - CAST( NULL AS SIGNED ) ) + ( 4 + COUNT( * ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) + ( 4 + COUNT ( * ) * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL COUNT( + 19 ) + + 76 * 74
----
5625

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL COUNT ( + 19 ) + + 76 * 74
----
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT - ( + 86 ) + + 0 DIV 35
----
-86

skipif mysql # not compatible
query I rowsort label-6488
SELECT - ( + 86 ) + + 0 / 35
----
-86

query I rowsort
SELECT 11 AS col1
----
11

query I rowsort
SELECT + 43 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT + 18 DIV 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 18 / 37 AS col2
----
0

query I rowsort
SELECT - COALESCE ( + 33, 54 * 24 + 74 ) AS col1
----
-33

query I rowsort
SELECT 92 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT 24 * + 88 + - COALESCE ( MAX( ALL NULLIF ( - 98, 14 ) ) + - 44, - COUNT( * ) )
----
2254

skipif mysql # not compatible
query I rowsort label-6494
SELECT 24 * + 88 + - COALESCE ( MAX ( ALL NULLIF ( - 98, 14 ) ) + - 44, - COUNT ( * ) )
----
2254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT ALL - 88 - - CAST( 14 + 76 * - CASE + 49 WHEN - 77 THEN CASE + 54 WHEN COALESCE ( + AVG ( ALL 46 ), + 9, 97 * + 58 + NULLIF ( ( CAST( NULL AS SIGNED ) ), 90 + - COUNT( * ) ) ) + - 19 * + 21 THEN NULL WHEN + 94 * + ( + ( - NULLIF ( + 89, - 40 ) ) ) THEN - AVG ( ( - 61 ) ) ELSE NULL END + - COUNT( * ) * 67 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - 88 - - CAST ( 14 + 76 * - CASE + 49 WHEN - 77 THEN CASE + 54 WHEN COALESCE ( + AVG ( ALL 46 ), + 9, 97 * + 58 + NULLIF ( ( CAST ( NULL AS INTEGER ) ), 90 + - COUNT ( * ) ) ) + - 19 * + 21 THEN NULL WHEN + 94 * + ( + ( - NULLIF ( + 89, - 40 ) ) ) THEN - AVG ( ( - 61 ) ) ELSE NULL END + - COUNT ( * ) * 67 END AS INTEGER )
----
NULL

query I rowsort
SELECT - 76 + 19 * - 11
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL + COUNT( * ) - 46 * + 62 AS col1
----
-2851

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + COUNT ( * ) - 46 * + 62 AS col1
----
-2851

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - CASE WHEN NOT - COUNT( 9 ) BETWEEN NULL AND 28 THEN - 66 END * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT - CASE WHEN NOT - COUNT ( 9 ) BETWEEN NULL AND 28 THEN - 66 END * 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL + 15 * COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + 15 * COUNT ( * ) col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT DISTINCT 11 DIV 34 col2
----
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT 11 / 34 col2
----
0

query I rowsort
SELECT ALL COALESCE ( 83, + 57 )
----
83

query I rowsort
SELECT DISTINCT + 98 * + 58
----
5684

query I rowsort
SELECT ALL + 25 - + 33
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT - 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT - 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT DISTINCT ( COALESCE ( - 18, - SUM( + 33 ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT ( COALESCE ( - 18, - SUM ( + 33 ) ) )
----
-18

query I rowsort
SELECT - 34 * - 37 AS col0
----
1258

query I rowsort
SELECT ALL - 53 * + 56
----
-2968

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT - 46 + - COUNT( DISTINCT 84 + + 14 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6508
SELECT - 46 + - COUNT ( DISTINCT 84 + + 14 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT - NULLIF ( 57, NULLIF ( NULLIF ( MAX( DISTINCT + 56 ), + COALESCE ( 3, 97 + 10 * 54 ) ), 62 + - 24 / + MAX( ( + 53 ) ) ) ) * + 31
----
-1767

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - NULLIF ( 57, NULLIF ( NULLIF ( MAX ( DISTINCT + 56 ), + COALESCE ( 3, 97 + 10 * 54 ) ), 62 + - 24 / + MAX ( ( + 53 ) ) ) ) * + 31
----
-1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6510
SELECT ALL COALESCE ( 39, + CAST( CASE WHEN NOT NULL IN ( - COALESCE ( COUNT( * ), 34 ) ) THEN 7 + - 69 * + 45 ELSE + 98 * - MIN( + 24 ) END AS SIGNED ) + 86 )
----
39

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL COALESCE ( 39, + CAST ( CASE WHEN NOT NULL IN ( - COALESCE ( COUNT ( * ), 34 ) ) THEN 7 + - 69 * + 45 ELSE + 98 * - MIN ( + 24 ) END AS INTEGER ) + 86 )
----
39

query I rowsort
SELECT - 98 * + 3
----
-294

query I rowsort
SELECT ALL ( 31 )
----
31

query I rowsort
SELECT DISTINCT ( 73 ) AS col1
----
73

query I rowsort
SELECT ALL ( 15 )
----
15

query I rowsort
SELECT - 92 + + 10
----
-82

query I rowsort
SELECT - 68 + 35
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT ALL CASE + 82 WHEN + 64 * - CAST( + 52 AS SIGNED ) THEN 98 ELSE + 99 END
----
99

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL CASE + 82 WHEN + 64 * - CAST ( + 52 AS INTEGER ) THEN 98 ELSE + 99 END
----
99

query I rowsort
SELECT ( + ( + 31 ) ) AS col2
----
31

query I rowsort
SELECT DISTINCT + 79 AS col0
----
79

query I rowsort
SELECT - 32 * + 6 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT + COUNT( * ) + MAX( - 88 ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-6521
SELECT + COUNT ( * ) + MAX ( - 88 ) col2
----
-87

query I rowsort
SELECT + + 70 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT - CAST( NULL AS SIGNED ) * COALESCE ( + 85 + + ( + 72 ), + COALESCE ( 30, 86 * NULLIF ( + 33 * - COUNT( * ), 33 ) ) ) + - 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT - CAST ( NULL AS INTEGER ) * COALESCE ( + 85 + + ( + 72 ), + COALESCE ( 30, 86 * NULLIF ( + 33 * - COUNT ( * ), 33 ) ) ) + - 25 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL - + 16 * - 79 + + MAX( 66 + 27 ) AS col2
----
1357

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - + 16 * - 79 + + MAX ( 66 + 27 ) AS col2
----
1357

query I rowsort
SELECT + 47 * - 15 + - 56
----
-761

query I rowsort
SELECT + 42 * 6 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT COUNT( - 50 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6527
SELECT COUNT ( - 50 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL MAX( - 51 ) * + ( 49 ) + - 15 AS col0
----
-2514

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL MAX ( - 51 ) * + ( 49 ) + - 15 AS col0
----
-2514

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL + 16 * - MIN( 25 * + 1 ) + - ( CASE 9 WHEN + 41 * + 43 THEN NULL ELSE 23 END ) col0
----
-423

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL + 16 * - MIN ( 25 * + 1 ) + - ( CASE 9 WHEN + 41 * + 43 THEN NULL ELSE 23 END ) col0
----
-423

query I rowsort
SELECT ALL + 82
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT + 69 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-6531
SELECT + 69 / + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6532
SELECT ALL + 9 * - 55 + + COALESCE ( - CAST( 42 AS SIGNED ), - COUNT( * ) * ( + 0 * + 47 ), 7, 65 DIV + 30 - - 32 ) AS col0
----
-537

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL + 9 * - 55 + + COALESCE ( - CAST ( 42 AS INTEGER ), - COUNT ( * ) * ( + 0 * + 47 ), 7, 65 / + 30 - - 32 ) AS col0
----
-537

query I rowsort
SELECT + 14 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT - - 72 - - COUNT( 47 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6534
SELECT - - 72 - - COUNT ( 47 ) AS col1
----
73

query I rowsort
SELECT ALL + + 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL + SUM( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + SUM ( 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT + 58 * CASE 47 WHEN 28 * COUNT( * ) THEN NULL WHEN + 91 + - 48 * 67 THEN NULL ELSE - 39 END - - 77 col2
----
-2185

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT + 58 * CASE 47 WHEN 28 * COUNT ( * ) THEN NULL WHEN + 91 + - 48 * 67 THEN NULL ELSE - 39 END - - 77 col2
----
-2185

query I rowsort
SELECT + - 52
----
-52

query I rowsort
SELECT + ( 22 ) * - 32
----
-704

query I rowsort
SELECT 31 * + 91 - 36 * 69 col2
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL + + COALESCE ( - COUNT( * ), + 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + + COALESCE ( - COUNT ( * ), + 77 )
----
-1

query I rowsort
SELECT ALL 16 * + 61
----
976

query I rowsort
SELECT + CASE - 45 WHEN - 56 + + 39 THEN NULL WHEN - 94 * 67 + - 34 THEN - 81 * - 46 END - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL COUNT( 2 ) * 30 - - 51
----
81

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL COUNT ( 2 ) * 30 - - 51
----
81

query I rowsort
SELECT + - 40 * + 67 AS col1
----
-2680

query I rowsort
SELECT DISTINCT 5 * 87 * + 90
----
39150

query I rowsort
SELECT + COALESCE ( - 6, 61 ) + - ( 17 ) AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT - 34 DIV + + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6548
SELECT - 34 / + + 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL MIN( + + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL MIN ( + + 64 ) AS col0
----
64

query I rowsort
SELECT + ( + + 58 ) * - 96 AS col2
----
-5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT + 5 + MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT + 5 + MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT - 11 - 78 DIV - 35
----
-9

skipif mysql # not compatible
query I rowsort label-6552
SELECT - 11 - 78 / - 35
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT MAX( ALL - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6553
SELECT MAX ( ALL - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT - 28 + + COUNT( * ) + 51
----
24

skipif mysql # not compatible
query I rowsort label-6554
SELECT - 28 + + COUNT ( * ) + 51
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT + 99 DIV - - 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6555
SELECT + 99 / - - 68 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT - COUNT( * ) * CASE - 95 WHEN + 64 THEN 88 WHEN - COUNT( - 28 ) - - 19 * + CAST( NULL AS SIGNED ) THEN ( 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT - COUNT ( * ) * CASE - 95 WHEN + 64 THEN 88 WHEN - COUNT ( - 28 ) - - 19 * + CAST ( NULL AS INTEGER ) THEN ( 32 ) END
----
NULL

query I rowsort
SELECT ALL ( 13 ) col1
----
13

query I rowsort
SELECT - 51 + 38
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT - 68 DIV + MAX( 33 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 68 / + MAX ( 33 ) AS col2
----
-2

query I rowsort
SELECT - 27 + - 57 AS col2
----
-84

query I rowsort
SELECT - 45 * + + 80 * 4
----
-14400

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL - COUNT( * ) + - - 12 - 28
----
-17

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - COUNT ( * ) + - - 12 - 28
----
-17

query I rowsort
SELECT ALL + 59 + 92 - - 52 * - 48
----
-2345

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - COUNT( * ) * 75 * - 31
----
2325

skipif mysql # not compatible
query I rowsort label-6564
SELECT - COUNT ( * ) * 75 * - 31
----
2325

query I rowsort
SELECT ALL + 86 + 66 AS col1
----
152

query I rowsort
SELECT - + 72
----
-72

query I rowsort
SELECT DISTINCT + 89 AS col0
----
89

query I rowsort
SELECT ALL + - 70 AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT + 2 DIV + 60 + - 88 * 36 AS col1
----
-3168

skipif mysql # not compatible
query I rowsort label-6569
SELECT + 2 / + 60 + - 88 * 36 AS col1
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL - CAST( ( SUM( 6 ) ) AS SIGNED ) + + CAST( - NULLIF ( - 14, + SUM( + 31 ) ) AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - CAST ( ( SUM ( 6 ) ) AS INTEGER ) + + CAST ( - NULLIF ( - 14, + SUM ( + 31 ) ) AS INTEGER ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL ( - - 39 ) * - ( - 98 * - COUNT( * ) ) AS col0
----
-3822

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL ( - - 39 ) * - ( - 98 * - COUNT ( * ) ) AS col0
----
-3822

query I rowsort
SELECT - ( 11 )
----
-11

query I rowsort
SELECT ALL - + ( 26 ) AS col0
----
-26

query I rowsort
SELECT - 11 * - + ( - 90 ) * + 77 + + ( + 98 )
----
-76132

query I rowsort
SELECT ALL - + 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT + COUNT( * ) + - 78 col2
----
-77

skipif mysql # not compatible
query I rowsort label-6576
SELECT + COUNT ( * ) + - 78 col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT - 15 * - MIN( DISTINCT - 32 ) - 22 * 83
----
-2306

skipif mysql # not compatible
query I rowsort label-6577
SELECT - 15 * - MIN ( DISTINCT - 32 ) - 22 * 83
----
-2306

query I rowsort
SELECT ALL - + 6 - 62 * - 57 AS col1
----
3528

query I rowsort
SELECT + 33 + - - 95 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT ALL 73 - + NULLIF ( - COUNT( * ), 94 + + 37 )
----
74

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL 73 - + NULLIF ( - COUNT ( * ), 94 + + 37 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT - COUNT( * ) * + ( 72 ) * 6
----
-432

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - COUNT ( * ) * + ( 72 ) * 6
----
-432

query I rowsort
SELECT DISTINCT + - 77 * - 55 AS col0
----
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT DISTINCT - + CAST( + ( - 18 ) AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT - + CAST ( + ( - 18 ) AS INTEGER ) AS col1
----
18

query I rowsort
SELECT ALL - - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + ( - - COUNT( * ) ) * 95 + 39 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-6585
SELECT + ( - - COUNT ( * ) ) * 95 + 39 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT ALL + MAX( + 63 ) - - 96 * - 7 AS col1
----
-609

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL + MAX ( + 63 ) - - 96 * - 7 AS col1
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT DISTINCT + - 64 * - - 46 * COUNT( DISTINCT 37 ) - 90 * - 20
----
-1144

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT + - 64 * - - 46 * COUNT ( DISTINCT 37 ) - 90 * - 20
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + ( MAX( - 89 ) ) + 92
----
3

skipif mysql # not compatible
query I rowsort label-6588
SELECT + ( MAX ( - 89 ) ) + 92
----
3

query I rowsort
SELECT ALL + 0 - - - 52 col0
----
-52

query I rowsort
SELECT DISTINCT - - 62 AS col1
----
62

query I rowsort
SELECT + 9 AS col2
----
9

query I rowsort
SELECT ALL - 51 AS col2
----
-51

query I rowsort
SELECT 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT NULLIF ( 15, 62 ) + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6594
SELECT NULLIF ( 15, 62 ) + COUNT ( * )
----
16

query I rowsort
SELECT ALL 66 AS col0
----
66

query II rowsort
SELECT 54, + 55 * + - 13 AS col0
----
54
-715

query I rowsort
SELECT 98 * + 98 + - - CASE - 11 WHEN + ( 85 ) + - 20 THEN NULL WHEN + 7 * 5 THEN NULL ELSE - 25 END + 95 * - 0
----
9579

query I rowsort
SELECT ALL 20 col0
----
20

query I rowsort
SELECT DISTINCT 72 AS col2
----
72

query I rowsort
SELECT DISTINCT 10 + - 3 col0
----
7

query I rowsort
SELECT ALL ( - 33 ) * + - 34
----
1122

query I rowsort
SELECT ALL 45 + + 7
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT ALL 31 AS col1, - COUNT( * )
----
31
-1

skipif mysql # not compatible
query II rowsort label-6603
SELECT ALL 31 AS col1, - COUNT ( * )
----
31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT NULLIF ( + COUNT( * ), + 14 - + 90 ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 14 - + 90 ) * 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT CAST( NULL AS SIGNED ) * - - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT CAST ( NULL AS INTEGER ) * - - 60 AS col2
----
NULL

query I rowsort
SELECT ALL 86
----
86

query II rowsort
SELECT 89 AS col0, - 77 AS col2
----
89
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL ( - 1 ) + COUNT( - 21 )
----
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL ( - 1 ) + COUNT ( - 21 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL COUNT( * ) + + 88 + + 36
----
125

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL COUNT ( * ) + + 88 + + 36
----
125

query I rowsort
SELECT 11 - - 60
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT DISTINCT CAST( + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) + + COALESCE ( 17, + 65 / + 16, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT CAST ( + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + COALESCE ( 17, + 65 / + 16, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ( + COUNT( * ) ) * - + 28
----
-28

skipif mysql # not compatible
query I rowsort label-6612
SELECT ( + COUNT ( * ) ) * - + 28
----
-28

query I rowsort
SELECT 56 * - + 81 col2
----
-4536

query II rowsort
SELECT ALL 97 AS col0, - 89 * - 77 AS col0
----
97
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT 63 + + ( COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-6615
SELECT 63 + + ( COUNT ( * ) )
----
64

query I rowsort
SELECT ALL + 91 + + 77 * + 95 AS col1
----
7406

query I rowsort
SELECT NULLIF ( + ( - - 91 ), + 34 + 63 ) + 68
----
159

query I rowsort
SELECT DISTINCT NULLIF ( 13, + + 6 + + ( 95 ) / 55 ) + 48
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6619
SELECT ALL - SUM( 73 ) DIV + 80 * ( + 12 * 5 ) + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL - SUM ( 73 ) / + 80 * ( + 12 * 5 ) + - 27 AS col1
----
-27

query I rowsort
SELECT ALL - ( + 32 ) + 81 AS col2
----
49

query I rowsort
SELECT DISTINCT - 80 * - ( 99 ) * 80
----
633600

query I rowsort
SELECT ALL + + 58 - - - 87
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT + 51 * 3 * + CAST( NULL AS SIGNED ) + - MIN( - 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT + 51 * 3 * + CAST ( NULL AS INTEGER ) + - MIN ( - 71 ) AS col0
----
NULL

query I rowsort
SELECT - 76 AS col0
----
-76

query I rowsort
SELECT DISTINCT - 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT COUNT( * ) * + 87
----
87

skipif mysql # not compatible
query I rowsort label-6626
SELECT COUNT ( * ) * + 87
----
87

query I rowsort
SELECT ALL - 22 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT + ( CASE - + 68 WHEN SUM( 60 ) THEN COUNT( * ) ELSE - COUNT( * ) END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6628
SELECT + ( CASE - + 68 WHEN SUM ( 60 ) THEN COUNT ( * ) ELSE - COUNT ( * ) END ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT ALL - + CASE + NULLIF ( - - 46, - 2 ) WHEN - 99 THEN COUNT( * ) ELSE - 47 END AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL - + CASE + NULLIF ( - - 46, - 2 ) WHEN - 99 THEN COUNT ( * ) ELSE - 47 END AS col1
----
47

query I rowsort
SELECT ALL - + NULLIF ( + + ( 71 ), 89 + 87 )
----
-71

query I rowsort
SELECT ALL - + 93
----
-93

query II rowsort
SELECT DISTINCT - - 32 AS col1, 88 * 71 AS col2
----
32
6248

query I rowsort
SELECT ALL + - 91 * - 68
----
6188

query I rowsort
SELECT DISTINCT - 32
----
-32

query I rowsort
SELECT ALL - + CASE + 64 WHEN - 54 THEN NULL WHEN + 48 THEN 5 END
----
NULL

query I rowsort
SELECT 91 - + ( - 75 )
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6637
SELECT + 17, - COUNT( + - CAST( NULL AS SIGNED ) ) - - 43 AS col2
----
17
43

skipif mysql # not compatible
query II rowsort label-6637
SELECT + 17, - COUNT ( + - CAST ( NULL AS INTEGER ) ) - - 43 AS col2
----
17
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT COUNT( ALL 35 ) * + 89 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6638
SELECT COUNT ( ALL 35 ) * + 89 * COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - 34 * - COUNT( * ) - + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6639
SELECT - 34 * - COUNT ( * ) - + - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL - 94 * + 66 * + + 70 * - + COUNT( * )
----
434280

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - 94 * + 66 * + + 70 * - + COUNT ( * )
----
434280

query I rowsort
SELECT ALL 70 + - 17 * + 1 * 36 + 40
----
-502

query I rowsort
SELECT 12 - + 76 + 33 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL - SUM( + 87 ) * + + COUNT( * ) * + + MIN( + 26 )
----
-2262

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - SUM ( + 87 ) * + + COUNT ( * ) * + + MIN ( + 26 )
----
-2262

query I rowsort
SELECT ALL ( + 77 ) + + 65
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT COUNT( * ) - - 50 * - ( + 69 ) + 88 DIV + 8 AS col0
----
-3438

skipif mysql # not compatible
query I rowsort label-6645
SELECT COUNT ( * ) - - 50 * - ( + 69 ) + 88 / + 8 AS col0
----
-3438

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT ALL + COUNT( * ) + 26 * - + COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + COUNT ( * ) + 26 * - + COUNT ( * ) col2
----
-25

query I rowsort
SELECT ALL 76 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT + NULLIF ( - - 65, COUNT( * ) ) + - 71 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + NULLIF ( - - 65, COUNT ( * ) ) + - 71 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6649
SELECT ALL 39 DIV - SUM( ALL 57 )
----
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL 39 / - SUM ( ALL 57 )
----
0

query I rowsort
SELECT ALL + 4 + - 33 * + 23 * - + 43 * + 6
----
195826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT - MIN( - CAST( 35 AS SIGNED ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6651
SELECT - MIN ( - CAST ( 35 AS INTEGER ) ) AS col2
----
35

query I rowsort
SELECT 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT COUNT( ALL + 40 ) - + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6653
SELECT COUNT ( ALL + 40 ) - + - COUNT ( * )
----
2

query I rowsort
SELECT ALL 41 AS col1
----
41

query I rowsort
SELECT DISTINCT 92 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT CAST( + 14 AS SIGNED ) - 31
----
-17

skipif mysql # not compatible
query I rowsort label-6656
SELECT CAST ( + 14 AS INTEGER ) - 31
----
-17

query I rowsort
SELECT ALL 56 + 66 col1
----
122

query I rowsort
SELECT 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - MIN( DISTINCT - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-6659
SELECT - MIN ( DISTINCT - 33 )
----
33

query I rowsort
SELECT 56 + + - 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + 75 + + - MAX( DISTINCT 0 )
----
75

skipif mysql # not compatible
query I rowsort label-6661
SELECT + 75 + + - MAX ( DISTINCT 0 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT + 79 * + 93 * + COUNT( * ) DIV + COUNT( * ) AS col2
----
7347

skipif mysql # not compatible
query I rowsort label-6662
SELECT + 79 * + 93 * + COUNT ( * ) / + COUNT ( * ) AS col2
----
7347

query I rowsort
SELECT + 88 + - 16 * - 46 AS col0
----
824

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - MIN( DISTINCT 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6664
SELECT - MIN ( DISTINCT 43 ) AS col2
----
-43

query I rowsort
SELECT DISTINCT + 74 - - 35 + + COALESCE ( - 89, - 97 + + 17 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6666
SELECT - ( - COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 78 AS col0
----
78

query I rowsort
SELECT ALL + + 99 col1
----
99

query I rowsort
SELECT DISTINCT + 68 AS col2
----
68

query I rowsort
SELECT + 52 * + 77
----
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT ALL 21 DIV + ( - - ( + MAX( ALL + 98 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL 21 / + ( - - ( + MAX ( ALL + 98 ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT + 95 * - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6672
SELECT + 95 * - COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT + - CASE + 71 WHEN - 58 THEN ( + 58 ) ELSE NULL END / 35 + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT - ( - 2 ) * 59 * - 40 * 4 + 35 - - SUM( ALL - 55 ) AS col1
----
-18900

skipif mysql # not compatible
query I rowsort label-6674
SELECT - ( - 2 ) * 59 * - 40 * 4 + 35 - - SUM ( ALL - 55 ) AS col1
----
-18900

query I rowsort
SELECT + 18 + 60 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT - 68 * + + MIN( DISTINCT - 90 ) - 67 * + 26 - - COUNT( * ) * - 89
----
4289

skipif mysql # not compatible
query I rowsort label-6676
SELECT - 68 * + + MIN ( DISTINCT - 90 ) - 67 * + 26 - - COUNT ( * ) * - 89
----
4289

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL + + COUNT( ALL - + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL + + COUNT ( ALL - + 88 )
----
1

query I rowsort
SELECT - + 28 + - - 4 + - + 19 + 47 * + 17 * - 16
----
-12827

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT CASE 65 WHEN 89 THEN NULL WHEN + 50 * + - ( CASE - ( 83 ) WHEN - COUNT( * ) THEN 83 END ) * - 85 THEN CASE 96 WHEN 58 THEN - 10 * 39 END / 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT CASE 65 WHEN 89 THEN NULL WHEN + 50 * + - ( CASE - ( 83 ) WHEN - COUNT ( * ) THEN 83 END ) * - 85 THEN CASE 96 WHEN 58 THEN - 10 * 39 END / 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT - 18 * + + 88 + 90 * - 46 * + MAX( ALL - 95 )
----
391716

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT - 18 * + + 88 + 90 * - 46 * + MAX ( ALL - 95 )
----
391716

query I rowsort
SELECT ALL 40 * - 89 AS col0
----
-3560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6682
SELECT 35 * - 14 * + - ( + - COUNT( * ) ) * - - ( 54 ) * 72 + 83 DIV - 9 AS col1
----
-1905129

skipif mysql # not compatible
query I rowsort label-6682
SELECT 35 * - 14 * + - ( + - COUNT ( * ) ) * - - ( 54 ) * 72 + 83 / - 9 AS col1
----
-1905129

query I rowsort
SELECT ALL + 92 AS col0
----
92

query I rowsort
SELECT ALL + ( - + 95 )
----
-95

query I rowsort
SELECT - 28 + 95 AS col1
----
67

query I rowsort
SELECT - 4 + + - 63 AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6687
SELECT ALL - 8 * + 24 + - COUNT( * ) AS col2, 54 DIV 75 * - 87 - - 80 * CASE 37 + - 60 WHEN + 1 * 90 + - 47 THEN + ( - 85 ) * - COUNT( * ) + 84 ELSE - 60 + 96 * + 25 END AS col1
----
-193
187200

skipif mysql # not compatible
query II rowsort label-6687
SELECT ALL - 8 * + 24 + - COUNT ( * ) AS col2, 54 / 75 * - 87 - - 80 * CASE 37 + - 60 WHEN + 1 * 90 + - 47 THEN + ( - 85 ) * - COUNT ( * ) + 84 ELSE - 60 + 96 * + 25 END AS col1
----
-193
187200

query I rowsort
SELECT - 16 * 60 AS col2
----
-960

query I rowsort
SELECT - 22 * + + 70
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL + ( + ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + ( + ( COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6691
SELECT DISTINCT - ( - 29 ) * + COUNT( * ) DIV + 55 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - ( - 29 ) * + COUNT ( * ) / + 55 + - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT ( 76 ) AS col1
----
76

query I rowsort
SELECT ALL - 27 * - 61
----
1647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT ALL + 73 - - + 31 + - 77 DIV + + 95 + - 23 * ( SUM( DISTINCT 99 ) + 59 DIV + 12 ) AS col1
----
-2265

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + 73 - - + 31 + - 77 / + + 95 + - 23 * ( SUM ( DISTINCT 99 ) + 59 / + 12 ) AS col1
----
-2265

query I rowsort
SELECT DISTINCT - 18 * + 51
----
-918

query I rowsort
SELECT DISTINCT - 46 * - 11
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT - 82 * + COUNT( + - 92 )
----
-82

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - 82 * + COUNT ( + - 92 )
----
-82

query I rowsort
SELECT ALL - 73 - + + 25 AS col1
----
-98

query I rowsort
SELECT - 26 * 11
----
-286

query I rowsort
SELECT - + 89 + - 86 AS col1
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT - MAX( 92 ) - - + 38 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6701
SELECT - MAX ( 92 ) - - + 38 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT + CAST( NULL AS SIGNED ) / - ( - ( + + 4 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT + CAST ( NULL AS INTEGER ) / - ( - ( + + 4 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT - - ( - + COUNT( * ) ) * + 19
----
-19

skipif mysql # not compatible
query I rowsort label-6703
SELECT - - ( - + COUNT ( * ) ) * + 19
----
-19

query II rowsort
SELECT + - 9 + + 79 * - 85, 48 AS col2
----
-6724
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + + COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-6705
SELECT + + COUNT ( * ) + - 55
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT + 9 + + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6706
SELECT + 9 + + COUNT ( * ) AS col2
----
10

query I rowsort
SELECT - ( + + 11 )
----
-11

query I rowsort
SELECT ALL - 62 AS col1
----
-62

query I rowsort
SELECT DISTINCT ( + 43 )
----
43

query I rowsort
SELECT DISTINCT - 51 * + - ( + ( + 75 ) ) AS col0
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT COUNT( * ) * 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT COUNT ( * ) * 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + COUNT( * ) * 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6712
SELECT + COUNT ( * ) * 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - - 13 * 21 * - COUNT( * ) AS col0
----
-273

skipif mysql # not compatible
query I rowsort label-6713
SELECT - - 13 * 21 * - COUNT ( * ) AS col0
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6714
SELECT COUNT( * ) DIV 6 * - + 57 + - COALESCE ( + ( COUNT( * ) ), 13 * COALESCE ( 26 DIV - CASE 96 WHEN - 16 * 40 THEN NULL ELSE 65 DIV 84 END, NULLIF ( - 24, + ( - 17 ) ) * 48 ) + - 30, 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-6714
SELECT COUNT ( * ) / 6 * - + 57 + - COALESCE ( + ( COUNT ( * ) ), 13 * COALESCE ( 26 / - CASE 96 WHEN - 16 * 40 THEN NULL ELSE 65 / 84 END, NULLIF ( - 24, + ( - 17 ) ) * 48 ) + - 30, 65 )
----
-1

query I rowsort
SELECT DISTINCT - 2 * 63
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT + + 32 + + 20 + - 97 * COUNT( * ) * NULLIF ( + 45, + CAST( NULL AS SIGNED ) ) AS col0
----
-4313

skipif mysql # not compatible
query I rowsort label-6716
SELECT + + 32 + + 20 + - 97 * COUNT ( * ) * NULLIF ( + 45, + CAST ( NULL AS INTEGER ) ) AS col0
----
-4313

query I rowsort
SELECT ALL + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6718
SELECT + - 63 DIV MAX( DISTINCT + + 80 ) * - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT + - 63 / MAX ( DISTINCT + + 80 ) * - 95 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT - + 26 * + 84 + CASE + ( + 31 ) WHEN + 33 THEN NULL WHEN + 18 * - 31 + + 65 THEN NULL ELSE - 57 END + 8 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT - + 26 * + 84 + CASE + ( + 31 ) WHEN + 33 THEN NULL WHEN + 18 * - 31 + + 65 THEN NULL ELSE - 57 END + 8 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 98 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT ALL + + 11 DIV - 13 * 41 + 60
----
60

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + + 11 / - 13 * 41 + 60
----
60

query I rowsort
SELECT DISTINCT ( + 25 ) * - + NULLIF ( 79, - 21 + - 56 * + 35 ) AS col2
----
-1975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6722
SELECT ALL + + 12 DIV COUNT( * ) + + - ( + 81 ) + + 60
----
-9

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + + 12 / COUNT ( * ) + + - ( + 81 ) + + 60
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT CAST( 15 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6723
SELECT CAST ( 15 AS INTEGER ) AS col0
----
15

query I rowsort
SELECT ALL + ( - 48 ) * + 76
----
-3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT ALL - 14 / + 13 + + + 95 + + 52 + + CASE + MIN( ALL - 15 ) WHEN + 64 THEN - 49 WHEN - 53 THEN NULL ELSE 42 - - CASE - 84 WHEN - 53 THEN - 79 * - 32 WHEN CAST( NULL AS SIGNED ) - 94 * 22 THEN NULL END * - ( 10 ) END + 45 / 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - 14 / + 13 + + + 95 + + 52 + + CASE + MIN ( ALL - 15 ) WHEN + 64 THEN - 49 WHEN - 53 THEN NULL ELSE 42 - - CASE - 84 WHEN - 53 THEN - 79 * - 32 WHEN CAST ( NULL AS INTEGER ) - 94 * 22 THEN NULL END * - ( 10 ) END + 45 / 75
----
NULL

query I rowsort
SELECT ( + 71 )
----
71

query I rowsort
SELECT + 16 - - - 49 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT - COUNT( * ) * + 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6728
SELECT - COUNT ( * ) * + 13 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6729
SELECT ALL ( - - 50 ) * - 56 + - 54 * + + CAST( + COALESCE ( - COUNT( * ), 22, ( - 17 ) * 84, 17 - + 17 ) AS SIGNED )
----
-2746

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL ( - - 50 ) * - 56 + - 54 * + + CAST ( + COALESCE ( - COUNT ( * ), 22, ( - 17 ) * 84, 17 - + 17 ) AS INTEGER )
----
-2746

query I rowsort
SELECT ALL + 86 AS col0
----
86

query II rowsort
SELECT 40 * - 23 * + 86 + + 26 AS col1, 45 + + 5
----
-79094
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT DISTINCT + SUM( - NULLIF ( - - 70, + 87 * - 84 * - 48 + 73 * 29 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT + SUM ( - NULLIF ( - - 70, + 87 * - 84 * - 48 + 73 * 29 ) )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT + CAST( + 98 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6733
SELECT + CAST ( + 98 AS INTEGER ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT ALL 2 * - + 20 - - ( - 56 ) + COALESCE ( - 56, + CASE + ( + 50 ) WHEN - 39 * + CAST( - 31 AS SIGNED ) THEN - 31 ELSE NULL END, + 66 ) - - 60 * - 54 AS col2
----
-3392

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL 2 * - + 20 - - ( - 56 ) + COALESCE ( - 56, + CASE + ( + 50 ) WHEN - 39 * + CAST ( - 31 AS INTEGER ) THEN - 31 ELSE NULL END, + 66 ) - - 60 * - 54 AS col2
----
-3392

query I rowsort
SELECT ALL + 72 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - 62 - + + 15 + 66 + 35 * + COUNT( * ) * - COUNT( * ) + 24
----
-22

skipif mysql # not compatible
query I rowsort label-6736
SELECT - 62 - + + 15 + 66 + 35 * + COUNT ( * ) * - COUNT ( * ) + 24
----
-22

query I rowsort
SELECT ALL + 17 AS col2
----
17

query II rowsort
SELECT ALL 95, - 35 AS col2
----
95
-35

query II rowsort
SELECT 13 AS col0, + 72 col0
----
13
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT COUNT( * ) + + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6740
SELECT COUNT ( * ) + + 7 AS col0
----
8

query I rowsort
SELECT 72 * 88
----
6336

query I rowsort
SELECT 46 + - 93
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-6743
SELECT - 4 AS col2, + 48 + 94 + + 33 DIV - - 84 AS col0
----
-4
142

skipif mysql # not compatible
query II rowsort label-6743
SELECT - 4 AS col2, + 48 + 94 + + 33 / - - 84 AS col0
----
-4
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT + CASE - 49 WHEN + + 10 * - 8 * - ( + + AVG ( 47 ) ) + 52 * 38 THEN AVG ( CAST( 83 AS SIGNED ) ) * + 3 END + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT + CASE - 49 WHEN + + 10 * - 8 * - ( + + AVG ( 47 ) ) + 52 * 38 THEN AVG ( CAST ( 83 AS INTEGER ) ) * + 3 END + 6 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT CAST( NULL AS SIGNED ) - 47 + - + NULLIF ( - 95, MAX( ALL - 28 ) / COALESCE ( + COUNT( * ) * 7, + 87, 37 / 42 ) - + 20 * - 4 ) / - 49 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT CAST ( NULL AS INTEGER ) - 47 + - + NULLIF ( - 95, MAX ( ALL - 28 ) / COALESCE ( + COUNT ( * ) * 7, + 87, 37 / 42 ) - + 20 * - 4 ) / - 49 col1
----
NULL

query I rowsort
SELECT - 70 * + + 95
----
-6650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT 38 * 86 / + CAST( NULL AS SIGNED ) / - 74 * - + 62 + 21 * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT 38 * 86 / + CAST ( NULL AS INTEGER ) / - 74 * - + 62 + 21 * 41 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6748
SELECT ALL - 97, CAST( NULL AS SIGNED ) * + - 66 AS col2
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6748
SELECT ALL - 97, CAST ( NULL AS INTEGER ) * + - 66 AS col2
----
-97
NULL

query I rowsort
SELECT - - 41 col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6750
SELECT ALL + 84 col2, 79 / CAST( NULL AS SIGNED ) - + + 78 col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-6750
SELECT ALL + 84 col2, 79 / CAST ( NULL AS INTEGER ) - + + 78 col0
----
84
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6751
SELECT ALL + 24 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + 24 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 87 + - 56 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6753
SELECT DISTINCT 45, - MAX( - - ( + 70 ) ) AS col0
----
45
-70

skipif mysql # not compatible
query II rowsort label-6753
SELECT DISTINCT 45, - MAX ( - - ( + 70 ) ) AS col0
----
45
-70

query II rowsort
SELECT - COALESCE ( 23, + + 88 * + - 18 ) AS col1, 81 AS col1
----
-23
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL - COUNT( * ) + + - 4 * 24 - - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - COUNT ( * ) + + - 4 * 24 - - COUNT ( * ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT - COUNT( * ) * - 40
----
40

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT - COUNT ( * ) * - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ( + + 45 ) + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6757
SELECT ( + + 45 ) + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - COUNT( * ) * ( - 30 ) + + 91 + + + MIN( - 59 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-6758
SELECT - COUNT ( * ) * ( - 30 ) + + 91 + + + MIN ( - 59 ) col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6759
SELECT + 86 + - 32 * - ( CASE + 46 WHEN + - 83 THEN - CAST( NULL AS SIGNED ) + - NULLIF ( COUNT( * ), COUNT( * ) * + 94 ) * 37 ELSE + 67 + + 76 END ) DIV - COUNT( * )
----
-4490

skipif mysql # not compatible
query I rowsort label-6759
SELECT + 86 + - 32 * - ( CASE + 46 WHEN + - 83 THEN - CAST ( NULL AS INTEGER ) + - NULLIF ( COUNT ( * ), COUNT ( * ) * + 94 ) * 37 ELSE + 67 + + 76 END ) / - COUNT ( * )
----
-4490

query II rowsort
SELECT - 35 AS col2, 30 + - 62 + NULLIF ( + + 80, + - 36 ) * 82 * ( - ( 43 ) ) AS col1
----
-35
-282112

query I rowsort
SELECT - - 89
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6762
SELECT ALL CAST( NULL AS DECIMAL ) + + ( + + 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL CAST ( NULL AS REAL ) + + ( + + 72 ) AS col1
----
NULL

query I rowsort
SELECT - 9 - - 44 * - 27 AS col1
----
-1197

query I rowsort
SELECT - - 35
----
35

query I rowsort
SELECT ALL - 79 AS col1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT - - 50 DIV + 67 * + 24 + + 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6766
SELECT - - 50 / + 67 * + 24 + + 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT + COUNT( + + 63 ) * 92 * + 98
----
9016

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + COUNT ( + + 63 ) * 92 * + 98
----
9016

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT ALL - SUM( + 12 ) AS col0, 67 + + ( + 65 ) * - COUNT( 50 )
----
-12
2

skipif mysql # not compatible
query II rowsort label-6768
SELECT ALL - SUM ( + 12 ) AS col0, 67 + + ( + 65 ) * - COUNT ( 50 )
----
-12
2

query I rowsort
SELECT ALL - 20 + + 97
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL NULLIF ( + 23, COUNT( * ) * + 40 - + + 16 + 7 ) * - + MIN( ALL + 14 ) * 70 AS col2
----
-22540

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL NULLIF ( + 23, COUNT ( * ) * + 40 - + + 16 + 7 ) * - + MIN ( ALL + 14 ) * 70 AS col2
----
-22540

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT COUNT( * ) + + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6771
SELECT COUNT ( * ) + + 76 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT - 86 * - 72 + - + COUNT( * ) + + + ( - - 28 ) AS col2, MAX( 9 )
----
6219
9

skipif mysql # not compatible
query II rowsort label-6772
SELECT - 86 * - 72 + - + COUNT ( * ) + + + ( - - 28 ) AS col2, MAX ( 9 )
----
6219
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6773
SELECT COUNT( * ) * + CAST( - 43 AS SIGNED ) DIV + 1
----
-43

skipif mysql # not compatible
query I rowsort label-6773
SELECT COUNT ( * ) * + CAST ( - 43 AS INTEGER ) / + 1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT 72 DIV - 21 + + 52 + - + 12
----
37

skipif mysql # not compatible
query I rowsort label-6774
SELECT 72 / - 21 + + 52 + - + 12
----
37

query I rowsort
SELECT 36 * + 74 * + ( - 84 ) - + - 78 AS col1
----
-223698

query I rowsort
SELECT CASE WHEN NOT ( NULL ) IN ( - 54 ) THEN ( - - CASE - + 98 WHEN 4 * 86 THEN + 96 END ) + - 5 END * 48
----
NULL

query I rowsort
SELECT ALL ( + 79 ) * 99 AS col2
----
7821

onlyif mysql # aggregate syntax: 
query II rowsort label-6778
SELECT COUNT( * ) + + 6 AS col0, - ( + 89 ) AS col0
----
7
-89

skipif mysql # not compatible
query II rowsort label-6778
SELECT COUNT ( * ) + + 6 AS col0, - ( + 89 ) AS col0
----
7
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6779
SELECT + CAST( NULL AS DECIMAL ) * + 0 / + 73 + + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT + CAST ( NULL AS REAL ) * + 0 / + 73 + + + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6780
SELECT COUNT( * ) * 35 AS col2, - 15 AS col2
----
35
-15

skipif mysql # not compatible
query II rowsort label-6780
SELECT COUNT ( * ) * 35 AS col2, - 15 AS col2
----
35
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT 66 + MAX( + 95 ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-6781
SELECT 66 + MAX ( + 95 ) AS col1
----
161

query I rowsort
SELECT ALL 81 - + + 84
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT NULLIF ( + 91, 80 ) * COUNT( + ( - COALESCE ( - 7, 52, NULLIF ( 77, 81 ) * 79 ) ) )
----
91

skipif mysql # not compatible
query I rowsort label-6783
SELECT NULLIF ( + 91, 80 ) * COUNT ( + ( - COALESCE ( - 7, 52, NULLIF ( 77, 81 ) * 79 ) ) )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6784
SELECT ALL + COUNT( * ) * COUNT( * ), 79 * 63 AS col0
----
1
4977

skipif mysql # not compatible
query II rowsort label-6784
SELECT ALL + COUNT ( * ) * COUNT ( * ), 79 * 63 AS col0
----
1
4977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6785
SELECT ALL 74 DIV COUNT( * ) * - + 26 * - 14 AS col2
----
26936

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL 74 / COUNT ( * ) * - + 26 * - 14 AS col2
----
26936

query I rowsort
SELECT DISTINCT - 88 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6787
SELECT CAST( + ( - COUNT( * ) ) AS SIGNED ) + 0 + + 72
----
71

skipif mysql # not compatible
query I rowsort label-6787
SELECT CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + 0 + + 72
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-6788
SELECT ALL 38 DIV - 15 AS col0, 54 AS col1
----
-2
54

skipif mysql # not compatible
query II rowsort label-6788
SELECT ALL 38 / - 15 AS col0, 54 AS col1
----
-2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT CASE 48 WHEN - + 78 + + - COALESCE ( + 41, + 19 * COUNT( * ) - SUM( DISTINCT 1 ) ) * 8 THEN - 37 ELSE NULL END + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT CASE 48 WHEN - + 78 + + - COALESCE ( + 41, + 19 * COUNT ( * ) - SUM ( DISTINCT 1 ) ) * 8 THEN - 37 ELSE NULL END + + 45
----
NULL

query I rowsort
SELECT + 28 * 73 + + - 35 AS col1
----
2009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6791
SELECT CAST( NULL AS SIGNED ) * - + 9 + + + NULLIF ( - 46, + 5 + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT CAST ( NULL AS INTEGER ) * - + 9 + + + NULLIF ( - 46, + 5 + 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6792
SELECT COUNT( * ) DIV + CAST( ( - - 7 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6792
SELECT COUNT ( * ) / + CAST ( ( - - 7 ) AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6793
SELECT DISTINCT MIN( DISTINCT - + 58 ) AS col2, 88
----
-58
88

skipif mysql # not compatible
query II rowsort label-6793
SELECT DISTINCT MIN ( DISTINCT - + 58 ) AS col2, 88
----
-58
88

query I rowsort
SELECT ALL + ( 61 ) * - 73
----
-4453

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT COUNT( * ) + + - 66 * 76
----
-5015

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT COUNT ( * ) + + - 66 * 76
----
-5015

query I rowsort
SELECT ALL - ( 71 ) AS col2
----
-71

query I rowsort
SELECT DISTINCT + 7 AS col2
----
7

query I rowsort
SELECT ALL - 76 + + - 63
----
-139

query I rowsort
SELECT ALL 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT MIN( ALL - + 2 ) + - 19 + 9
----
-12

skipif mysql # not compatible
query I rowsort label-6800
SELECT MIN ( ALL - + 2 ) + - 19 + 9
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT DISTINCT + 85 + + CAST( CASE + 5 WHEN + - 73 THEN - 58 WHEN 91 * 81 THEN NULL ELSE 77 END AS SIGNED ) + + 24 * - 96 AS col2
----
-2142

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT + 85 + + CAST ( CASE + 5 WHEN + - 73 THEN - 58 WHEN 91 * 81 THEN NULL ELSE 77 END AS INTEGER ) + + 24 * - 96 AS col2
----
-2142

query I rowsort
SELECT + 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT 1 + - NULLIF ( + CASE - 44 WHEN + + 91 THEN 38 WHEN + COUNT( * ) THEN + 32 + + 55 WHEN 56 THEN NULL END, - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT 1 + - NULLIF ( + CASE - 44 WHEN + + 91 THEN 38 WHEN + COUNT ( * ) THEN + 32 + + 55 WHEN 56 THEN NULL END, - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL - - 53 + - 56 - + 97 - + 85 * 74 * - COUNT( * ) * - 87 + 45 AS col1
----
-547285

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - - 53 + - 56 - + 97 - + 85 * 74 * - COUNT ( * ) * - 87 + 45 AS col1
----
-547285

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + + 90 + + 3 + - + 24 + 45 * - 15 * + COUNT( * ) * - + 38 * - 95 AS col1
----
-2436681

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + + 90 + + 3 + - + 24 + 45 * - 15 * + COUNT ( * ) * - + 38 * - 95 AS col1
----
-2436681

query I rowsort
SELECT DISTINCT + 19 * 65 * + - 48 * 97
----
-5750160

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL CASE - - 97 WHEN 58 * - - MAX( ALL + ( + - CASE - + 65 WHEN 47 + 80 THEN NULL WHEN 14 THEN + 84 * 16 END ) ) * ( ( + 14 ) ) THEN NULL ELSE 74 END AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL CASE - - 97 WHEN 58 * - - MAX ( ALL + ( + - CASE - + 65 WHEN 47 + 80 THEN NULL WHEN 14 THEN + 84 * 16 END ) ) * ( ( + 14 ) ) THEN NULL ELSE 74 END AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT - - CASE + COUNT( * ) WHEN - 23 THEN NULL WHEN + 83 / - 58 * + 88 THEN 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT - - CASE + COUNT ( * ) WHEN - 23 THEN NULL WHEN + 83 / - 58 * + 88 THEN 42 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - ( - + 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6810
SELECT 14 DIV + COUNT( * ) + + 29 col1
----
43

skipif mysql # not compatible
query I rowsort label-6810
SELECT 14 / + COUNT ( * ) + + 29 col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6811
SELECT 38 AS col0, COUNT( * ) * 3 AS col0
----
38
3

skipif mysql # not compatible
query II rowsort label-6811
SELECT 38 AS col0, COUNT ( * ) * 3 AS col0
----
38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL SUM( - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL SUM ( - 56 ) AS col0
----
-56

query I rowsort
SELECT 47 + - 42
----
5

query I rowsort
SELECT 50 * - 51 AS col0
----
-2550

query II rowsort
SELECT + 13, - 80 AS col1
----
13
-80

query I rowsort
SELECT 57 + + - 85 * + - 98 + 62 AS col2
----
8449

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL - 59 * - CASE 44 WHEN 50 THEN + COUNT( ALL + - 97 ) END - + SUM( + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - 59 * - CASE 44 WHEN 50 THEN + COUNT ( ALL + - 97 ) END - + SUM ( + 51 )
----
NULL

query I rowsort
SELECT COALESCE ( - 25, - + 24 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + ( + - SUM( - ( - 74 ) ) ) * + 62 + - - COUNT( * ) + ( 16 ) * ( ( 89 ) - 46 ) AS col2
----
-3899

skipif mysql # not compatible
query I rowsort label-6819
SELECT + ( + - SUM ( - ( - 74 ) ) ) * + 62 + - - COUNT ( * ) + ( 16 ) * ( ( 89 ) - 46 ) AS col2
----
-3899

query I rowsort
SELECT ALL - ( 34 )
----
-34

query I rowsort
SELECT 37 * - ( + + ( + 26 ) )
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT NULLIF ( - ( 67 ), - 88 + + COUNT( + - 14 ) + COALESCE ( 19, - ( + 32 ), COUNT( * ) + CASE - COUNT( * ) WHEN CASE 5 WHEN - ( 29 ) THEN + 0 END THEN + 13 ELSE 70 END ) + - 37 * 30 / - 66 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6822
SELECT NULLIF ( - ( 67 ), - 88 + + COUNT ( + - 14 ) + COALESCE ( 19, - ( + 32 ), COUNT ( * ) + CASE - COUNT ( * ) WHEN CASE 5 WHEN - ( 29 ) THEN + 0 END THEN + 13 ELSE 70 END ) + - 37 * 30 / - 66 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT DISTINCT + CASE CASE + COUNT( * ) WHEN + 89 THEN 21 + - - 62 ELSE 71 END WHEN + + 49 + 67 * AVG ( ALL + 24 ) THEN NULL WHEN 65 - - COUNT( + 94 + 45 * + 75 ) * CASE 87 WHEN - COUNT( * ) / + 88 THEN 64 + NULLIF ( - COUNT( * ), + 49 ) END THEN 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT + CASE CASE + COUNT ( * ) WHEN + 89 THEN 21 + - - 62 ELSE 71 END WHEN + + 49 + 67 * AVG ( ALL + 24 ) THEN NULL WHEN 65 - - COUNT ( + 94 + 45 * + 75 ) * CASE 87 WHEN - COUNT ( * ) / + 88 THEN 64 + NULLIF ( - COUNT ( * ), + 49 ) END THEN 72 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 33 * - 52
----
-1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6825
SELECT DISTINCT + 24 AS col0, - NULLIF ( 55, 17 + - AVG ( + ( 88 ) ) ) DIV 35 - - ( - 40 + COUNT( * ) * - 13 ) + COUNT( * ) DIV + COUNT( * ) AS col2
----
24
-53

skipif mysql # not compatible
query II rowsort label-6825
SELECT DISTINCT + 24 AS col0, - NULLIF ( 55, 17 + - AVG ( + ( 88 ) ) ) / 35 - - ( - 40 + COUNT ( * ) * - 13 ) + COUNT ( * ) / + COUNT ( * ) AS col2
----
24
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT - 27 - - + CAST( 14 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6826
SELECT - 27 - - + CAST ( 14 AS INTEGER ) AS col2
----
-13

query I rowsort
SELECT + ( - 34 ) * + 72 + ( - + 38 )
----
-2486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT ALL + 14 * CAST( - - 75 AS SIGNED ) AS col2
----
1050

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + 14 * CAST ( - - 75 AS INTEGER ) AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - COALESCE ( + 97, 27 * - + 26 - + - ( - - 27 ) + 45 * + COUNT( * ) * - 17 + - 12 ) * + CASE - NULLIF ( - 68, 55 ) - + 25 * 89 WHEN + 15 * 47 THEN 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT - COALESCE ( + 97, 27 * - + 26 - + - ( - - 27 ) + 45 * + COUNT ( * ) * - 17 + - 12 ) * + CASE - NULLIF ( - 68, 55 ) - + 25 * 89 WHEN + 15 * 47 THEN 22 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT NULLIF ( 91, - CAST( NULL AS SIGNED ) ) * - 26 + + + COALESCE ( + + 70, + 1 )
----
-2296

skipif mysql # not compatible
query I rowsort label-6830
SELECT NULLIF ( 91, - CAST ( NULL AS INTEGER ) ) * - 26 + + + COALESCE ( + + 70, + 1 )
----
-2296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6831
SELECT ALL + 26 AS col0, - CAST( NULL AS SIGNED )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6831
SELECT ALL + 26 AS col0, - CAST ( NULL AS INTEGER )
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT MIN( ALL - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-6832
SELECT MIN ( ALL - 17 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6833
SELECT DISTINCT - 30 + + ( + 59 ) col2, 60 * + 42 + + 47 + 84 * - - 60 / - CAST( NULL AS SIGNED ) col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-6833
SELECT DISTINCT - 30 + + ( + 59 ) col2, 60 * + 42 + + 47 + 84 * - - 60 / - CAST ( NULL AS INTEGER ) col2
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + NULLIF ( - 70, - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + NULLIF ( - 70, - COUNT ( * ) ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT + + NULLIF ( COUNT( * ), + + 10 ) + - 65 col1
----
-64

skipif mysql # not compatible
query I rowsort label-6835
SELECT + + NULLIF ( COUNT ( * ), + + 10 ) + - 65 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL + 97 + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL + 97 + COUNT ( * ) AS col0
----
98

query II rowsort
SELECT DISTINCT + 29 AS col1, 18 * + + 73 * 70 * + 54 AS col2
----
29
4966920

query I rowsort
SELECT - 32 + 58 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT + COUNT( * ) * 77
----
77

skipif mysql # not compatible
query I rowsort label-6839
SELECT + COUNT ( * ) * 77
----
77

query I rowsort
SELECT + 46 + + 54
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT + 16 * + SUM( + - 12 )
----
-192

skipif mysql # not compatible
query I rowsort label-6841
SELECT + 16 * + SUM ( + - 12 )
----
-192

query I rowsort
SELECT - 29 - 48
----
-77

query II rowsort
SELECT ALL ( + - NULLIF ( 14, + - 15 * 54 ) ) * - 33, - 56 * - + 87 AS col0
----
462
4872

query I rowsort
SELECT - + 73 AS col0
----
-73

query I rowsort
SELECT - + 3 AS col1
----
-3

query I rowsort
SELECT DISTINCT ( - - 87 )
----
87

query I rowsort
SELECT DISTINCT + 62 * - ( 60 )
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT - + COUNT( * ) * 24
----
-24

skipif mysql # not compatible
query I rowsort label-6848
SELECT - + COUNT ( * ) * 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT + 93 + + + 88 + - ( NULLIF ( + + 93, - 33 * + + 89 * - - COUNT( * ) ) ) + - 2 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6849
SELECT + 93 + + + 88 + - ( NULLIF ( + + 93, - 33 * + + 89 * - - COUNT ( * ) ) ) + - 2 AS col2
----
86

query I rowsort
SELECT - 58 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT ALL - ( + 52 ) DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - ( + 52 ) / 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + 70 + + + 13 + + 1 * - + ( + MAX( ALL + 90 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-6852
SELECT + 70 + + + 13 + + 1 * - + ( + MAX ( ALL + 90 ) )
----
-7

query I rowsort
SELECT ALL 13 AS col2
----
13

query II rowsort
SELECT DISTINCT - 0 * 26, 75 AS col1
----
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6855
SELECT ALL CASE + + CAST( - 30 AS SIGNED ) WHEN + 33 THEN 72 * - CAST( + - 37 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL CASE + + CAST ( - 30 AS INTEGER ) WHEN + 33 THEN 72 * - CAST ( + - 37 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL + SUM( ALL - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + SUM ( ALL - 36 ) AS col1
----
-36

query II rowsort
SELECT ALL - 82 * + - 42 AS col1, + 10 + + ( + COALESCE ( + 3, + 58 * 3 ) ) - 30 * + 79 AS col2
----
3444
-2357

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - 39 * + + 9 * - NULLIF ( - 75, - 87 ) * + MIN( ALL - - 15 ) + + 74 - + + 38 * + 40
----
-396321

skipif mysql # not compatible
query I rowsort label-6858
SELECT - 39 * + + 9 * - NULLIF ( - 75, - 87 ) * + MIN ( ALL - - 15 ) + + 74 - + + 38 * + 40
----
-396321

query I rowsort
SELECT ALL + 11 AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6860
SELECT 46 DIV + 64 + + 87 + + ( + + 44 ) * 16 * - COUNT( * ) * 61 AS col0
----
-42857

skipif mysql # not compatible
query I rowsort label-6860
SELECT 46 / + 64 + + 87 + + ( + + 44 ) * 16 * - COUNT ( * ) * 61 AS col0
----
-42857

query I rowsort
SELECT 10 * - 94 - - 6
----
-934

query II rowsort
SELECT ( + - 1 ) AS col2, 23 AS col0
----
-1
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT + SUM( - 19 ) DIV 99 + 34 + COUNT( * ) + + + 19
----
54

skipif mysql # not compatible
query I rowsort label-6863
SELECT + SUM ( - 19 ) / 99 + 34 + COUNT ( * ) + + + 19
----
54

query I rowsort
SELECT ( + + 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * 54 + + - 47 + - - NULLIF ( - + 55, NULLIF ( + - 93, COUNT( * ) ) - 87 ) * 12
----
-761

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * 54 + + - 47 + - - NULLIF ( - + 55, NULLIF ( + - 93, COUNT ( * ) ) - 87 ) * 12
----
-761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6866
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) * + 2 + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) * + 2 + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT COUNT( * ) * + COUNT( * ) + + 39 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6867
SELECT COUNT ( * ) * + COUNT ( * ) + + 39 AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT ALL - 24 * + + 29 + + 0 * 48 DIV - 73 AS col1
----
-696

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - 24 * + + 29 + + 0 * 48 / - 73 AS col1
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - 64 + + COUNT( ALL + 66 ) + 95
----
32

skipif mysql # not compatible
query I rowsort label-6869
SELECT - 64 + + COUNT ( ALL + 66 ) + 95
----
32

query I rowsort
SELECT DISTINCT + + ( 47 ) AS col0
----
47

query I rowsort
SELECT ALL + 3 * - 5 + 84 - + 19 + 25 * 28 AS col2
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT + 67 * + MIN( ALL ( 47 ) ) + - 66 - - 78 + + 9 col2
----
3170

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT + 67 * + MIN ( ALL ( 47 ) ) + - 66 - - 78 + + 9 col2
----
3170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6873
SELECT ALL - CASE - 54 WHEN 57 THEN 69 * - - 79 * - 36 * 82 - - ( + CASE + COUNT( * ) WHEN 95 THEN CAST( 15 AS SIGNED ) WHEN - 0 - - 27 * 96 THEN 93 ELSE NULL END ) * + 94 END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - CASE - 54 WHEN 57 THEN 69 * - - 79 * - 36 * 82 - - ( + CASE + COUNT ( * ) WHEN 95 THEN CAST ( 15 AS INTEGER ) WHEN - 0 - - 27 * 96 THEN 93 ELSE NULL END ) * + 94 END * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL - 74 * 69 * + CASE + - ( - + COALESCE ( 31, + ( + COUNT( * ) ), + + 31 * - COUNT( * ) ) ) WHEN NULLIF ( - CASE + 25 WHEN + 75 THEN NULL ELSE COUNT( * ) END, 25 ) THEN NULL ELSE COUNT( DISTINCT - 39 ) END * - COUNT( * ) + - MIN( - 70 - 44 )
----
5220

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - 74 * 69 * + CASE + - ( - + COALESCE ( 31, + ( + COUNT ( * ) ), + + 31 * - COUNT ( * ) ) ) WHEN NULLIF ( - CASE + 25 WHEN + 75 THEN NULL ELSE COUNT ( * ) END, 25 ) THEN NULL ELSE COUNT ( DISTINCT - 39 ) END * - COUNT ( * ) + - MIN ( - 70 - 44 )
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT COUNT( + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-6875
SELECT COUNT ( + 85 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6876
SELECT + 75 + - 25 + ( - 44 ) + - MAX( + - 21 ) * - 74 * - 28 * - ( 8 ) - - COUNT( * ) DIV - 20
----
-348090

skipif mysql # not compatible
query I rowsort label-6876
SELECT + 75 + - 25 + ( - 44 ) + - MAX ( + - 21 ) * - 74 * - 28 * - ( 8 ) - - COUNT ( * ) / - 20
----
-348090

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT MAX( DISTINCT + - 6 ) * - - 5 + - 33 - 84 - - - SUM( + 68 ) * - - SUM( 79 ) * + 39 + + 62 AS col1
----
-209593

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT MAX ( DISTINCT + - 6 ) * - - 5 + - 33 - 84 - - - SUM ( + 68 ) * - - SUM ( 79 ) * + 39 + + 62 AS col1
----
-209593

query I rowsort
SELECT DISTINCT + 66 * + 23 * + COALESCE ( 73, + 44 ) - 66 AS col2
----
110748

query I rowsort
SELECT DISTINCT - 92 col1
----
-92

query I rowsort
SELECT ALL NULLIF ( + - 95, 62 ) AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT + 16 * - - 56 + - 6 * 72 DIV - 32
----
909

skipif mysql # not compatible
query I rowsort label-6881
SELECT + 16 * - - 56 + - 6 * 72 / - 32
----
909

query I rowsort
SELECT DISTINCT + 69 AS col2
----
69

query I rowsort
SELECT + 60 - + 38 - + 38 * - - 23 * - ( - + 22 ) * - 13 AS col2
----
249986

query I rowsort
SELECT + 70 * + 67 AS col1
----
4690

query I rowsort
SELECT DISTINCT 8 AS col2
----
8

query I rowsort
SELECT 40 * - 77 AS col0
----
-3080

query I rowsort
SELECT ALL 58 * 55
----
3190

query I rowsort
SELECT ALL 69 * 33
----
2277

query II rowsort
SELECT DISTINCT 71 AS col2, 27 AS col2
----
71
27

query I rowsort
SELECT ALL 22 + - 98
----
-76

query I rowsort
SELECT - 24 AS col2
----
-24

query I rowsort
SELECT 1 col2
----
1

query I rowsort
SELECT DISTINCT 57 + + + 86 AS col1
----
143

query I rowsort
SELECT + 30 AS col1
----
30

query I rowsort
SELECT 56 * + 39 * + 77
----
168168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6896
SELECT CAST( NULL AS SIGNED ) * + + 82 + + + 79 AS col0, COUNT( DISTINCT + 82 ) - + - 73 + + 17 DIV - 28 * 73
----
NULL
74

skipif mysql # not compatible
query II rowsort label-6896
SELECT CAST ( NULL AS INTEGER ) * + + 82 + + + 79 AS col0, COUNT ( DISTINCT + 82 ) - + - 73 + + 17 / - 28 * 73
----
NULL
74

query I rowsort
SELECT DISTINCT - 69 + - + 80 AS col2
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT 21 + + - 33 * + COUNT( * ) * 35 - + + 28 * - 28 + - - 64
----
-286

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT 21 + + - 33 * + COUNT ( * ) * 35 - + + 28 * - 28 + - - 64
----
-286

query I rowsort
SELECT DISTINCT - ( + NULLIF ( + - 1, + + 8 ) )
----
1

query I rowsort
SELECT ALL - 51 + NULLIF ( 68, AVG ( DISTINCT + 9 ) * - 85 + + 40 )
----
17

query I rowsort
SELECT 81 * - 96
----
-7776

query I rowsort
SELECT ALL 56 + - - 23 AS col2
----
79

query I rowsort
SELECT DISTINCT - COALESCE ( + 32, + 89 ) + - 24 col0
----
-56

query I rowsort
SELECT 82 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT COUNT( * ) + + 10 + - - ( + COUNT( DISTINCT 2 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6905
SELECT COUNT ( * ) + + 10 + - - ( + COUNT ( DISTINCT 2 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT + ( 67 ) * - 92 + + COUNT( * ) AS col0
----
-6163

skipif mysql # not compatible
query I rowsort label-6906
SELECT + ( 67 ) * - 92 + + COUNT ( * ) AS col0
----
-6163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT 0 * + 16 + CAST( + + 7 AS SIGNED ) + - NULLIF ( + 78, + CASE 37 WHEN + - 70 THEN - + 76 + + 14 * 59 WHEN + 10 * 87 + - COALESCE ( - COUNT( * ), + 21 * 60 - 43 ) THEN NULL ELSE NULL END * + ( - 8 ) - + 38 ) * - 15 AS col0
----
1177

skipif mysql # not compatible
query I rowsort label-6907
SELECT 0 * + 16 + CAST ( + + 7 AS INTEGER ) + - NULLIF ( + 78, + CASE 37 WHEN + - 70 THEN - + 76 + + 14 * 59 WHEN + 10 * 87 + - COALESCE ( - COUNT ( * ), + 21 * 60 - 43 ) THEN NULL ELSE NULL END * + ( - 8 ) - + 38 ) * - 15 AS col0
----
1177

query I rowsort
SELECT ALL - + 54 AS col1
----
-54

query I rowsort
SELECT + 75 * + 7 + + 67 + + 15 AS col2
----
607

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6910
SELECT + ( - CAST( NULL AS DECIMAL ) ) / + CAST( NULL AS DECIMAL ) + + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT + ( - CAST ( NULL AS REAL ) ) / + CAST ( NULL AS REAL ) + + + 96 AS col1
----
NULL

query I rowsort
SELECT - ( + + 72 ) * + 9 * + 77 AS col2
----
-49896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6912
SELECT DISTINCT + MAX( ALL - 76 ) DIV 34
----
-2

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT + MAX ( ALL - 76 ) / 34
----
-2

query I rowsort
SELECT DISTINCT - 87 - 3
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL - COUNT( + 98 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - COUNT ( + 98 ) AS col0
----
-1

query I rowsort
SELECT ALL - - 94 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT - CASE 30 WHEN - ( + 43 ) * + 36 THEN - 60 WHEN + COUNT( * ) THEN CASE 31 WHEN + + 14 THEN NULL WHEN + COUNT( * ) THEN + NULLIF ( 94, 82 - ( - MAX( ALL + 72 ) + CAST( 71 AS SIGNED ) / + COUNT( * ) ) ) / + 79 ELSE 95 END * - 60 END - - SUM( DISTINCT + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT - CASE 30 WHEN - ( + 43 ) * + 36 THEN - 60 WHEN + COUNT ( * ) THEN CASE 31 WHEN + + 14 THEN NULL WHEN + COUNT ( * ) THEN + NULLIF ( 94, 82 - ( - MAX ( ALL + 72 ) + CAST ( 71 AS INTEGER ) / + COUNT ( * ) ) ) / + 79 ELSE 95 END * - 60 END - - SUM ( DISTINCT + 15 )
----
NULL

query II rowsort
SELECT DISTINCT - - 38 AS col2, + CASE + COALESCE ( 11, 79 ) WHEN - + ( + + 94 ) - + - AVG ( 2 ) THEN 64 * + 29 END AS col0
----
38
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6918
SELECT - 78 + - CASE COUNT( * ) WHEN + ( 49 ) THEN 68 * COUNT( * ) ELSE + 15 END - + MAX( - 80 ) DIV 84 DIV + 22 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6918
SELECT - 78 + - CASE COUNT ( * ) WHEN + ( 49 ) THEN 68 * COUNT ( * ) ELSE + 15 END - + MAX ( - 80 ) / 84 / + 22 AS col2
----
-93

query I rowsort
SELECT ALL + 73 * + 88 AS col1
----
6424

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL SUM( DISTINCT - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL SUM ( DISTINCT - 36 ) AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT + 31 + COALESCE ( + + 80, - 1 * + 65 ) DIV - 69
----
30

skipif mysql # not compatible
query I rowsort label-6921
SELECT + 31 + COALESCE ( + + 80, - 1 * + 65 ) / - 69
----
30

query II rowsort
SELECT 1 AS col2, 86 * + 88
----
1
7568

query I rowsort
SELECT + 14 * 85
----
1190

query II rowsort
SELECT ALL - + 79 * 53 * + 74, 24 AS col2
----
-309838
24

query I rowsort
SELECT - 53 * - 0 * + 21 + + + 8
----
8

query I rowsort
SELECT + 27 - - ( - 57 )
----
-30

query I rowsort
SELECT - - 58 AS col2
----
58

query I rowsort
SELECT DISTINCT + - 12 * - 58 * + - 82 * - 18 AS col1
----
1027296

query I rowsort
SELECT 47 * - 67 AS col2
----
-3149

query I rowsort
SELECT 50 + 53
----
103

query II rowsort
SELECT ALL 9 AS col1, - 15
----
9
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT ALL 10 DIV + + 62 * + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL 10 / + + 62 * + 51 AS col0
----
0

query I rowsort
SELECT ALL + 82 + + ( - 52 ) * ( + - 92 )
----
4866

query I rowsort
SELECT 37 + + - NULLIF ( + 97, - - 58 * 28 * + - 63 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6935
SELECT 35, MIN( ALL + + 39 ) AS col1
----
35
39

skipif mysql # not compatible
query II rowsort label-6935
SELECT 35, MIN ( ALL + + 39 ) AS col1
----
35
39

query II rowsort
SELECT - 20 col2, - 69 * + 54 * + - 7 * + 73 * - 54 AS col0
----
-20
-102815244

query I rowsort
SELECT - 23 AS col0
----
-23

query I rowsort
SELECT ALL 74 * + 34
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT 9 + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT 9 + + COUNT ( * ) AS col0
----
10

query I rowsort
SELECT ALL 68 + 75 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT 72 + - + COUNT( * ) + - 51 * - + 32 * - COUNT( * ) AS col2
----
-1561

skipif mysql # not compatible
query I rowsort label-6941
SELECT 72 + - + COUNT ( * ) + - 51 * - + 32 * - COUNT ( * ) AS col2
----
-1561

query II rowsort
SELECT - 85 AS col0, 35
----
-85
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT ALL COUNT( * ) + + - COALESCE ( - CASE - 23 WHEN 30 * - - 34 * + 32 + 64 - + - ( 46 ) + - CASE 18 WHEN 27 DIV + 8 - + COALESCE ( 4, COUNT( * ), - 2 ) THEN NULL WHEN 99 THEN 40 ELSE 65 END * 21 THEN + 25 * 0 WHEN + AVG ( DISTINCT + 78 ) THEN 18 DIV + ( + 60 ) ELSE NULL END, 19 ) + 81
----
63

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL COUNT ( * ) + + - COALESCE ( - CASE - 23 WHEN 30 * - - 34 * + 32 + 64 - + - ( 46 ) + - CASE 18 WHEN 27 / + 8 - + COALESCE ( 4, COUNT ( * ), - 2 ) THEN NULL WHEN 99 THEN 40 ELSE 65 END * 21 THEN + 25 * 0 WHEN + AVG ( DISTINCT + 78 ) THEN 18 / + ( + 60 ) ELSE NULL END, 19 ) + 81
----
63

query I rowsort
SELECT ( 14 ) + - 5 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT MAX( - 93 ) + 0 + + - 68 AS col0
----
-161

skipif mysql # not compatible
query I rowsort label-6945
SELECT MAX ( - 93 ) + 0 + + - 68 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT ALL - SUM( DISTINCT - 95 ) * 69 * + SUM( - 11 ) + + 69 col2, 52
----
-72036
52

skipif mysql # not compatible
query II rowsort label-6946
SELECT ALL - SUM ( DISTINCT - 95 ) * 69 * + SUM ( - 11 ) + + 69 col2, 52
----
-72036
52

query I rowsort
SELECT - 68 * - 19 + 73
----
1365

query I rowsort
SELECT ALL 80 * 91 + - 1 AS col1
----
7279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6949
SELECT ( 60 ) * - - ( + 40 ) AS col2, 43 - + ( - - 56 ) + - COUNT( * ) * CAST( NULL AS SIGNED ) + + - COUNT( * ) + - 94 AS col0
----
2400
NULL

skipif mysql # not compatible
query II rowsort label-6949
SELECT ( 60 ) * - - ( + 40 ) AS col2, 43 - + ( - - 56 ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - 94 AS col0
----
2400
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT - + 80 * - - 47 + + ( + - 18 ) AS col0, + COUNT( * ) - - + CASE - 15 WHEN - 85 THEN NULL WHEN + 49 THEN - ( + - 14 ) / - 72 END col1
----
-3778
NULL

skipif mysql # not compatible
query II rowsort label-6950
SELECT - + 80 * - - 47 + + ( + - 18 ) AS col0, + COUNT ( * ) - - + CASE - 15 WHEN - 85 THEN NULL WHEN + 49 THEN - ( + - 14 ) / - 72 END col1
----
-3778
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT + 3 AS col2, COUNT( * ) + 55
----
3
56

skipif mysql # not compatible
query II rowsort label-6951
SELECT + 3 AS col2, COUNT ( * ) + 55
----
3
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT COUNT( * ) DIV 28 - + COUNT( ALL 22 ) + + 78 + + 8 + + ( - + 31 ) * - 74 + 82 - + 62
----
2399

skipif mysql # not compatible
query I rowsort label-6952
SELECT COUNT ( * ) / 28 - + COUNT ( ALL 22 ) + + 78 + + 8 + + ( - + 31 ) * - 74 + 82 - + 62
----
2399

query II rowsort
SELECT DISTINCT - + 61, 42 AS col2
----
-61
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL + - NULLIF ( COUNT( * ), 40 + - 16 + + + 75 * 28 ) - - 42
----
41

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + - NULLIF ( COUNT ( * ), 40 + - 16 + + + 75 * 28 ) - - 42
----
41

query I rowsort
SELECT - - 51 * + COALESCE ( 41, + 76 ) * COALESCE ( + 96, 37 * - COALESCE ( - + 32, 75 * + + 28 * - 64, + 45 ) + 85 ) + 52 * 55 + + 27 col2
----
203623

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL - - COUNT( - 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - - COUNT ( - 95 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT - NULLIF ( - 16, + 86 ) * - 78 * + 83 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT - NULLIF ( - 16, + 86 ) * - 78 * + 83 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT ( + 95 ) DIV 23 + + - ( + 68 ) + - - 67 + + 36 DIV + 61
----
3

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT ( + 95 ) / 23 + + - ( + 68 ) + - - 67 + + 36 / + 61
----
3

query I rowsort
SELECT ALL - + 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6960
SELECT COUNT ( * ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT CAST( 2 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6961
SELECT CAST ( 2 AS INTEGER ) AS col0
----
2

query I rowsort
SELECT 35 + 98
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT CASE AVG ( + ( 42 ) ) WHEN 34 - 0 * - 5 * + 14 * + COUNT( * ) THEN - 0 * 16 * COUNT( 4 ) - + 99 ELSE - 6 + 30 END
----
24

skipif mysql # not compatible
query I rowsort label-6963
SELECT CASE AVG ( + ( 42 ) ) WHEN 34 - 0 * - 5 * + 14 * + COUNT ( * ) THEN - 0 * 16 * COUNT ( 4 ) - + 99 ELSE - 6 + 30 END
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT + + 50 * + 2 - + + 17 + CAST( NULL AS SIGNED ) + - 42 + - - 75 / + + 23 * + 48 * COUNT( * ) + NULLIF ( - 60, AVG ( ALL - ( - 73 ) ) ) + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT + + 50 * + 2 - + + 17 + CAST ( NULL AS INTEGER ) + - 42 + - - 75 / + + 23 * + 48 * COUNT ( * ) + NULLIF ( - 60, AVG ( ALL - ( - 73 ) ) ) + 42 AS col2
----
NULL

query II rowsort
SELECT ALL - - 68, + COALESCE ( - 26, + 61, COALESCE ( + + 29, + - 77 ) ) AS col1
----
68
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT COUNT( * ) * + ( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-6966
SELECT COUNT ( * ) * + ( 50 )
----
50

query II rowsort
SELECT ALL - 14 AS col0, + 29 AS col0
----
-14
29

query I rowsort
SELECT - 61 col1
----
-61

query I rowsort
SELECT ALL + NULLIF ( + - 73, - 87 )
----
-73

query I rowsort
SELECT - + 70 + - NULLIF ( - ( + 10 ), ( + AVG ( + - 51 ) ) )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6971
SELECT ALL + NULLIF ( + - 92, - - CAST( - 17 AS SIGNED ) ) + + - 22 AS col1, 4 + MAX( 19 ) + 54 AS col1
----
-114
77

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL + NULLIF ( + - 92, - - CAST ( - 17 AS INTEGER ) ) + + - 22 AS col1, 4 + MAX ( 19 ) + 54 AS col1
----
-114
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT ALL + 96 + + - 60 + + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + 96 + + - 60 + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 40 col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT - COUNT( * ) * - - COALESCE ( - CASE - 70 WHEN - + 74 THEN - 91 WHEN 47 - 36 THEN - 93 DIV - 57 ELSE - - COUNT( * ) + + 16 * 95 END, - 2, COALESCE ( - ( COUNT( * ) ), + 50, 26, + 31 ) * COUNT( * ) ) col2
----
1521

skipif mysql # not compatible
query I rowsort label-6974
SELECT - COUNT ( * ) * - - COALESCE ( - CASE - 70 WHEN - + 74 THEN - 91 WHEN 47 - 36 THEN - 93 / - 57 ELSE - - COUNT ( * ) + + 16 * 95 END, - 2, COALESCE ( - ( COUNT ( * ) ), + 50, 26, + 31 ) * COUNT ( * ) ) col2
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - NULLIF ( - 5, + ( - 58 ) ) + - ( - - 62 ) * + COUNT( * ) + - + 41 * + - 68
----
2731

skipif mysql # not compatible
query I rowsort label-6975
SELECT - NULLIF ( - 5, + ( - 58 ) ) + - ( - - 62 ) * + COUNT ( * ) + - + 41 * + - 68
----
2731

query I rowsort
SELECT - 20 col1
----
-20

query I rowsort
SELECT DISTINCT + 78 * - - 64 AS col1
----
4992

query I rowsort
SELECT ALL 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT ALL + 52 + + + 51 AS col0, + CASE - 79 WHEN + 77 * ( - + 58 ) + + - 52 THEN NULL WHEN - 2 * + 95 THEN - COUNT( * ) ELSE NULL END
----
103
NULL

skipif mysql # not compatible
query II rowsort label-6979
SELECT ALL + 52 + + + 51 AS col0, + CASE - 79 WHEN + 77 * ( - + 58 ) + + - 52 THEN NULL WHEN - 2 * + 95 THEN - COUNT ( * ) ELSE NULL END
----
103
NULL

query I rowsort
SELECT DISTINCT ( + COALESCE ( - 59, + - 52 ) ) col1
----
-59

query I rowsort
SELECT - 97 col0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6982
SELECT + 97 DIV - - 27 AS col2, 75
----
3
75

skipif mysql # not compatible
query II rowsort label-6982
SELECT + 97 / - - 27 AS col2, 75
----
3
75

query I rowsort
SELECT ALL + 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT 20 * SUM( 12 ) AS col0
----
240

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT 20 * SUM ( 12 ) AS col0
----
240

query I rowsort
SELECT + 10 * + 35 col1
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL - 98 * + NULLIF ( + 16, + COUNT( * ) + 62 ) AS col1
----
-1568

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - 98 * + NULLIF ( + 16, + COUNT ( * ) + 62 ) AS col1
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT + + 92 / + NULLIF ( + - 98, + 51 - + 41 ) * - 93 * - COUNT( * ) * + 32 + + - 42 + - + 2 * + + 5 - CAST( NULL AS SIGNED ) - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT + + 92 / + NULLIF ( + - 98, + 51 - + 41 ) * - 93 * - COUNT ( * ) * + 32 + + - 42 + - + 2 * + + 5 - CAST ( NULL AS INTEGER ) - 19 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6988
SELECT ALL - + CAST( 57 AS SIGNED ) * + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - + CAST ( 57 AS INTEGER ) * + COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT ALL + + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL + + CASE + 62 WHEN COUNT( * ) THEN + NULLIF ( 68, - 20 * - - CASE - 12 WHEN - 25 THEN + ( + 51 ) WHEN COUNT( * ) THEN NULL ELSE NULL END + 58 * 76 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + + CASE + 62 WHEN COUNT ( * ) THEN + NULLIF ( 68, - 20 * - - CASE - 12 WHEN - 25 THEN + ( + 51 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END + 58 * 76 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + - ( - 46 )
----
46

query I rowsort
SELECT + + 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT + 69 * + COUNT( - 16 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-6993
SELECT + 69 * + COUNT ( - 16 ) col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT - 16 * + 95 * + - 80 * 11 + + COALESCE ( - 25, + 59, 44 + COUNT( * ) + + 68 ) + - - 51 * - 60 + - 95 * 56 AS col2
----
1329195

skipif mysql # not compatible
query I rowsort label-6994
SELECT - 16 * + 95 * + - 80 * 11 + + COALESCE ( - 25, + 59, 44 + COUNT ( * ) + + 68 ) + - - 51 * - 60 + - 95 * 56 AS col2
----
1329195

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT + SUM( DISTINCT - - 48 ), 11 * - 2 AS col2
----
48
-22

skipif mysql # not compatible
query II rowsort label-6995
SELECT + SUM ( DISTINCT - - 48 ), 11 * - 2 AS col2
----
48
-22

query I rowsort
SELECT DISTINCT + - 56
----
-56

query I rowsort
SELECT DISTINCT + - 0
----
0

query I rowsort
SELECT ALL + 98 AS col0
----
98

query I rowsort
SELECT ALL + + 18
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7000
SELECT DISTINCT - 74 * + CAST( NULL AS DECIMAL ) * - + CASE - 69 WHEN + 7 THEN NULL WHEN - 3 THEN 11 WHEN - 71 / - CAST( NULL AS SIGNED ) + 35 THEN + + 33 END + 70 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT - 74 * + CAST ( NULL AS REAL ) * - + CASE - 69 WHEN + 7 THEN NULL WHEN - 3 THEN 11 WHEN - 71 / - CAST ( NULL AS INTEGER ) + 35 THEN + + 33 END + 70 * 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT ALL + + 11 * - 31 * - - CASE - + MIN( 66 ) WHEN + ( - 6 ) THEN - 28 * - - 62 WHEN - 84 THEN 91 + - CAST( COUNT( * ) AS SIGNED ) WHEN - 90 THEN + 71 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + + 11 * - 31 * - - CASE - + MIN ( 66 ) WHEN + ( - 6 ) THEN - 28 * - - 62 WHEN - 84 THEN 91 + - CAST ( COUNT ( * ) AS INTEGER ) WHEN - 90 THEN + 71 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7002
SELECT ALL - 31 * 59 + + ( - 64 ) + + 86 + + - 3 + - COUNT( * ) + - 32 DIV + 23 - 34
----
-1846

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL - 31 * 59 + + ( - 64 ) + + 86 + + - 3 + - COUNT ( * ) + - 32 / + 23 - 34
----
-1846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT ALL - 95 * SUM( - CAST( NULL AS SIGNED ) ) + - - ( - 17 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - 95 * SUM ( - CAST ( NULL AS INTEGER ) ) + - - ( - 17 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT + 52 AS col0, - MAX( DISTINCT + ( 88 ) )
----
52
-88

skipif mysql # not compatible
query II rowsort label-7004
SELECT + 52 AS col0, - MAX ( DISTINCT + ( 88 ) )
----
52
-88

query I rowsort
SELECT - ( + + 73 )
----
-73

query I rowsort
SELECT + 87 + + 58 col2
----
145

query I rowsort
SELECT - 7 col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7008
SELECT ALL 99 * - CAST( 8 AS SIGNED ) * ( - 16 ) AS col0
----
12672

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL 99 * - CAST ( 8 AS INTEGER ) * ( - 16 ) AS col0
----
12672

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT + 5 DIV + 60 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT + 5 / + 60 * - 11
----
0

query I rowsort
SELECT - 11 * + 22 AS col2
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT SUM( DISTINCT - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-7011
SELECT SUM ( DISTINCT - 98 )
----
-98

query I rowsort
SELECT - ( 82 ) * - + 79 + + - 17 + + 46 * 16
----
7197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT ALL + 83 + - COUNT( * ) DIV + 88 col2
----
83

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + 83 + - COUNT ( * ) / + 88 col2
----
83

query I rowsort
SELECT DISTINCT ( 65 ) * - ( - - 31 ) + 29 AS col2
----
-1986

query I rowsort
SELECT - 10 + + + 45 * - 29 col2
----
-1315

query I rowsort
SELECT ALL ( 26 ) AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT DISTINCT CAST( - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT CAST ( - 58 AS INTEGER )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT - CAST( - 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-7018
SELECT - CAST ( - 41 AS INTEGER )
----
41

query II rowsort
SELECT + ( + 93 ) + 81 col2, - 5 + - 58
----
174
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT - 21 - - 17 * - SUM( DISTINCT - + 85 ) AS col0
----
1424

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 21 - - 17 * - SUM ( DISTINCT - + 85 ) AS col0
----
1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7021
SELECT ALL ( - - NULLIF ( - 88, + 47 * - CAST( NULL AS SIGNED ) + + COUNT( * ) + + COALESCE ( - - 7, + 33 * ( + 79 ) ) * + + COUNT( * ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL ( - - NULLIF ( - 88, + 47 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COALESCE ( - - 7, + 33 * ( + 79 ) ) * + + COUNT ( * ) ) )
----
-88

query I rowsort
SELECT ALL + COALESCE ( + 83, + 85, + - 98 * - 86 - 12, + + 90 ) * - - 96
----
7968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 3 + 43 AS col1
----
40

query I rowsort
SELECT - - 63 * - 37 AS col0
----
-2331

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT + COUNT( ALL - 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + COUNT ( ALL - 19 ) AS col2
----
1

query I rowsort
SELECT ALL + 64 col2
----
64

query II rowsort
SELECT - 30 + - 65 * - - 64, + 27 AS col1
----
-4190
27

query I rowsort
SELECT ALL + - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7030
SELECT DISTINCT + CASE 51 WHEN CAST( NULL AS DECIMAL ) * - COUNT( * ) THEN NULL WHEN 59 THEN - + 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT + CASE 51 WHEN CAST ( NULL AS REAL ) * - COUNT ( * ) THEN NULL WHEN 59 THEN - + 46 ELSE NULL END
----
NULL

query I rowsort
SELECT - 74 * - 13 - 90
----
872

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT 59, - SUM( + 95 ) + COUNT( * ) AS col0
----
59
-94

skipif mysql # not compatible
query II rowsort label-7032
SELECT 59, - SUM ( + 95 ) + COUNT ( * ) AS col0
----
59
-94

query I rowsort
SELECT ALL + + 23 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT CAST( + 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7034
SELECT CAST ( + 51 AS INTEGER ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT + 68 * 99 + + + MAX( DISTINCT - 54 ) * - 8 + - 4 + 25 + + 2 - - - CAST( - 67 AS SIGNED ) * + COUNT( * ) + CASE + - 65 WHEN 26 * 69 + - 13 THEN + 49 END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 68 * 99 + + + MAX ( DISTINCT - 54 ) * - 8 + - 4 + 25 + + 2 - - - CAST ( - 67 AS INTEGER ) * + COUNT ( * ) + CASE + - 65 WHEN 26 * 69 + - 13 THEN + 49 END * 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - + 94 * - 13 + - 91 * + COUNT( * )
----
1131

skipif mysql # not compatible
query I rowsort label-7036
SELECT - + 94 * - 13 + - 91 * + COUNT ( * )
----
1131

query I rowsort
SELECT - + 36 * + - 42 - 77 + - 78 AS col0
----
1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT + 80 + - 50 + 34 + - CAST( - - 24 AS SIGNED ) col2
----
40

skipif mysql # not compatible
query I rowsort label-7038
SELECT + 80 + - 50 + 34 + - CAST ( - - 24 AS INTEGER ) col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7039
SELECT ALL - 25 * + 63 * - + COUNT( * ) AS col2, - 25 + 62
----
1575
37

skipif mysql # not compatible
query II rowsort label-7039
SELECT ALL - 25 * + 63 * - + COUNT ( * ) AS col2, - 25 + 62
----
1575
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT ALL - 14 DIV + + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - 14 / + + 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT 3 * + COUNT( * ) * 90 AS col2
----
270

skipif mysql # not compatible
query I rowsort label-7041
SELECT 3 * + COUNT ( * ) * 90 AS col2
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7042
SELECT ALL COUNT( * ) + - - COUNT( * ) / + 78 / 29 * - CAST( NULL AS SIGNED ) * - 42, - 84 * COALESCE ( + 97, - 91 ) AS col1
----
NULL
-8148

skipif mysql # not compatible
query II rowsort label-7042
SELECT ALL COUNT ( * ) + - - COUNT ( * ) / + 78 / 29 * - CAST ( NULL AS INTEGER ) * - 42, - 84 * COALESCE ( + 97, - 91 ) AS col1
----
NULL
-8148

query II rowsort
SELECT 39 col2, 97 * + - 39
----
39
-3783

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + SUM( ALL + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7044
SELECT + SUM ( ALL + 39 )
----
39

query I rowsort
SELECT - 82 * + 63 + 84
----
-5082

query I rowsort
SELECT 49 * - 50
----
-2450

query I rowsort
SELECT 85 * + 39
----
3315

query I rowsort
SELECT + 8 col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT ALL 52 + - + 93 / - - 84 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL 52 + - + 93 / - - 84 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 1 AS col2
----
-1

query I rowsort
SELECT 75 * + 20
----
1500

query I rowsort
SELECT DISTINCT 57 - + - 78
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ( + - ( - 72 ) ) + MAX( ALL + 65 ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-7053
SELECT ( + - ( - 72 ) ) + MAX ( ALL + 65 ) AS col1
----
137

query I rowsort
SELECT ALL 92 - 72
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT 65 * + 0 AS col0, NULLIF ( + + 62, - - COUNT( * ) + - 61 )
----
0
62

skipif mysql # not compatible
query II rowsort label-7055
SELECT 65 * + 0 AS col0, NULLIF ( + + 62, - - COUNT ( * ) + - 61 )
----
0
62

query I rowsort
SELECT 0 * - 89 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7057
SELECT CASE + AVG ( DISTINCT + - CASE + - 17 WHEN - + 90 THEN 48 / + 11 / 19 * + NULLIF ( - 71, + 64 ) WHEN + - CAST( - 60 AS DECIMAL ) THEN NULL ELSE - 73 END ) WHEN - 92 THEN - 66 ELSE NULL END - 75 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT CASE + AVG ( DISTINCT + - CASE + - 17 WHEN - + 90 THEN 48 / + 11 / 19 * + NULLIF ( - 71, + 64 ) WHEN + - CAST ( - 60 AS REAL ) THEN NULL ELSE - 73 END ) WHEN - 92 THEN - 66 ELSE NULL END - 75 * - 42
----
NULL

query I rowsort
SELECT DISTINCT 44 * + 27
----
1188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7059
SELECT 19 DIV - - CAST( + 67 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT 19 / - - CAST ( + 67 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT 26 + + MAX( DISTINCT + 5 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7060
SELECT 26 + + MAX ( DISTINCT + 5 ) AS col0
----
31

query I rowsort
SELECT ALL 41 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL SUM( + 16 ) * - 21 AS col0
----
-336

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL SUM ( + 16 ) * - 21 AS col0
----
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT ALL + 62 DIV 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL + 62 / 39 AS col1
----
1

query I rowsort
SELECT 16 * 82
----
1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7065
SELECT ALL COALESCE ( + 12, - COUNT( * ) DIV + CAST( CASE + + 88 WHEN - 47 THEN NULL WHEN + 33 * NULLIF ( + + ( - ( - - 5 ) ), + + 41 + CAST( NULL AS SIGNED ) + - 92 ) THEN 8 WHEN NULLIF ( SUM( ALL 78 ), 49 ) THEN - 68 * - COUNT( * ) ELSE NULL END AS SIGNED ), COALESCE ( 8, - CASE 20 WHEN 32 THEN NULL ELSE + 78 END * 83 + + 82 DIV - 2, COUNT( * ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL COALESCE ( + 12, - COUNT ( * ) / + CAST ( CASE + + 88 WHEN - 47 THEN NULL WHEN + 33 * NULLIF ( + + ( - ( - - 5 ) ), + + 41 + CAST ( NULL AS INTEGER ) + - 92 ) THEN 8 WHEN NULLIF ( SUM ( ALL 78 ), 49 ) THEN - 68 * - COUNT ( * ) ELSE NULL END AS INTEGER ), COALESCE ( 8, - CASE 20 WHEN 32 THEN NULL ELSE + 78 END * 83 + + 82 / - 2, COUNT ( * ) ) )
----
12

query I rowsort
SELECT DISTINCT + - 74 * + - NULLIF ( - 70, + 61 * + 84 * + 32 * - + 7 + - 42 + 92 - - 78 + + 17 - + 5 )
----
-5180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7067
SELECT + ( + 7 ) - - 28 + - + ( + - 96 ) + + 45 * 63 + - CAST( NULL AS SIGNED ) - + + 52 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT + ( + 7 ) - - 28 + - + ( + - 96 ) + + 45 * 63 + - CAST ( NULL AS INTEGER ) - + + 52 * 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT - NULLIF ( + 16, 4 * - COUNT( ALL - 51 ) + - 20 * - 53 * 68 * - COUNT( * ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7068
SELECT - NULLIF ( + 16, 4 * - COUNT ( ALL - 51 ) + - 20 * - 53 * 68 * - COUNT ( * ) )
----
-16

query I rowsort
SELECT DISTINCT 17 col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT - CAST( + NULLIF ( + 34, - 80 ) AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7070
SELECT - CAST ( + NULLIF ( + 34, - 80 ) AS INTEGER ) AS col0
----
-34

query I rowsort
SELECT ALL - - 45 + - 54 + - 45 AS col2
----
-54

query III rowsort
SELECT NULLIF ( + - 6, ( + - 36 ) ), - 95 AS col2, + 27 + 42 AS col2
----
-6
-95
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT ALL + + 32 + + - CAST( + + 12 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL + + 32 + + - CAST ( + + 12 AS INTEGER ) AS col2
----
20

query I rowsort
SELECT + + 33
----
33

query I rowsort
SELECT ALL - - ( - 1 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT ALL 78 + 46 * - 41 - 17 DIV + 71
----
-1808

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL 78 + 46 * - 41 - 17 / + 71
----
-1808

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT 79 - - 60 + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-7077
SELECT 79 - - 60 + COUNT ( * )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL - + SUM( - - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - + SUM ( - - 63 )
----
-63

query I rowsort
SELECT ALL + + 57 + + CASE - 41 WHEN - 66 * - 36 * + 88 THEN - + 86 END + - - 31
----
NULL

query I rowsort
SELECT 71 * 3 * 99
----
21087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT + 44 / 82 + + + CAST( NULL AS SIGNED ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 44 / 82 + + + CAST ( NULL AS INTEGER ) * - 16
----
NULL

query I rowsort
SELECT + 97 + - 25 col0
----
72

query I rowsort
SELECT + - 48 AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT ALL - 69 DIV + - 36 + + ( - 69 ) * + 26 col0
----
-1793

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - 69 / + - 36 + + ( - 69 ) * + 26 col0
----
-1793

query I rowsort
SELECT + 69 * + 7 + + - 3 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + ( - + COUNT( 27 ) ) - + 71
----
-72

skipif mysql # not compatible
query I rowsort label-7086
SELECT + ( - + COUNT ( 27 ) ) - + 71
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT COUNT( ALL - + 28 ) + + 81 + 33 - - - MIN( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT COUNT ( ALL - + 28 ) + + 81 + 33 - - - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 5 AS col0
----
5

query I rowsort
SELECT ALL - 1 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT ALL + 37 DIV - ( + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + 37 / - ( + 6 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7091
SELECT ALL COUNT( * ) * + 25 DIV SUM( ALL + 38 ) * 76, 95 AS col0
----
0
95

skipif mysql # not compatible
query II rowsort label-7091
SELECT ALL COUNT ( * ) * + 25 / SUM ( ALL + 38 ) * 76, 95 AS col0
----
0
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT ALL 4 * + 75 DIV 63
----
4

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL 4 * + 75 / 63
----
4

query I rowsort
SELECT 84 + - 47 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT + COUNT( * ) * + 28 + + + COUNT( * ) * - NULLIF ( - COUNT( * ), - ( 30 ) ) + + - 7 * - 89 - - - CASE + 52 WHEN - - COUNT( + CAST( NULL AS SIGNED ) ) * MAX( - 31 ) / - 10 + CAST( 13 + 58 AS SIGNED ) THEN - 50 / 21 WHEN 26 + 99 THEN - 7 + - 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT + COUNT ( * ) * + 28 + + + COUNT ( * ) * - NULLIF ( - COUNT ( * ), - ( 30 ) ) + + - 7 * - 89 - - - CASE + 52 WHEN - - COUNT ( + CAST ( NULL AS INTEGER ) ) * MAX ( - 31 ) / - 10 + CAST ( 13 + 58 AS INTEGER ) THEN - 50 / 21 WHEN 26 + 99 THEN - 7 + - 49 ELSE NULL END
----
NULL

query I rowsort
SELECT + 70 col1
----
70

query I rowsort
SELECT 74 * - + 69 AS col2
----
-5106

query I rowsort
SELECT 10 * + 8 * - - 98 AS col1
----
7840

query I rowsort
SELECT 50 col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7099
SELECT ALL 36 AS col0, 10 + - + MIN( ALL + 31 ) * + 76
----
36
-2346

skipif mysql # not compatible
query II rowsort label-7099
SELECT ALL 36 AS col0, 10 + - + MIN ( ALL + 31 ) * + 76
----
36
-2346

query I rowsort
SELECT 0 * + 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT MAX( - 74 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT MAX ( - 74 ) col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT COUNT( * ) * - 63 col0
----
-63

skipif mysql # not compatible
query I rowsort label-7102
SELECT COUNT ( * ) * - 63 col0
----
-63

query I rowsort
SELECT 96 + + 59 AS col2
----
155

query I rowsort
SELECT - - NULLIF ( - - 59, + 42 * 49 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - 52 + - 21 * + - 14 * - + 3 + COUNT( * ) AS col2
----
-933

skipif mysql # not compatible
query I rowsort label-7105
SELECT - 52 + - 21 * + - 14 * - + 3 + COUNT ( * ) AS col2
----
-933

query I rowsort
SELECT - 22 - - COALESCE ( + - 52, 36 )
----
-74

query I rowsort
SELECT - - 37
----
37

query I rowsort
SELECT 25 + - 11 * 26
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT - COALESCE ( 47, - + COALESCE ( - 4, - + 96 ), 87 ) - 2 * COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7109
SELECT - COALESCE ( 47, - + COALESCE ( - 4, - + 96 ), 87 ) - 2 * COUNT ( * ) AS col0
----
-49

query I rowsort
SELECT + 79 + - 4
----
75

query I rowsort
SELECT ALL 49 + 16 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT MAX( + COALESCE ( 67, + - 89 ) )
----
67

skipif mysql # not compatible
query I rowsort label-7112
SELECT MAX ( + COALESCE ( 67, + - 89 ) )
----
67

query I rowsort
SELECT ALL - 34 + 85 + 24 AS col2
----
75

query I rowsort
SELECT + - 28 + 93 + 70 + + 99
----
234

query I rowsort
SELECT DISTINCT + 53 AS col0
----
53

query I rowsort
SELECT - + 53 + - 7 AS col2
----
-60

query I rowsort
SELECT DISTINCT + 14
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7118
SELECT ALL 25 * 71 * - 31 + ( - + COUNT( ALL 33 ) ) + 24 * + 28 col0, 68
----
-54354
68

skipif mysql # not compatible
query II rowsort label-7118
SELECT ALL 25 * 71 * - 31 + ( - + COUNT ( ALL 33 ) ) + 24 * + 28 col0, 68
----
-54354
68

query I rowsort
SELECT ALL + - 34 AS col2
----
-34

query II rowsort
SELECT + 42 AS col0, 95 col2
----
42
95

query II rowsort
SELECT - 59 AS col1, 58 AS col1
----
-59
58

query I rowsort
SELECT ALL + - 78
----
-78

query I rowsort
SELECT DISTINCT + 24 * - - 75
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT MAX( DISTINCT + 3 ) * + 4 - - + 3 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT MAX ( DISTINCT + 3 ) * + 4 - - + 3 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL + NULLIF ( + + 34, + 90 * - 93 + + COALESCE ( - + 85, - - SUM( DISTINCT 41 ) * - 28 ) + NULLIF ( + 25, 50 ) * - AVG ( DISTINCT + ( - 21 ) ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + NULLIF ( + + 34, + 90 * - 93 + + COALESCE ( - + 85, - - SUM ( DISTINCT 41 ) * - 28 ) + NULLIF ( + 25, 50 ) * - AVG ( DISTINCT + ( - 21 ) ) ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7126
SELECT + 58 AS col1, MAX( ALL - 99 )
----
58
-99

skipif mysql # not compatible
query II rowsort label-7126
SELECT + 58 AS col1, MAX ( ALL - 99 )
----
58
-99

query I rowsort
SELECT NULLIF ( - 11, + 44 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7128
SELECT + ( - COUNT( * ) ), MIN( DISTINCT - 71 ) AS col1
----
-1
-71

skipif mysql # not compatible
query II rowsort label-7128
SELECT + ( - COUNT ( * ) ), MIN ( DISTINCT - 71 ) AS col1
----
-1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT - 16 + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7129
SELECT - 16 + + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7130
SELECT - 80 DIV - COUNT( * ) col2
----
80

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 80 / - COUNT ( * ) col2
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7131
SELECT - ( + CAST( NULL AS DECIMAL ) ) * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT - ( + CAST ( NULL AS REAL ) ) * + 18
----
NULL

query I rowsort
SELECT - 98 + - + 12 + + 27
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT DISTINCT + 88 DIV + + 88
----
1

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + 88 / + + 88
----
1

query I rowsort
SELECT ALL + 55 AS col2
----
55

query I rowsort
SELECT ALL + 26 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL + NULLIF ( + 22, COUNT( * ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + NULLIF ( + 22, COUNT ( * ) ) AS col1
----
22

query I rowsort
SELECT - 62 + - + 22
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7138
SELECT DISTINCT + COUNT( DISTINCT 63 ) DIV - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT + COUNT ( DISTINCT 63 ) / - + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL + 71 * + COUNT( * ) * - + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + 71 * + COUNT ( * ) * - + COUNT ( * )
----
-71

query I rowsort
SELECT - 46 col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT + 90 * + CASE + 43 WHEN 71 THEN NULL WHEN - ( 98 ) * + MAX( + - ( 20 ) ) + - COUNT( * ) THEN - CAST( - 52 AS SIGNED ) + - 17 - + 42 / - - 97 * + 41 + + 61 / - 10 END * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT + 90 * + CASE + 43 WHEN 71 THEN NULL WHEN - ( 98 ) * + MAX ( + - ( 20 ) ) + - COUNT ( * ) THEN - CAST ( - 52 AS INTEGER ) + - 17 - + 42 / - - 97 * + 41 + + 61 / - 10 END * 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT + COUNT( * ) + - 17 + COUNT( * ) - - 77 * - COALESCE ( - 27, + ( + ( COUNT( * ) ) ), - 46 ) AS col2
----
2064

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + COUNT ( * ) + - 17 + COUNT ( * ) - - 77 * - COALESCE ( - 27, + ( + ( COUNT ( * ) ) ), - 46 ) AS col2
----
2064

query I rowsort
SELECT - + 15 + - 74
----
-89

query I rowsort
SELECT - + 93 col1
----
-93

query I rowsort
SELECT + 19 + + 42 * + 6 AS col1
----
271

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT ALL 46 AS col2, COALESCE ( + 65, - COUNT( * ), + 92 + + - COUNT( * ), + + 16 )
----
46
65

skipif mysql # not compatible
query II rowsort label-7146
SELECT ALL 46 AS col2, COALESCE ( + 65, - COUNT ( * ), + 92 + + - COUNT ( * ), + + 16 )
----
46
65

query I rowsort
SELECT ALL + + 61 + + 8 - - 84 * + + 0 + - 0
----
69

query I rowsort
SELECT DISTINCT - + 99 + - 50 + 16 * - 28 + - + 55 AS col2
----
-652

query II rowsort
SELECT 46, 45 AS col0
----
46
45

query I rowsort
SELECT ALL - 38 + + 72
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT ALL - CASE + COUNT( * ) WHEN - - 46 / - MAX( DISTINCT + 18 ) + 54 + NULLIF ( ( + - 5 ), + 92 / + CAST( NULL AS SIGNED ) ) * - - 61 * 60 + - - COUNT( * ) / + MIN( + + 22 ) * ( 52 ) + + MIN( - 14 ) THEN COUNT( * ) * + 77 WHEN - 57 THEN COALESCE ( + 23, + 10, COUNT( * ) ) / + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - CASE + COUNT ( * ) WHEN - - 46 / - MAX ( DISTINCT + 18 ) + 54 + NULLIF ( ( + - 5 ), + 92 / + CAST ( NULL AS INTEGER ) ) * - - 61 * 60 + - - COUNT ( * ) / + MIN ( + + 22 ) * ( 52 ) + + MIN ( - 14 ) THEN COUNT ( * ) * + 77 WHEN - 57 THEN COALESCE ( + 23, + 10, COUNT ( * ) ) / + 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT ALL 39 * NULLIF ( + - 28, 76 ), COUNT( * ) AS col1
----
-1092
1

skipif mysql # not compatible
query II rowsort label-7152
SELECT ALL 39 * NULLIF ( + - 28, 76 ), COUNT ( * ) AS col1
----
-1092
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT DISTINCT 36, COUNT( * ) * - 56 - ( + 81 ) AS col0
----
36
-137

skipif mysql # not compatible
query II rowsort label-7153
SELECT DISTINCT 36, COUNT ( * ) * - 56 - ( + 81 ) AS col0
----
36
-137

query I rowsort
SELECT - ( - - 5 ) - - 45
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL 96 * - 2 * + - 73 + - 8 + - MIN( 5 )
----
14003

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL 96 * - 2 * + - 73 + - 8 + - MIN ( 5 )
----
14003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7156
SELECT + 66 - + ( - + 40 ) / + + CAST( NULL AS SIGNED ), - COUNT( * ) + - 88 + + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7156
SELECT + 66 - + ( - + 40 ) / + + CAST ( NULL AS INTEGER ), - COUNT ( * ) + - 88 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT + 35 * + + 74 AS col1
----
2590

query I rowsort
SELECT + - ( + 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), + - 66 ) * - 66 * + + 16
----
-69696

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), + - 66 ) * - 66 * + + 16
----
-69696

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT - + 42 / - CASE + 32 WHEN + - 86 THEN COUNT( DISTINCT + 18 ) END - + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT - + 42 / - CASE + 32 WHEN + - 86 THEN COUNT ( DISTINCT + 18 ) END - + + 33 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - - 87 )
----
87

query II rowsort
SELECT ALL + + 85 col2, 3 AS col1
----
85
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7163
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7163
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 3
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT ALL - 65 / - CAST( NULL AS SIGNED ) * - 69 / - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL - 65 / - CAST ( NULL AS INTEGER ) * - 69 / - 96 AS col2
----
NULL

query I rowsort
SELECT + 28 * COALESCE ( + 88, 67 ) * - 7 AS col0
----
-17248

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT DISTINCT 34 DIV - + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT 34 / - + 48 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7167
SELECT ( - 49 ) AS col0, - CAST( NULL AS DECIMAL )
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-7167
SELECT ( - 49 ) AS col0, - CAST ( NULL AS REAL )
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT + COUNT( * ) * + 40 + + COUNT( * ) - - - 82 + - - 82 * - ( + 58 )
----
-4797

skipif mysql # not compatible
query I rowsort label-7168
SELECT + COUNT ( * ) * + 40 + + COUNT ( * ) - - - 82 + - - 82 * - ( + 58 )
----
-4797

query I rowsort
SELECT - 57 - ( + + 42 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL + COUNT( * ) * - - 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + COUNT ( * ) * - - 41 AS col0
----
41

query I rowsort
SELECT ALL + 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL COUNT( * ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL COUNT ( * ) * - 7
----
-7

query I rowsort
SELECT - 97 + - - 55 * - + 13 + - ( - + 69 )
----
-743

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT NULLIF ( + 35, - COALESCE ( + COUNT( 18 ), - 16 * + + COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-7174
SELECT NULLIF ( + 35, - COALESCE ( + COUNT ( 18 ), - 16 * + + COUNT ( * ) ) )
----
35

query I rowsort
SELECT ALL - 51 * - 96 + - - 58
----
4954

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - 55 * + 55 + + COUNT( * )
----
-3024

skipif mysql # not compatible
query I rowsort label-7176
SELECT - 55 * + 55 + + COUNT ( * )
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT CASE - 92 WHEN + - COUNT( DISTINCT - 83 ) * + 68 * - + 50 * - COUNT( * ) * - - 35 THEN NULL ELSE - + 40 END
----
-40

skipif mysql # not compatible
query I rowsort label-7177
SELECT CASE - 92 WHEN + - COUNT ( DISTINCT - 83 ) * + 68 * - + 50 * - COUNT ( * ) * - - 35 THEN NULL ELSE - + 40 END
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT MIN( ALL - + 72 ) + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7178
SELECT MIN ( ALL - + 72 ) + - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT ALL - CASE ( - + 5 ) WHEN - 21 THEN + - 40 WHEN - CAST( NULL AS SIGNED ) * - 82 THEN 64 ELSE NULL END / + - MAX( - ( + 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - CASE ( - + 5 ) WHEN - 21 THEN + - 40 WHEN - CAST ( NULL AS INTEGER ) * - 82 THEN 64 ELSE NULL END / + - MAX ( - ( + 65 ) )
----
NULL

query I rowsort
SELECT - - 8
----
8

query I rowsort
SELECT ALL - 47 + + ( + 47 )
----
0

query I rowsort
SELECT DISTINCT + 89 + + 70 * 65 AS col0
----
4639

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - MIN( DISTINCT + 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7183
SELECT - MIN ( DISTINCT + 37 ) AS col1
----
-37

query I rowsort
SELECT ALL + - 26 + 38 * - 97 AS col2
----
-3712

query I rowsort
SELECT 85 - + 63 * - 88
----
5629

query I rowsort
SELECT DISTINCT + 56 + - ( + - 85 ) AS col2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7187
SELECT ALL - 98 DIV + 56 * - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL - 98 / + 56 * - ( + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 59
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7189
SELECT DISTINCT 23 + - + CASE CAST( NULL AS SIGNED ) WHEN 1 THEN NULL ELSE - 72 DIV - - 73 END AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT 23 + - + CASE CAST ( NULL AS INTEGER ) WHEN 1 THEN NULL ELSE - 72 / - - 73 END AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT - - SUM( - - ( + 59 ) ) * + ( - 44 ) col0
----
-2596

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - - SUM ( - - ( + 59 ) ) * + ( - 44 ) col0
----
-2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL + 6 * 62 * CASE 64 WHEN 53 THEN NULL WHEN - 53 THEN 41 / ( 88 ) + - CAST( NULL AS SIGNED ) - - 15 + + + COUNT( * ) * - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + 6 * 62 * CASE 64 WHEN 53 THEN NULL WHEN - 53 THEN 41 / ( 88 ) + - CAST ( NULL AS INTEGER ) - - 15 + + + COUNT ( * ) * - 37 END
----
NULL

query I rowsort
SELECT 64 + 32 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT - ( + NULLIF ( + 74, + - 15 + - COUNT( * ) * + + 88 ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7193
SELECT - ( + NULLIF ( + 74, + - 15 + - COUNT ( * ) * + + 88 ) ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7194
SELECT 23 * + SUM( ALL - ( - 17 ) ) * 42, 1 * + - 79 AS col1
----
16422
-79

skipif mysql # not compatible
query II rowsort label-7194
SELECT 23 * + SUM ( ALL - ( - 17 ) ) * 42, 1 * + - 79 AS col1
----
16422
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT + 50 + - COUNT( * ) + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT + 50 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT CASE - - CAST( COUNT( * ) AS SIGNED ) WHEN + COUNT( * ) + - - COUNT( * ) THEN + - 68 * - 43 * + 32 WHEN + + 43 * 17 THEN NULL END - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT CASE - - CAST ( COUNT ( * ) AS INTEGER ) WHEN + COUNT ( * ) + - - COUNT ( * ) THEN + - 68 * - 43 * + 32 WHEN + + 43 * 17 THEN NULL END - + 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7197
SELECT ALL CAST( NULLIF ( - - 34, + 10 ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL CAST ( NULLIF ( - - 34, + 10 ) AS INTEGER )
----
34

query I rowsort
SELECT 56 + + - 13
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + 33 - - - CASE - 26 WHEN - - 36 THEN NULL WHEN - 50 + - COUNT( * ) * + 14 + - 58 * - 10 THEN NULL ELSE + ( - 64 ) * - + COUNT( * ) - + 90 END AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 33 - - - CASE - 26 WHEN - - 36 THEN NULL WHEN - 50 + - COUNT ( * ) * + 14 + - 58 * - 10 THEN NULL ELSE + ( - 64 ) * - + COUNT ( * ) - + 90 END AS col2
----
59

query I rowsort
SELECT DISTINCT - 74
----
-74

query II rowsort
SELECT + 91 * 66 col0, + ( + + 21 ) AS col1
----
6006
21

query I rowsort
SELECT DISTINCT - ( - + 55 )
----
55

query I rowsort
SELECT ALL 27
----
27

query I rowsort
SELECT DISTINCT - + 92 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT ALL 93 DIV ( - - 37 )
----
2

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL 93 / ( - - 37 )
----
2

query II rowsort
SELECT + 1 col1, - 18 AS col0
----
1
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT 0 DIV 80 col1
----
0

skipif mysql # not compatible
query I rowsort label-7207
SELECT 0 / 80 col1
----
0

query I rowsort
SELECT DISTINCT 28 * - 38
----
-1064

query I rowsort
SELECT + 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT 84 * - 34 * - 84 * + COUNT( * ) AS col0
----
239904

skipif mysql # not compatible
query I rowsort label-7210
SELECT 84 * - 34 * - 84 * + COUNT ( * ) AS col0
----
239904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7211
SELECT 90 DIV - + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-7211
SELECT 90 / - + COUNT ( * )
----
-90

query I rowsort
SELECT DISTINCT 80 + 84
----
164

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7213
SELECT ALL - 35 AS col2, - 60 + + CAST( NULL AS DECIMAL ) AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-7213
SELECT ALL - 35 AS col2, - 60 + + CAST ( NULL AS REAL ) AS col1
----
-35
NULL

query II rowsort
SELECT 52 AS col2, - 30
----
52
-30

query II rowsort
SELECT 99 * - 25 * - 16 AS col1, - 54 col2
----
39600
-54

query I rowsort
SELECT 6 + + 16 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL - SUM( DISTINCT - - 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - SUM ( DISTINCT - - 57 ) col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7218
SELECT 51 + + 60 + + 8 DIV - 67 + COUNT( * ) + - CASE - 40 WHEN COUNT( * ) * COALESCE ( - 46, - 32 * - CAST( 57 AS SIGNED ) * 67 * + - ( - 74 ) + - ( - 99 ) + 92 ) + 82 THEN 49 WHEN 3 THEN NULL ELSE COUNT( * ) * 58 END AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7218
SELECT 51 + + 60 + + 8 / - 67 + COUNT ( * ) + - CASE - 40 WHEN COUNT ( * ) * COALESCE ( - 46, - 32 * - CAST ( 57 AS INTEGER ) * 67 * + - ( - 74 ) + - ( - 99 ) + 92 ) + 82 THEN 49 WHEN 3 THEN NULL ELSE COUNT ( * ) * 58 END AS col2
----
54

query II rowsort
SELECT + 43 AS col2, 34 AS col0
----
43
34

query I rowsort
SELECT DISTINCT - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT ALL - - 15, + ( + 46 ) * COUNT( * ) AS col2
----
15
46

skipif mysql # not compatible
query II rowsort label-7221
SELECT ALL - - 15, + ( + 46 ) * COUNT ( * ) AS col2
----
15
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT - COUNT( ALL + 72 ) + - COUNT( - - 67 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7222
SELECT - COUNT ( ALL + 72 ) + - COUNT ( - - 67 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT - + 7 * 48 + + 73 * 11 - - COUNT( * ) - - 45 + - ( - CAST( NULL AS SIGNED ) ) + + 49 * 97 * - COUNT( * ) * + 22 + 6 * + COUNT( * ) * - 45 + - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT - + 7 * 48 + + 73 * 11 - - COUNT ( * ) - - 45 + - ( - CAST ( NULL AS INTEGER ) ) + + 49 * 97 * - COUNT ( * ) * + 22 + 6 * + COUNT ( * ) * - 45 + - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - MIN( ALL 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7224
SELECT - MIN ( ALL 93 ) AS col0
----
-93

query I rowsort
SELECT + 4 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT MAX( ALL + - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-7226
SELECT MAX ( ALL + - 55 )
----
-55

query I rowsort
SELECT - + ( - 37 ) AS col2
----
37

query I rowsort
SELECT 69 + 46
----
115

query I rowsort
SELECT DISTINCT 55
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT DISTINCT + COUNT( * ), CASE - + ( - 51 ) WHEN - 67 THEN + + 78 - 55 WHEN - COUNT( * ) THEN NULL END * - ( COUNT( * ) ) col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7230
SELECT DISTINCT + COUNT ( * ), CASE - + ( - 51 ) WHEN - 67 THEN + + 78 - 55 WHEN - COUNT ( * ) THEN NULL END * - ( COUNT ( * ) ) col1
----
1
NULL

query I rowsort
SELECT DISTINCT - 3 * + - 38
----
114

query I rowsort
SELECT ALL 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT 97 DIV + 93 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7233
SELECT 97 / + 93 AS col2
----
1

query I rowsort
SELECT ALL - ( 31 ) * 58
----
-1798

query I rowsort
SELECT 27 - 49 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL MIN( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL MIN ( - 96 )
----
-96

query I rowsort
SELECT 94 * + 10 * - - 31 AS col1
----
29140

query I rowsort
SELECT ALL - 2 * 61
----
-122

query I rowsort
SELECT ALL 11 * - 52 + - 46
----
-618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7240
SELECT COUNT( * ) - CAST( + + 12 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7240
SELECT COUNT ( * ) - CAST ( + + 12 AS INTEGER ) AS col2
----
-11

query I rowsort
SELECT DISTINCT - 48 AS col2
----
-48

query I rowsort
SELECT DISTINCT - 13 * 55 + + 26 * 1 AS col2
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - COUNT( * ) * + 40 + + 92 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - COUNT ( * ) * + 40 + + 92 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7244
SELECT MAX( 62 ), + ( + 56 ) * + COUNT( * ) AS col2
----
62
56

skipif mysql # not compatible
query II rowsort label-7244
SELECT MAX ( 62 ), + ( + 56 ) * + COUNT ( * ) AS col2
----
62
56

query I rowsort
SELECT ALL + 80 * - + 23 + - 46
----
-1886

query I rowsort
SELECT + 68 * + - 11 * - 22 AS col1
----
16456

query I rowsort
SELECT ALL 73 * - 78 AS col1
----
-5694

query I rowsort
SELECT ALL + 96 AS col1
----
96

query I rowsort
SELECT ALL - 64 * 18 - ( 20 ) col2
----
-1172

query I rowsort
SELECT + 32 * - + 62
----
-1984

query I rowsort
SELECT ALL - 40 * - 92
----
3680

query I rowsort
SELECT DISTINCT + ( + - 55 ) * + 13 AS col2
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + NULLIF ( + + 10, - 66 - - 16 * + 65 ) + - COUNT( * ) * + 25 col2
----
-15

skipif mysql # not compatible
query I rowsort label-7253
SELECT + NULLIF ( + + 10, - 66 - - 16 * + 65 ) + - COUNT ( * ) * + 25 col2
----
-15

query I rowsort
SELECT ALL + + 22
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7255
SELECT ALL + 81 - - - COUNT( * ) + - 47 + + - 70 + 63 * COUNT( * ) * + 1 + + 98 DIV + COALESCE ( 10, + - 48 )
----
35

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL + 81 - - - COUNT ( * ) + - 47 + + - 70 + 63 * COUNT ( * ) * + 1 + + 98 / + COALESCE ( 10, + - 48 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - + ( - + COUNT( * ) ) * - - 61 * + 38 * 38 col1
----
88084

skipif mysql # not compatible
query I rowsort label-7256
SELECT - + ( - + COUNT ( * ) ) * - - 61 * + 38 * 38 col1
----
88084

query I rowsort
SELECT + - 1 * - 94 * - 96
----
-9024

query I rowsort
SELECT - + 91 AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT + - 20 DIV + - 13 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7259
SELECT + - 20 / + - 13 AS col2
----
1

query I rowsort
SELECT ALL + 50 AS col0
----
50

query I rowsort
SELECT DISTINCT 38 AS col0
----
38

query I rowsort
SELECT ALL 85 * + ( + 26 ) AS col1
----
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + - COUNT( * ) - ( + COUNT( * ) ) + - 22 - CASE - - 36 WHEN - 53 - + 91 + - 25 * - 41 THEN SUM( - 62 ) * + 85 * MAX( DISTINCT + 85 ) + - 5 ELSE NULL END / + - 23 * + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT + - COUNT ( * ) - ( + COUNT ( * ) ) + - 22 - CASE - - 36 WHEN - 53 - + 91 + - 25 * - 41 THEN SUM ( - 62 ) * + 85 * MAX ( DISTINCT + 85 ) + - 5 ELSE NULL END / + - 23 * + + 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7264
SELECT ALL NULLIF ( + - 15, - CAST( + NULLIF ( - + ( 91 ), CAST( + 83 AS SIGNED ) ) AS SIGNED ) / - 94 ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL NULLIF ( + - 15, - CAST ( + NULLIF ( - + ( 91 ), CAST ( + 83 AS INTEGER ) ) AS INTEGER ) / - 94 ) col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7265
SELECT + - CASE - 33 WHEN CAST( + + 43 AS SIGNED ) DIV + 65 * SUM( ALL - - ( - 20 ) ) + + AVG ( ALL - + 57 ) - + 67 + - 44 * - 67 THEN - 46 END + 53 AS col2, - 0 * - - 9 DIV + 86 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7265
SELECT + - CASE - 33 WHEN CAST ( + + 43 AS INTEGER ) / + 65 * SUM ( ALL - - ( - 20 ) ) + + AVG ( ALL - + 57 ) - + 67 + - 44 * - 67 THEN - 46 END + 53 AS col2, - 0 * - - 9 / + 86 AS col0
----
NULL
0

query I rowsort
SELECT + ( + 69 ) AS col1
----
69

query I rowsort
SELECT DISTINCT 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + 48 + + COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7268
SELECT + 48 + + COUNT ( * ) AS col1
----
49

query I rowsort
SELECT - 58 - - 50 AS col1
----
-8

query II rowsort
SELECT 96, - 5 AS col0
----
96
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT + NULLIF ( 28, - - MIN( - 65 ) ) DIV - - 39
----
0

skipif mysql # not compatible
query I rowsort label-7271
SELECT + NULLIF ( 28, - - MIN ( - 65 ) ) / - - 39
----
0

query I rowsort
SELECT ALL + 43 + 3
----
46

query I rowsort
SELECT ALL 10 + 15 AS col0
----
25

query I rowsort
SELECT DISTINCT 69 + 11
----
80

query I rowsort
SELECT ALL ( 36 ) col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT ALL + CAST( NULL AS SIGNED ) + - ( + ( + 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL + CAST ( NULL AS INTEGER ) + - ( + ( + 74 ) )
----
NULL

query I rowsort
SELECT - 98 + + 96 * 27
----
2494

query I rowsort
SELECT + ( + 45 ) * - - 38 - - 93
----
1803

query I rowsort
SELECT 16 * - 46 + - + ( + - 82 ) + 5
----
-649

query I rowsort
SELECT DISTINCT + 26 * + 71
----
1846

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7281
SELECT ALL - ( + + 53 ) * CASE - CAST( - + 68 AS DECIMAL ) WHEN - + 42 THEN + - ( - 51 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL - ( + + 53 ) * CASE - CAST ( - + 68 AS REAL ) WHEN - + 42 THEN + - ( - 51 ) END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7282
SELECT - 62 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT - 62 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7283
SELECT - COUNT( * ) * ( - CASE - 28 WHEN + CASE 94 WHEN 42 THEN + 93 * + 16 ELSE NULL END * - + COALESCE ( - 9, - + COUNT( * ), + + NULLIF ( - + COUNT( DISTINCT 23 ), + 22 ) + 5 * SUM( DISTINCT 11 ) ) THEN COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) + + 79 THEN 12 * 24 - - 51 * 75 WHEN + 37 * + 77 THEN NULL ELSE 97 - - 23 * - 16 END ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT - COUNT ( * ) * ( - CASE - 28 WHEN + CASE 94 WHEN 42 THEN + 93 * + 16 ELSE NULL END * - + COALESCE ( - 9, - + COUNT ( * ), + + NULLIF ( - + COUNT ( DISTINCT 23 ), + 22 ) + 5 * SUM ( DISTINCT 11 ) ) THEN COUNT ( * ) WHEN - CAST ( NULL AS REAL ) + + 79 THEN 12 * 24 - - 51 * 75 WHEN + 37 * + 77 THEN NULL ELSE 97 - - 23 * - 16 END ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT - ( - - 97 ) / - - ( 73 ) + + - CAST( NULL AS SIGNED ) - + - 27 * - 59 * + + 8 + + + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT - ( - - 97 ) / - - ( 73 ) + + - CAST ( NULL AS INTEGER ) - + - 27 * - 59 * + + 8 + + + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7285
SELECT ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT 81 DIV 93 + - 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7286
SELECT 81 / 93 + - 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL - COUNT( * ) * + 85 - + - 18
----
-67

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - COUNT ( * ) * + 85 - + - 18
----
-67

query I rowsort
SELECT ( - 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT ALL + CASE 87 WHEN - 14 THEN 79 WHEN - - 64 * + 25 THEN NULL ELSE - CASE - + CASE + 91 WHEN + + 79 THEN - 20 + - - 87 + + ( - COUNT( - 14 ) ) + + - 13 * - MAX( DISTINCT + 92 ) WHEN NULLIF ( 36, COUNT( * ) ) * CASE 97 WHEN 61 THEN NULL WHEN + COUNT( * ) * CAST( NULL AS SIGNED ) THEN + 34 ELSE COALESCE ( - 43, CASE AVG ( DISTINCT - 78 ) WHEN COUNT( * ) * 15 THEN NULL ELSE + 61 + - COUNT( * ) * COALESCE ( ( COUNT( * ) ) - 76, - 6 ) END + + NULLIF ( - 37, COUNT( * ) ), 32 + MIN( - 80 ) ) END THEN NULL ELSE NULL END WHEN MIN( - 43 ) THEN - ( + 43 ) WHEN - 19 THEN - 77 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + CASE 87 WHEN - 14 THEN 79 WHEN - - 64 * + 25 THEN NULL ELSE - CASE - + CASE + 91 WHEN + + 79 THEN - 20 + - - 87 + + ( - COUNT ( - 14 ) ) + + - 13 * - MAX ( DISTINCT + 92 ) WHEN NULLIF ( 36, COUNT ( * ) ) * CASE 97 WHEN 61 THEN NULL WHEN + COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN + 34 ELSE COALESCE ( - 43, CASE AVG ( DISTINCT - 78 ) WHEN COUNT ( * ) * 15 THEN NULL ELSE + 61 + - COUNT ( * ) * COALESCE ( ( COUNT ( * ) ) - 76, - 6 ) END + + NULLIF ( - 37, COUNT ( * ) ), 32 + MIN ( - 80 ) ) END THEN NULL ELSE NULL END WHEN MIN ( - 43 ) THEN - ( + 43 ) WHEN - 19 THEN - 77 END END
----
NULL

query I rowsort
SELECT DISTINCT + 73 AS col1
----
73

query I rowsort
SELECT 72 * - 28 + - ( + - 82 )
----
-1934

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT + MAX( + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT + MAX ( + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL + ( - 13 ) * + - COUNT( + 19 ) * - 89 - - - 24 AS col1
----
-1181

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL + ( - 13 ) * + - COUNT ( + 19 ) * - 89 - - - 24 AS col1
----
-1181

query I rowsort
SELECT + 63 * + 71 col2
----
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL + 19 * - MIN( 58 ) AS col0
----
-1102

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL + 19 * - MIN ( 58 ) AS col0
----
-1102

query I rowsort
SELECT + + 75 AS col0
----
75

query I rowsort
SELECT + + 33 + + 63
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT ALL + 75 DIV + 98 * + 66 DIV - ( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + 75 / + 98 * + 66 / - ( + 44 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - CASE + 4 WHEN + 41 THEN 76 WHEN + CASE + COUNT( * ) WHEN + COUNT( * ) + + - 14 THEN - 91 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT - CASE + 4 WHEN + 41 THEN 76 WHEN + CASE + COUNT ( * ) WHEN + COUNT ( * ) + + - 14 THEN - 91 END THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT DISTINCT + 25 * + CAST( NULL AS SIGNED ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT + 25 * + CAST ( NULL AS INTEGER ) * + 91
----
NULL

query I rowsort
SELECT DISTINCT - 67 * 28 AS col0
----
-1876

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT - - 28 * - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7302
SELECT - - 28 * - - COUNT ( * )
----
28

query I rowsort
SELECT + 79 * - 75 * + 63 + - + 89
----
-373364

query I rowsort
SELECT - - ( - 52 ) col0
----
-52

query I rowsort
SELECT COALESCE ( - + 62, + - 94 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + 32 * COUNT( * ) + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7306
SELECT + 32 * COUNT ( * ) + + COUNT ( * )
----
33

query I rowsort
SELECT + 2 + + 42 AS col1
----
44

query I rowsort
SELECT + 46 * + 39 + 76
----
1870

query I rowsort
SELECT + + 57 + - - 74
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT ALL + MIN( - 63 ) + 16, 60 AS col0
----
-47
60

skipif mysql # not compatible
query II rowsort label-7310
SELECT ALL + MIN ( - 63 ) + 16, 60 AS col0
----
-47
60

query I rowsort
SELECT - - ( - 0 ) AS col2
----
0

query I rowsort
SELECT ALL - 82 + 61 * + + 98 * 70 + + - ( 18 ) AS col1
----
418360

onlyif mysql # aggregate syntax: 
query II rowsort label-7313
SELECT 74 AS col2, 77 * + 91 * - 76 + + - CASE - MIN( DISTINCT + - 33 ) WHEN - 11 THEN + 24 END * + - 70
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7313
SELECT 74 AS col2, 77 * + 91 * - 76 + + - CASE - MIN ( DISTINCT + - 33 ) WHEN - 11 THEN + 24 END * + - 70
----
74
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT 76 AS col0, + COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-7314
SELECT 76 AS col0, + COUNT ( * )
----
76
1

query I rowsort
SELECT DISTINCT 69 + - - 2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT ALL 28 + - + 14 + - 23 * 91, + 93 + + + 52 + 65 + - MAX( - 89 ) * - ( + 66 ) + + + 18 AS col2
----
-2079
-5646

skipif mysql # not compatible
query II rowsort label-7316
SELECT ALL 28 + - + 14 + - 23 * 91, + 93 + + + 52 + 65 + - MAX ( - 89 ) * - ( + 66 ) + + + 18 AS col2
----
-2079
-5646

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT ALL 4 + 68 + + - 5 DIV - 20
----
72

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL 4 + 68 + + - 5 / - 20
----
72

query I rowsort
SELECT - ( - 12 )
----
12

query II rowsort
SELECT + 86 - 97 AS col2, - 23 AS col0
----
-11
-23

query I rowsort
SELECT ALL 66 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7321
SELECT ALL 17 AS col0, ( ( - + 37 ) ) - + - 18 * + ( + 21 ) + + CASE - - MIN( + 63 ) WHEN - 2 + COUNT( * ) THEN NULL WHEN + - CASE - CASE - + COUNT( * ) WHEN + + MAX( + ( + 52 ) ) THEN - - COALESCE ( + NULLIF ( + 69, + CAST( NULL AS SIGNED ) * COUNT( * ) ), + 5 ) ELSE - CASE 18 WHEN - 30 THEN - 3 WHEN 5 THEN NULL END + 71 * 17 END WHEN - 91 THEN NULL ELSE 43 * 76 END - 10 THEN 57 / - 35 - + ( + CAST( NULL AS SIGNED ) ) ELSE NULL END
----
17
NULL

skipif mysql # not compatible
query II rowsort label-7321
SELECT ALL 17 AS col0, ( ( - + 37 ) ) - + - 18 * + ( + 21 ) + + CASE - - MIN ( + 63 ) WHEN - 2 + COUNT ( * ) THEN NULL WHEN + - CASE - CASE - + COUNT ( * ) WHEN + + MAX ( + ( + 52 ) ) THEN - - COALESCE ( + NULLIF ( + 69, + CAST ( NULL AS INTEGER ) * COUNT ( * ) ), + 5 ) ELSE - CASE 18 WHEN - 30 THEN - 3 WHEN 5 THEN NULL END + 71 * 17 END WHEN - 91 THEN NULL ELSE 43 * 76 END - 10 THEN 57 / - 35 - + ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
17
NULL

query I rowsort
SELECT 9 + - 82
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ( + COUNT( * ) ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-7323
SELECT ( + COUNT ( * ) ) * - 86
----
-86

query II rowsort
SELECT ALL - 64, ( + 81 ) AS col1
----
-64
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT DISTINCT + 95 DIV 44
----
2

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT + 95 / 44
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL - COUNT( + 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - COUNT ( + 37 )
----
-1

query I rowsort
SELECT DISTINCT - 76 AS col0
----
-76

query I rowsort
SELECT 50 * 73 AS col2
----
3650

query II rowsort
SELECT ALL - 89 AS col2, + 99 + 85 + - 87 + + 53
----
-89
150

query I rowsort
SELECT DISTINCT + CASE 76 WHEN + 66 THEN - 20 END * - 13
----
NULL

query I rowsort
SELECT 63 * - - 21 AS col2
----
1323

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT 69 DIV - + 83 * 87
----
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT 69 / - + 83 * 87
----
0

query I rowsort
SELECT ( 71 ) * 99 col1
----
7029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT - CAST( NULL AS SIGNED ) * - + 37 + + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT - CAST ( NULL AS INTEGER ) * - + 37 + + - 3
----
NULL

query I rowsort
SELECT - 61 - + 83
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + NULLIF ( - + 13, + + COUNT( * ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7336
SELECT + NULLIF ( - + 13, + + COUNT ( * ) ) AS col1
----
-13

query I rowsort
SELECT DISTINCT - ( 23 ) AS col2
----
-23

query II rowsort
SELECT ALL - + 44 AS col1, - 48 AS col0
----
-44
-48

query I rowsort
SELECT ALL - + 84 col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL + COUNT( * ) * 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL + COUNT ( * ) * 49 AS col2
----
49

query I rowsort
SELECT DISTINCT - 95 AS col1
----
-95

query I rowsort
SELECT ALL - - 67
----
67

query I rowsort
SELECT ALL - - 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT - ( + 75 ) + - 92 * SUM( + 84 ) + + 58 + - + 53 - 23
----
-7821

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - ( + 75 ) + - 92 * SUM ( + 84 ) + + 58 + - + 53 - 23
----
-7821

query I rowsort
SELECT + + 3 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT 46 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT 46 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + 99 * 49 + SUM( DISTINCT - ( - 99 ) )
----
4950

skipif mysql # not compatible
query I rowsort label-7347
SELECT + 99 * 49 + SUM ( DISTINCT - ( - 99 ) )
----
4950

query I rowsort
SELECT + + 92 AS col0
----
92

query I rowsort
SELECT ALL - 72 + + 0 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT + COUNT( * ) + + 92 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7350
SELECT + COUNT ( * ) + + 92 AS col0
----
93

query I rowsort
SELECT 26 + + 10 col1
----
36

query I rowsort
SELECT ALL NULLIF ( + + 26, - 39 ) col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - SUM( - + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-7353
SELECT - SUM ( - + 26 )
----
26

query I rowsort
SELECT ALL - - 28 + - 87
----
-59

query I rowsort
SELECT DISTINCT + 90 col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT COUNT( * ) + - 70 - 77 + - 19 + - + 28, - 16 AS col1
----
-193
-16

skipif mysql # not compatible
query II rowsort label-7356
SELECT COUNT ( * ) + - 70 - 77 + - 19 + - + 28, - 16 AS col1
----
-193
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT 93 * + + COUNT( DISTINCT + 74 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7357
SELECT 93 * + + COUNT ( DISTINCT + 74 ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7358
SELECT 0 + ( CAST( NULL AS SIGNED ) ) / - 55 + - 70 * + SUM( 16 ) AS col0, - 21
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-7358
SELECT 0 + ( CAST ( NULL AS INTEGER ) ) / - 55 + - 70 * + SUM ( 16 ) AS col0, - 21
----
NULL
-21

query I rowsort
SELECT 35 * - - 42
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT COALESCE ( - 29, MAX( 60 ) ) - - ( COUNT( * ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7360
SELECT COALESCE ( - 29, MAX ( 60 ) ) - - ( COUNT ( * ) ) AS col1
----
-28

query I rowsort
SELECT ALL 64 AS col2
----
64

query I rowsort
SELECT DISTINCT 70 AS col1
----
70

query I rowsort
SELECT ALL 72 AS col2
----
72

query I rowsort
SELECT DISTINCT 23 col1
----
23

query I rowsort
SELECT DISTINCT 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT ( + 45 ) * - - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT ( + 45 ) * - - COUNT ( * ) AS col1
----
45

query I rowsort
SELECT COALESCE ( + 32, + 93 ) * - - 75
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT CAST( + 67 AS SIGNED ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT CAST ( + 67 AS INTEGER ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 66 col1
----
NULL

query I rowsort
SELECT ALL - 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT + 72 * - - NULLIF ( - + 64, + - COUNT( * ) * + + 71 - COUNT( * ) * + COALESCE ( - COUNT( * ), + - COUNT( * ) + - 95, 73 ) + + 66 - - 53 * - - 81 ) / - - 3 + SUM( NULLIF ( + COALESCE ( 63, - + 64 ), + 63 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT + 72 * - - NULLIF ( - + 64, + - COUNT ( * ) * + + 71 - COUNT ( * ) * + COALESCE ( - COUNT ( * ), + - COUNT ( * ) + - 95, 73 ) + + 66 - - 53 * - - 81 ) / - - 3 + SUM ( NULLIF ( + COALESCE ( 63, - + 64 ), + 63 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT 99 * + - SUM( ALL 68 ) + 57
----
-6675

skipif mysql # not compatible
query I rowsort label-7372
SELECT 99 * + - SUM ( ALL 68 ) + 57
----
-6675

query I rowsort
SELECT ALL 54 * - 70
----
-3780

query I rowsort
SELECT DISTINCT - + 33 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7375
SELECT ALL + 58 + + 92 DIV ( - 39 ) * COUNT( * ) * + COUNT( 27 ), 93 col2
----
56
93

skipif mysql # not compatible
query II rowsort label-7375
SELECT ALL + 58 + + 92 / ( - 39 ) * COUNT ( * ) * + COUNT ( 27 ), 93 col2
----
56
93

query I rowsort
SELECT DISTINCT - COALESCE ( - 80, - 92 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL - COUNT( * ) + - 60 + + 84 * + + CASE + - ( - 86 ) WHEN - ( 45 ) THEN NULL WHEN - + 64 + 44 - - 3 * - 88 - + 31 / 83 + 23 THEN NULL WHEN + COUNT( * ) * - + ( - 1 ) THEN + + 75 * - AVG ( - 86 ) / - - 95 * 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - COUNT ( * ) + - 60 + + 84 * + + CASE + - ( - 86 ) WHEN - ( 45 ) THEN NULL WHEN - + 64 + 44 - - 3 * - 88 - + 31 / 83 + 23 THEN NULL WHEN + COUNT ( * ) * - + ( - 1 ) THEN + + 75 * - AVG ( - 86 ) / - - 95 * 13 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT 31 * + - 54 * - + 78 + COUNT( * )
----
130573

skipif mysql # not compatible
query I rowsort label-7378
SELECT 31 * + - 54 * - + 78 + COUNT ( * )
----
130573

query I rowsort
SELECT DISTINCT - ( + 44 ) + + 59 + - - 77 + - 61 + 19
----
50

query I rowsort
SELECT ALL - 81 col0
----
-81

query I rowsort
SELECT DISTINCT + 9 + - 86 AS col2
----
-77

query I rowsort
SELECT + 24 col2
----
24

query I rowsort
SELECT ALL - 75 + + 28
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT COALESCE ( COUNT( * ), + 70 ) * - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-7384
SELECT COALESCE ( COUNT ( * ), + 70 ) * - + 73
----
-73

query I rowsort
SELECT DISTINCT + 84 + - + 48
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7386
SELECT ALL - MIN( + 43 ), + 82 AS col2
----
-43
82

skipif mysql # not compatible
query II rowsort label-7386
SELECT ALL - MIN ( + 43 ), + 82 AS col2
----
-43
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7387
SELECT + + CASE - - COALESCE ( - + 56, - 36, + + AVG ( - - 70 ) ) WHEN + - 10 / - COUNT( - 5 ) * - 67 THEN NULL WHEN + COUNT( * ) * - + SUM( ALL - + ( - 10 ) ) THEN + 24 ELSE NULL END, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7387
SELECT + + CASE - - COALESCE ( - + 56, - 36, + + AVG ( - - 70 ) ) WHEN + - 10 / - COUNT ( - 5 ) * - 67 THEN NULL WHEN + COUNT ( * ) * - + SUM ( ALL - + ( - 10 ) ) THEN + 24 ELSE NULL END, COUNT ( * ) col2
----
NULL
1

query I rowsort
SELECT ALL 84 + + 95 AS col2
----
179

query I rowsort
SELECT ALL 98 * - 77 - 52 AS col0
----
-7598

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT - 82 + 76 - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT - 82 + 76 - + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT + 24 * - 21 * - COUNT( * ) + - 54 AS col2
----
450

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + 24 * - 21 * - COUNT ( * ) + - 54 AS col2
----
450

query I rowsort
SELECT ALL - - ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT COUNT( * ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT COUNT ( * ) + + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL - 49 + + 85 + - + 85 AS col1
----
-49

query I rowsort
SELECT - + 63 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL SUM( DISTINCT + 40 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL SUM ( DISTINCT + 40 ) col0
----
40

query I rowsort
SELECT DISTINCT - 30 - + - 41 AS col2
----
11

query I rowsort
SELECT - 45 * + 55 AS col1
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - 51 * + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7399
SELECT - 51 * + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7400
SELECT - 6, MAX( + ( 0 ) ) AS col2
----
-6
0

skipif mysql # not compatible
query II rowsort label-7400
SELECT - 6, MAX ( + ( 0 ) ) AS col2
----
-6
0

query I rowsort
SELECT + 69 + + 24 AS col2
----
93

query I rowsort
SELECT ALL - ( 87 ) * - 47
----
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL CASE 74 WHEN 81 + - 4 THEN 57 + COUNT( * ) - + 16 / - 53 / 76 / - 86 * + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL CASE 74 WHEN 81 + - 4 THEN 57 + COUNT ( * ) - + 16 / - 53 / 76 / - 86 * + 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL MIN( + 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL MIN ( + 42 ) AS col2
----
42

query I rowsort
SELECT ALL - 94 * + + 27 AS col2
----
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL - 22 * COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - 22 * COUNT ( * ) AS col2
----
-22

query I rowsort
SELECT ALL - 13 * - 98 * + + 53 AS col0
----
67522

query I rowsort
SELECT ALL - ( 2 ) * - + 32 + + 21
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT - 79 * - COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7409
SELECT - 79 * - COUNT ( * ) AS col0
----
79

query I rowsort
SELECT + 85 * 94 * 98 AS col2
----
783020

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - 97 - 8 * + COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-7411
SELECT - 97 - 8 * + COUNT ( * )
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT + 3 / - CASE + - 46 WHEN - 63 THEN NULLIF ( + - ( + 78 ), - 66 ) + + 94 + 6 - + - 16 * + CASE COUNT( * ) WHEN 24 + - - 69 - CAST( NULL AS SIGNED ) THEN NULL ELSE + COALESCE ( 78, ( 5 ), SUM( ALL - 51 ) + 11 * - 59 ) * 81 END / - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT + 3 / - CASE + - 46 WHEN - 63 THEN NULLIF ( + - ( + 78 ), - 66 ) + + 94 + 6 - + - 16 * + CASE COUNT ( * ) WHEN 24 + - - 69 - CAST ( NULL AS INTEGER ) THEN NULL ELSE + COALESCE ( 78, ( 5 ), SUM ( ALL - 51 ) + 11 * - 59 ) * 81 END / - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 49, 33 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7414
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) - + CASE + - 53 WHEN + 0 + 94 THEN NULL WHEN COALESCE ( 59, ( - 31 ), + 80 ) + - AVG ( ALL + 94 ) THEN + NULLIF ( - ( - + ( - - 95 ) ), - + MIN( DISTINCT - - 48 ) ) ELSE NULL END + ( - 88 ), + 62 + + + 79 - - 89 * - 22 AS col2
----
NULL
-1817

skipif mysql # not compatible
query II rowsort label-7414
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + CASE + - 53 WHEN + 0 + 94 THEN NULL WHEN COALESCE ( 59, ( - 31 ), + 80 ) + - AVG ( ALL + 94 ) THEN + NULLIF ( - ( - + ( - - 95 ) ), - + MIN ( DISTINCT - - 48 ) ) ELSE NULL END + ( - 88 ), + 62 + + + 79 - - 89 * - 22 AS col2
----
NULL
-1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7415
SELECT - SUM( DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), + 5 + 62 DIV 5 DIV - 56 + 81 ) ) col2, + 5 * + 72 * - 57 DIV - - 1
----
86
-20520

skipif mysql # not compatible
query II rowsort label-7415
SELECT - SUM ( DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), + 5 + 62 / 5 / - 56 + 81 ) ) col2, + 5 * + 72 * - 57 / - - 1
----
86
-20520

query I rowsort
SELECT - 49 + 24
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT - 67 DIV 15 * + 36 * + - 2 * - 13
----
-3744

skipif mysql # not compatible
query I rowsort label-7417
SELECT - 67 / 15 * + 36 * + - 2 * - 13
----
-3744

query I rowsort
SELECT DISTINCT - ( 17 ) + 53 + 64 * 19
----
1252

query I rowsort
SELECT DISTINCT 7 * 29 + + 30 + + 2
----
235

query II rowsort
SELECT DISTINCT + 92 * - 16 * + 36 + - 91 * - + 52 + + 80 AS col2, + 86 * 46
----
-48180
3956

query I rowsort
SELECT ALL + - 66 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT ALL - 63 * + ( + - 8 ) + - SUM( - CAST( NULL AS SIGNED ) ) + - 49 + - + CAST( NULL AS SIGNED ) * - + 37 * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - 63 * + ( + - 8 ) + - SUM ( - CAST ( NULL AS INTEGER ) ) + - 49 + - + CAST ( NULL AS INTEGER ) * - + 37 * 27 AS col1
----
NULL

query I rowsort
SELECT ALL + + 79 AS col2
----
79

query I rowsort
SELECT + - 85 * 85 AS col2
----
-7225

query I rowsort
SELECT + + ( + 48 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT + + CAST( + 54 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7426
SELECT + + CAST ( + 54 AS INTEGER ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ALL 28 * - ( - COUNT( * ) ) * 45 + 6 * + 80 + 88 + - + 70 + COUNT( ALL + - 6 ) * - 9 AS col2
----
1749

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL 28 * - ( - COUNT ( * ) ) * 45 + 6 * + 80 + 88 + - + 70 + COUNT ( ALL + - 6 ) * - 9 AS col2
----
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + - ( 33 ) + + COUNT( * ) * - + MAX( - 64 ) * + COUNT( * ) + 93
----
124

skipif mysql # not compatible
query I rowsort label-7428
SELECT + - ( 33 ) + + COUNT ( * ) * - + MAX ( - 64 ) * + COUNT ( * ) + 93
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7429
SELECT + ( - - 60 ) * 90 DIV + + SUM( + 84 ) + - 62 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7429
SELECT + ( - - 60 ) * 90 / + + SUM ( + 84 ) + - 62 AS col2
----
2

query I rowsort
SELECT ALL + - 29 AS col1
----
-29

query I rowsort
SELECT ALL ( - 73 ) * 55 * - - 42 * - 24 + 65 + + + ( - 61 ) AS col1
----
4047124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT DISTINCT + + NULLIF ( + CAST( NULL AS SIGNED ), + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + + NULLIF ( + CAST ( NULL AS INTEGER ), + 63 )
----
NULL

query I rowsort
SELECT DISTINCT + 62 * + ( + 98 ) + + 80 col2
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT + - COUNT( * ) * - 97 - + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT + - COUNT ( * ) * - 97 - + + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + + ( - + 36 ) * 98 + COUNT( * ) col2
----
-3527

skipif mysql # not compatible
query I rowsort label-7435
SELECT + + ( - + 36 ) * 98 + COUNT ( * ) col2
----
-3527

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT ALL - 3 DIV + 79 + + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - 3 / + 79 + + - 82
----
-82

query I rowsort
SELECT + - 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT + + SUM( + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7438
SELECT + + SUM ( + 5 ) AS col2
----
5

query I rowsort
SELECT ALL + + 32
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT + 46 DIV + - 63
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT + 46 / + - 63
----
0

query I rowsort
SELECT - 52 * + 1 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + 39 + + - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7442
SELECT + 39 + + - COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT COUNT( * ) * - 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT COUNT ( * ) * - 8 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT - 16 DIV + NULLIF ( + 77, + + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 16 / + NULLIF ( + 77, + + 73 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7445
SELECT - 33 + - 89 + CAST( - + 0 AS SIGNED ) DIV + 39 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 33 + - 89 + CAST ( - + 0 AS INTEGER ) / + 39 AS col0
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7446
SELECT ALL SUM( + 10 ), - 79 DIV + - 69 + ( - 13 ) col1
----
10
-12

skipif mysql # not compatible
query II rowsort label-7446
SELECT ALL SUM ( + 10 ), - 79 / + - 69 + ( - 13 ) col1
----
10
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT 54 * - + CASE + + CASE + COUNT( * ) WHEN 56 THEN NULL WHEN - 43 THEN - 69 ELSE NULL END WHEN + + ( 39 ) THEN NULL WHEN - 53 THEN - SUM( + 19 ) END + 88 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT 54 * - + CASE + + CASE + COUNT ( * ) WHEN 56 THEN NULL WHEN - 43 THEN - 69 ELSE NULL END WHEN + + ( 39 ) THEN NULL WHEN - 53 THEN - SUM ( + 19 ) END + 88 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + 97 + - COUNT( * ) col0
----
96

skipif mysql # not compatible
query I rowsort label-7448
SELECT + 97 + - COUNT ( * ) col0
----
96

query I rowsort
SELECT 27 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT - 62 + + 69 - + COUNT( * ) - + 84 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7450
SELECT - 62 + + 69 - + COUNT ( * ) - + 84 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL - ( + + CASE 99 WHEN 59 * - 51 - - + 61 + - 96 * + 46 * 39 * + 33 THEN + ( - 90 ) WHEN - 38 * - 84 THEN NULL END ) + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - ( + + CASE 99 WHEN 59 * - 51 - - + 61 + - 96 * + 46 * 39 * + 33 THEN + ( - 90 ) WHEN - 38 * - 84 THEN NULL END ) + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 73 + - 91
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7453
SELECT ALL ( - 92 ) AS col1, COUNT( * ) + - - ( - CAST( + - 47 AS SIGNED ) ) + + 2 * MIN( 20 ) * - + MAX( 9 )
----
-92
-312

skipif mysql # not compatible
query II rowsort label-7453
SELECT ALL ( - 92 ) AS col1, COUNT ( * ) + - - ( - CAST ( + - 47 AS INTEGER ) ) + + 2 * MIN ( 20 ) * - + MAX ( 9 )
----
-92
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT - ( - COUNT( * ) ) + - + 94 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT - ( - COUNT ( * ) ) + - + 94 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 75 )
----
75

query I rowsort
SELECT ALL - 64 * COALESCE ( + ( - ( + 69 ) ), - + 31 ) AS col0
----
4416

onlyif mysql # aggregate syntax: 
query II rowsort label-7457
SELECT - 26 * - 99, - COUNT( * ) + - CASE + COUNT( * ) WHEN + 2 * 25 - - 67 THEN NULL ELSE - COUNT( + ( - 57 ) ) + 27 END * COUNT( * ) AS col2
----
2574
-27

skipif mysql # not compatible
query II rowsort label-7457
SELECT - 26 * - 99, - COUNT ( * ) + - CASE + COUNT ( * ) WHEN + 2 * 25 - - 67 THEN NULL ELSE - COUNT ( + ( - 57 ) ) + 27 END * COUNT ( * ) AS col2
----
2574
-27

query I rowsort
SELECT - 90 AS col0
----
-90

query I rowsort
SELECT ALL ( ( + 22 ) ) AS col2
----
22

query I rowsort
SELECT ALL - 64 + + - 82
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - + ( - COALESCE ( + + 28, + MAX( - 84 ) * 44 * + 90 + - + 29 + + COUNT( * ) ) ) + - - 75
----
103

skipif mysql # not compatible
query I rowsort label-7461
SELECT - + ( - COALESCE ( + + 28, + MAX ( - 84 ) * 44 * + 90 + - + 29 + + COUNT ( * ) ) ) + - - 75
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7462
SELECT DISTINCT - COALESCE ( + 92, ( - 68 ) * 11 DIV + COUNT( * ) + - - 35 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT - COALESCE ( + 92, ( - 68 ) * 11 / + COUNT ( * ) + - - 35 ) AS col1
----
-92

query I rowsort
SELECT - + 78
----
-78

query I rowsort
SELECT - - 56 + - ( + - 27 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT ALL ( - 20 ) DIV - - 42 + + - 32 + 43 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL ( - 20 ) / - - 42 + + - 32 + 43 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT - CASE + - 62 WHEN - 63 * 20 THEN - + 34 WHEN - - CAST( NULL AS SIGNED ) + - 36 THEN 71 / - - 21 * - 97 END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT - CASE + - 62 WHEN - 63 * 20 THEN - + 34 WHEN - - CAST ( NULL AS INTEGER ) + - 36 THEN 71 / - - 21 * - 97 END * 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + + CASE - COUNT( * ) WHEN + 84 * 23 THEN NULL WHEN + - 78 THEN + 44 + 77 * + + 20 + - 42 ELSE - 45 + + 66 END * 22 + - 77
----
385

skipif mysql # not compatible
query I rowsort label-7467
SELECT + + CASE - COUNT ( * ) WHEN + 84 * 23 THEN NULL WHEN + - 78 THEN + 44 + 77 * + + 20 + - 42 ELSE - 45 + + 66 END * 22 + - 77
----
385

query I rowsort
SELECT ALL + - COALESCE ( + NULLIF ( + 5, 15 + + 82 ), - 50 ) AS col2
----
-5

query I rowsort
SELECT DISTINCT + - 62 AS col0
----
-62

query I rowsort
SELECT ALL - 93 * 19
----
-1767

query I rowsort
SELECT + - 70
----
-70

query I rowsort
SELECT - 17 * - - 56 + - 66 AS col2
----
-1018

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT SUM( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7473
SELECT SUM ( - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + 74 - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + 74 - - COUNT ( * )
----
75

query II rowsort
SELECT + 76 * - + 64 AS col0, 59
----
-4864
59

query I rowsort
SELECT DISTINCT - + 20 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7477
SELECT - CAST( + 47 AS SIGNED ) * - + MIN( DISTINCT + - 38 ) + - COUNT( * ) * + + 60 - ( 1 ) * + CAST( NULL AS SIGNED ) - - + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT - CAST ( + 47 AS INTEGER ) * - + MIN ( DISTINCT + - 38 ) + - COUNT ( * ) * + + 60 - ( 1 ) * + CAST ( NULL AS INTEGER ) - - + 4 AS col2
----
NULL

query I rowsort
SELECT ALL - - 29 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7479
SELECT + 69 + + - 32 + - - MAX( ALL + ( - - 17 ) ) + + - 46 DIV + - 55
----
54

skipif mysql # not compatible
query I rowsort label-7479
SELECT + 69 + + - 32 + - - MAX ( ALL + ( - - 17 ) ) + + - 46 / + - 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT COUNT( * ) * - 26 col2
----
-26

skipif mysql # not compatible
query I rowsort label-7480
SELECT COUNT ( * ) * - 26 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT COUNT( * ) * 14
----
14

skipif mysql # not compatible
query I rowsort label-7481
SELECT COUNT ( * ) * 14
----
14

query I rowsort
SELECT ALL - 90 col1
----
-90

query I rowsort
SELECT ALL - 73 col1
----
-73

query I rowsort
SELECT DISTINCT - 76 AS col1
----
-76

query I rowsort
SELECT DISTINCT + 49 * 63
----
3087

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT DISTINCT COALESCE ( + 77, + 50 ) DIV - 69 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT COALESCE ( + 77, + 50 ) / - 69 col2
----
-1

query I rowsort
SELECT ALL 92 + + 41 AS col2
----
133

query II rowsort
SELECT - 71 col1, + 25
----
-71
25

query I rowsort
SELECT DISTINCT 85 * + 95 * 42 AS col0
----
339150

query I rowsort
SELECT ALL 44 + 75
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT ALL CAST( NULL AS SIGNED ) + - 70 * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL CAST ( NULL AS INTEGER ) + - 70 * 82 AS col2
----
NULL

query I rowsort
SELECT ALL + 23 + 0 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7494
SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT( * ) - 88 + + 79 / - COUNT( * ) - MIN( CAST( NULL AS SIGNED ) ) AS col0
----
-576
NULL

skipif mysql # not compatible
query II rowsort label-7494
SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT ( * ) - 88 + + 79 / - COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
-576
NULL

query I rowsort
SELECT 77 - + + 95
----
-18

query I rowsort
SELECT - + 21
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-7497
SELECT - 45 + - 86 DIV - + 16, 39 AS col2
----
-40
39

skipif mysql # not compatible
query II rowsort label-7497
SELECT - 45 + - 86 / - + 16, 39 AS col2
----
-40
39

query II rowsort
SELECT - - 67, - 80 AS col1
----
67
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT ALL + COUNT( * ) col1, 43
----
1
43

skipif mysql # not compatible
query II rowsort label-7499
SELECT ALL + COUNT ( * ) col1, 43
----
1
43

query I rowsort
SELECT - ( + 73 ) + - 95
----
-168

query I rowsort
SELECT - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT 15 + + COUNT( * ) * + MIN( 45 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7502
SELECT 15 + + COUNT ( * ) * + MIN ( 45 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL - - 86 - MIN( ALL - + 34 ) * - 76
----
-2498

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL - - 86 - MIN ( ALL - + 34 ) * - 76
----
-2498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT ALL CAST( - ( - 33 ) AS SIGNED ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL CAST ( - ( - 33 ) AS INTEGER ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7505
SELECT + 94 - - 71 * + NULLIF ( - CAST( - 83 AS SIGNED ), COUNT( + - 84 ) + - - 88 - + 3 ) col0
----
5987

skipif mysql # not compatible
query I rowsort label-7505
SELECT + 94 - - 71 * + NULLIF ( - CAST ( - 83 AS INTEGER ), COUNT ( + - 84 ) + - - 88 - + 3 ) col0
----
5987

query I rowsort
SELECT DISTINCT - + 68 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7507
SELECT DISTINCT + + 56 * + 4 * + + 62 * - + CASE + + COUNT( * ) WHEN - 90 THEN 81 + - 2 / COALESCE ( - 81, CAST( NULL AS SIGNED ) + - + 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + + 56 * + 4 * + + 62 * - + CASE + + COUNT ( * ) WHEN - 90 THEN 81 + - 2 / COALESCE ( - 81, CAST ( NULL AS INTEGER ) + - + 98 ) END
----
NULL

query I rowsort
SELECT ALL - - 87 AS col1
----
87

query I rowsort
SELECT ALL - - 91
----
91

query I rowsort
SELECT + + COALESCE ( 86, - 81, + 93 + + 99 ) AS col2
----
86

query I rowsort
SELECT - 74 + - NULLIF ( + 75, - 46 * + 78 ) + 76 AS col2
----
-73

query I rowsort
SELECT ( + - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + + MIN( ( + - 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-7513
SELECT + + MIN ( ( + - 13 ) )
----
-13

query I rowsort
SELECT + 57 - - 44 + + + 63 * - 29 AS col1
----
-1726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7515
SELECT ALL 36 DIV + 77 DIV + COUNT( DISTINCT - + 58 ) + + ( MIN( DISTINCT - 52 ) ) - - CAST( - - 81 AS SIGNED ) * - 44 + + 86
----
-3530

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL 36 / + 77 / + COUNT ( DISTINCT - + 58 ) + + ( MIN ( DISTINCT - 52 ) ) - - CAST ( - - 81 AS INTEGER ) * - 44 + + 86
----
-3530

query I rowsort
SELECT ALL - + 41 AS col1
----
-41

query I rowsort
SELECT 28 * 53
----
1484

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL - MAX( 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL - MAX ( 17 )
----
-17

query I rowsort
SELECT ALL 87 * - 36 col2
----
-3132

query II rowsort
SELECT ALL - 73 AS col2, + 94 AS col1
----
-73
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT COUNT( * ) + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-7521
SELECT COUNT ( * ) + - 75
----
-74

query I rowsort
SELECT 18 * + - 43
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT COUNT( 19 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7523
SELECT COUNT ( 19 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT ALL + CAST( 37 AS SIGNED ) + + 64 - - 27 * - - CASE + 40 WHEN 34 THEN NULL ELSE 18 END AS col1
----
587

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + CAST ( 37 AS INTEGER ) + + 64 - - 27 * - - CASE + 40 WHEN 34 THEN NULL ELSE 18 END AS col1
----
587

query II rowsort
SELECT DISTINCT - 5 AS col1, + 48 * - 2
----
-5
-96

query I rowsort
SELECT ALL 44 + + CASE - 95 WHEN + + 35 * - 94 + - 54 * + 23 * + + 72 * + + 24 THEN - + 39 + + 0 + + 9 + + 71 + - 59 * - + 98 - 30 * + - 20 * + ( 84 ) ELSE NULL END * + ( + 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT COUNT( * ) + + MIN( 41 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7527
SELECT COUNT ( * ) + + MIN ( 41 ) AS col0
----
42

query I rowsort
SELECT ( + 9 ) * - 26 * + + 78
----
-18252

query I rowsort
SELECT ALL 38 + + + 45
----
83

query I rowsort
SELECT 60 + 59 AS col0
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT DISTINCT COUNT( * ) AS col0, 51 AS col2
----
1
51

skipif mysql # not compatible
query II rowsort label-7531
SELECT DISTINCT COUNT ( * ) AS col0, 51 AS col2
----
1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL COUNT( - + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL COUNT ( - + 42 )
----
1

query I rowsort
SELECT 79 + 66
----
145

query I rowsort
SELECT ALL 2 + 16 * - + 84
----
-1342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT CAST( - 6 AS SIGNED ) + - 87
----
-93

skipif mysql # not compatible
query I rowsort label-7535
SELECT CAST ( - 6 AS INTEGER ) + - 87
----
-93

query I rowsort
SELECT ALL 78 + - 62 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT CAST( + 79 AS SIGNED ) * - 67 AS col2
----
-5293

skipif mysql # not compatible
query I rowsort label-7537
SELECT CAST ( + 79 AS INTEGER ) * - 67 AS col2
----
-5293

onlyif mysql # DIV for integer division: 
query I rowsort label-7538
SELECT DISTINCT 96 DIV - 40
----
-2

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT 96 / - 40
----
-2

query I rowsort
SELECT - - ( 12 ) AS col0
----
12

query I rowsort
SELECT + 99 + - 98
----
1

query I rowsort
SELECT ALL + 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL - ( - 67 ) * - SUM( ALL 36 )
----
-2412

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL - ( - 67 ) * - SUM ( ALL 36 )
----
-2412

query II rowsort
SELECT DISTINCT + 56 AS col0, 18
----
56
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL - ( COUNT( * ) ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - ( COUNT ( * ) ) - + COUNT ( * )
----
-2

query II rowsort
SELECT ALL 43 AS col0, - 90 AS col1
----
43
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT 61 + - 48 DIV + 34 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7546
SELECT 61 + - 48 / + 34 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL 62 - + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL 62 - + - COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT + NULLIF ( + 93, - + 71 ) * ( - 22 ) * - + 98 + + 50 * + + COUNT( * ) + + - 32 + 17 * + + MIN( DISTINCT - + 20 ) * - + NULLIF ( - 82, + 93 ) + - - CAST( - ( + - 41 ) AS SIGNED ) * COUNT( * ) + - ( - 68 ) AS col2
----
172755

skipif mysql # not compatible
query I rowsort label-7548
SELECT + NULLIF ( + 93, - + 71 ) * ( - 22 ) * - + 98 + + 50 * + + COUNT ( * ) + + - 32 + 17 * + + MIN ( DISTINCT - + 20 ) * - + NULLIF ( - 82, + 93 ) + - - CAST ( - ( + - 41 ) AS INTEGER ) * COUNT ( * ) + - ( - 68 ) AS col2
----
172755

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - MAX( - - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7549
SELECT - MAX ( - - 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL + SUM( - ( + 9 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL + SUM ( - ( + 9 ) )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT DISTINCT 10, COUNT( * ) AS col2
----
10
1

skipif mysql # not compatible
query II rowsort label-7551
SELECT DISTINCT 10, COUNT ( * ) AS col2
----
10
1

query I rowsort
SELECT ALL + 27 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + COUNT( DISTINCT ( 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7553
SELECT + COUNT ( DISTINCT ( 34 ) )
----
1

query I rowsort
SELECT - + 46 * - 57
----
2622

query I rowsort
SELECT ALL + + ( 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7556
SELECT COUNT( * ), - 95 col2
----
1
-95

skipif mysql # not compatible
query II rowsort label-7556
SELECT COUNT ( * ), - 95 col2
----
1
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL + + 79 * + - COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + + 79 * + - COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT ALL + - 64 AS col1
----
-64

query I rowsort
SELECT + + 55
----
55

query I rowsort
SELECT DISTINCT 9 * + - 97 + - 45 * - 8 * 63 + - 81 AS col1
----
21726

query I rowsort
SELECT ALL + ( - 13 ) * - 83 * + - 51 AS col2
----
-55029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT CASE + 48 WHEN ( - 50 ) THEN - + SUM( ALL + CAST( NULL AS SIGNED ) ) ELSE - + 97 END * COUNT( * ) + + 7 + 92
----
2

skipif mysql # not compatible
query I rowsort label-7562
SELECT CASE + 48 WHEN ( - 50 ) THEN - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) ELSE - + 97 END * COUNT ( * ) + + 7 + 92
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT COALESCE ( + 38, + + 83 DIV - COUNT( * ) * 98 )
----
38

skipif mysql # not compatible
query I rowsort label-7563
SELECT COALESCE ( + 38, + + 83 / - COUNT ( * ) * 98 )
----
38

query I rowsort
SELECT 4 * - - 51 - + 61 AS col1
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT - 50 DIV + 52 * + 52
----
0

skipif mysql # not compatible
query I rowsort label-7565
SELECT - 50 / + 52 * + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT + 56 + + SUM( DISTINCT 20 ) + + - 36 * - 84 AS col1
----
3100

skipif mysql # not compatible
query I rowsort label-7566
SELECT + 56 + + SUM ( DISTINCT 20 ) + + - 36 * - 84 AS col1
----
3100

query I rowsort
SELECT DISTINCT 21 * + 0 * - - 43 + + 84 * + 91
----
7644

query I rowsort
SELECT DISTINCT + 86 AS col2
----
86

query I rowsort
SELECT DISTINCT + 31 AS col1
----
31

query I rowsort
SELECT DISTINCT 32 * + 60 * + - 8 AS col2
----
-15360

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL MAX( + 27 ) * + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL MAX ( + 27 ) * + COUNT ( * )
----
27

query I rowsort
SELECT - ( 18 ) * - 69 + 96 AS col1
----
1338

query I rowsort
SELECT ALL 64 * 62 + - 6 AS col1
----
3962

query I rowsort
SELECT - 84 - + 12 * - + 64 + - 27 AS col0
----
657

query I rowsort
SELECT DISTINCT ( - 66 )
----
-66

query I rowsort
SELECT ALL + 33 * - 33
----
-1089

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7577
SELECT + CAST( NULL AS DECIMAL ) * - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT + CAST ( NULL AS REAL ) * - + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL - - 90 * + ( - COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - - 90 * + ( - COUNT ( * ) )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT DISTINCT COALESCE ( MIN( CAST( + 40 AS SIGNED ) ), + CAST( NULL AS SIGNED ) * + 0 )
----
40

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT COALESCE ( MIN ( CAST ( + 40 AS INTEGER ) ), + CAST ( NULL AS INTEGER ) * + 0 )
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-7580
SELECT ALL 7 DIV - 21 AS col0, + 40
----
0
40

skipif mysql # not compatible
query II rowsort label-7580
SELECT ALL 7 / - 21 AS col0, + 40
----
0
40

query I rowsort
SELECT - - CASE 61 WHEN + 79 THEN + + ( + - 81 ) WHEN - CASE + 99 WHEN + + 11 THEN - 32 WHEN + 60 THEN NULL ELSE NULL END THEN 74 WHEN - 92 + + 49 THEN - - 45 + - 32 * - 33 END AS col1
----
NULL

query I rowsort
SELECT ALL + ( 18 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7583
SELECT - - 31 DIV MIN( 5 )
----
6

skipif mysql # not compatible
query I rowsort label-7583
SELECT - - 31 / MIN ( 5 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT + - 25 * + + CAST( + 68 AS SIGNED ) AS col0
----
-1700

skipif mysql # not compatible
query I rowsort label-7584
SELECT + - 25 * + + CAST ( + 68 AS INTEGER ) AS col0
----
-1700

query I rowsort
SELECT - + 22 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - + 56 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-7586
SELECT - + 56 + + COUNT ( * )
----
-55

query I rowsort
SELECT - + ( - + NULLIF ( 59, 53 ) )
----
59

query II rowsort
SELECT + + 92 * 4 AS col2, 6 + + - 8
----
368
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT ALL - 86 * 84 DIV + + COUNT( * )
----
-7224

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL - 86 * 84 / + + COUNT ( * )
----
-7224

query II rowsort
SELECT + - 81 + - 15, - 26 AS col1
----
-96
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT NULLIF ( - - COUNT( * ), ( - 50 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7591
SELECT NULLIF ( - - COUNT ( * ), ( - 50 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT + SUM( - 71 ) * + + 37 AS col0
----
-2627

skipif mysql # not compatible
query I rowsort label-7592
SELECT + SUM ( - 71 ) * + + 37 AS col0
----
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + COUNT( + 47 ) * - 75 * + 78 AS col0
----
-5850

skipif mysql # not compatible
query I rowsort label-7593
SELECT + COUNT ( + 47 ) * - 75 * + 78 AS col0
----
-5850

query I rowsort
SELECT ALL 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT + CASE - + MAX( DISTINCT - 58 ) WHEN 74 THEN NULL ELSE CASE 4 WHEN - + ( - - 87 ) THEN - 33 WHEN - 44 - - ( 90 ) / ( 83 ) * 44 THEN NULL ELSE NULL END * - 69 + + - 91 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + CASE - + MAX ( DISTINCT - 58 ) WHEN 74 THEN NULL ELSE CASE 4 WHEN - + ( - - 87 ) THEN - 33 WHEN - 44 - - ( 90 ) / ( 83 ) * 44 THEN NULL ELSE NULL END * - 69 + + - 91 * + COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL + 4 + + - 17 col2, 76 AS col2
----
-13
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT DISTINCT - + 30 DIV 27 + + - ( - + 88 )
----
87

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT - + 30 / 27 + + - ( - + 88 )
----
87

query I rowsort
SELECT + - 23 * + 76 * + 72 AS col1
----
-125856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7599
SELECT DISTINCT - - 31 DIV 7 - - + COUNT( * ) + - CAST( 59 AS SIGNED ) * 23 * - - COUNT( CASE + + 11 WHEN - 70 THEN 20 END )
----
5

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - - 31 / 7 - - + COUNT ( * ) + - CAST ( 59 AS INTEGER ) * 23 * - - COUNT ( CASE + + 11 WHEN - 70 THEN 20 END )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7600
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT CAST( 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7601
SELECT CAST ( 1 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 99 col2
----
99

query II rowsort
SELECT ALL + 99 AS col1, 81
----
99
81

query I rowsort
SELECT + 75 * - 6 AS col1
----
-450

query I rowsort
SELECT ( 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7606
SELECT DISTINCT ( + 92 ) DIV 55 * COUNT( * ) + - 32 + + 17
----
-14

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT ( + 92 ) / 55 * COUNT ( * ) + - 32 + + 17
----
-14

query I rowsort
SELECT ALL - 36 * + 32
----
-1152

query I rowsort
SELECT + 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL + NULLIF ( COUNT( DISTINCT - ( + 56 ) ), + + 57 - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + NULLIF ( COUNT ( DISTINCT - ( + 56 ) ), + + 57 - 23 )
----
1

query I rowsort
SELECT DISTINCT 86 * + ( + 63 ) - + - 83
----
5501

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL - COUNT( * ) * + - NULLIF ( + - 38, + + 99 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - COUNT ( * ) * + - NULLIF ( + - 38, + + 99 ) AS col0
----
-38

query I rowsort
SELECT ( + 22 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7613
SELECT ALL 92 * + - COUNT( * ) * - CASE + + 2 WHEN + MAX( ALL + 92 ) * - CAST( + 49 AS SIGNED ) THEN NULL WHEN - + 8 + - 83 + 12 * NULLIF ( - 76, + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) ) * - AVG ( ALL + + 65 ) * + - 19 * + COUNT( * ) * 31 * 54 + - 19 THEN 67 ELSE NULL END - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL 92 * + - COUNT ( * ) * - CASE + + 2 WHEN + MAX ( ALL + 92 ) * - CAST ( + 49 AS INTEGER ) THEN NULL WHEN - + 8 + - 83 + 12 * NULLIF ( - 76, + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) ) * - AVG ( ALL + + 65 ) * + - 19 * + COUNT ( * ) * 31 * 54 + - 19 THEN 67 ELSE NULL END - 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT + CAST( + + ( - + ( + AVG ( 50 ) ) ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-7614
SELECT + CAST ( + + ( - + ( + AVG ( 50 ) ) ) AS INTEGER )
----
-50

query I rowsort
SELECT ( - 8 ) AS col2
----
-8

query I rowsort
SELECT + 43 * + + 63
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - COUNT( * ) * + 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7617
SELECT - COUNT ( * ) * + 31 AS col2
----
-31

query I rowsort
SELECT ALL + 33 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT COALESCE ( + NULLIF ( 29, + 25 ), 89 + - NULLIF ( + 87, COALESCE ( + 67, - + 5, - - 84, - 42, + + 4 ) ) * + ( + - CAST( + 63 AS SIGNED ) ), + 8 + + 21 )
----
29

skipif mysql # not compatible
query I rowsort label-7619
SELECT COALESCE ( + NULLIF ( 29, + 25 ), 89 + - NULLIF ( + 87, COALESCE ( + 67, - + 5, - - 84, - 42, + + 4 ) ) * + ( + - CAST ( + 63 AS INTEGER ) ), + 8 + + 21 )
----
29

query I rowsort
SELECT - ( - 90 ) + - 81 * + 43 col1
----
-3393

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT ALL - 74 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - 74 / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - COUNT( * ) + + 26
----
25

skipif mysql # not compatible
query I rowsort label-7622
SELECT - COUNT ( * ) + + 26
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL NULLIF ( - - CASE + ( + - CASE + 18 WHEN - 77 * - 99 + + 32 THEN 11 * + - 0 WHEN - + 76 + ( 22 ) THEN NULL WHEN + 6 * 95 THEN + 76 - + MIN( + 78 ) + 72 / - 30 END ) WHEN + 71 THEN NULL WHEN 53 + - 56 THEN 28 END, - - ( + 83 ) + + MIN( DISTINCT - 64 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL NULLIF ( - - CASE + ( + - CASE + 18 WHEN - 77 * - 99 + + 32 THEN 11 * + - 0 WHEN - + 76 + ( 22 ) THEN NULL WHEN + 6 * 95 THEN + 76 - + MIN ( + 78 ) + 72 / - 30 END ) WHEN + 71 THEN NULL WHEN 53 + - 56 THEN 28 END, - - ( + 83 ) + + MIN ( DISTINCT - 64 ) ) AS col0
----
NULL

query I rowsort
SELECT - - 20 + 3
----
23

query II rowsort
SELECT - + 67, 26 * - + 71 * 97 AS col2
----
-67
-179062

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT ALL 83 AS col2, - COUNT( * ) - + + 76 AS col2
----
83
-77

skipif mysql # not compatible
query II rowsort label-7626
SELECT ALL 83 AS col2, - COUNT ( * ) - + + 76 AS col2
----
83
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7627
SELECT - + COALESCE ( + - 88, + COUNT( * ) * - - SUM( DISTINCT + 0 ) DIV - + CAST( NULL AS SIGNED ) + COUNT( + + 49 ) * MAX( ALL + 70 ) + COUNT( * ), - 66 ) + + - COALESCE ( - 56, - + 76, + CASE - + 35 WHEN - + 2 THEN NULL WHEN - 55 THEN NULL WHEN ( + 57 ) * - 85 + COUNT( * ) THEN COUNT( ALL 68 ) * - 99 + - NULLIF ( 96, ( 98 ) ) ELSE NULL END + 99 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-7627
SELECT - + COALESCE ( + - 88, + COUNT ( * ) * - - SUM ( DISTINCT + 0 ) / - + CAST ( NULL AS INTEGER ) + COUNT ( + + 49 ) * MAX ( ALL + 70 ) + COUNT ( * ), - 66 ) + + - COALESCE ( - 56, - + 76, + CASE - + 35 WHEN - + 2 THEN NULL WHEN - 55 THEN NULL WHEN ( + 57 ) * - 85 + COUNT ( * ) THEN COUNT ( ALL 68 ) * - 99 + - NULLIF ( 96, ( 98 ) ) ELSE NULL END + 99 ) AS col0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT ALL + + 75 DIV + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL + + 75 / + 53 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT - SUM( ALL 51 ) * + 68
----
-3468

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT - SUM ( ALL 51 ) * + 68
----
-3468

query I rowsort
SELECT ALL + + 99 + + - 17 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7631
SELECT DISTINCT - + COUNT( * ) * + 84 * - 65 + CASE - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + 47 / - 18 THEN NULL ELSE + 2 END
----
5462

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT - + COUNT ( * ) * + 84 * - 65 + CASE - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + 47 / - 18 THEN NULL ELSE + 2 END
----
5462

query I rowsort
SELECT 70 * 79 AS col2
----
5530

query II rowsort
SELECT 58 AS col0, 48 - 90 AS col0
----
58
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT - - 70 + - - COUNT( * ) * + - 56
----
14

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - - 70 + - - COUNT ( * ) * + - 56
----
14

query I rowsort
SELECT ALL + + 7 + - 10
----
-3

query I rowsort
SELECT DISTINCT - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT DISTINCT - 33 + COALESCE ( 88, - 40 * + - COUNT( * ) ) * - + 32 + + - 36 + - COUNT( * ), 88 AS col0
----
-2886
88

skipif mysql # not compatible
query II rowsort label-7637
SELECT DISTINCT - 33 + COALESCE ( 88, - 40 * + - COUNT ( * ) ) * - + 32 + + - 36 + - COUNT ( * ), 88 AS col0
----
-2886
88

query I rowsort
SELECT ALL - 75 + 22 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - - SUM( ALL 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7639
SELECT - - SUM ( ALL 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7640
SELECT - 86 DIV + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7640
SELECT - 86 / + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT NULLIF ( + + COUNT( * ), - - ( + ( - 77 ) ) * + ( + + 84 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7641
SELECT NULLIF ( + + COUNT ( * ), - - ( + ( - 77 ) ) * + ( + + 84 ) ) AS col0
----
1

query I rowsort
SELECT - - 70 col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7643
SELECT ALL CASE 16 WHEN - 6 + ( CAST( NULL AS DECIMAL ) ) + 7 / 8 - - COUNT( * ) THEN NULL WHEN - 92 * + + 31 + + COUNT( * ) + + 19 - - - 52 * - 32 * 7 THEN + 43 END / + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL CASE 16 WHEN - 6 + ( CAST ( NULL AS REAL ) ) + 7 / 8 - - COUNT ( * ) THEN NULL WHEN - 92 * + + 31 + + COUNT ( * ) + + 19 - - - 52 * - 32 * 7 THEN + 43 END / + - 20 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 87 + 87 - - 37 + + + 93 * + 67 AS col2
----
6442

query I rowsort
SELECT ALL 21 * 59
----
1239

query I rowsort
SELECT DISTINCT 80 * - + 17 AS col0
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-7647
SELECT 69 + 65 - 35 * - 20, - COUNT( ALL 31 ) * 29 AS col0
----
834
-29

skipif mysql # not compatible
query II rowsort label-7647
SELECT 69 + 65 - 35 * - 20, - COUNT ( ALL 31 ) * 29 AS col0
----
834
-29

query I rowsort
SELECT DISTINCT 27 - 58 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL 86 * - MIN( 85 ) AS col1
----
-7310

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL 86 * - MIN ( 85 ) AS col1
----
-7310

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + COUNT( * ) * - 17 + COUNT( * ) + - - 44 + + CASE + 61 WHEN - 36 * - 67 / 73 + CASE 23 WHEN - + COUNT( * ) THEN NULL WHEN - - 0 THEN 23 * + NULLIF ( 1, - - 44 ) + + 27 END + - COUNT( 42 ) + + 92 + - + COALESCE ( + + 96, 48 * 73 / + 0 * 21 * + 21 ) THEN NULL WHEN 62 THEN + 14 END * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT + COUNT ( * ) * - 17 + COUNT ( * ) + - - 44 + + CASE + 61 WHEN - 36 * - 67 / 73 + CASE 23 WHEN - + COUNT ( * ) THEN NULL WHEN - - 0 THEN 23 * + NULLIF ( 1, - - 44 ) + + 27 END + - COUNT ( 42 ) + + 92 + - + COALESCE ( + + 96, 48 * 73 / + 0 * 21 * + 21 ) THEN NULL WHEN 62 THEN + 14 END * 49
----
NULL

query I rowsort
SELECT 82 * + 51
----
4182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT 4 + - 78 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT 4 + - 78 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT 7 * 13 * + + COUNT( * ) * - 85
----
-7735

skipif mysql # not compatible
query I rowsort label-7653
SELECT 7 * 13 * + + COUNT ( * ) * - 85
----
-7735

query I rowsort
SELECT + 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - CASE + COALESCE ( + 60, - ( - 34 ) + COALESCE ( 96, - 96 ) + 78 + + 94 + + COUNT( - + 77 ), 43, 39 + - ( - 7 ) + + 11 * COALESCE ( + 91, - 76 * - 2 + - + NULLIF ( 72, - COUNT( * ) * + 40 ) ) / - + 1 / + 62 ) WHEN - COUNT( * ) + - 0 THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - CASE + COALESCE ( + 60, - ( - 34 ) + COALESCE ( 96, - 96 ) + 78 + + 94 + + COUNT ( - + 77 ), 43, 39 + - ( - 7 ) + + 11 * COALESCE ( + 91, - 76 * - 2 + - + NULLIF ( 72, - COUNT ( * ) * + 40 ) ) / - + 1 / + 62 ) WHEN - COUNT ( * ) + - 0 THEN 11 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT ALL - 70 * - CAST( 79 AS SIGNED ) col1
----
5530

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - 70 * - CAST ( 79 AS INTEGER ) col1
----
5530

query I rowsort
SELECT ALL 1 * - + 31
----
-31

query I rowsort
SELECT ALL - ( - - 48 ) AS col2
----
-48

query I rowsort
SELECT + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT COUNT( * ) * - 34 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT COUNT ( * ) * - 34 / + 60 AS col0
----
0

query I rowsort
SELECT ALL + - 47 + - CASE 77 WHEN 96 THEN + + 48 ELSE NULL END * - 65
----
NULL

query I rowsort
SELECT 46 - + 21 col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT - + SUM( + NULLIF ( + - 66, - 63 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7663
SELECT - + SUM ( + NULLIF ( + - 66, - 63 ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - 45 + - - 51 * MAX( DISTINCT + - 79 )
----
-4074

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - 45 + - - 51 * MAX ( DISTINCT + - 79 )
----
-4074

query I rowsort
SELECT DISTINCT + ( 87 ) + 88
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL + - COUNT( * ) + - NULLIF ( 35, + - 59 ) + 15 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + - COUNT ( * ) + - NULLIF ( 35, + - 59 ) + 15 AS col2
----
-21

query I rowsort
SELECT DISTINCT + 41 col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7668
SELECT 84 * 68 - - - 2 + 12, 21 * 1 * + CAST( 70 AS SIGNED ) + - COALESCE ( + - ( CAST( NULL AS SIGNED ) ), - + 1 + - - CASE 96 WHEN - - COUNT( * ) THEN NULL ELSE + 43 END ) AS col0
----
5722
1428

skipif mysql # not compatible
query II rowsort label-7668
SELECT 84 * 68 - - - 2 + 12, 21 * 1 * + CAST ( 70 AS INTEGER ) + - COALESCE ( + - ( CAST ( NULL AS INTEGER ) ), - + 1 + - - CASE 96 WHEN - - COUNT ( * ) THEN NULL ELSE + 43 END ) AS col0
----
5722
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL - 84 + - ( COUNT( * ) ) + + - 67 * 57 - + 61 AS col2
----
-3965

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL - 84 + - ( COUNT ( * ) ) + + - 67 * 57 - + 61 AS col2
----
-3965

query I rowsort
SELECT + 61 - 74 * 43
----
-3121

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL + 93 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + 93 / + 59
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT CASE + 14 WHEN - NULLIF ( 23, - COUNT( * ) * + + 12 ) THEN + 79 WHEN - ( - 43 ) THEN NULL ELSE - 70 + + - 98 + 3 END + - + 48 AS col2
----
-213

skipif mysql # not compatible
query I rowsort label-7672
SELECT CASE + 14 WHEN - NULLIF ( 23, - COUNT ( * ) * + + 12 ) THEN + 79 WHEN - ( - 43 ) THEN NULL ELSE - 70 + + - 98 + 3 END + - + 48 AS col2
----
-213

query I rowsort
SELECT 7 * - 82 AS col2
----
-574

query I rowsort
SELECT - - 95
----
95

query I rowsort
SELECT DISTINCT + 82 AS col2
----
82

query I rowsort
SELECT - 27 + 49 AS col0
----
22

query I rowsort
SELECT - - 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT + 11 - 78 + - 23 * + COUNT( * ) + NULLIF ( + 67, 25 ) * - 10 * + 6 + + 74
----
-4036

skipif mysql # not compatible
query I rowsort label-7678
SELECT + 11 - 78 + - 23 * + COUNT ( * ) + NULLIF ( + 67, 25 ) * - 10 * + 6 + + 74
----
-4036

onlyif mysql # DIV for integer division: 
query II rowsort label-7679
SELECT ALL - ( - 70 ) * - - ( + 82 ) AS col0, 80 DIV - 45 + - 68 + + 89
----
5740
20

skipif mysql # not compatible
query II rowsort label-7679
SELECT ALL - ( - 70 ) * - - ( + 82 ) AS col0, 80 / - 45 + - 68 + + 89
----
5740
20

query I rowsort
SELECT 72 + + - 4 + 46 + + 43 * 90 AS col2
----
3984

query I rowsort
SELECT 53 * + + 72 * 53 AS col0
----
202248

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - ( + - MIN( DISTINCT + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - ( + - MIN ( DISTINCT + 91 ) )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT + COUNT( * ) AS col1, + 83 * - + ( - 11 )
----
1
913

skipif mysql # not compatible
query II rowsort label-7683
SELECT + COUNT ( * ) AS col1, + 83 * - + ( - 11 )
----
1
913

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT DISTINCT 14 DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT 14 / - 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7685
SELECT DISTINCT 96 * + NULLIF ( + 49, + ( CASE - CAST( NULL AS SIGNED ) WHEN + + 44 THEN - 84 WHEN - - 21 * + 6 THEN 83 ELSE NULL END ) ) - + - COUNT( * )
----
4705

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT 96 * + NULLIF ( + 49, + ( CASE - CAST ( NULL AS INTEGER ) WHEN + + 44 THEN - 84 WHEN - - 21 * + 6 THEN 83 ELSE NULL END ) ) - + - COUNT ( * )
----
4705

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL COUNT( * ) * + 59 col2
----
59

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL COUNT ( * ) * + 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT MAX( + - 36 ) * 60 AS col2
----
-2160

skipif mysql # not compatible
query I rowsort label-7687
SELECT MAX ( + - 36 ) * 60 AS col2
----
-2160

query I rowsort
SELECT ALL + 1 / + - 30 * - CASE 64 WHEN 79 THEN ( + 69 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7689
SELECT DISTINCT CASE - 61 WHEN - + 18 * + 31 THEN NULL ELSE - COUNT( * ) - - 38 * 11 END * COALESCE ( - + COUNT( * ), + 8, SUM( + 31 ) ) DIV + 40 AS col0, + 7 + + - CAST( NULL AS SIGNED ) * + 87 AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-7689
SELECT DISTINCT CASE - 61 WHEN - + 18 * + 31 THEN NULL ELSE - COUNT ( * ) - - 38 * 11 END * COALESCE ( - + COUNT ( * ), + 8, SUM ( + 31 ) ) / + 40 AS col0, + 7 + + - CAST ( NULL AS INTEGER ) * + 87 AS col1
----
-10
NULL

query I rowsort
SELECT ALL 26 * + 65 AS col0
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT MAX( 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-7691
SELECT MAX ( 78 ) col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT ALL 72 * 5 DIV + ( + + 29 )
----
12

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL 72 * 5 / + ( + + 29 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - SUM( - 54 ) * - COUNT( * ) * COUNT( DISTINCT + 46 ) + - 93 + - - 65 * + 4 * + COUNT( * ) * 39 AS col1
----
9993

skipif mysql # not compatible
query I rowsort label-7693
SELECT - SUM ( - 54 ) * - COUNT ( * ) * COUNT ( DISTINCT + 46 ) + - 93 + - - 65 * + 4 * + COUNT ( * ) * 39 AS col1
----
9993

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT MIN( 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7694
SELECT MIN ( 61 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7695
SELECT + CAST( 69 AS SIGNED ) DIV + + 7 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7695
SELECT + CAST ( 69 AS INTEGER ) / + + 7 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL - 49 + - COALESCE ( 48, + 35, - COALESCE ( - + 69, SUM( ALL - 85 ) ) ) - ( - 26 ) + 47 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - 49 + - COALESCE ( 48, + 35, - COALESCE ( - + 69, SUM ( ALL - 85 ) ) ) - ( - 26 ) + 47 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + + ( - - ( 96 ) ) + MIN( 10 ) * - 19 * + 3 * + ( + 27 )
----
-15294

skipif mysql # not compatible
query I rowsort label-7697
SELECT + + ( - - ( 96 ) ) + MIN ( 10 ) * - 19 * + 3 * + ( + 27 )
----
-15294

query I rowsort
SELECT ALL + + 35 col1
----
35

query I rowsort
SELECT DISTINCT 74 + - 99 + - 37 * 85 + + - 57 AS col1
----
-3227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT DISTINCT 57 + 9 * + 71 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT 57 + 9 * + 71 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 8 + - 45 col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT + 32 + - 79 + + 47 DIV - ( + - 76 ) + - 70 - - - 83 + + 78 * - 22
----
-1916

skipif mysql # not compatible
query I rowsort label-7702
SELECT + 32 + - 79 + + 47 / - ( + - 76 ) + - 70 - - - 83 + + 78 * - 22
----
-1916

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT - 5 + - - 76 + 20 * + ( + MIN( ALL 35 ) ) * COALESCE ( + COUNT( * ), + COUNT( * ) * + ( 76 ) / - - 10, ( NULLIF ( - 13, + + COUNT( * ) ) ) ) + - CASE - 56 WHEN - + 7 - NULLIF ( NULLIF ( + - 73, + + 0 - 67 ), 61 / + - 89 ) * 31 + - MIN( DISTINCT 7 ) THEN + 89 WHEN 43 + 67 THEN 70 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - 5 + - - 76 + 20 * + ( + MIN ( ALL 35 ) ) * COALESCE ( + COUNT ( * ), + COUNT ( * ) * + ( 76 ) / - - 10, ( NULLIF ( - 13, + + COUNT ( * ) ) ) ) + - CASE - 56 WHEN - + 7 - NULLIF ( NULLIF ( + - 73, + + 0 - 67 ), 61 / + - 89 ) * 31 + - MIN ( DISTINCT 7 ) THEN + 89 WHEN 43 + 67 THEN 70 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - ( + 95 ) * + ( - 41 ) AS col1
----
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + NULLIF ( + 78, + - 91 / COUNT( DISTINCT + 30 ) + - 85 - 77 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7705
SELECT + NULLIF ( + 78, + - 91 / COUNT ( DISTINCT + 30 ) + - 85 - 77 ) AS col0
----
78

query I rowsort
SELECT ALL + 72 + 27 AS col2
----
99

query I rowsort
SELECT + 97 col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT + - 92 DIV + 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7708
SELECT + - 92 / + 21 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7709
SELECT ALL 59, SUM( DISTINCT - 79 ) AS col2
----
59
-79

skipif mysql # not compatible
query II rowsort label-7709
SELECT ALL 59, SUM ( DISTINCT - 79 ) AS col2
----
59
-79

query I rowsort
SELECT - + 86
----
-86

query I rowsort
SELECT DISTINCT 4 * - - 37
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT ALL + 12 - - - COUNT( * ) * + 65 + + 21
----
-32

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL + 12 - - - COUNT ( * ) * + 65 + + 21
----
-32

query I rowsort
SELECT DISTINCT + 4 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT ALL + 77 - CAST( - + 95 AS SIGNED )
----
172

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + 77 - CAST ( - + 95 AS INTEGER )
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT - ( - 2 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT - ( - 2 ) / 33
----
0

query I rowsort
SELECT ALL NULLIF ( + 37, - 0 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - SUM( + 98 ) * + 36
----
-3528

skipif mysql # not compatible
query I rowsort label-7717
SELECT - SUM ( + 98 ) * + 36
----
-3528

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT DISTINCT - 87 DIV 73 * 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT - 87 / 73 * 89 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT 26, + ( - COUNT( * ) ) + 51 + + - 9 + 6 * + + 69 + + 30 AS col1
----
26
485

skipif mysql # not compatible
query II rowsort label-7719
SELECT 26, + ( - COUNT ( * ) ) + 51 + + - 9 + 6 * + + 69 + + 30 AS col1
----
26
485

onlyif mysql # DIV for integer division: 
query II rowsort label-7720
SELECT + 68 DIV + 95, - 86 + + + 68 AS col2
----
0
-18

skipif mysql # not compatible
query II rowsort label-7720
SELECT + 68 / + 95, - 86 + + + 68 AS col2
----
0
-18

query I rowsort
SELECT ALL - 69 * - 9 AS col2
----
621

query II rowsort
SELECT ALL CASE + 5 WHEN ( + 89 ) * 74 THEN + 50 END, 39 + + 97 col2
----
NULL
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - COUNT( * ) - 23 + - 44 * + 49 * - 67 AS col0
----
144428

skipif mysql # not compatible
query I rowsort label-7723
SELECT - COUNT ( * ) - 23 + - 44 * + 49 * - 67 AS col0
----
144428

query I rowsort
SELECT ( + 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT + SUM( - - 85 ) * + 42 * + 45
----
160650

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT + SUM ( - - 85 ) * + 42 * + 45
----
160650

query I rowsort
SELECT ( - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + 15 * + NULLIF ( MAX( + - 95 ), - - 2 + 97 + 12 )
----
-1425

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + 15 * + NULLIF ( MAX ( + - 95 ), - - 2 + 97 + 12 )
----
-1425

query I rowsort
SELECT - ( - - 43 ) * 64 col1
----
-2752

query I rowsort
SELECT ALL + 62 AS col0
----
62

query I rowsort
SELECT + 27 col0
----
27

query I rowsort
SELECT 70 * + - 89 + + 77
----
-6153

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT - 22 DIV - 39 - 53 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7732
SELECT - 22 / - 39 - 53 AS col1
----
-53

query I rowsort
SELECT - ( - 92 ) * ( - + 76 )
----
-6992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT - 60 * 25 * 66 + - + CAST( NULL AS SIGNED ) - CASE + 1 WHEN - - 95 / + 54 THEN COUNT( DISTINCT - 10 ) * - 26 + 96 - SUM( ALL - 76 ) + - + 46 + + 62 - 70 END / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 60 * 25 * 66 + - + CAST ( NULL AS INTEGER ) - CASE + 1 WHEN - - 95 / + 54 THEN COUNT ( DISTINCT - 10 ) * - 26 + 96 - SUM ( ALL - 76 ) + - + 46 + + 62 - 70 END / 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL ( + - CAST( + + MAX( DISTINCT - 6 ) AS SIGNED ) ) * + 96 + - COUNT( * ) + - ( + 6 ) AS col0
----
569

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL ( + - CAST ( + + MAX ( DISTINCT - 6 ) AS INTEGER ) ) * + 96 + - COUNT ( * ) + - ( + 6 ) AS col0
----
569

query I rowsort
SELECT ( + - 93 )
----
-93

query I rowsort
SELECT ( + 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + 73 * + 64 * - 3 * + + COUNT( * ) + - 72 AS col1
----
-14088

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + 73 * + 64 * - 3 * + + COUNT ( * ) + - 72 AS col1
----
-14088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT + COUNT( * ) + - 15 * 15 * ( - - CASE + - CAST( + ( + ( - 56 ) ) AS SIGNED ) WHEN - 14 THEN NULL WHEN - + 42 THEN - 34 + + ( + 21 ) END ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT + COUNT ( * ) + - 15 * 15 * ( - - CASE + - CAST ( + ( + ( - 56 ) ) AS INTEGER ) WHEN - 14 THEN NULL WHEN - + 42 THEN - 34 + + ( + 21 ) END ) * 48
----
NULL

query I rowsort
SELECT DISTINCT 19 * + 79 * - 45 AS col1
----
-67545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7741
SELECT DISTINCT + + 19 * + 40 DIV 39 + + - COUNT( 32 ) + 91 col0
----
109

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + + 19 * + 40 / 39 + + - COUNT ( 32 ) + 91 col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT - + 63 * + - 12 * + + 57 AS col0
----
43092

query II rowsort
SELECT ALL + - 90 AS col2, 17 AS col1
----
-90
17

query I rowsort
SELECT - ( + + 5 ) * + + 60 - 79
----
-379

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7746
SELECT 52, 92 + + 63 * - 31 + + 23 + + 47 * + - 25 * - CAST( NULL AS DECIMAL ) col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-7746
SELECT 52, 92 + + 63 * - 31 + + 23 + + 47 * + - 25 * - CAST ( NULL AS REAL ) col2
----
52
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT - COALESCE ( - + COUNT( * ), - 47, 89 DIV + - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT - COALESCE ( - + COUNT ( * ), - 47, 89 / + - 80 )
----
1

query I rowsort
SELECT + + 21 - + 76 AS col1
----
-55

query I rowsort
SELECT - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT - 43 AS col0, - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT( * ) ) AS col0
----
-43
64

skipif mysql # not compatible
query II rowsort label-7750
SELECT - 43 AS col0, - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT ( * ) ) AS col0
----
-43
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7751
SELECT ALL 54, - 5 * 68 + + COUNT( * ) + 96 + + CAST( NULL AS SIGNED ) / COUNT( * ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL 54, - 5 * 68 + + COUNT ( * ) + 96 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0
----
54
NULL

query I rowsort
SELECT DISTINCT + ( + - 28 )
----
-28

query II rowsort
SELECT + 93, + 95 AS col1
----
93
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7754
SELECT + 45 - - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT + 45 - - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7755
SELECT + ( + - 53 ) - + CAST( NULL AS DECIMAL ) AS col2, - 74
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-7755
SELECT + ( + - 53 ) - + CAST ( NULL AS REAL ) AS col2, - 74
----
NULL
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + SUM( DISTINCT + + 72 ) * + 14
----
1008

skipif mysql # not compatible
query I rowsort label-7756
SELECT + SUM ( DISTINCT + + 72 ) * + 14
----
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7757
SELECT + 51 + 49 AS col0, + COUNT( * ) DIV - 38 - - CASE - - 69 WHEN - - 54 THEN NULL ELSE 92 END
----
100
92

skipif mysql # not compatible
query II rowsort label-7757
SELECT + 51 + 49 AS col0, + COUNT ( * ) / - 38 - - CASE - - 69 WHEN - - 54 THEN NULL ELSE 92 END
----
100
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT - ( + MIN( - - 68 ) ), - 68
----
-68
-68

skipif mysql # not compatible
query II rowsort label-7758
SELECT - ( + MIN ( - - 68 ) ), - 68
----
-68
-68

query I rowsort
SELECT - 51 col2
----
-51

query I rowsort
SELECT + 45 + - 88 * + 28 * - - ( + - 96 ) + 50
----
236639

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT - 50 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 50 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL 56 * - COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL 56 * - COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT + 62 * 66 AS col0
----
4092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7764
SELECT + COALESCE ( - 41, - + COUNT( * ), + CASE - 20 WHEN 67 - CAST( - 88 AS SIGNED ) * + - 74 THEN NULL WHEN - MIN( - - CAST( NULL AS SIGNED ) ) THEN + 90 ELSE NULL END ) + - CASE - 41 WHEN - 13 * + 68 + CASE 96 WHEN + + 13 THEN NULL ELSE - 84 * + CAST( + 70 AS SIGNED ) / + 6 - + 38 END THEN - 38 ELSE - + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) END * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT + COALESCE ( - 41, - + COUNT ( * ), + CASE - 20 WHEN 67 - CAST ( - 88 AS INTEGER ) * + - 74 THEN NULL WHEN - MIN ( - - CAST ( NULL AS INTEGER ) ) THEN + 90 ELSE NULL END ) + - CASE - 41 WHEN - 13 * + 68 + CASE 96 WHEN + + 13 THEN NULL ELSE - 84 * + CAST ( + 70 AS INTEGER ) / + 6 - + 38 END THEN - 38 ELSE - + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) END * 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT NULLIF ( + - 1, - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT NULLIF ( + - 1, - - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + 97 + + 8 + 92
----
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT + 15 / + CAST( NULL AS SIGNED ) * - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT + 15 / + CAST ( NULL AS INTEGER ) * - 71 AS col1
----
NULL

query I rowsort
SELECT 3 col1
----
3

query I rowsort
SELECT DISTINCT 55 + + ( + 81 ) AS col2
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT 84 * - + NULLIF ( - 23, + AVG ( + 1 ) + 85 + - + COALESCE ( + + ( - 94 ), + ( + 24 ) ) * + 15 + + 91 + + 27 + 88 + + 67 ) + 30 - - 11 DIV + - 86
----
1962

skipif mysql # not compatible
query I rowsort label-7770
SELECT 84 * - + NULLIF ( - 23, + AVG ( + 1 ) + 85 + - + COALESCE ( + + ( - 94 ), + ( + 24 ) ) * + 15 + + 91 + + 27 + 88 + + 67 ) + 30 - - 11 / + - 86
----
1962

query I rowsort
SELECT + 27 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT 13 DIV + - MIN( - 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT 13 / + - MIN ( - 86 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7773
SELECT ALL - NULLIF ( + 94, 20 * - 4 / + + 18 + + CAST( + 18 AS SIGNED ) ) + 20
----
-74

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - NULLIF ( + 94, 20 * - 4 / + + 18 + + CAST ( + 18 AS INTEGER ) ) + 20
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT + 18 DIV - COUNT( ALL - 67 ) + - 33
----
-51

skipif mysql # not compatible
query I rowsort label-7774
SELECT + 18 / - COUNT ( ALL - 67 ) + - 33
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT 3 + + MIN( DISTINCT + + 42 ) * - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7775
SELECT 3 + + MIN ( DISTINCT + + 42 ) * - COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT ALL + 57 * - + 42
----
-2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT DISTINCT - 99 + + 93 + 67 + + 29 + - 8 DIV + MIN( DISTINCT + 46 ) * + - NULLIF ( - 55, 97 - 91 ) DIV + 54 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - 99 + + 93 + 67 + + 29 + - 8 / + MIN ( DISTINCT + 46 ) * + - NULLIF ( - 55, 97 - 91 ) / + 54 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7778
SELECT ALL + - 28 + - 2 * COUNT( * ) + CAST( 27 AS SIGNED ) + - 36 * CASE - 25 WHEN + - 63 THEN + + 85 END AS col0, 61 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7778
SELECT ALL + - 28 + - 2 * COUNT ( * ) + CAST ( 27 AS INTEGER ) + - 36 * CASE - 25 WHEN + - 63 THEN + + 85 END AS col0, 61 AS col1
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT + - 11 * - MAX( DISTINCT - 49 ) col2
----
-539

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + - 11 * - MAX ( DISTINCT - 49 ) col2
----
-539

query I rowsort
SELECT ALL + 66 + + + 24 col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7781
SELECT - 32 * + COALESCE ( - CAST( NULL AS SIGNED ), 3, + CAST( NULL AS SIGNED ) ) * + 82 - + - CASE 94 WHEN + 81 THEN ( - + 96 ) END - + + CASE 21 WHEN + 33 THEN NULL WHEN 6 + 52 + - AVG ( + - 73 ) THEN NULL WHEN + - 16 THEN NULL WHEN - - 50 * + 7 + - + MAX( DISTINCT + + 5 ) + + 78 THEN - 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT - 32 * + COALESCE ( - CAST ( NULL AS INTEGER ), 3, + CAST ( NULL AS INTEGER ) ) * + 82 - + - CASE 94 WHEN + 81 THEN ( - + 96 ) END - + + CASE 21 WHEN + 33 THEN NULL WHEN 6 + 52 + - AVG ( + - 73 ) THEN NULL WHEN + - 16 THEN NULL WHEN - - 50 * + 7 + - + MAX ( DISTINCT + + 5 ) + + 78 THEN - 75 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 65 )
----
-65

query I rowsort
SELECT + - 70 AS col0
----
-70

query I rowsort
SELECT 0 + + 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN 3 * CASE - 6 WHEN 88 THEN NULL ELSE + - 47 + - 29 + - 68 * + - 83 * 36 END + + - 24 THEN - 69 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN 3 * CASE - 6 WHEN 88 THEN NULL ELSE + - 47 + - 29 + - 68 * + - 83 * 36 END + + - 24 THEN - 69 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT 93 + - - 96 * - 87 + + 18
----
-8241

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT + SUM( DISTINCT 56 ) * - 77 - ( + 1 ), 27 * - COUNT( * ) * + + 54 + + 33 AS col0
----
-4313
-1425

skipif mysql # not compatible
query II rowsort label-7787
SELECT + SUM ( DISTINCT 56 ) * - 77 - ( + 1 ), 27 * - COUNT ( * ) * + + 54 + + 33 AS col0
----
-4313
-1425

query I rowsort
SELECT ALL - 64 - 18
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT 70 DIV 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7789
SELECT 70 / 69 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7790
SELECT DISTINCT - 53 DIV 37, - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7790
SELECT DISTINCT - 53 / 37, - COUNT ( * ) AS col2
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7791
SELECT ALL - 20 * + CAST( 1 AS SIGNED ) + + 12 + CAST( NULLIF ( - 67, - COUNT( DISTINCT + + 5 ) * 90 ) AS SIGNED ) AS col2, + ( COUNT( * ) ) * + - 19 + COUNT( * )
----
-75
-18

skipif mysql # not compatible
query II rowsort label-7791
SELECT ALL - 20 * + CAST ( 1 AS INTEGER ) + + 12 + CAST ( NULLIF ( - 67, - COUNT ( DISTINCT + + 5 ) * 90 ) AS INTEGER ) AS col2, + ( COUNT ( * ) ) * + - 19 + COUNT ( * )
----
-75
-18

query I rowsort
SELECT DISTINCT 27 AS col0
----
27

onlyif mysql # DIV for integer division: 
query III rowsort label-7793
SELECT 49 DIV + 26, + 22 DIV 60 * + 34 AS col0, - 72 * NULLIF ( + 26, - ( + 53 ) ) + - ( - - 93 ) AS col1
----
1
0
-1965

skipif mysql # not compatible
query III rowsort label-7793
SELECT 49 / + 26, + 22 / 60 * + 34 AS col0, - 72 * NULLIF ( + 26, - ( + 53 ) ) + - ( - - 93 ) AS col1
----
1
0
-1965

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ( 80 ) + - + 97 * 17 + + COUNT( * )
----
-1568

skipif mysql # not compatible
query I rowsort label-7794
SELECT ( 80 ) + - + 97 * 17 + + COUNT ( * )
----
-1568

query I rowsort
SELECT ( 82 ) * - - 50
----
4100

query I rowsort
SELECT ALL 15 + - + 49 + + 87 AS col1
----
53

query I rowsort
SELECT 8 + - 30 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT 78 * COUNT( * ) col2
----
78

skipif mysql # not compatible
query I rowsort label-7798
SELECT 78 * COUNT ( * ) col2
----
78

query I rowsort
SELECT 59 col2
----
59

query I rowsort
SELECT ALL 59 AS col1
----
59

query II rowsort
SELECT 64 AS col2, 24 * + 47 - + - 83 AS col1
----
64
1211

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL 85 + COUNT( * ) + + + 84 * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL 85 + COUNT ( * ) + + + 84 * - COUNT ( * )
----
2

query II rowsort
SELECT DISTINCT 65 AS col0, 61 AS col2
----
65
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT DISTINCT 14 + + MAX( DISTINCT 77 ) AS col2, + 63 - - - 65
----
91
-2

skipif mysql # not compatible
query II rowsort label-7804
SELECT DISTINCT 14 + + MAX ( DISTINCT 77 ) AS col2, + 63 - - - 65
----
91
-2

query I rowsort
SELECT 50 col2
----
50

query I rowsort
SELECT 17 * + 94 AS col1
----
1598

query I rowsort
SELECT ALL 81 AS col1
----
81

query I rowsort
SELECT DISTINCT 2 + - + 54 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 6 - - 15 + - COUNT( * ) * - - 70 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7809
SELECT 6 - - 15 + - COUNT ( * ) * - - 70 AS col0
----
-49

query I rowsort
SELECT ALL 13 * - 87 AS col0
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT - SUM( ALL 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - SUM ( ALL 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT - COUNT( * ) + 7
----
6

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - COUNT ( * ) + 7
----
6

query I rowsort
SELECT ALL - + 6
----
-6

query I rowsort
SELECT ALL - + 45
----
-45

query I rowsort
SELECT ALL - + 38 - + - 88 AS col1
----
50

query I rowsort
SELECT + 89 * 80 AS col1
----
7120

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL - MIN( 29 ) - - ( - 34 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - MIN ( 29 ) - - ( - 34 ) AS col1
----
-63

query I rowsort
SELECT - 55 * - 63 * - + 27 AS col1
----
-93555

query I rowsort
SELECT 28 * 79 col1
----
2212

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT + - 26 DIV - 95 + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-7820
SELECT + - 26 / - 95 + - 78
----
-78

query I rowsort
SELECT ALL - ( - 65 )
----
65

query I rowsort
SELECT ALL - - 58 * - 89 * - 20 * + 12
----
1238880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7823
SELECT + 5 * 56 DIV + - COUNT( DISTINCT - 56 ) AS col0, 41 + - COUNT( * )
----
-280
40

skipif mysql # not compatible
query II rowsort label-7823
SELECT + 5 * 56 / + - COUNT ( DISTINCT - 56 ) AS col0, 41 + - COUNT ( * )
----
-280
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL - CAST( NULL AS SIGNED ) * + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 5 AS col0
----
NULL

query II rowsort
SELECT - 38 AS col0, 21
----
-38
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT ALL - CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL - CAST ( + 0 AS INTEGER )
----
0

query I rowsort
SELECT ALL - 74 AS col0
----
-74

query I rowsort
SELECT + - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7829
SELECT + 71 * + + CASE COUNT( * ) WHEN - + 70 + 41 THEN NULL ELSE - SUM( - 55 ) DIV - 24 END AS col2, NULLIF ( - 81, + + MAX( 36 ) + + - 30 )
----
-142
-81

skipif mysql # not compatible
query II rowsort label-7829
SELECT + 71 * + + CASE COUNT ( * ) WHEN - + 70 + 41 THEN NULL ELSE - SUM ( - 55 ) / - 24 END AS col2, NULLIF ( - 81, + + MAX ( 36 ) + + - 30 )
----
-142
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7830
SELECT 64 - 56 * - - COUNT( * ) + + - COUNT( * ) DIV - ( 34 ) - + - 14 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7830
SELECT 64 - 56 * - - COUNT ( * ) + + - COUNT ( * ) / - ( 34 ) - + - 14 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT COUNT( * ) DIV - + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT COUNT ( * ) / - + 52 AS col0
----
0

query I rowsort
SELECT - 92 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT 72 + MAX( DISTINCT 5 ) + 85 + - + 25 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-7833
SELECT 72 + MAX ( DISTINCT 5 ) + 85 + - + 25 AS col2
----
137

query I rowsort
SELECT - 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT MAX( + - 23 ) * - 36
----
828

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT MAX ( + - 23 ) * - 36
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL + 56 + 13 + + MIN( ALL + CAST( NULL AS SIGNED ) ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + 56 + 13 + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) * - 52
----
NULL

query I rowsort
SELECT + 68 - - 48
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL NULLIF ( MIN( 18 ), + 32 / + MIN( DISTINCT - - 23 ) ) col1
----
18

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL NULLIF ( MIN ( 18 ), + 32 / + MIN ( DISTINCT - - 23 ) ) col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT - ( + 25 ) * COUNT( * ) DIV + 11 - + + 59
----
-61

skipif mysql # not compatible
query I rowsort label-7839
SELECT - ( + 25 ) * COUNT ( * ) / + 11 - + + 59
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT - 32 + - + COUNT( * ) AS col1, - 56
----
-33
-56

skipif mysql # not compatible
query II rowsort label-7840
SELECT - 32 + - + COUNT ( * ) AS col1, - 56
----
-33
-56

query I rowsort
SELECT ALL 77 AS col1
----
77

query I rowsort
SELECT ALL + 21 + - + 69
----
-48

query I rowsort
SELECT DISTINCT 85 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL CASE - CAST( + 47 AS SIGNED ) WHEN 76 * - 12 THEN - - 87 * + 34 * - 87 + 39 + - ( - 83 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL CASE - CAST ( + 47 AS INTEGER ) WHEN 76 * - 12 THEN - - 87 * + 34 * - 87 + 39 + - ( - 83 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 8 * - 64
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT + 91 * + COUNT( * ) + 98 + COUNT( * ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT + 91 * + COUNT ( * ) + 98 + COUNT ( * ) AS col2
----
190

query I rowsort
SELECT ALL + 63 col1
----
63

query I rowsort
SELECT + 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + COUNT( - + 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT + COUNT ( - + 12 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7850
SELECT SUM( + 36 ) DIV + + 56 + - + 54 AS col1, + 23 AS col2
----
-54
23

skipif mysql # not compatible
query II rowsort label-7850
SELECT SUM ( + 36 ) / + + 56 + - + 54 AS col1, + 23 AS col2
----
-54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + 53 * COUNT( DISTINCT - 7 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7851
SELECT + 53 * COUNT ( DISTINCT - 7 ) AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7852
SELECT + - 20 * - 28 AS col2, 0 + - - CAST( NULL AS SIGNED ) - - 33 + + 79 + 41 AS col1
----
560
NULL

skipif mysql # not compatible
query II rowsort label-7852
SELECT + - 20 * - 28 AS col2, 0 + - - CAST ( NULL AS INTEGER ) - - 33 + + 79 + 41 AS col1
----
560
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + + 8 + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7853
SELECT + + 8 + COUNT ( * ) AS col2
----
9

query I rowsort
SELECT DISTINCT + - 2 AS col2
----
-2

query I rowsort
SELECT + + 59 * - 91 * 46 AS col0
----
-246974

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT DISTINCT + ( + 84 ) AS col2, MIN( + 95 ) + - 77
----
84
18

skipif mysql # not compatible
query II rowsort label-7856
SELECT DISTINCT + ( + 84 ) AS col2, MIN ( + 95 ) + - 77
----
84
18

query I rowsort
SELECT + ( - 84 ) AS col1
----
-84

query I rowsort
SELECT ALL + - 42 AS col2
----
-42

query I rowsort
SELECT ALL + 43 col2
----
43

query I rowsort
SELECT + 56 / - - 5 * CASE + 28 WHEN + 58 THEN + ( + 75 ) ELSE NULL END - + 56
----
NULL

query I rowsort
SELECT ALL 14 * + 89 + - ( 79 ) AS col2
----
1167

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT - + 1 - + 36 * - + 65 + + COUNT( * ) AS col1, 48 AS col2
----
2340
48

skipif mysql # not compatible
query II rowsort label-7862
SELECT - + 1 - + 36 * - + 65 + + COUNT ( * ) AS col1, 48 AS col2
----
2340
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT + MAX( ALL + + 35 ), + 63 AS col0
----
35
63

skipif mysql # not compatible
query II rowsort label-7863
SELECT + MAX ( ALL + + 35 ), + 63 AS col0
----
35
63

query I rowsort
SELECT + ( - + 29 ) + + ( 24 )
----
-5

query I rowsort
SELECT ALL + NULLIF ( 70, - - 51 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT 26 * + COUNT( * ) * - 98 + 4 * + SUM( DISTINCT 50 )
----
-2348

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT 26 * + COUNT ( * ) * - 98 + 4 * + SUM ( DISTINCT 50 )
----
-2348

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL - 90 * - 49 * - 4 * 81 * COUNT( * ) + - + 99 AS col0
----
-1428939

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - 90 * - 49 * - 4 * 81 * COUNT ( * ) + - + 99 AS col0
----
-1428939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT - 24 * + - COUNT( * ) + + 64 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT - 24 * + - COUNT ( * ) + + 64 AS col0
----
88

query I rowsort
SELECT DISTINCT ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT - ( + 43 ) * + + ( + 44 ) - - + COUNT( * ) + + 19 AS col0
----
-1872

skipif mysql # not compatible
query I rowsort label-7871
SELECT - ( + 43 ) * + + ( + 44 ) - - + COUNT ( * ) + + 19 AS col0
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT MIN( DISTINCT - - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7872
SELECT MIN ( DISTINCT - - 1 )
----
1

query I rowsort
SELECT - 44 + - 3 AS col0
----
-47

query I rowsort
SELECT DISTINCT COALESCE ( 16, + 16, - 76 )
----
16

query I rowsort
SELECT ALL + 25 + 57
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT - ( + COUNT( * ) ) * - 96 * 61 * + 5 + - ( - 51 ) * 3
----
29433

skipif mysql # not compatible
query I rowsort label-7876
SELECT - ( + COUNT ( * ) ) * - 96 * 61 * + 5 + - ( - 51 ) * 3
----
29433

query I rowsort
SELECT - 38 * + 40 AS col2
----
-1520

query I rowsort
SELECT - 49 + - + 51
----
-100

query I rowsort
SELECT ALL ( - - 65 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7880
SELECT - 2 * - CAST( - SUM( - 84 ) AS SIGNED ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-7880
SELECT - 2 * - CAST ( - SUM ( - 84 ) AS INTEGER ) AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7881
SELECT ALL + 80 * - COALESCE ( - + COUNT( * ), 31 DIV - + COUNT( * ) + - 26 - - SUM( ALL 81 ) * - - 75, + 91 + NULLIF ( - 47, - 7 * + SUM( - 47 ) * 32 - + COALESCE ( CAST( NULL AS SIGNED ), + + 69 ) ) + + 64, 55 ) * 72 AS col2
----
5760

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL + 80 * - COALESCE ( - + COUNT ( * ), 31 / - + COUNT ( * ) + - 26 - - SUM ( ALL 81 ) * - - 75, + 91 + NULLIF ( - 47, - 7 * + SUM ( - 47 ) * 32 - + COALESCE ( CAST ( NULL AS INTEGER ), + + 69 ) ) + + 64, 55 ) * 72 AS col2
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT + 8 - - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + 8 - - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - MIN( ALL + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7883
SELECT - MIN ( ALL + 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT - + 98 + + CAST( + 21 AS SIGNED ) * - - 77 AS col0
----
1519

skipif mysql # not compatible
query I rowsort label-7884
SELECT - + 98 + + CAST ( + 21 AS INTEGER ) * - - 77 AS col0
----
1519

query I rowsort
SELECT - - 29 * - 10
----
-290

query I rowsort
SELECT ALL - - 42 * - COALESCE ( 67, 1, + ( + - 55 ) + - - 42 ) AS col2
----
-2814

query I rowsort
SELECT - + 54 - - 42 AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT + + 49 DIV + 99 * - - 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT + + 49 / + 99 * - - 33 AS col1
----
0

query I rowsort
SELECT - 46 * 97 col0
----
-4462

query I rowsort
SELECT - - 79 - - ( - 67 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + + 50 * ( CASE - + 32 WHEN + - 61 * + 79 THEN - 12 * + COUNT( * ) + - MAX( - - 64 ) - + 95 ELSE + 92 END ) AS col1
----
4600

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + + 50 * ( CASE - + 32 WHEN + - 61 * + 79 THEN - 12 * + COUNT ( * ) + - MAX ( - - 64 ) - + 95 ELSE + 92 END ) AS col1
----
4600

query I rowsort
SELECT + 17 col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT DISTINCT + CASE 10 WHEN ( - + 19 ) THEN NULL ELSE - + 46 END AS col1, + MAX( - 8 )
----
-46
-8

skipif mysql # not compatible
query II rowsort label-7893
SELECT DISTINCT + CASE 10 WHEN ( - + 19 ) THEN NULL ELSE - + 46 END AS col1, + MAX ( - 8 )
----
-46
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT DISTINCT + MIN( ALL - + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT + MIN ( ALL - + 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7895
SELECT ALL 66 DIV 77 + - - COUNT( * ) * + - 87
----
-87

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL 66 / 77 + - - COUNT ( * ) * + - 87
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT 38 DIV - 39 * 4 - + 53
----
-53

skipif mysql # not compatible
query I rowsort label-7896
SELECT 38 / - 39 * 4 - + 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT CASE - + 41 WHEN + 70 THEN NULL ELSE - + 24 + 51 * - NULLIF ( + 11, 61 - - + COALESCE ( - MAX( DISTINCT - 24 ), - + 23, 70 * + 5 ) + - 90 ) END
----
-585

skipif mysql # not compatible
query I rowsort label-7897
SELECT CASE - + 41 WHEN + 70 THEN NULL ELSE - + 24 + 51 * - NULLIF ( + 11, 61 - - + COALESCE ( - MAX ( DISTINCT - 24 ), - + 23, 70 * + 5 ) + - 90 ) END
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7898
SELECT + CAST( + - 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-7898
SELECT + CAST ( + - 65 AS INTEGER )
----
-65

query I rowsort
SELECT + - 47 * + + 39
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + - COUNT( * ) * - - 52 - - 48 col0
----
-4

skipif mysql # not compatible
query I rowsort label-7900
SELECT + - COUNT ( * ) * - - 52 - - 48 col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + COUNT( * ) + + CASE WHEN + 2 NOT IN ( + + 43 + 95 * - 20, - 78 * - ( - - CASE + 58 WHEN - + 35 THEN - 82 WHEN - 73 * + - 68 - + 17 THEN - + 87 / + 33 + - 34 * 99 + + - 89 + + 47 - - - 35 * 49 + 33 / + - 31 - + 83 * ( - 75 ) ELSE NULL END ) + - 43 ) THEN 12 + + 37 WHEN + MAX( DISTINCT 65 ) IN ( - 35 ) THEN + 91 * COUNT( * ) ELSE 79 END
----
80

skipif mysql # not compatible
query I rowsort label-7901
SELECT + COUNT ( * ) + + CASE WHEN + 2 NOT IN ( + + 43 + 95 * - 20, - 78 * - ( - - CASE + 58 WHEN - + 35 THEN - 82 WHEN - 73 * + - 68 - + 17 THEN - + 87 / + 33 + - 34 * 99 + + - 89 + + 47 - - - 35 * 49 + 33 / + - 31 - + 83 * ( - 75 ) ELSE NULL END ) + - 43 ) THEN 12 + + 37 WHEN + MAX ( DISTINCT 65 ) IN ( - 35 ) THEN + 91 * COUNT ( * ) ELSE 79 END
----
80

query II rowsort
SELECT 79 AS col2, 22
----
79
22

query II rowsort
SELECT ALL + 96, 89 AS col0
----
96
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT + 90 DIV + MIN( - ( + 91 ) ) * - 24 * 16 + + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7904
SELECT + 90 / + MIN ( - ( + 91 ) ) * - 24 * 16 + + 78 AS col1
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-7905
SELECT ALL + ( + 52 ) DIV + - 26 + - ( + 95 ) AS col2, 45
----
-97
45

skipif mysql # not compatible
query II rowsort label-7905
SELECT ALL + ( + 52 ) / + - 26 + - ( + 95 ) AS col2, 45
----
-97
45

query I rowsort
SELECT ALL 86 + + - 26
----
60

query I rowsort
SELECT 78 * + 39
----
3042

onlyif mysql # DIV for integer division: 
query II rowsort label-7908
SELECT 61 AS col0, COALESCE ( + 86, + + ( - - 13 ) * 21 + 23 * 12 ) DIV - + 87
----
61
0

skipif mysql # not compatible
query II rowsort label-7908
SELECT 61 AS col0, COALESCE ( + 86, + + ( - - 13 ) * 21 + 23 * 12 ) / - + 87
----
61
0

query I rowsort
SELECT NULLIF ( - 47, + - 0 ) + 46 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL + 21 * CAST( NULL AS SIGNED ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + 21 * CAST ( NULL AS INTEGER ) * + 57
----
NULL

query I rowsort
SELECT DISTINCT - ( + 11 ) * - + 17
----
187

query II rowsort
SELECT ALL 20 col0, 44
----
20
44

query II rowsort
SELECT ALL 76 col1, - 48 AS col2
----
76
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT 32 - ( - 96 ) * COALESCE ( + 97, - NULLIF ( + + COUNT( * ), - 4 ) DIV + COUNT( * ) * 4 ) AS col0
----
9344

skipif mysql # not compatible
query I rowsort label-7914
SELECT 32 - ( - 96 ) * COALESCE ( + 97, - NULLIF ( + + COUNT ( * ), - 4 ) / + COUNT ( * ) * 4 ) AS col0
----
9344

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL CASE - + 0 WHEN 43 * - + NULLIF ( + 63, - COUNT( * ) / 22 ) + 37 + - 87 / - + 51 THEN 24 END * 67 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL CASE - + 0 WHEN 43 * - + NULLIF ( + 63, - COUNT ( * ) / 22 ) + 37 + - 87 / - + 51 THEN 24 END * 67 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 6 + 1
----
7

query I rowsort
SELECT DISTINCT + 3 * - 4
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT 51 + + 64, - 72 + COUNT( * ) AS col2
----
115
-71

skipif mysql # not compatible
query II rowsort label-7918
SELECT 51 + + 64, - 72 + COUNT ( * ) AS col2
----
115
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT CAST( NULL AS SIGNED ) * + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT CAST ( NULL AS INTEGER ) * + + 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7920
SELECT 34 * + - 53 * 40 * - 2 AS col0, - CAST( NULL AS SIGNED ) * + - 1 col0
----
144160
NULL

skipif mysql # not compatible
query II rowsort label-7920
SELECT 34 * + - 53 * 40 * - 2 AS col0, - CAST ( NULL AS INTEGER ) * + - 1 col0
----
144160
NULL

query I rowsort
SELECT ALL 27 AS col1
----
27

query I rowsort
SELECT - 50 col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT 83 + 34 - - 72 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT 83 + 34 - - 72 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL + CASE + 42 WHEN ( - - CASE + COUNT( * ) WHEN - 12 THEN NULL WHEN - + 9 THEN NULL WHEN + 61 THEN NULL WHEN + 44 / ( + 83 ) / + COALESCE ( - 4, + COUNT( * ) * - 76, + 84 ) * 92 + + - MAX( CASE + 89 WHEN - 62 THEN 53 END ) THEN - + CASE - COUNT( * ) WHEN 55 - + 57 THEN NULL ELSE + 27 END END ) THEN NULL WHEN - 48 THEN 96 / - + 62 * - + ( 44 ) END / - + 53 + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL + CASE + 42 WHEN ( - - CASE + COUNT ( * ) WHEN - 12 THEN NULL WHEN - + 9 THEN NULL WHEN + 61 THEN NULL WHEN + 44 / ( + 83 ) / + COALESCE ( - 4, + COUNT ( * ) * - 76, + 84 ) * 92 + + - MAX ( CASE + 89 WHEN - 62 THEN 53 END ) THEN - + CASE - COUNT ( * ) WHEN 55 - + 57 THEN NULL ELSE + 27 END END ) THEN NULL WHEN - 48 THEN 96 / - + 62 * - + ( 44 ) END / - + 53 + 52 AS col0
----
NULL

query I rowsort
SELECT 13 * 41
----
533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT ALL COALESCE ( - + 94, - - 24 * CAST( NULL AS SIGNED ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL COALESCE ( - + 94, - - 24 * CAST ( NULL AS INTEGER ) ) AS col0
----
-94

query I rowsort
SELECT ALL + - 14 + - + 31 * - 27 * - COALESCE ( 77, - 86 ) AS col2
----
-64463

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + NULLIF ( - MAX( - 10 ), - 27 * - + 50 - - COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7928
SELECT + NULLIF ( - MAX ( - 10 ), - 27 * - + 50 - - COUNT ( * ) ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + 80 * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-7929
SELECT + 80 * COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL + 45 + 83 + - COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + 45 + 83 + - COUNT ( * )
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7931
SELECT - CAST( NULL AS SIGNED ) AS col1, + MAX( DISTINCT + - NULLIF ( - 32, + 99 ) )
----
NULL
32

skipif mysql # not compatible
query II rowsort label-7931
SELECT - CAST ( NULL AS INTEGER ) AS col1, + MAX ( DISTINCT + - NULLIF ( - 32, + 99 ) )
----
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT - MAX( ALL - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-7932
SELECT - MAX ( ALL - 29 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT ALL NULLIF ( 52, - 42 ) DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL NULLIF ( 52, - 42 ) / + - 72
----
0

query I rowsort
SELECT ALL - + 43 + - 35 + + + 72 + 29 * + 50
----
1444

query I rowsort
SELECT + + 54 AS col2
----
54

query I rowsort
SELECT ALL + 30 + - - ( + 44 )
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7937
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7938
SELECT 23 * + - 94 AS col0, 88 + - 32 + 87 / - 89 + - COUNT( * ) * 69 * + + CASE + + 88 WHEN + 71 * + 60 THEN + CAST( + 10 AS SIGNED ) - + SUM( DISTINCT - ( + 86 ) ) WHEN + + 15 THEN - 32 * + 6 ELSE NULL END * + + CAST( NULL AS SIGNED ) + + 68
----
-2162
NULL

skipif mysql # not compatible
query II rowsort label-7938
SELECT 23 * + - 94 AS col0, 88 + - 32 + 87 / - 89 + - COUNT ( * ) * 69 * + + CASE + + 88 WHEN + 71 * + 60 THEN + CAST ( + 10 AS INTEGER ) - + SUM ( DISTINCT - ( + 86 ) ) WHEN + + 15 THEN - 32 * + 6 ELSE NULL END * + + CAST ( NULL AS INTEGER ) + + 68
----
-2162
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT + 24 * 96 * + - 57 * + 16 + COUNT( * )
----
-2101247

skipif mysql # not compatible
query I rowsort label-7939
SELECT + 24 * 96 * + - 57 * + 16 + COUNT ( * )
----
-2101247

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT 13 * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7940
SELECT 13 * + COUNT ( * )
----
13

query II rowsort
SELECT DISTINCT - 7 - + 97 AS col1, 98 AS col2
----
-104
98

query II rowsort
SELECT 26 * - + 41 AS col1, - 33 AS col1
----
-1066
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT 26 * - 2 * COUNT( * ) * 8 + - ( + MIN( DISTINCT 91 ) ) + - + 19 - + + 75 * + - MAX( DISTINCT - 55 ) AS col2
----
-4651

skipif mysql # not compatible
query I rowsort label-7943
SELECT 26 * - 2 * COUNT ( * ) * 8 + - ( + MIN ( DISTINCT 91 ) ) + - + 19 - + + 75 * + - MAX ( DISTINCT - 55 ) AS col2
----
-4651

query I rowsort
SELECT ALL 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ( SUM( DISTINCT - + ( + - 23 ) ) ) + COUNT( * ) + + 70 * - 56
----
-3896

skipif mysql # not compatible
query I rowsort label-7945
SELECT ( SUM ( DISTINCT - + ( + - 23 ) ) ) + COUNT ( * ) + + 70 * - 56
----
-3896

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT - MIN( DISTINCT + - 6 ) AS col0, - COUNT( * ) AS col2
----
6
-1

skipif mysql # not compatible
query II rowsort label-7946
SELECT - MIN ( DISTINCT + - 6 ) AS col0, - COUNT ( * ) AS col2
----
6
-1

query I rowsort
SELECT DISTINCT 79 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT ALL 37 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL 37 / - + 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7949
SELECT MIN( ALL - 88 ) DIV - - 20 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7949
SELECT MIN ( ALL - 88 ) / - - 20 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT - SUM( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7950
SELECT - SUM ( 91 )
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-7951
SELECT DISTINCT 80 DIV 50, 44 + + 81 AS col0
----
1
125

skipif mysql # not compatible
query II rowsort label-7951
SELECT DISTINCT 80 / 50, 44 + + 81 AS col0
----
1
125

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT + ( + 15 ) DIV - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7952
SELECT + ( + 15 ) / - 19 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7953
SELECT - - MAX( ALL + - 53 ) col1, - COUNT( * )
----
-53
-1

skipif mysql # not compatible
query II rowsort label-7953
SELECT - - MAX ( ALL + - 53 ) col1, - COUNT ( * )
----
-53
-1

query I rowsort
SELECT ALL 3 + - + 81 AS col2
----
-78

query I rowsort
SELECT DISTINCT 23 AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7956
SELECT - + ( - - 89 ) AS col1, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 66 / - 66 AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-7956
SELECT - + ( - - 89 ) AS col1, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 66 / - 66 AS col2
----
-89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - + 61 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT - COUNT( DISTINCT 57 ) + + 14 * 31 AS col1
----
433

skipif mysql # not compatible
query I rowsort label-7959
SELECT - COUNT ( DISTINCT 57 ) + + 14 * 31 AS col1
----
433

query I rowsort
SELECT ALL ( + - 97 ) + - 60 + 71 col0
----
-86

query I rowsort
SELECT - 2 AS col0
----
-2

query I rowsort
SELECT 0 - + 1
----
-1

query I rowsort
SELECT ALL + 14 + - 8 * + - 7 * - 61 AS col2
----
-3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7964
SELECT ALL - - 15 * + ( + - 26 ) + - COUNT( * ) DIV + + COALESCE ( + 40, CASE - 49 WHEN + COUNT( * ) THEN + 23 + - 60 + 63 + - ( - 65 ) DIV + 82 - - 62 * + COALESCE ( - ( 39 ), + 25 + + NULLIF ( + - 5, - + 21 + - COUNT( * ) ) + + 40 * - 83 * + 84 DIV 39, - - 22 DIV + 86 ) - - 35 * + 93 * - + 4 * + ( 75 ) + - ( - + ( 26 ) ) END + 22, - COUNT( 6 ) + CAST( + 9 AS SIGNED ) * 11 ) + 7
----
-383

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - - 15 * + ( + - 26 ) + - COUNT ( * ) / + + COALESCE ( + 40, CASE - 49 WHEN + COUNT ( * ) THEN + 23 + - 60 + 63 + - ( - 65 ) / + 82 - - 62 * + COALESCE ( - ( 39 ), + 25 + + NULLIF ( + - 5, - + 21 + - COUNT ( * ) ) + + 40 * - 83 * + 84 / 39, - - 22 / + 86 ) - - 35 * + 93 * - + 4 * + ( 75 ) + - ( - + ( 26 ) ) END + 22, - COUNT ( 6 ) + CAST ( + 9 AS INTEGER ) * 11 ) + 7
----
-383

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT + CASE 65 WHEN 78 THEN - - 70 * + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT + CASE 65 WHEN 78 THEN - - 70 * + - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + - 69 AS col0
----
-69

query I rowsort
SELECT ALL + + 55 AS col0
----
55

query I rowsort
SELECT + - 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT - COUNT( * ) * - 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7969
SELECT - COUNT ( * ) * - 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT COALESCE ( + 59, 99 * + - 35, + ( + - MAX( 77 ) ), + + 92 ), - 25 AS col0
----
59
-25

skipif mysql # not compatible
query II rowsort label-7970
SELECT COALESCE ( + 59, 99 * + - 35, + ( + - MAX ( 77 ) ), + + 92 ), - 25 AS col0
----
59
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT - COUNT( * ) + + 40 * + 27 + - 78
----
1001

skipif mysql # not compatible
query I rowsort label-7971
SELECT - COUNT ( * ) + + 40 * + 27 + - 78
----
1001

query II rowsort
SELECT ALL + 93 * + ( - 77 ) AS col2, - 54 * + - 11
----
-7161
594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7973
SELECT DISTINCT + COUNT( * ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + COUNT ( * ) / - 64
----
0

query I rowsort
SELECT ALL + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT - 3 * - - ( + MIN( 83 ) ) * - ( 65 ) AS col1, 56 * + + 36 AS col1
----
16185
2016

skipif mysql # not compatible
query II rowsort label-7975
SELECT - 3 * - - ( + MIN ( 83 ) ) * - ( 65 ) AS col1, 56 * + + 36 AS col1
----
16185
2016

query II rowsort
SELECT DISTINCT + 0, 75 AS col0
----
0
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7977
SELECT 67 * + COUNT( * ) + 14 * + CAST( NULL AS SIGNED ) * - 74 + 83 + - 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT 67 * + COUNT ( * ) + 14 * + CAST ( NULL AS INTEGER ) * - 74 + 83 + - 84 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT - 67 * - 79 * + - CAST( + MAX( DISTINCT 37 ) AS SIGNED ) AS col0
----
-195841

skipif mysql # not compatible
query I rowsort label-7978
SELECT - 67 * - 79 * + - CAST ( + MAX ( DISTINCT 37 ) AS INTEGER ) AS col0
----
-195841

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT + MIN( 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7979
SELECT + MIN ( 88 ) AS col0
----
88

query I rowsort
SELECT ALL + ( - + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT - 19 + + + 12 + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7981
SELECT - 19 + + + 12 + COUNT ( * ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT MAX( ALL ( 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-7982
SELECT MAX ( ALL ( 90 ) )
----
90

query I rowsort
SELECT ALL 31 * + 3 AS col1
----
93

query I rowsort
SELECT ALL 90 + + - 25
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - ( + + COALESCE ( MIN( DISTINCT - 59 ), + 85, - 75 + + 6 * - + 77 ) ) * - 19 + - CASE - 84 WHEN + 99 * + + 56 / + 5 THEN - - 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT - ( + + COALESCE ( MIN ( DISTINCT - 59 ), + 85, - 75 + + 6 * - + 77 ) ) * - 19 + - CASE - 84 WHEN + 99 * + + 56 / + 5 THEN - - 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT - MIN( - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7986
SELECT - MIN ( - 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT - + CAST( + 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-7987
SELECT - + CAST ( + 29 AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7988
SELECT ALL - - ( - - 29 ) * - 25 - - + COUNT( * ) col2, - ( - 80 ) + + 52
----
-724
132

skipif mysql # not compatible
query II rowsort label-7988
SELECT ALL - - ( - - 29 ) * - 25 - - + COUNT ( * ) col2, - ( - 80 ) + + 52
----
-724
132

query I rowsort
SELECT + 40 - - - 35
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - + COUNT( * ) + + 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7990
SELECT - + COUNT ( * ) + + 85 AS col0
----
84

query I rowsort
SELECT - + 76 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL COUNT( * ) + - + 21 * 33 * + + 73 + 29 AS col2
----
-50559

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL COUNT ( * ) + - + 21 * 33 * + + 73 + 29 AS col2
----
-50559

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + 20 + + SUM( + 13 ) * + + 54
----
722

skipif mysql # not compatible
query I rowsort label-7993
SELECT + 20 + + SUM ( + 13 ) * + + 54
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + - 60 * + 25 - - 7 + + 38 * + CASE 4 WHEN COUNT( * ) THEN - 56 * - 32 * 32 * - - 61 + + 23 + - - 82 + - - COALESCE ( COUNT( - 78 ), - NULLIF ( + ( + + 54 ), - - 58 + + 24 * - 83 ), 71 ) WHEN 66 * + 34 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT + - 60 * + 25 - - 7 + + 38 * + CASE 4 WHEN COUNT ( * ) THEN - 56 * - 32 * 32 * - - 61 + + 23 + - - 82 + - - COALESCE ( COUNT ( - 78 ), - NULLIF ( + ( + + 54 ), - - 58 + + 24 * - 83 ), 71 ) WHEN 66 * + 34 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL - SUM( 83 ) * - 64 AS col2
----
5312

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL - SUM ( 83 ) * - 64 AS col2
----
5312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7996
SELECT - COALESCE ( + COUNT( * ), 29, - 62 DIV + COUNT( * ) * + - CASE - 67 WHEN 90 * COUNT( * ) + - COUNT( * ) THEN + 90 WHEN - COALESCE ( - 18, + 87 * + COUNT( * ) - 67 ) - 98 * - - 68 THEN + 43 * - 82 - - 5 - 64 END * + - 93 * + - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-7996
SELECT - COALESCE ( + COUNT ( * ), 29, - 62 / + COUNT ( * ) * + - CASE - 67 WHEN 90 * COUNT ( * ) + - COUNT ( * ) THEN + 90 WHEN - COALESCE ( - 18, + 87 * + COUNT ( * ) - 67 ) - 98 * - - 68 THEN + 43 * - 82 - - 5 - 64 END * + - 93 * + - 78 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) - + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) - + 32 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL 82 + + COUNT( * ) * 17 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL 82 + + COUNT ( * ) * 17 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL - COUNT( * ) - + 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - COUNT ( * ) - + 95 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - - MIN( DISTINCT + + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-8001
SELECT - - MIN ( DISTINCT + + 72 )
----
72

query I rowsort
SELECT - - 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + 9 + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8003
SELECT + 9 + + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8004
SELECT COUNT( * ), 0 * - COALESCE ( 43, + 48 DIV + 22 - - - 91 ) AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-8004
SELECT COUNT ( * ), 0 * - COALESCE ( 43, + 48 / + 22 - - - 91 ) AS col2
----
1
0

query I rowsort
SELECT ALL - 2 * - 37 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + COUNT( * ) * - 84
----
-84

skipif mysql # not compatible
query I rowsort label-8006
SELECT + COUNT ( * ) * - 84
----
-84

query I rowsort
SELECT - 21 * + 52 AS col0
----
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT + COUNT( * ) + - COUNT( * ) + - - 89 + + 76 DIV + 84 * + 44 + 56 + 34 + - + 15 * - 99 + + ( + - 93 ) * 4 * 56 * 20 * 21
----
-8747776

skipif mysql # not compatible
query I rowsort label-8008
SELECT + COUNT ( * ) + - COUNT ( * ) + - - 89 + + 76 / + 84 * + 44 + 56 + 34 + - + 15 * - 99 + + ( + - 93 ) * 4 * 56 * 20 * 21
----
-8747776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT CAST( + 19 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8009
SELECT CAST ( + 19 AS INTEGER ) AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT - 28 * + + SUM( ALL + - CAST( - 51 AS SIGNED ) ) * - COUNT( * ) * + - 56 + + 41
----
-79927

skipif mysql # not compatible
query I rowsort label-8010
SELECT - 28 * + + SUM ( ALL + - CAST ( - 51 AS INTEGER ) ) * - COUNT ( * ) * + - 56 + + 41
----
-79927

query I rowsort
SELECT ALL + 61 AS col0
----
61

query I rowsort
SELECT + 50 * 92
----
4600

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - 55 + COUNT( * ) * - ( COUNT( * ) ) * + 70 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-8013
SELECT - 55 + COUNT ( * ) * - ( COUNT ( * ) ) * + 70 AS col1
----
-125

query II rowsort
SELECT ( - 10 ) AS col2, - ( - ( 36 ) ) AS col1
----
-10
36

query II rowsort
SELECT - 32 + 35, 24 AS col1
----
3
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT 62 * + COUNT( * ) * + + COUNT( * ) * - ( - 89 ) * 8 + + - 67
----
44077

skipif mysql # not compatible
query I rowsort label-8016
SELECT 62 * + COUNT ( * ) * + + COUNT ( * ) * - ( - 89 ) * 8 + + - 67
----
44077

query I rowsort
SELECT ( + + 35 ) AS col0
----
35

query I rowsort
SELECT + 89 * + 87 + + - 60
----
7683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT ALL ( CAST( NULL AS SIGNED ) ) * + 25 + - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * + 25 + - 80 AS col0
----
NULL

query I rowsort
SELECT ALL 14 * - 93 + + 34 - + 36 * - 0 - + + 38
----
-1306

query I rowsort
SELECT DISTINCT - 1 * - 97 + 52
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT SUM( + 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8022
SELECT SUM ( + 46 ) AS col0
----
46

query I rowsort
SELECT + 51 + + 16 * - - 81 + 14
----
1361

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8024
SELECT - - CAST( + - 31 AS DECIMAL ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT - - CAST ( + - 31 AS REAL ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT - NULLIF ( + NULLIF ( + 53, + 80 + + + 56 + + + 16 * + 71 ), + 96 + - 5 - - COUNT( * ) - 47 + + + 62 / + 8 * - COUNT( - + 51 ) - + 88 / CASE 17 WHEN ( + 32 ) * - - 9 * 54 * + COUNT( * ) / + 16 THEN 93 END )
----
-53

skipif mysql # not compatible
query I rowsort label-8025
SELECT - NULLIF ( + NULLIF ( + 53, + 80 + + + 56 + + + 16 * + 71 ), + 96 + - 5 - - COUNT ( * ) - 47 + + + 62 / + 8 * - COUNT ( - + 51 ) - + 88 / CASE 17 WHEN ( + 32 ) * - - 9 * 54 * + COUNT ( * ) / + 16 THEN 93 END )
----
-53

query I rowsort
SELECT ALL 75 col1
----
75

query I rowsort
SELECT 68 + 84 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + 18 * 64 + + COUNT( * ) AS col0
----
1153

skipif mysql # not compatible
query I rowsort label-8028
SELECT + 18 * 64 + + COUNT ( * ) AS col0
----
1153

query I rowsort
SELECT ALL + 14 - - 68 + + 39 + - 89 * - 90
----
8131

query II rowsort
SELECT DISTINCT NULLIF ( + + 56, 23 - 19 ) AS col1, 7 AS col1
----
56
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL 70 - + 10 + 82 + - CASE + ( - - 33 ) WHEN + 22 + 58 THEN 50 + - COALESCE ( - COUNT( * ), 55 * - + ( - 86 ) ) END - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL 70 - + 10 + 82 + - CASE + ( - - 33 ) WHEN + 22 + 58 THEN 50 + - COALESCE ( - COUNT ( * ), 55 * - + ( - 86 ) ) END - - 48
----
NULL

query I rowsort
SELECT + 98 AS col1
----
98

query II rowsort
SELECT + ( - + 63 ) * - 11 + + - 42 AS col1, + 70 AS col0
----
651
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT COALESCE ( + 55, - ( + 73 ) ) + + + SUM( DISTINCT 33 )
----
88

skipif mysql # not compatible
query I rowsort label-8034
SELECT COALESCE ( + 55, - ( + 73 ) ) + + + SUM ( DISTINCT 33 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8035
SELECT DISTINCT + CAST( - 38 AS SIGNED ), 85 col2
----
-38
85

skipif mysql # not compatible
query II rowsort label-8035
SELECT DISTINCT + CAST ( - 38 AS INTEGER ), 85 col2
----
-38
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ( - + 4 ) * - COUNT( * ) + + + COUNT( DISTINCT + + 31 ) * + 66 - 18
----
52

skipif mysql # not compatible
query I rowsort label-8036
SELECT ( - + 4 ) * - COUNT ( * ) + + + COUNT ( DISTINCT + + 31 ) * + 66 - 18
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT 0 - + 78 DIV + ( + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT 0 - + 78 / + ( + 98 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8038
SELECT ALL + COUNT( ALL 89 ) DIV - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + COUNT ( ALL 89 ) / - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT COUNT( * ) * - - NULLIF ( + + 36, 81 ) * MAX( - - 59 ) AS col0, - 1 + - 95
----
2124
-96

skipif mysql # not compatible
query II rowsort label-8039
SELECT COUNT ( * ) * - - NULLIF ( + + 36, 81 ) * MAX ( - - 59 ) AS col0, - 1 + - 95
----
2124
-96

query I rowsort
SELECT ALL - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT 94 DIV + + 84 - + COUNT( * ) DIV - 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8041
SELECT 94 / + + 84 - + COUNT ( * ) / - 23 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL 14 + + + COUNT( ALL 49 )
----
15

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL 14 + + + COUNT ( ALL 49 )
----
15

query I rowsort
SELECT ALL 26 + + + 0
----
26

query I rowsort
SELECT ( + 13 ) * + - 37 AS col1
----
-481

query I rowsort
SELECT ALL + 31 + + 35
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL 78 + - - ( + COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL 78 + - - ( + COUNT ( * ) ) AS col0
----
79

query I rowsort
SELECT 57 - + + 96 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL - MIN( 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - MIN ( 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT DISTINCT COUNT( * ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT COUNT ( * ) + - 98
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8052
SELECT ALL - ( + NULLIF ( + 90, - 4 ) ) + + CASE 1 WHEN - 5 - - + 54 THEN + COUNT( * ) + - 53 END AS col1, + 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8052
SELECT ALL - ( + NULLIF ( + 90, - 4 ) ) + + CASE 1 WHEN - 5 - - + 54 THEN + COUNT ( * ) + - 53 END AS col1, + 34
----
NULL
34

query I rowsort
SELECT + - 13 col1
----
-13

query I rowsort
SELECT + 66 + 60 + + ( + + ( - 80 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + COUNT( ALL + 93 ) + 59 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8055
SELECT + COUNT ( ALL + 93 ) + 59 AS col1
----
60

query I rowsort
SELECT 3 * + 88 * + 88 - + 23 - + + 56 * - - 55 + + - 8
----
20121

query I rowsort
SELECT ALL + - 76 * 53
----
-4028

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT - MAX( 7 ) * + + 44 * + 47
----
-14476

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT - MAX ( 7 ) * + + 44 * + 47
----
-14476

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + 17 * - 28 * - + 13 + - 95 * - COUNT( * ) + 29 AS col0
----
6312

skipif mysql # not compatible
query I rowsort label-8059
SELECT + 17 * - 28 * - + 13 + - 95 * - COUNT ( * ) + 29 AS col0
----
6312

query I rowsort
SELECT DISTINCT + 85 * 88 AS col0
----
7480

query I rowsort
SELECT ALL ( 72 )
----
72

query I rowsort
SELECT ALL + ( - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT 75 - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8063
SELECT 75 - + COUNT ( * )
----
74

query I rowsort
SELECT - - 62 AS col0
----
62

query I rowsort
SELECT ( + - 71 ) col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT COUNT( * ) + 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8066
SELECT COUNT ( * ) + 45 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT ALL + + 21 - + 47 DIV - 16
----
23

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL + + 21 - + 47 / - 16
----
23

query I rowsort
SELECT + 65 + 65 AS col1
----
130

query I rowsort
SELECT - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT - COUNT( 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-8070
SELECT - COUNT ( 46 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT 0 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT 0 + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 44 AS col1
----
-44

query I rowsort
SELECT DISTINCT + 59 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT DISTINCT + 19 * - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT + 19 * - COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT DISTINCT + 89 * + 5
----
445

query I rowsort
SELECT DISTINCT + 80 * - 95
----
-7600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT COALESCE ( - 21, MIN( - - 20 ), - ( + MAX( - CAST( NULL AS SIGNED ) ) ) ) * + 21 + 57 col2
----
-384

skipif mysql # not compatible
query I rowsort label-8077
SELECT COALESCE ( - 21, MIN ( - - 20 ), - ( + MAX ( - CAST ( NULL AS INTEGER ) ) ) ) * + 21 + 57 col2
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT + ( - 39 ) * + + 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + ( - 39 ) * + + 0 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT - 48, COUNT( * ) col2
----
-48
1

skipif mysql # not compatible
query II rowsort label-8079
SELECT - 48, COUNT ( * ) col2
----
-48
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8080
SELECT + SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT + SUM ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 7 * 92 + - 27 + + 15 AS col1
----
-656

query I rowsort
SELECT 32 + 4 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL 63 * - - 99 + + - COUNT( * ) col1
----
6236

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL 63 * - - 99 + + - COUNT ( * ) col1
----
6236

query I rowsort
SELECT ALL - 15 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + 44 * COUNT( DISTINCT - + 44 ) * - 60 * 13 + - 12
----
-34332

skipif mysql # not compatible
query I rowsort label-8085
SELECT + 44 * COUNT ( DISTINCT - + 44 ) * - 60 * 13 + - 12
----
-34332

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL + COUNT( * ) * + ( 64 ) + + - 88
----
-24

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL + COUNT ( * ) * + ( 64 ) + + - 88
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT MAX( ALL 50 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-8087
SELECT MAX ( ALL 50 ) col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT COALESCE ( 67, 73, + 47 ) DIV ( ( + 83 ) ) + - + 44 + - 36 * - COALESCE ( + COUNT( * ), + 52 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8088
SELECT COALESCE ( 67, 73, + 47 ) / ( ( + 83 ) ) + - + 44 + - 36 * - COALESCE ( + COUNT ( * ), + 52 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL 0 * + SUM( 31 ) + - + 51 - + 94 AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL 0 * + SUM ( 31 ) + - + 51 - + 94 AS col1
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT ( - 83 ) + 97 + + 6 DIV - + ( + 29 )
----
14

skipif mysql # not compatible
query I rowsort label-8090
SELECT ( - 83 ) + 97 + + 6 / - + ( + 29 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT COALESCE ( - 26, - - COUNT( * ) + + 16 ) * + + 42 - - + 24 / + - CAST( NULL AS SIGNED ) + - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT COALESCE ( - 26, - - COUNT ( * ) + + 16 ) * + + 42 - - + 24 / + - CAST ( NULL AS INTEGER ) + - + 8
----
NULL

query II rowsort
SELECT + 34 AS col2, - COALESCE ( + 54, + + 48 ) + - - ( 97 )
----
34
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8093
SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT( * ) + + - 35 THEN - COUNT( DISTINCT - 96 ) END * CAST( NULL AS SIGNED ) AS col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-8093
SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT ( * ) + + - 35 THEN - COUNT ( DISTINCT - 96 ) END * CAST ( NULL AS INTEGER ) AS col1
----
-76
NULL

query I rowsort
SELECT ALL 42 - 96
----
-54

query I rowsort
SELECT DISTINCT + - 47 col2
----
-47

query I rowsort
SELECT ALL - 67 - + ( 21 ) * - + 57 + - 23
----
1107

query I rowsort
SELECT - 59 col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT + + ( COALESCE ( SUM( 18 ), + 23 * - 62 * 33 * + + 52, 86, - 97 * - + 60 * + + ( 40 ) - + + 30 ) )
----
18

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + + ( COALESCE ( SUM ( 18 ), + 23 * - 62 * 33 * + + 52, 86, - 97 * - + 60 * + + ( 40 ) - + + 30 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL + COALESCE ( + 4, + + CASE 96 WHEN + + 13 THEN + 85 END, + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + COALESCE ( + 4, + + CASE 96 WHEN + + 13 THEN + 85 END, + COUNT ( * ) )
----
4

query I rowsort
SELECT DISTINCT 74 - + - 77
----
151

query I rowsort
SELECT ALL - ( 36 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT - - COUNT( * ) + - COUNT( * ) DIV 28
----
1

skipif mysql # not compatible
query I rowsort label-8102
SELECT - - COUNT ( * ) + - COUNT ( * ) / 28
----
1

query I rowsort
SELECT 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8104
SELECT + - COALESCE ( + 36, + 94 ) + - 46 + - 84 * - 54 AS col2, 49 + COUNT( * ) * - - 92
----
4454
141

skipif mysql # not compatible
query II rowsort label-8104
SELECT + - COALESCE ( + 36, + 94 ) + - 46 + - 84 * - 54 AS col2, 49 + COUNT ( * ) * - - 92
----
4454
141

query II rowsort
SELECT DISTINCT - 28 AS col1, + 90 AS col2
----
-28
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ALL + SUM( + 66 ) + - - 23 + - 22 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + SUM ( + 66 ) + - - 23 + - 22 AS col1
----
67

query II rowsort
SELECT ALL + 2 col1, 74
----
2
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8108
SELECT - - 85 * + 72 * MAX( + 21 ) * CAST( - 31 AS SIGNED ) - + 63 col1, 86
----
-3984183
86

skipif mysql # not compatible
query II rowsort label-8108
SELECT - - 85 * + 72 * MAX ( + 21 ) * CAST ( - 31 AS INTEGER ) - + 63 col1, 86
----
-3984183
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8109
SELECT ALL - CAST( - SUM( DISTINCT 52 ) AS SIGNED ) * + 19 AS col0, 1 AS col0
----
988
1

skipif mysql # not compatible
query II rowsort label-8109
SELECT ALL - CAST ( - SUM ( DISTINCT 52 ) AS INTEGER ) * + 19 AS col0, 1 AS col0
----
988
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL - CAST( NULL AS SIGNED ) + + - 92 * - 90 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 92 * - 90 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 80 + - 37
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL - COUNT( * ) + - 35 + + 18 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL - COUNT ( * ) + - 35 + + 18 AS col0
----
-18

query I rowsort
SELECT - 20 * + 82 col0
----
-1640

query I rowsort
SELECT - 79 - + + 58
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + 4 + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + 4 + COUNT ( * )
----
5

query I rowsort
SELECT ALL - 13 * + 92
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8117
SELECT ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT ALL - 13 * + - 6, + 41 * - + COUNT( * ) + + 16 - + + 41 + COUNT( * ) AS col1
----
78
-65

skipif mysql # not compatible
query II rowsort label-8118
SELECT ALL - 13 * + - 6, + 41 * - + COUNT ( * ) + + 16 - + + 41 + COUNT ( * ) AS col1
----
78
-65

query I rowsort
SELECT ( 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8120
SELECT 68 DIV COUNT( * ) - + 69 + - + 68
----
-69

skipif mysql # not compatible
query I rowsort label-8120
SELECT 68 / COUNT ( * ) - + 69 + - + 68
----
-69

query I rowsort
SELECT ( 3 ) AS col0
----
3

query I rowsort
SELECT DISTINCT + 15 AS col1
----
15

query I rowsort
SELECT DISTINCT + - 36 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT + - COUNT( * ) * - - 73 + + 63 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8124
SELECT + - COUNT ( * ) * - - 73 + + 63 AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT ALL - COUNT( * ) DIV - 75 + - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - COUNT ( * ) / - 75 + - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT + MIN( DISTINCT 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + MIN ( DISTINCT 87 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT ALL - - 17 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - - 17 / - 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT 46 * - MAX( ALL + 18 ) * + - 78 * - 26 * - + 75 + CAST( NULL AS SIGNED ) / - + 45 * - + CAST( - 8 AS SIGNED ) + + 34 + + 40 + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT 46 * - MAX ( ALL + 18 ) * + - 78 * - 26 * - + 75 + CAST ( NULL AS INTEGER ) / - + 45 * - + CAST ( - 8 AS INTEGER ) + + 34 + + 40 + + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8129
SELECT - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT - 50 + - MIN( DISTINCT 38 ) * - - 96 DIV - 48 * - ( - + COUNT( * ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8130
SELECT - 50 + - MIN ( DISTINCT 38 ) * - - 96 / - 48 * - ( - + COUNT ( * ) ) AS col0
----
26

query II rowsort
SELECT ALL 3 * + - 77, 76 + + + 98 * + 53 + - 87 AS col1
----
-231
5183

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT + + COUNT( * ) + - 29 AS col1, - 68 * - + 88
----
-28
5984

skipif mysql # not compatible
query II rowsort label-8132
SELECT + + COUNT ( * ) + - 29 AS col1, - 68 * - + 88
----
-28
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT DISTINCT 61 * 9 * + ( + COUNT( * ) ) AS col0
----
549

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT 61 * 9 * + ( + COUNT ( * ) ) AS col0
----
549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN ( - + 82 ) * - 35 THEN - + ( 94 ) ELSE - 72 * + 61 * MAX( DISTINCT - 73 ) * - 54 + + 5 END
----
-17313259

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN ( - + 82 ) * - 35 THEN - + ( 94 ) ELSE - 72 * + 61 * MAX ( DISTINCT - 73 ) * - 54 + + 5 END
----
-17313259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT DISTINCT + 8 * - 86 * - - 62 * 20 * + CASE 87 WHEN + 77 THEN NULL WHEN + 33 / 36 THEN - - 90 * + - CAST( NULL AS SIGNED ) * + 82 * - 47 ELSE NULL END + COUNT( * ) + 64 + 76 + - COUNT( * ) * 83 * - COUNT( * ) * - 78 / + 44 * - + 48 * + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + 8 * - 86 * - - 62 * 20 * + CASE 87 WHEN + 77 THEN NULL WHEN + 33 / 36 THEN - - 90 * + - CAST ( NULL AS INTEGER ) * + 82 * - 47 ELSE NULL END + COUNT ( * ) + 64 + 76 + - COUNT ( * ) * 83 * - COUNT ( * ) * - 78 / + 44 * - + 48 * + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT DISTINCT - + 59 * + + 62 * + 7 + + COUNT( * ) DIV 99 + COUNT( * )
----
-25605

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - + 59 * + + 62 * + 7 + + COUNT ( * ) / 99 + COUNT ( * )
----
-25605

query I rowsort
SELECT ALL - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + + SUM( ALL + 82 ) * + 58
----
4756

skipif mysql # not compatible
query I rowsort label-8138
SELECT + + SUM ( ALL + 82 ) * + 58
----
4756

query I rowsort
SELECT + 36 + 19 * 45 AS col2
----
891

onlyif mysql # DIV for integer division: 
query II rowsort label-8140
SELECT ALL 35 AS col0, 44 DIV + + 64 col2
----
35
0

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL 35 AS col0, 44 / + + 64 col2
----
35
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT + 57 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-8141
SELECT + 57 / - 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - COUNT( * ) + 7
----
6

skipif mysql # not compatible
query I rowsort label-8142
SELECT - COUNT ( * ) + 7
----
6

query II rowsort
SELECT - 91 AS col1, - 47 AS col1
----
-91
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8144
SELECT ALL CAST( NULL AS SIGNED ) + 66 + + - 39 + SUM( ALL + + 92 ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL CAST ( NULL AS INTEGER ) + 66 + + - 39 + SUM ( ALL + + 92 ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 97 col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT ALL NULLIF ( - + 31, + 7 * - 42 / - - 77 + - 83 * + - ( 83 ) + - 5 + 14 * COUNT( * ) / - MIN( ALL - 52 ) ) AS col0, + 46 col0
----
-31
46

skipif mysql # not compatible
query II rowsort label-8146
SELECT ALL NULLIF ( - + 31, + 7 * - 42 / - - 77 + - 83 * + - ( 83 ) + - 5 + 14 * COUNT ( * ) / - MIN ( ALL - 52 ) ) AS col0, + 46 col0
----
-31
46

query I rowsort
SELECT ALL 3 + - 51 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8148
SELECT ALL CASE + 92 WHEN CAST( NULL AS SIGNED ) * - - 58 THEN NULL WHEN - - COUNT( * ) THEN ( + - ( - - 6 ) ) + + 75 * 36 ELSE NULL END + + CAST( - ( + 93 ) AS SIGNED ) + 55, 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-8148
SELECT ALL CASE + 92 WHEN CAST ( NULL AS INTEGER ) * - - 58 THEN NULL WHEN - - COUNT ( * ) THEN ( + - ( - - 6 ) ) + + 75 * 36 ELSE NULL END + + CAST ( - ( + 93 ) AS INTEGER ) + 55, 68 AS col0
----
NULL
68

query I rowsort
SELECT DISTINCT ( 78 ) AS col1
----
78

query I rowsort
SELECT ALL + 72 + + 1 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT COUNT( DISTINCT 5 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT COUNT ( DISTINCT 5 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8152
SELECT ALL COUNT( * ) AS col0, 90
----
1
90

skipif mysql # not compatible
query II rowsort label-8152
SELECT ALL COUNT ( * ) AS col0, 90
----
1
90

query I rowsort
SELECT - NULLIF ( 96, - - 42 ) + - 78 * 57
----
-4542

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL CASE + COALESCE ( + MAX( 66 ), 23 ) WHEN + 9 THEN NULL ELSE 19 END
----
19

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL CASE + COALESCE ( + MAX ( 66 ), 23 ) WHEN + 9 THEN NULL ELSE 19 END
----
19

query I rowsort
SELECT + 37 * + 11
----
407

query I rowsort
SELECT + 77 col1
----
77

query I rowsort
SELECT 66 + + - 16 AS col1
----
50

query I rowsort
SELECT ALL - ( + + 16 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL - SUM( 16 ) * - + 57 AS col1
----
912

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - SUM ( 16 ) * - + 57 AS col1
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8160
SELECT ( + 35 ) * - 67 + + 65 + + CAST( - 45 AS SIGNED ), - 77 AS col0
----
-2325
-77

skipif mysql # not compatible
query II rowsort label-8160
SELECT ( + 35 ) * - 67 + + 65 + + CAST ( - 45 AS INTEGER ), - 77 AS col0
----
-2325
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT + - 27 - - - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT + - 27 - - - COUNT ( * )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT + COUNT( ALL - + 11 ) * + CAST( NULL AS SIGNED ) + + ( 54 ) * - + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT + COUNT ( ALL - + 11 ) * + CAST ( NULL AS INTEGER ) + + ( 54 ) * - + 6 AS col1
----
NULL

query I rowsort
SELECT 50 * + + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT 37 * - COUNT( * ) * + 72
----
-2664

skipif mysql # not compatible
query I rowsort label-8164
SELECT 37 * - COUNT ( * ) * + 72
----
-2664

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT + ( + 36 ) DIV 92 + 92 col1
----
92

skipif mysql # not compatible
query I rowsort label-8165
SELECT + ( + 36 ) / 92 + 92 col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT ( + - COUNT( * ) ) / + CAST( NULL AS SIGNED ) * + NULLIF ( + CAST( NULL AS SIGNED ), SUM( DISTINCT 56 ) + - + 86 - + ( + 1 ) * - ( 15 ) * + + 52 - 53 ) / + ( - - CAST( - 0 AS SIGNED ) ) * + 9 * - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT ( + - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) * + NULLIF ( + CAST ( NULL AS INTEGER ), SUM ( DISTINCT 56 ) + - + 86 - + ( + 1 ) * - ( 15 ) * + + 52 - 53 ) / + ( - - CAST ( - 0 AS INTEGER ) ) * + 9 * - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT DISTINCT - COUNT( * ) * + ( 59 ) * - 4 AS col0
----
236

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT - COUNT ( * ) * + ( 59 ) * - 4 AS col0
----
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT + NULLIF ( + COUNT( * ), - - CAST( NULL AS SIGNED ) * - + 84 - - 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8168
SELECT + NULLIF ( + COUNT ( * ), - - CAST ( NULL AS INTEGER ) * - + 84 - - 97 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL + - 14 + - COUNT( ALL + 81 ) + + - 32 * - 88
----
2801

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + - 14 + - COUNT ( ALL + 81 ) + + - 32 * - 88
----
2801

query I rowsort
SELECT + - 19
----
-19

query I rowsort
SELECT DISTINCT + 87 + - 85
----
2

query I rowsort
SELECT ALL - - ( - 4 ) AS col2
----
-4

query I rowsort
SELECT DISTINCT - + 85 + + + 66 AS col1
----
-19

query II rowsort
SELECT DISTINCT - + 58 AS col2, - 28
----
-58
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8175
SELECT ALL ( CAST( - 76 AS SIGNED ) ) + + COUNT( DISTINCT + 34 ) DIV + + 98 + - - COUNT( * ) + + 56 * + 11 AS col1
----
541

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL ( CAST ( - 76 AS INTEGER ) ) + + COUNT ( DISTINCT + 34 ) / + + 98 + - - COUNT ( * ) + + 56 * + 11 AS col1
----
541

query I rowsort
SELECT ALL - - ( + - 93 ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT - 51 DIV - + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT - 51 / - + 77 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 75 * - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8178
SELECT 75 * - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT MIN( DISTINCT + ( + 89 ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8179
SELECT MIN ( DISTINCT + ( + 89 ) ) AS col1
----
89

query I rowsort
SELECT - - NULLIF ( + 41, - + 63 / 66 + + - COALESCE ( - 91, 43 ) ) AS col0
----
41

query I rowsort
SELECT ALL + 13 + - 17 AS col2
----
-4

query I rowsort
SELECT DISTINCT + 3 + - 55 AS col0
----
-52

query I rowsort
SELECT ALL - 40 * ( - + 45 ) AS col2
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT ALL + CASE - 50 WHEN - ( + 13 ) + - 68 THEN ( 82 ) WHEN + 87 THEN NULL WHEN + MIN( ALL + - 13 ) * - 29 THEN NULL ELSE NULL END - AVG ( ALL - 31 ) * - 72 AS col1, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-8184
SELECT ALL + CASE - 50 WHEN - ( + 13 ) + - 68 THEN ( 82 ) WHEN + 87 THEN NULL WHEN + MIN ( ALL + - 13 ) * - 29 THEN NULL ELSE NULL END - AVG ( ALL - 31 ) * - 72 AS col1, 75
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL 44 - + MAX( ( - 78 ) ) + + 2
----
124

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL 44 - + MAX ( ( - 78 ) ) + + 2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT MIN( - 54 ) * + + 54 AS col1
----
-2916

skipif mysql # not compatible
query I rowsort label-8186
SELECT MIN ( - 54 ) * + + 54 AS col1
----
-2916

onlyif mysql # aggregate syntax: 
query II rowsort label-8187
SELECT 76 + COUNT( * ) * + + SUM( ALL 0 ), ( + 34 ) * + 55 AS col0
----
76
1870

skipif mysql # not compatible
query II rowsort label-8187
SELECT 76 + COUNT ( * ) * + + SUM ( ALL 0 ), ( + 34 ) * + 55 AS col0
----
76
1870

query I rowsort
SELECT DISTINCT 19
----
19

query I rowsort
SELECT DISTINCT 43 * - 30 col0
----
-1290

query II rowsort
SELECT ( 71 ) * + 26 + - 74 AS col0, - 54 AS col1
----
1772
-54

query I rowsort
SELECT ALL 89 * - + 10 AS col2
----
-890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT DISTINCT 7 * + CAST( 47 AS SIGNED ) AS col2
----
329

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT 7 * + CAST ( 47 AS INTEGER ) AS col2
----
329

query I rowsort
SELECT DISTINCT - 75 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-8194
SELECT - 66 DIV + 31 AS col0, + 41 AS col2
----
-2
41

skipif mysql # not compatible
query II rowsort label-8194
SELECT - 66 / + 31 AS col0, + 41 AS col2
----
-2
41

query I rowsort
SELECT ALL - - 36
----
36

query I rowsort
SELECT 5 * 91 AS col2
----
455

query I rowsort
SELECT + 75 * + + ( 18 )
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + COUNT( * ) * - 54 + 90
----
36

skipif mysql # not compatible
query I rowsort label-8198
SELECT + COUNT ( * ) * - 54 + 90
----
36

query I rowsort
SELECT 82 - - 85 + 66 col2
----
233

query I rowsort
SELECT - ( - - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8201
SELECT - 41 - + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT - 41 - + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 16 AS col2
----
-16

query I rowsort
SELECT DISTINCT + 16 + 32
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL 25 + + COUNT( * ) * 77
----
102

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL 25 + + COUNT ( * ) * 77
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL - - COUNT( ALL - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - - COUNT ( ALL - 75 )
----
1

query I rowsort
SELECT + + 21 col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT DISTINCT - ( - ( ( - - 44 ) ) ) col2, - ( + - COUNT( * ) ) * + - ( COUNT( - 55 ) ) + 54
----
44
53

skipif mysql # not compatible
query II rowsort label-8207
SELECT DISTINCT - ( - ( ( - - 44 ) ) ) col2, - ( + - COUNT ( * ) ) * + - ( COUNT ( - 55 ) ) + 54
----
44
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + 3 + - 53 + 13 * + + 74 * COUNT( * ) * - 36 + - - 50 + 3 AS col2
----
-34629

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + 3 + - 53 + 13 * + + 74 * COUNT ( * ) * - 36 + - - 50 + 3 AS col2
----
-34629

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT + COUNT( ALL 37 ) - + + 22 col0
----
-21

skipif mysql # not compatible
query I rowsort label-8209
SELECT + COUNT ( ALL 37 ) - + + 22 col0
----
-21

query I rowsort
SELECT ALL + 92 * - - 79
----
7268

query I rowsort
SELECT + - 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + 48 + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8212
SELECT + 48 + COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL + COUNT( * ) + 95 * + - COUNT( ALL + - 38 ) - - 16 DIV - - 42 - - - NULLIF ( - + 96, + + ( COUNT( * ) ) ) * - 31 - - + 64 * 8
----
-2558

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + COUNT ( * ) + 95 * + - COUNT ( ALL + - 38 ) - - 16 / - - 42 - - - NULLIF ( - + 96, + + ( COUNT ( * ) ) ) * - 31 - - + 64 * 8
----
-2558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8214
SELECT + ( + - 0 ) AS col1, CAST( NULL AS SIGNED ) + + COUNT( * )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8214
SELECT + ( + - 0 ) AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
0
NULL

query I rowsort
SELECT 23 + 12 * 86
----
1055

query I rowsort
SELECT DISTINCT NULLIF ( + 23, + + COALESCE ( + - 57, + 50 ) + 59 )
----
23

query I rowsort
SELECT 90 * 23 + 74 col1
----
2144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT CASE + ( - 28 ) WHEN - 59 THEN NULL WHEN 41 * - COUNT( + ( - - 36 ) ) THEN NULL ELSE - 7 END DIV + - ( - + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT CASE + ( - 28 ) WHEN - 59 THEN NULL WHEN 41 * - COUNT ( + ( - - 36 ) ) THEN NULL ELSE - 7 END / + - ( - + 82 )
----
0

query I rowsort
SELECT 31 * - + 63 * ( + 41 ) AS col0
----
-80073

query I rowsort
SELECT ALL + 9 * - 84
----
-756

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT ALL - 54 - - CASE - 56 WHEN SUM( ALL - 1 ) THEN + + 67 / 37 + - - 45 END, 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-8221
SELECT ALL - 54 - - CASE - 56 WHEN SUM ( ALL - 1 ) THEN + + 67 / 37 + - - 45 END, 64 AS col0
----
NULL
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT 50 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT 50 / + 82 AS col1
----
0

query I rowsort
SELECT - 31 + - 69
----
-100

query I rowsort
SELECT ALL 2 * - 10 AS col1
----
-20

query I rowsort
SELECT ALL + 9 * - 70 * 40 * 25
----
-630000

query I rowsort
SELECT DISTINCT NULLIF ( + 40, + + 58 * - 29 )
----
40

query I rowsort
SELECT ALL CASE - 98 WHEN 50 THEN NULL WHEN + 33 THEN NULL ELSE 0 END AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT + CAST( 76 AS SIGNED ) - - - 70 col0
----
6

skipif mysql # not compatible
query I rowsort label-8228
SELECT + CAST ( 76 AS INTEGER ) - - - 70 col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT + 54 + - 36 * CAST( NULL AS SIGNED ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 54 + - 36 * CAST ( NULL AS INTEGER ) + - 27
----
NULL

query I rowsort
SELECT - - 59 * 81
----
4779

query I rowsort
SELECT ALL 42 + - 59 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT + COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT 68 DIV + 79 + - - 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8233
SELECT 68 / + 79 + - - 52 AS col2
----
52

query I rowsort
SELECT DISTINCT + + 65 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL + + COALESCE ( - CAST( - 8 AS SIGNED ), 65 * - - 99 ) * 23 + 44
----
228

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + + COALESCE ( - CAST ( - 8 AS INTEGER ), 65 * - - 99 ) * 23 + 44
----
228

query I rowsort
SELECT + 39 + 32 * 97 AS col1
----
3143

query I rowsort
SELECT ALL + - 13
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8238
SELECT - + 31 * COUNT( * ) * - CAST( NULL AS SIGNED ) * - - COALESCE ( - CASE + 35 WHEN - COUNT( * ) + - 78 THEN NULL ELSE - COUNT( * ) * + ( + 68 ) END, - 61 / 83, - 96 ) / + 63 * + CASE - AVG ( - 47 ) WHEN + - 89 THEN + CASE 51 WHEN + 82 THEN NULL ELSE 45 END END + - MAX( ALL + - NULLIF ( - + 74, 40 - + 55 ) ) + COUNT( * ) * 26 * 2 * - ( - 12 ) AS col0, - 24 AS col2
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-8238
SELECT - + 31 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - COALESCE ( - CASE + 35 WHEN - COUNT ( * ) + - 78 THEN NULL ELSE - COUNT ( * ) * + ( + 68 ) END, - 61 / 83, - 96 ) / + 63 * + CASE - AVG ( - 47 ) WHEN + - 89 THEN + CASE 51 WHEN + 82 THEN NULL ELSE 45 END END + - MAX ( ALL + - NULLIF ( - + 74, 40 - + 55 ) ) + COUNT ( * ) * 26 * 2 * - ( - 12 ) AS col0, - 24 AS col2
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + MAX( ALL - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8239
SELECT + MAX ( ALL - 14 ) AS col0
----
-14

query I rowsort
SELECT ALL + + 49 AS col2
----
49

query I rowsort
SELECT + - 57 * - + 18 - - 93 * - 97 + 15 * - 87
----
-9300

query I rowsort
SELECT - - 52 + + 37 - + - 19 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + CASE 5 WHEN + 19 + + 18 * + + 81 THEN - 0 WHEN - - 79 + COUNT( * ) * 60 + 53 + - + 30 * - 34 * + ( 45 ) THEN + 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + CASE 5 WHEN + 19 + + 18 * + + 81 THEN - 0 WHEN - - 79 + COUNT ( * ) * 60 + 53 + - + 30 * - 34 * + ( 45 ) THEN + 95 END AS col2
----
NULL

query I rowsort
SELECT + 42 * - 65 * + 15 * + 5 col2
----
-204750

query I rowsort
SELECT DISTINCT + + 81 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8246
SELECT ALL + - 99, - 85 * - CAST( NULL AS SIGNED ) + - 22 + - ( + COUNT( - 68 ) ) * - + 56 AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-8246
SELECT ALL + - 99, - 85 * - CAST ( NULL AS INTEGER ) + - 22 + - ( + COUNT ( - 68 ) ) * - + 56 AS col0
----
-99
NULL

query I rowsort
SELECT ALL + 51 * 12 * 88 - 39 AS col0
----
53817

query I rowsort
SELECT DISTINCT + 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8249
SELECT + 84, 87 - - + CAST( CAST( - 1 AS SIGNED ) AS SIGNED ) + + 27 + - + COUNT( * ) AS col0
----
84
112

skipif mysql # not compatible
query II rowsort label-8249
SELECT + 84, 87 - - + CAST ( CAST ( - 1 AS INTEGER ) AS INTEGER ) + + 27 + - + COUNT ( * ) AS col0
----
84
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL + COUNT( + 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + COUNT ( + 85 ) AS col1
----
1

query II rowsort
SELECT + 42 AS col2, + 6
----
42
6

query I rowsort
SELECT + ( - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT COUNT( 58 ) col1, - 18 + - 45 AS col2
----
1
-63

skipif mysql # not compatible
query II rowsort label-8253
SELECT COUNT ( 58 ) col1, - 18 + - 45 AS col2
----
1
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8254
SELECT COUNT( * ) AS col0, 89 + 65 - - 57 + - 81
----
1
130

skipif mysql # not compatible
query II rowsort label-8254
SELECT COUNT ( * ) AS col0, 89 + 65 - - 57 + - 81
----
1
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL + 86 * ( - 26 ) * CAST( + 19 AS SIGNED ) AS col1
----
-42484

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + 86 * ( - 26 ) * CAST ( + 19 AS INTEGER ) AS col1
----
-42484

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + COUNT( * ) * - 18 * - 42
----
756

skipif mysql # not compatible
query I rowsort label-8256
SELECT + COUNT ( * ) * - 18 * - 42
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT - CAST( NULL AS SIGNED ) * 2 * - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT - CAST ( NULL AS INTEGER ) * 2 * - - 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8258
SELECT COUNT( * ) AS col1, 94 col0
----
1
94

skipif mysql # not compatible
query II rowsort label-8258
SELECT COUNT ( * ) AS col1, 94 col0
----
1
94

query I rowsort
SELECT ALL CASE + - 13 WHEN + + 29 THEN + 12 WHEN - + 88 THEN NULL ELSE + - 64 END
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT NULLIF ( - + 72, - MAX( + 58 ) + - CAST( NULL AS SIGNED ) * + - ( 0 ) + + NULLIF ( + ( + + 22 ), 33 ) + - 47 ) * + 70 - + - 64 + - 92 * - 90 * + 85 * + COUNT( * )
----
698824

skipif mysql # not compatible
query I rowsort label-8260
SELECT NULLIF ( - + 72, - MAX ( + 58 ) + - CAST ( NULL AS INTEGER ) * + - ( 0 ) + + NULLIF ( + ( + + 22 ), 33 ) + - 47 ) * + 70 - + - 64 + - 92 * - 90 * + 85 * + COUNT ( * )
----
698824

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT - 8 + - - COUNT( * ) - + MAX( ALL - + CASE 91 WHEN - 97 THEN NULL ELSE 53 END ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8261
SELECT - 8 + - - COUNT ( * ) - + MAX ( ALL - + CASE 91 WHEN - 97 THEN NULL ELSE 53 END ) AS col2
----
46

query I rowsort
SELECT DISTINCT NULLIF ( + - 19, - 4 + 65 )
----
-19

query I rowsort
SELECT ALL - 23 * - + 29 AS col1
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + 96 + - + COUNT( * ) * 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + 96 + - + COUNT ( * ) * 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - COUNT( - + 65 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8265
SELECT - COUNT ( - + 65 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT - COALESCE ( + 23, + + 26 * 43 DIV MIN( - 86 ) ) * - 88
----
2024

skipif mysql # not compatible
query I rowsort label-8266
SELECT - COALESCE ( + 23, + + 26 * 43 / MIN ( - 86 ) ) * - 88
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8267
SELECT - 54 + - ( - + CAST( - - CAST( - 76 AS SIGNED ) AS SIGNED ) ) + - - 84, 91 * 7 AS col1
----
-46
637

skipif mysql # not compatible
query II rowsort label-8267
SELECT - 54 + - ( - + CAST ( - - CAST ( - 76 AS INTEGER ) AS INTEGER ) ) + - - 84, 91 * 7 AS col1
----
-46
637

query I rowsort
SELECT DISTINCT + 78 + 84
----
162

query I rowsort
SELECT ALL - 24 * 39
----
-936

query I rowsort
SELECT + 30 + - 53 + + 40 AS col0
----
17

query I rowsort
SELECT - - 71 * + - ( - - 91 )
----
-6461

query I rowsort
SELECT DISTINCT - 60 * + + 49 AS col2
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL + - 95 + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + - 95 + COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT ALL + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT 58 + 45 + + + 25 + MIN( DISTINCT + 30 )
----
158

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT 58 + 45 + + + 25 + MIN ( DISTINCT + 30 )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL + ( + + COUNT( * ) ) * 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + ( + + COUNT ( * ) ) * 95 AS col1
----
95

query II rowsort
SELECT DISTINCT 57 AS col1, + 74
----
57
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT ALL + COUNT( * ) + + + MIN( - + 33 ) * + 55 * + 67 + - - 6, + 2 AS col0
----
-121598
2

skipif mysql # not compatible
query II rowsort label-8278
SELECT ALL + COUNT ( * ) + + + MIN ( - + 33 ) * + 55 * + 67 + - - 6, + 2 AS col0
----
-121598
2

query II rowsort
SELECT ALL + + 20 AS col0, 39 * + 24 AS col1
----
20
936

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT DISTINCT - 77 DIV + 71 + 39 + - + 44 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - 77 / + 71 + 39 + - + 44 AS col1
----
-6

query II rowsort
SELECT DISTINCT + + 38, 78 col1
----
38
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT - 12 * + 17 + + MIN( - 30 ) - - 57 + 70 * + - COUNT( * ) + + - CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN NULL ELSE 51 END + 53 * + 47
----
2193

skipif mysql # not compatible
query I rowsort label-8282
SELECT - 12 * + 17 + + MIN ( - 30 ) - - 57 + 70 * + - COUNT ( * ) + + - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN NULL ELSE 51 END + 53 * + 47
----
2193

query I rowsort
SELECT - + 95 - + - 56
----
-39

query I rowsort
SELECT ALL 70 * - 17 AS col1
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL + COUNT( ALL 76 )
----
1

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + COUNT ( ALL 76 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT DISTINCT ( - ( - + 48 ) ) * + - 68 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT ( - ( - + 48 ) ) * + - 68 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 45 * 61 col0
----
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT SUM( DISTINCT 43 ) * + - 12 * - COALESCE ( - 61, 75 + - 56, - 76 * 33 ) AS col1
----
-31476

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT SUM ( DISTINCT 43 ) * + - 12 * - COALESCE ( - 61, 75 + - 56, - 76 * 33 ) AS col1
----
-31476

query II rowsort
SELECT 27 * - 15 + 83 AS col2, - 45 AS col2
----
-322
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT + 38 DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-8290
SELECT + 38 / - 25
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT + COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-8291
SELECT + COUNT ( * ) * + 92
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT 67 / + COUNT( * ) / + CASE 94 WHEN 37 * - 72 / 14 THEN NULL WHEN + 40 * + - 97 THEN 2 * - CAST( + 73 AS SIGNED ) + - ( - 24 ) - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT 67 / + COUNT ( * ) / + CASE 94 WHEN 37 * - 72 / 14 THEN NULL WHEN + 40 * + - 97 THEN 2 * - CAST ( + 73 AS INTEGER ) + - ( - 24 ) - 83 END
----
NULL

query I rowsort
SELECT 89 * + + 97
----
8633

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT COUNT( DISTINCT - 4 ) + - 83 AS col2, 13 AS col2
----
-82
13

skipif mysql # not compatible
query II rowsort label-8294
SELECT COUNT ( DISTINCT - 4 ) + - 83 AS col2, 13 AS col2
----
-82
13

query I rowsort
SELECT ALL - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8296
SELECT COALESCE ( 8, 61 * + 77 - + + 65 ) * + COUNT( DISTINCT + 51 ) DIV + 84 * + ( + 54 ) + - 49 - 36 + + 84 + + 74 + MAX( ALL ( 36 ) ) AS col2, 55 + - 49
----
109
6

skipif mysql # not compatible
query II rowsort label-8296
SELECT COALESCE ( 8, 61 * + 77 - + + 65 ) * + COUNT ( DISTINCT + 51 ) / + 84 * + ( + 54 ) + - 49 - 36 + + 84 + + 74 + MAX ( ALL ( 36 ) ) AS col2, 55 + - 49
----
109
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL - COUNT( DISTINCT - + 73 ) * - 79 * + - 22 AS col1
----
-1738

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL - COUNT ( DISTINCT - + 73 ) * - 79 * + - 22 AS col1
----
-1738

query I rowsort
SELECT 76 * - - COALESCE ( 53, 38 ) AS col0
----
4028

query I rowsort
SELECT ALL 90 + + - ( - 72 )
----
162

query I rowsort
SELECT DISTINCT 25 + - 98 + - 82 * - + 41 AS col1
----
3289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT DISTINCT 84 + + - 14 + - - 2 * - + 56 * + 33 / - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - - 11 + - AVG ( - + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT 84 + + - 14 + - - 2 * - + 56 * + 33 / - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - - 11 + - AVG ( - + 13 )
----
NULL

query I rowsort
SELECT 66 * + 77 col2
----
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT 1 * + - NULLIF ( + - SUM( + 28 ), - - 16 + + 36 )
----
28

skipif mysql # not compatible
query I rowsort label-8303
SELECT 1 * + - NULLIF ( + - SUM ( + 28 ), - - 16 + + 36 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT - 47 + + COUNT( * ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT - 47 + + COUNT ( * ) col1
----
-46

query I rowsort
SELECT DISTINCT 78 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT 91 + - COALESCE ( - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ), - + 26 )
----
91

skipif mysql # not compatible
query I rowsort label-8306
SELECT 91 + - COALESCE ( - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ), - + 26 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT 24 + - + COUNT( DISTINCT - + 31 ) * NULLIF ( + ( - - 2 ), + 9 ) * - + 54 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT 24 + - + COUNT ( DISTINCT - + 31 ) * NULLIF ( + ( - - 2 ), + 9 ) * - + 54 AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT ALL + SUM( DISTINCT - + 45 ) AS col1, CASE - 75 WHEN + - 4 THEN 65 + + 73 * 23 ELSE NULL END * - 7 * - + 32 AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL + SUM ( DISTINCT - + 45 ) AS col1, CASE - 75 WHEN + - 4 THEN 65 + + 73 * 23 ELSE NULL END * - 7 * - + 32 AS col0
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ( + COUNT( * ) ) + 23 * + 33 AS col0
----
760

skipif mysql # not compatible
query I rowsort label-8309
SELECT ( + COUNT ( * ) ) + 23 * + 33 AS col0
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT + + 43 + - 98 + - - 11 + + - COUNT( * ) * + + 75 * - 42
----
3106

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT + + 43 + - 98 + - - 11 + + - COUNT ( * ) * + + 75 * - 42
----
3106

query I rowsort
SELECT - + 27
----
-27

query II rowsort
SELECT DISTINCT - - 13 + - 38 AS col0, - ( - 20 )
----
-25
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT + 79 - 36 + - - 94 * - 30 * + + COUNT( * ) AS col2
----
-2777

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT + 79 - 36 + - - 94 * - 30 * + + COUNT ( * ) AS col2
----
-2777

query I rowsort
SELECT - 88 + - 98
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8315
SELECT + 10 + - 83 + - 89 * - COUNT( * ) DIV + - COUNT( * )
----
-162

skipif mysql # not compatible
query I rowsort label-8315
SELECT + 10 + - 83 + - 89 * - COUNT ( * ) / + - COUNT ( * )
----
-162

query I rowsort
SELECT 98 * 83
----
8134

query I rowsort
SELECT + 84 * + 29
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8318
SELECT - 79 DIV + 69 + + 57 + SUM( CAST( + - 92 AS SIGNED ) ) + - + 81 * + 56 col0, + 0 + - 33
----
-4572
-33

skipif mysql # not compatible
query II rowsort label-8318
SELECT - 79 / + 69 + + 57 + SUM ( CAST ( + - 92 AS INTEGER ) ) + - + 81 * + 56 col0, + 0 + - 33
----
-4572
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT + 37 + + - 84 DIV + + MAX( - 66 )
----
38

skipif mysql # not compatible
query I rowsort label-8319
SELECT + 37 + + - 84 / + + MAX ( - 66 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL SUM( DISTINCT + 51 ) - - + COUNT( DISTINCT - 19 )
----
52

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL SUM ( DISTINCT + 51 ) - - + COUNT ( DISTINCT - 19 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT 67 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT 67 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT - NULLIF ( - - 19, CASE + 96 WHEN + - SUM( ALL - 23 ) THEN + 42 END * - SUM( 20 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - NULLIF ( - - 19, CASE + 96 WHEN + - SUM ( ALL - 23 ) THEN + 42 END * - SUM ( 20 ) )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8324
SELECT 27 AS col2, CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-8324
SELECT 27 AS col2, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0
----
27
NULL

query I rowsort
SELECT DISTINCT - 9 AS col1
----
-9

query I rowsort
SELECT 44 * - - COALESCE ( + 18, - - 87 * - 87 * + + 10, + - 33 )
----
792

query I rowsort
SELECT 80 + + + 75
----
155

query II rowsort
SELECT + 40 AS col2, + 70
----
40
70

query I rowsort
SELECT ALL 27 * - + 41 AS col0
----
-1107

query I rowsort
SELECT + 94 col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT ALL - CAST( + 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - CAST ( + 7 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT - MIN( DISTINCT + + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT - MIN ( DISTINCT + + 33 )
----
-33

query I rowsort
SELECT 70 * + + 81 * - 52 col1
----
-294840

query I rowsort
SELECT ALL 79 * - 49
----
-3871

query I rowsort
SELECT 62 col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL 49 + MAX( + 19 )
----
68

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL 49 + MAX ( + 19 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL 73 + - + MAX( - - 37 )
----
36

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL 73 + - + MAX ( - - 37 )
----
36

query I rowsort
SELECT 60 - 57 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT CASE - 47 WHEN ( 75 ) THEN 4 WHEN - + 85 / - 90 THEN NULL END * + ( + 95 ) * + COUNT( * ) + - + 12 + - + CASE + + 25 WHEN - - 51 THEN NULL WHEN - 62 THEN + 39 WHEN - 36 * + 6 THEN - - COUNT( * ) * + 75 END + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT CASE - 47 WHEN ( 75 ) THEN 4 WHEN - + 85 / - 90 THEN NULL END * + ( + 95 ) * + COUNT ( * ) + - + 12 + - + CASE + + 25 WHEN - - 51 THEN NULL WHEN - 62 THEN + 39 WHEN - 36 * + 6 THEN - - COUNT ( * ) * + 75 END + 60
----
NULL

query I rowsort
SELECT ALL 43 * 11 AS col2
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL 37 + - 93 * - COUNT( * ) col1
----
130

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL 37 + - 93 * - COUNT ( * ) col1
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT ALL COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL COUNT ( * ) / - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8343
SELECT - COUNT( * ), 93 * + COUNT( * ) + - 87 + NULLIF ( - - 81, 90 * - 31 ) AS col2
----
-1
87

skipif mysql # not compatible
query II rowsort label-8343
SELECT - COUNT ( * ), 93 * + COUNT ( * ) + - 87 + NULLIF ( - - 81, 90 * - 31 ) AS col2
----
-1
87

query II rowsort
SELECT 81 AS col1, - NULLIF ( - - 40, + - 57 ) AS col1
----
81
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT MAX( DISTINCT + + 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT MAX ( DISTINCT + + 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT DISTINCT - + 78 * - + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT - + 78 * - + COUNT ( * ) AS col0
----
78

query I rowsort
SELECT ALL 80 - + 10
----
70

query I rowsort
SELECT ALL - 19 * - 53 AS col2
----
1007

query I rowsort
SELECT + NULLIF ( + 9, - + 68 * + + 4 ) + + + ( - 57 ) AS col1
----
-48

query I rowsort
SELECT DISTINCT + 8 - - 76
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL MAX( 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL MAX ( 89 ) AS col1
----
89

query I rowsort
SELECT 63 col1
----
63

query II rowsort
SELECT + 42 + - - 46 + - - 62 + 0 - - 58 * ( + 50 ) * 21, 96 AS col0
----
61050
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT 34 - + COUNT( * ) + - 41 * - - 92 * + 45
----
-169707

skipif mysql # not compatible
query I rowsort label-8354
SELECT 34 - + COUNT ( * ) + - 41 * - - 92 * + 45
----
-169707

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL - 75 * + 17 + + COUNT( * ) AS col1
----
-1274

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - 75 * + 17 + + COUNT ( * ) AS col1
----
-1274

query I rowsort
SELECT + 85 * + + 14
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8357
SELECT ALL + - 36 * + CAST( NULL AS SIGNED ) * + 6 col1, COUNT( * ) + - - 72 + - 93 AS col1
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-8357
SELECT ALL + - 36 * + CAST ( NULL AS INTEGER ) * + 6 col1, COUNT ( * ) + - - 72 + - 93 AS col1
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + NULLIF ( - SUM( ALL - 81 ), - 4 * - + NULLIF ( + 27, - 37 ) )
----
81

skipif mysql # not compatible
query I rowsort label-8358
SELECT + NULLIF ( - SUM ( ALL - 81 ), - 4 * - + NULLIF ( + 27, - 37 ) )
----
81

query I rowsort
SELECT - - 44
----
44

query I rowsort
SELECT ALL + 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT DISTINCT NULLIF ( + ( + + COUNT( - 39 ) ), 76 + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT NULLIF ( + ( + + COUNT ( - 39 ) ), 76 + 40 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT DISTINCT + CASE 88 WHEN + 4 THEN 55 WHEN + 5 * 1 + - - 61 * + CAST( NULL AS SIGNED ) * - COALESCE ( + ( - + 89 ), 33 * - - COALESCE ( + + ( + + 48 ), - + 47 ) + ( - 50 ) * - + 91 ) THEN NULL ELSE - 30 END DIV + - 57 col0
----
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT + CASE 88 WHEN + 4 THEN 55 WHEN + 5 * 1 + - - 61 * + CAST ( NULL AS INTEGER ) * - COALESCE ( + ( - + 89 ), 33 * - - COALESCE ( + + ( + + 48 ), - + 47 ) + ( - 50 ) * - + 91 ) THEN NULL ELSE - 30 END / + - 57 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - COUNT( * ) * + + 23
----
-23

skipif mysql # not compatible
query I rowsort label-8363
SELECT - COUNT ( * ) * + + 23
----
-23

query I rowsort
SELECT + ( + 56 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT ALL + 32 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + 32 / + 39
----
0

query I rowsort
SELECT ALL - + 32 col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL 93 * COUNT( * ) * + 51 + + - COUNT( * )
----
4742

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL 93 * COUNT ( * ) * + 51 + + - COUNT ( * )
----
4742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT - COALESCE ( - 29, - + 28 DIV - + 25 * + MAX( DISTINCT - 16 ) ) - - 1
----
30

skipif mysql # not compatible
query I rowsort label-8368
SELECT - COALESCE ( - 29, - + 28 / - + 25 * + MAX ( DISTINCT - 16 ) ) - - 1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT NULLIF ( - 74, + 27 + 80 * 78 + - 39 + - 10 ) * 44 + + COALESCE ( - - 83, + CAST( NULL AS SIGNED ) ) + COUNT( * ) + - 91 * + 26 + 19 - - 72
----
-5447

skipif mysql # not compatible
query I rowsort label-8369
SELECT NULLIF ( - 74, + 27 + 80 * 78 + - 39 + - 10 ) * 44 + + COALESCE ( - - 83, + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + - 91 * + 26 + 19 - - 72
----
-5447

onlyif mysql # DIV for integer division: 
query II rowsort label-8370
SELECT DISTINCT 61 * - NULLIF ( + COALESCE ( - - 70, + 11 * - - COALESCE ( 83, 30 ), + 65, - - 47 DIV + - 11 ), + 27 ) + + 92 * + - 91 AS col1, 97
----
-12642
97

skipif mysql # not compatible
query II rowsort label-8370
SELECT DISTINCT 61 * - NULLIF ( + COALESCE ( - - 70, + 11 * - - COALESCE ( 83, 30 ), + 65, - - 47 / + - 11 ), + 27 ) + + 92 * + - 91 AS col1, 97
----
-12642
97

query I rowsort
SELECT DISTINCT + NULLIF ( - 29, - 15 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 56
----
NULL

query I rowsort
SELECT DISTINCT 5 * ( + 76 ) + - 42
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT + 46 * 39 + + COUNT( * ) AS col0
----
1795

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + 46 * 39 + + COUNT ( * ) AS col0
----
1795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT - 37 - + CAST( - + 89 AS SIGNED ) + - - 23 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8375
SELECT - 37 - + CAST ( - + 89 AS INTEGER ) + - - 23 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - COUNT( * ) + + 43
----
42

skipif mysql # not compatible
query I rowsort label-8376
SELECT - COUNT ( * ) + + 43
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8377
SELECT - 73 * MIN( ALL - 52 ) / 3 - + - CAST( NULL AS SIGNED ) / + 11 + - + 22, + 38 col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-8377
SELECT - 73 * MIN ( ALL - 52 ) / 3 - + - CAST ( NULL AS INTEGER ) / + 11 + - + 22, + 38 col1
----
NULL
38

query I rowsort
SELECT + 61 AS col2
----
61

query I rowsort
SELECT DISTINCT + ( + - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL + ( - 27 ) * 98 + - 84 + CASE 32 WHEN - - CASE 6 WHEN 19 THEN - 78 WHEN - + 78 THEN NULL END + - MAX( + 96 ) THEN + COUNT( * ) - + + 68 END * - 59 / - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL + ( - 27 ) * 98 + - 84 + CASE 32 WHEN - - CASE 6 WHEN 19 THEN - 78 WHEN - + 78 THEN NULL END + - MAX ( + 96 ) THEN + COUNT ( * ) - + + 68 END * - 59 / - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL + COALESCE ( COALESCE ( - 85, - 35 + - 51 * - - ( + 87 ) * + 49 + - - 28 - - + 23, COALESCE ( + + COUNT( * ), + - CASE - 73 WHEN MIN( ALL - 36 ) + - COUNT( * ) + + 32 THEN NULL ELSE + - COUNT( * ) * - MAX( ALL 24 ) + + + NULLIF ( + 86, - - 97 ) * 50 END ) * - + 35 ), ( - 90 ) * 48 * 7 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + COALESCE ( COALESCE ( - 85, - 35 + - 51 * - - ( + 87 ) * + 49 + - - 28 - - + 23, COALESCE ( + + COUNT ( * ), + - CASE - 73 WHEN MIN ( ALL - 36 ) + - COUNT ( * ) + + 32 THEN NULL ELSE + - COUNT ( * ) * - MAX ( ALL 24 ) + + + NULLIF ( + 86, - - 97 ) * 50 END ) * - + 35 ), ( - 90 ) * 48 * 7 ) AS col1
----
-85

query I rowsort
SELECT DISTINCT + ( - 77 )
----
-77

query I rowsort
SELECT ALL 26 AS col1
----
26

query I rowsort
SELECT ALL + 2 - 66 + + 0 AS col0
----
-64

query I rowsort
SELECT DISTINCT - 38 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT ALL - 79 * + CAST( NULL AS SIGNED ) + + - MIN( DISTINCT + 69 ) + 50 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL - 79 * + CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT + 69 ) + 50 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT - CAST( + 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8387
SELECT - CAST ( + 2 AS INTEGER )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT + + 10 + + - CAST( - 29 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-8388
SELECT + + 10 + + - CAST ( - 29 AS INTEGER )
----
39

query I rowsort
SELECT + - ( 11 ) * + 60 * + - 97 * - 69 * 5 col1
----
-22086900

query I rowsort
SELECT + 39 * - + 34
----
-1326

query I rowsort
SELECT + 83 * - 73 AS col2
----
-6059

query I rowsort
SELECT - - 79 AS col0
----
79

query II rowsort
SELECT DISTINCT COALESCE ( - 39, 11, 23 ), + 64 AS col2
----
-39
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT ALL 36 DIV 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL 36 / 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL + SUM( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + SUM ( - 58 )
----
-58

query I rowsort
SELECT ALL + 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + + ( - 67 ) + CASE WHEN NULL IN ( 40, + 65 / + 66 * + - SUM( 37 ), + ( 14 ), - 75 ) THEN + + COUNT( * ) * - 12 ELSE NULL END / - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT + + ( - 67 ) + CASE WHEN NULL IN ( 40, + 65 / + 66 * + - SUM ( 37 ), + ( 14 ), - 75 ) THEN + + COUNT ( * ) * - 12 ELSE NULL END / - 66
----
NULL

query II rowsort
SELECT + + 67 + - 76, 88 + 89 AS col2
----
-9
177

query I rowsort
SELECT ALL - 3 * + 69 * - 30 AS col2
----
6210

query I rowsort
SELECT - 55 + - 74 AS col1
----
-129

query I rowsort
SELECT - + ( + 32 ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL ( - - MAX( DISTINCT - - 43 ) ) + + - COUNT( * ) + - + ( + 14 ) - + COALESCE ( - 20, - 93 ) * - 59 AS col0
----
-1152

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL ( - - MAX ( DISTINCT - - 43 ) ) + + - COUNT ( * ) + - + ( + 14 ) - + COALESCE ( - 20, - 93 ) * - 59 AS col0
----
-1152

query I rowsort
SELECT - 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT - 83 * COUNT( * ) + + - 91 + NULLIF ( + + COUNT( * ), + COUNT( - 44 ) * MAX( 64 ) / + 23 ) * - 83 * - 42, - 45 AS col1
----
3312
-45

skipif mysql # not compatible
query II rowsort label-8404
SELECT - 83 * COUNT ( * ) + + - 91 + NULLIF ( + + COUNT ( * ), + COUNT ( - 44 ) * MAX ( 64 ) / + 23 ) * - 83 * - 42, - 45 AS col1
----
3312
-45

query I rowsort
SELECT ALL + NULLIF ( 47, 15 + - 80 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8406
SELECT NULLIF ( + + CAST( NULL AS DECIMAL ), + - NULLIF ( - 1, - 26 - + 5 ) ) * - 36 / + 90 + + 51 * + - MAX( - + 33 ) + + 77 * + 48 AS col0, - 96 AS col1
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-8406
SELECT NULLIF ( + + CAST ( NULL AS REAL ), + - NULLIF ( - 1, - 26 - + 5 ) ) * - 36 / + 90 + + 51 * + - MAX ( - + 33 ) + + 77 * + 48 AS col0, - 96 AS col1
----
NULL
-96

query I rowsort
SELECT ALL + ( 39 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8408
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) * + - 45 * + CASE ( + ( - ( 83 ) ) ) WHEN - 95 THEN NULL ELSE - 73 END AS col2, - 2 + + 30 col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8408
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + - 45 * + CASE ( + ( - ( 83 ) ) ) WHEN - 95 THEN NULL ELSE - 73 END AS col2, - 2 + + 30 col0
----
NULL
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8409
SELECT ALL + CAST( - 36 AS SIGNED ) DIV COUNT( * ) * + 15 + + COUNT( * ) + + - COUNT( * ) AS col1
----
-540

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + CAST ( - 36 AS INTEGER ) / COUNT ( * ) * + 15 + + COUNT ( * ) + + - COUNT ( * ) AS col1
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT - CAST( - ( + 70 ) AS SIGNED ) * 86 * 3 * + - 83 * + - 3 + - 66
----
4496874

skipif mysql # not compatible
query I rowsort label-8410
SELECT - CAST ( - ( + 70 ) AS INTEGER ) * 86 * 3 * + - 83 * + - 3 + - 66
----
4496874

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT + 45 AS col1, + 57 + 98 + - COUNT( NULLIF ( - - 45, + 56 ) ) AS col2
----
45
154

skipif mysql # not compatible
query II rowsort label-8411
SELECT + 45 AS col1, + 57 + 98 + - COUNT ( NULLIF ( - - 45, + 56 ) ) AS col2
----
45
154

query I rowsort
SELECT ( - 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8413
SELECT ( COUNT ( * ) ) col0
----
1

query I rowsort
SELECT + 26 * - 20
----
-520

onlyif mysql # aggregate syntax: 
query II rowsort label-8415
SELECT ( SUM( + - 41 ) ) col2, 47 + + + 90 + 45
----
-41
182

skipif mysql # not compatible
query II rowsort label-8415
SELECT ( SUM ( + - 41 ) ) col2, 47 + + + 90 + 45
----
-41
182

query I rowsort
SELECT DISTINCT - 88 * - 98
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT - COUNT( DISTINCT + 15 ) * 89 + - 81 + - 20 * - COUNT( * ) - - 36
----
-114

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - COUNT ( DISTINCT + 15 ) * 89 + - 81 + - 20 * - COUNT ( * ) - - 36
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT ALL 66 DIV + MIN( DISTINCT 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL 66 / + MIN ( DISTINCT 42 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT - 78 DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-8419
SELECT - 78 / + 28
----
-2

query I rowsort
SELECT DISTINCT - 88 * - 29 AS col2
----
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8421
SELECT COALESCE ( COUNT( * ), + 73 + - + CAST( - COUNT( * ) AS SIGNED ) + - COUNT( DISTINCT - 80 ) + - 27 + - 55 * + - 80 + 97 ), + 87 + - COALESCE ( - SUM( - ( 15 ) ), 63 ) AS col2
----
1
72

skipif mysql # not compatible
query II rowsort label-8421
SELECT COALESCE ( COUNT ( * ), + 73 + - + CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( DISTINCT - 80 ) + - 27 + - 55 * + - 80 + 97 ), + 87 + - COALESCE ( - SUM ( - ( 15 ) ), 63 ) AS col2
----
1
72

query I rowsort
SELECT DISTINCT + ( + 76 ) AS col1
----
76

query I rowsort
SELECT + 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT - 24 * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8424
SELECT - 24 * COUNT ( * )
----
-24

query I rowsort
SELECT ALL + ( + 89 )
----
89

query I rowsort
SELECT - 36 * - 40
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT - 31 * 97 + 6 * - CAST( 5 / + 24 AS SIGNED )
----
-3007

skipif mysql # not compatible
query I rowsort label-8427
SELECT - 31 * 97 + 6 * - CAST ( 5 / + 24 AS INTEGER )
----
-3007

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT NULLIF ( + 24, 86 )
----
24

query I rowsort
SELECT + 18 + - 65 AS col0
----
-47

query I rowsort
SELECT - 88 * 4 AS col0
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT + CASE + 18 WHEN 37 THEN COUNT( 14 ) WHEN MAX( ALL - 32 ) THEN + COUNT( * ) + 92 END * CASE + 51 * 32 WHEN 69 + 92 * - 27 THEN + 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT + CASE + 18 WHEN 37 THEN COUNT ( 14 ) WHEN MAX ( ALL - 32 ) THEN + COUNT ( * ) + 92 END * CASE + 51 * 32 WHEN 69 + 92 * - 27 THEN + 92 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 90 )
----
90

query I rowsort
SELECT DISTINCT 35 * 53
----
1855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT ALL - MIN( + 84 ) DIV ( - 97 * + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL - MIN ( + 84 ) / ( - 97 * + 14 )
----
0

query I rowsort
SELECT - 58 * + 4 AS col2
----
-232

query I rowsort
SELECT ALL 70 * 14
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT - ( + 64 ) * - CASE - 3 WHEN COUNT( * ) THEN SUM( 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - ( + 64 ) * - CASE - 3 WHEN COUNT ( * ) THEN SUM ( 78 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + MAX( - 79 ) + + 34 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8439
SELECT + MAX ( - 79 ) + + 34 AS col1
----
-45

query I rowsort
SELECT - ( 38 )
----
-38

query I rowsort
SELECT ALL 16 * 63
----
1008

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT 35 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT 35 / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT 70 + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8443
SELECT 70 + COUNT ( * )
----
71

query I rowsort
SELECT ALL 34 + + 76 AS col1
----
110

query I rowsort
SELECT ALL 10 + 41 AS col2
----
51

query I rowsort
SELECT DISTINCT 69 + + 26
----
95

query I rowsort
SELECT ALL 23 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT DISTINCT 4 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT 4 / + 45
----
0

query I rowsort
SELECT ALL 56 + 0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT NULLIF ( 90, COALESCE ( 80, 67 * - 64, - COUNT( * ) ) - 99 * 97 ) * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT NULLIF ( 90, COALESCE ( 80, 67 * - 64, - COUNT ( * ) ) - 99 * 97 ) * COUNT ( * )
----
90

query I rowsort
SELECT 69 + 0 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL 20 - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 20 - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL 96 - - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL 96 - - COUNT ( * ) AS col2
----
97

query I rowsort
SELECT 85 - - 59
----
144

query I rowsort
SELECT 21 * 20
----
420

query I rowsort
SELECT DISTINCT 14 * + 62
----
868

query I rowsort
SELECT DISTINCT 25 * 52
----
1300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT 38 DIV - COUNT( * ) + - 35 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8458
SELECT 38 / - COUNT ( * ) + - 35 AS col1
----
-73

query I rowsort
SELECT ALL 60 * 14
----
840

query I rowsort
SELECT 11 * - 1 AS col0
----
-11

query I rowsort
SELECT DISTINCT - 81 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT ALL - CASE COUNT( * ) WHEN + 40 THEN CAST( - 26 AS SIGNED ) * + 84 WHEN ( AVG ( 83 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL - CASE COUNT ( * ) WHEN + 40 THEN CAST ( - 26 AS INTEGER ) * + 84 WHEN ( AVG ( 83 ) ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT DISTINCT - 48 DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - 48 / + 65 AS col1
----
0

query I rowsort
SELECT 73 col2
----
73

query I rowsort
SELECT 39 * 16 + 15
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT 30 - MIN( + 68 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8466
SELECT 30 - MIN ( + 68 ) AS col2
----
-38

query I rowsort
SELECT 0 * 66 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8468
SELECT DISTINCT - SUM( DISTINCT + 88 ) DIV 85 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - SUM ( DISTINCT + 88 ) / 85 AS col1
----
-1

query I rowsort
SELECT + 38 * - 59 AS col2
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - COUNT( * ) + 16 * 33 AS col2
----
527

skipif mysql # not compatible
query I rowsort label-8470
SELECT - COUNT ( * ) + 16 * 33 AS col2
----
527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL - - CAST( - 18 AS SIGNED ) * - 83 AS col1
----
1494

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - - CAST ( - 18 AS INTEGER ) * - 83 AS col1
----
1494

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT MIN( ALL 68 ) + + 50
----
118

skipif mysql # not compatible
query I rowsort label-8472
SELECT MIN ( ALL 68 ) + + 50
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT + 21 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT + 21 / - 30
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT ALL - + ( 71 ) * CAST( 51 + 89 AS SIGNED ) AS col2
----
-9940

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - + ( 71 ) * CAST ( 51 + 89 AS INTEGER ) AS col2
----
-9940

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT DISTINCT 30 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT 30 / - 32 AS col1
----
0

query I rowsort
SELECT ALL + 97 * 1
----
97

query I rowsort
SELECT 50 * + 91 AS col2
----
4550

query I rowsort
SELECT + 70 * 46 + + 97
----
3317

query I rowsort
SELECT ALL + 27 * + 76
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT + - COUNT( * ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + - COUNT ( * ) * - 77
----
77

query I rowsort
SELECT ALL - 5 + - 92
----
-97

query I rowsort
SELECT DISTINCT - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - + 49 * COUNT( 79 )
----
-49

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - + 49 * COUNT ( 79 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT 29 + COUNT( * ) col1
----
30

skipif mysql # not compatible
query I rowsort label-8484
SELECT 29 + COUNT ( * ) col1
----
30

query I rowsort
SELECT + ( - 85 ) * + 61
----
-5185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT 88 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT 88 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 54 + 67
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT ALL + ( 70 ) + + 49 DIV 61
----
70

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL + ( 70 ) + + 49 / 61
----
70

query I rowsort
SELECT ALL - 78 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT - - COUNT ( * ) col1
----
1

query I rowsort
SELECT + 77 + - 88 col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL + - NULLIF ( 65, + COUNT( * ) + - 23 ) + - 44
----
-109

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + - NULLIF ( 65, + COUNT ( * ) + - 23 ) + - 44
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL - - 74 * COUNT( ALL - 59 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - - 74 * COUNT ( ALL - 59 ) AS col1
----
74

query I rowsort
SELECT - 4 + - 93
----
-97

query I rowsort
SELECT ALL 43 + 73 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL MAX( ( 72 ) ) + + 81 * + 76 AS col2
----
6228

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL MAX ( ( 72 ) ) + + 81 * + 76 AS col2
----
6228

query I rowsort
SELECT ALL - 5 * + 13 AS col1
----
-65

query I rowsort
SELECT 58 col2
----
58

query I rowsort
SELECT DISTINCT - 87 * + 94
----
-8178

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL + 33 - - - COUNT( * ) + 78
----
110

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + 33 - - - COUNT ( * ) + 78
----
110

query I rowsort
SELECT 79 * - 26 AS col2
----
-2054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT 85 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT 85 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 48 AS col0
----
48

query I rowsort
SELECT ALL - 59 AS col0
----
-59

query I rowsort
SELECT 95 + - + 95 * - 1
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL COUNT( * ) * + 59 - - NULLIF ( - 11 + + COALESCE ( 68, 78 ), 17 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL COUNT ( * ) * + 59 - - NULLIF ( - 11 + + COALESCE ( 68, 78 ), 17 ) AS col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT ALL COUNT( * ) DIV - 10 * 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL COUNT ( * ) / - 10 * 64 AS col0
----
0

query I rowsort
SELECT - 98 * - + 99 + + 11
----
9713

query I rowsort
SELECT ALL + 87 * - 21 - + 95
----
-1922

query I rowsort
SELECT DISTINCT - ( + 43 ) AS col0
----
-43

query I rowsort
SELECT ALL 43 * - - 95 * + 28 AS col0
----
114380

query I rowsort
SELECT ALL - 56 col1
----
-56

query I rowsort
SELECT DISTINCT - 62 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT SUM( 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8514
SELECT SUM ( 53 ) AS col2
----
53

query I rowsort
SELECT 39 + - 21 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL 7 * + + MAX( DISTINCT - 39 ) * + COUNT( * )
----
-273

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL 7 * + + MAX ( DISTINCT - 39 ) * + COUNT ( * )
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT 45 * + NULLIF ( MIN( ALL 47 ), + ( + COUNT( * ) ) + - 26 * + 14 ) AS col2
----
2115

skipif mysql # not compatible
query I rowsort label-8517
SELECT 45 * + NULLIF ( MIN ( ALL 47 ), + ( + COUNT ( * ) ) + - 26 * + 14 ) AS col2
----
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + MAX( DISTINCT 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8518
SELECT + MAX ( DISTINCT 65 ) AS col2
----
65

query I rowsort
SELECT ALL - - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL + COUNT( * ) + + 67 col0
----
68

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL + COUNT ( * ) + + 67 col0
----
68

query I rowsort
SELECT ALL 19 * + 66 AS col2
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT - 9 + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - 9 + + COUNT ( * )
----
-8

query I rowsort
SELECT ALL - - 2 AS col0
----
2

query I rowsort
SELECT ALL 42 + 59 * - ( + 69 )
----
-4029

query I rowsort
SELECT ALL - + 26 + + + 3 + 73 col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT + COUNT( * ) DIV - 12 * ( 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8526
SELECT + COUNT ( * ) / - 12 * ( 99 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT + 30 - - 41 + CAST( 80 AS SIGNED ) * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8527
SELECT + 30 - - 41 + CAST ( 80 AS INTEGER ) * - COUNT ( * )
----
-9

query I rowsort
SELECT + 57 col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL - COUNT( * ) + SUM( - 20 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - COUNT ( * ) + SUM ( - 20 ) AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-8530
SELECT CAST ( + 77 AS INTEGER )
----
77

query I rowsort
SELECT - - ( - + 40 ) AS col2
----
-40

query I rowsort
SELECT + 75 * 72
----
5400

query I rowsort
SELECT DISTINCT 44 + + 73 + 16
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL 49 / - + CASE 86 WHEN COUNT( * ) * SUM( 94 ) + 54 THEN + SUM( ALL 22 ) WHEN COUNT( * ) THEN 9 * 24 WHEN ( + MAX( + 94 ) ) * 88 + + 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL 49 / - + CASE 86 WHEN COUNT ( * ) * SUM ( 94 ) + 54 THEN + SUM ( ALL 22 ) WHEN COUNT ( * ) THEN 9 * 24 WHEN ( + MAX ( + 94 ) ) * 88 + + 97 THEN NULL END
----
NULL

query I rowsort
SELECT - - 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL + - 9 + - ( + 31 ) * + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL + - 9 + - ( + 31 ) * + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT - ( - MIN( 88 ) ) * ( COUNT( + 4 ) * 42 ) col2
----
3696

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - ( - MIN ( 88 ) ) * ( COUNT ( + 4 ) * 42 ) col2
----
3696

query I rowsort
SELECT ALL 71 * - 90 col1
----
-6390

query I rowsort
SELECT - - 53 * + 23
----
1219

query I rowsort
SELECT DISTINCT - + 80 * + 96 - - 79
----
-7601

query I rowsort
SELECT ALL + 64 - + + 49
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT - 27 * - 56 DIV COUNT( * ) AS col0
----
1512

skipif mysql # not compatible
query I rowsort label-8542
SELECT - 27 * - 56 / COUNT ( * ) AS col0
----
1512

query II rowsort
SELECT 6 col0, - 20 AS col1
----
6
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL COALESCE ( + 29, + + 70 * + COUNT( * ), - COUNT( * ) * - NULLIF ( - 38, - 21 * + 30 ) + 59 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL COALESCE ( + 29, + + 70 * + COUNT ( * ), - COUNT ( * ) * - NULLIF ( - 38, - 21 * + 30 ) + 59 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT - 44 AS col0, - 27 * + MIN( 76 ) + MAX( DISTINCT 40 + 89 )
----
-44
-1923

skipif mysql # not compatible
query II rowsort label-8545
SELECT - 44 AS col0, - 27 * + MIN ( 76 ) + MAX ( DISTINCT 40 + 89 )
----
-44
-1923

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL MAX( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL MAX ( + 38 )
----
38

query I rowsort
SELECT ALL ( + 15 ) AS col1
----
15

query I rowsort
SELECT DISTINCT NULLIF ( - - 48, 60 + - ( - 68 + 23 ) ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT ALL + 75 DIV - 80 col2
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + 75 / - 80 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL COALESCE ( 73, - COUNT( - 6 ) * 34 )
----
73

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL COALESCE ( 73, - COUNT ( - 6 ) * 34 )
----
73

query I rowsort
SELECT ( + + 20 ) AS col0
----
20

query I rowsort
SELECT - 95 + - 72
----
-167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8553
SELECT + 1 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT + 1 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL + 39 * - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL + 39 * - COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT ( + 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT + COUNT( * ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT + COUNT ( * ) / - 83
----
0

query I rowsort
SELECT DISTINCT + ( - - 63 ) AS col1
----
63

query I rowsort
SELECT - 89 - - - 65 AS col2
----
-154

query I rowsort
SELECT ALL + 17 * + 79 + 44
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + ( + ( + COUNT( ALL 42 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + ( + ( + COUNT ( ALL 42 ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8561
SELECT ALL + ( + 19 ) * NULLIF ( + ( - MIN( ALL + 15 ) ), + 16 * 21 ) + + 25 + COALESCE ( - MIN( DISTINCT ( 55 ) ), SUM( DISTINCT ( ( + 60 ) ) ) DIV 80, - 48 ) AS col2
----
-315

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + ( + 19 ) * NULLIF ( + ( - MIN ( ALL + 15 ) ), + 16 * 21 ) + + 25 + COALESCE ( - MIN ( DISTINCT ( 55 ) ), SUM ( DISTINCT ( ( + 60 ) ) ) / 80, - 48 ) AS col2
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT 91 * 64 * SUM( 46 ) AS col2
----
267904

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT 91 * 64 * SUM ( 46 ) AS col2
----
267904

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + 61 + + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 61 + + COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT COUNT( ALL + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-8564
SELECT COUNT ( ALL + 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT 30 * - + 46 * + - 73 + + 57 + COUNT( * ) AS col2
----
100798

skipif mysql # not compatible
query I rowsort label-8565
SELECT 30 * - + 46 * + - 73 + + 57 + COUNT ( * ) AS col2
----
100798

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT + - 25 - - + COUNT( * ) + + 53 + 5 * + 87 AS col0
----
464

skipif mysql # not compatible
query I rowsort label-8566
SELECT + - 25 - - + COUNT ( * ) + + 53 + 5 * + 87 AS col0
----
464

query I rowsort
SELECT ALL + 69 AS col2
----
69

query I rowsort
SELECT - 46 AS col1
----
-46

query I rowsort
SELECT + + 46 * 42 + 3 * + 92
----
2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8570
SELECT ALL COUNT( + 11 ) * - - 37 + 59 DIV 35 + - 10
----
28

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL COUNT ( + 11 ) * - - 37 + 59 / 35 + - 10
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT + 86 * - COUNT( * ) + + 60
----
-26

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + 86 * - COUNT ( * ) + + 60
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT DISTINCT - 3 * - + 90 + + 1 + CASE COUNT( * ) WHEN 15 THEN NULL WHEN 52 THEN 94 / 92 + - 33 * + 58 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT - 3 * - + 90 + + 1 + CASE COUNT ( * ) WHEN 15 THEN NULL WHEN 52 THEN 94 / 92 + - 33 * + 58 END col2
----
NULL

query I rowsort
SELECT ALL CASE + 39 WHEN - CASE 50 WHEN - 92 THEN 93 ELSE NULL END THEN NULL WHEN - 11 * - 8 THEN 43 ELSE NULL END * AVG ( 22 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 26 * 11 col0
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT ALL COUNT( - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL COUNT ( - 14 )
----
1

query II rowsort
SELECT - 70, 59 - 86 + 20 * 42 AS col1
----
-70
813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8578
SELECT DISTINCT 78 * - 38 - + + COUNT( * ) DIV - 72
----
-2964

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT 78 * - 38 - + + COUNT ( * ) / - 72
----
-2964

query I rowsort
SELECT ALL ( + + 29 )
----
29

query I rowsort
SELECT + + 38 * - 47 AS col0
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + COUNT( * ) + + - COUNT( * ) + + 29 + 41
----
70

skipif mysql # not compatible
query I rowsort label-8581
SELECT + COUNT ( * ) + + - COUNT ( * ) + + 29 + 41
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8582
SELECT DISTINCT 9 - - 12, + 99 * NULLIF ( - 79, AVG ( 19 ) + - MAX( DISTINCT 95 ) ) AS col1
----
21
-7821

skipif mysql # not compatible
query II rowsort label-8582
SELECT DISTINCT 9 - - 12, + 99 * NULLIF ( - 79, AVG ( 19 ) + - MAX ( DISTINCT 95 ) ) AS col1
----
21
-7821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8583
SELECT DISTINCT + ( + + MIN( DISTINCT - 1 ) ) - - 4 + + NULLIF ( + COUNT( * ), + 16 * MIN( + 72 ) ) DIV + 24 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + ( + + MIN ( DISTINCT - 1 ) ) - - 4 + + NULLIF ( + COUNT ( * ), + 16 * MIN ( + 72 ) ) / + 24 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT COUNT( * ) * + - ( + + 69 ) * 54 * 97 + 69
----
-361353

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT COUNT ( * ) * + - ( + + 69 ) * 54 * 97 + 69
----
-361353

query I rowsort
SELECT ALL ( + 68 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8586
SELECT - 32 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-8586
SELECT - 32 / + 49
----
0

query I rowsort
SELECT ALL NULLIF ( + 85, 99 ) * - 48
----
-4080

query I rowsort
SELECT DISTINCT 96 * - - 53 * + 23 * - 89
----
-10415136

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8589
SELECT - 8 * 43 AS col2, CAST( NULL AS DECIMAL ) AS col1
----
-344
NULL

skipif mysql # not compatible
query II rowsort label-8589
SELECT - 8 * 43 AS col2, CAST ( NULL AS REAL ) AS col1
----
-344
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8590
SELECT DISTINCT COALESCE ( COUNT( * ), - - ( ( 15 ) ) DIV CASE - 30 WHEN 66 THEN NULL WHEN + 95 THEN + CASE COUNT( + ( + 21 ) ) WHEN 86 THEN - 25 WHEN 75 THEN 1 - - 41 DIV + 92 END * 49 WHEN - 51 THEN NULL ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT COALESCE ( COUNT ( * ), - - ( ( 15 ) ) / CASE - 30 WHEN 66 THEN NULL WHEN + 95 THEN + CASE COUNT ( + ( + 21 ) ) WHEN 86 THEN - 25 WHEN 75 THEN 1 - - 41 / + 92 END * 49 WHEN - 51 THEN NULL ELSE NULL END )
----
1

query I rowsort
SELECT ALL + 70 * 23
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL COALESCE ( COUNT( * ), + COUNT( * ) * 1 + MAX( DISTINCT ( 49 ) + 65 * 78 ), 3 * - 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL COALESCE ( COUNT ( * ), + COUNT ( * ) * 1 + MAX ( DISTINCT ( 49 ) + 65 * 78 ), 3 * - 0 ) AS col1
----
1

query I rowsort
SELECT - 2 + - 76
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + 72 * - NULLIF ( + COUNT( * ), - - 33 * - SUM( ALL 95 ) ) * + 27
----
-1944

skipif mysql # not compatible
query I rowsort label-8594
SELECT + 72 * - NULLIF ( + COUNT ( * ), - - 33 * - SUM ( ALL 95 ) ) * + 27
----
-1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8595
SELECT - COUNT( CAST( 92 AS SIGNED ) ) + - 65 * - MIN( - 68 )
----
-4421

skipif mysql # not compatible
query I rowsort label-8595
SELECT - COUNT ( CAST ( 92 AS INTEGER ) ) + - 65 * - MIN ( - 68 )
----
-4421

query I rowsort
SELECT ALL + ( - 9 ) + 37
----
28

query I rowsort
SELECT - 66 + - - 4 AS col2
----
-62

query I rowsort
SELECT ALL + 0 col0
----
0

query I rowsort
SELECT DISTINCT + 0 / + CASE - 70 WHEN + 99 THEN - ( - 89 ) WHEN - ( - 79 ) * - 62 THEN NULL END + + 85 * - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT + SUM( DISTINCT - 32 ) * - - CASE 13 WHEN - 22 THEN 76 - 21 WHEN - 38 THEN 17 * 42 WHEN + CAST( NULL AS SIGNED ) THEN CASE + 36 WHEN - 89 * + 25 THEN NULL ELSE 58 END * - 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT + SUM ( DISTINCT - 32 ) * - - CASE 13 WHEN - 22 THEN 76 - 21 WHEN - 38 THEN 17 * 42 WHEN + CAST ( NULL AS INTEGER ) THEN CASE + 36 WHEN - 89 * + 25 THEN NULL ELSE 58 END * - 43 END AS col1
----
NULL

query I rowsort
SELECT 94 + - CASE - 35 WHEN 15 THEN 39 - 38 * - ( 99 * - 47 ) END * 21 AS col0
----
NULL

query I rowsort
SELECT ALL + - 43 * - 56 * - 82 + - 92 AS col1
----
-197548

query I rowsort
SELECT DISTINCT - + COALESCE ( + + 53, - 20 - ( + 88 ) ) AS col0
----
-53

query I rowsort
SELECT + - 96
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT - 81 + + CAST( NULL AS SIGNED ) + - 70 + + 43 * ( 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 81 + + CAST ( NULL AS INTEGER ) + - 70 + + 43 * ( 37 )
----
NULL

query I rowsort
SELECT + - 86 AS col2
----
-86

query I rowsort
SELECT ALL + 88 * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT 77 * + CASE - 66 WHEN - 75 THEN NULL ELSE NULLIF ( - 36, 38 ) + - CAST( NULL AS SIGNED ) END * + 60 + 79 / + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT 77 * + CASE - 66 WHEN - 75 THEN NULL ELSE NULLIF ( - 36, 38 ) + - CAST ( NULL AS INTEGER ) END * + 60 + 79 / + 52
----
NULL

query I rowsort
SELECT - 48 * + NULLIF ( + - 42, 84 ) + - COALESCE ( - 52, + 32, - 56 )
----
2068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT ALL - COALESCE ( - - CAST( + 51 AS SIGNED ), + 7, - 43 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - COALESCE ( - - CAST ( + 51 AS INTEGER ), + 7, - 43 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8611
SELECT + ( - 68 ) AS col2, + MIN( + 87 ) AS col2
----
-68
87

skipif mysql # not compatible
query II rowsort label-8611
SELECT + ( - 68 ) AS col2, + MIN ( + 87 ) AS col2
----
-68
87

onlyif mysql # DIV for integer division: 
query II rowsort label-8612
SELECT ALL - 33 DIV - + 65, - 58 AS col1
----
0
-58

skipif mysql # not compatible
query II rowsort label-8612
SELECT ALL - 33 / - + 65, - 58 AS col1
----
0
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8613
SELECT 96 * - 94 * - CAST( + ( MAX( DISTINCT 10 ) ) AS SIGNED ) + 76 * NULLIF ( 38 * 5, SUM( + 80 ) * ( - SUM( DISTINCT - 69 ) ) ) AS col2
----
104680

skipif mysql # not compatible
query I rowsort label-8613
SELECT 96 * - 94 * - CAST ( + ( MAX ( DISTINCT 10 ) ) AS INTEGER ) + 76 * NULLIF ( 38 * 5, SUM ( + 80 ) * ( - SUM ( DISTINCT - 69 ) ) ) AS col2
----
104680

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL COUNT( * ) * 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL COUNT ( * ) * 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + ( + 70 ) - - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8615
SELECT + ( + 70 ) - - + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT CAST( NULL AS SIGNED ) * + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT CAST ( NULL AS INTEGER ) * + + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT 73 + + + ( + - COUNT( * ) ) * - 65
----
138

skipif mysql # not compatible
query I rowsort label-8617
SELECT 73 + + + ( + - COUNT ( * ) ) * - 65
----
138

query I rowsort
SELECT + + 88 col2
----
88

query I rowsort
SELECT ALL - 32 col0
----
-32

query I rowsort
SELECT DISTINCT - + 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT COUNT( * ) * + - 68 + ( - - 59 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8621
SELECT COUNT ( * ) * + - 68 + ( - - 59 ) AS col2
----
-9

query I rowsort
SELECT - 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT - 31 col2, + 80 * - - 88 + - - 85 * + - COUNT( * )
----
-31
6955

skipif mysql # not compatible
query II rowsort label-8623
SELECT - 31 col2, + 80 * - - 88 + - - 85 * + - COUNT ( * )
----
-31
6955

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT CASE 82 WHEN - - 94 THEN - - 37 END - COUNT( * ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT CASE 82 WHEN - - 94 THEN - - 37 END - COUNT ( * ) * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT DISTINCT 91 AS col1, - NULLIF ( - - COUNT( * ), - 83 ) col0
----
91
-1

skipif mysql # not compatible
query II rowsort label-8625
SELECT DISTINCT 91 AS col1, - NULLIF ( - - COUNT ( * ), - 83 ) col0
----
91
-1

query I rowsort
SELECT - 42 AS col0
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8627
SELECT CASE 83 WHEN - + 82 THEN + CAST( NULL AS DECIMAL ) END + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT CASE 83 WHEN - + 82 THEN + CAST ( NULL AS REAL ) END + + 37
----
NULL

query I rowsort
SELECT ALL 50 col0
----
50

query I rowsort
SELECT DISTINCT 49 + 27
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT 49 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-8630
SELECT 49 / - 35
----
-1

query I rowsort
SELECT ALL 84 + - 32
----
52

query I rowsort
SELECT 20 * + 37 * 34 AS col1
----
25160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT ALL 96 + 54 + - 59 + - COUNT( * ) - - + 79 DIV + 75
----
91

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL 96 + 54 + - 59 + - COUNT ( * ) - - + 79 / + 75
----
91

query I rowsort
SELECT ALL + 39 * + 82 col2
----
3198

query I rowsort
SELECT ALL - 85 * + - 37 AS col1
----
3145

onlyif mysql # DIV for integer division: 
query I rowsort label-8636
SELECT 39 DIV 84 * - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8636
SELECT 39 / 84 * - 61 AS col1
----
0

query I rowsort
SELECT ALL 48 + - 34 - + - 29 AS col1
----
43

query I rowsort
SELECT NULLIF ( - - 33, - 56 ) + + 13 - - 81 AS col1
----
127

onlyif mysql # DIV for integer division: 
query II rowsort label-8639
SELECT 89 DIV 24 + - + 53 AS col2, 57
----
-50
57

skipif mysql # not compatible
query II rowsort label-8639
SELECT 89 / 24 + - + 53 AS col2, 57
----
-50
57

query I rowsort
SELECT + 47 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT 23 * - COUNT( * ) * 45 + - 54 * + + 12 AS col2
----
-1683

skipif mysql # not compatible
query I rowsort label-8641
SELECT 23 * - COUNT ( * ) * 45 + - 54 * + + 12 AS col2
----
-1683

query I rowsort
SELECT + - 9 * - 51 + - 69
----
390

query I rowsort
SELECT ALL + NULLIF ( - 97, + 47 + + 58 ) * - - 92 AS col0
----
-8924

onlyif mysql # DIV for integer division: 
query II rowsort label-8644
SELECT DISTINCT - 90 AS col1, - 32 DIV + 48 * - 48
----
-90
0

skipif mysql # not compatible
query II rowsort label-8644
SELECT DISTINCT - 90 AS col1, - 32 / + 48 * - 48
----
-90
0

query I rowsort
SELECT + 45 + + 30 AS col2
----
75

query I rowsort
SELECT ALL - + COALESCE ( + 93, ( 44 ) )
----
-93

query I rowsort
SELECT 11 * + 24
----
264

query I rowsort
SELECT ALL - 76 * 65
----
-4940

query I rowsort
SELECT 98 * - 73 AS col1
----
-7154

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + + 16 * - COUNT( * ) + - CASE - 29 WHEN - - 73 THEN 25 ELSE 73 END
----
-89

skipif mysql # not compatible
query I rowsort label-8650
SELECT + + 16 * - COUNT ( * ) + - CASE - 29 WHEN - - 73 THEN 25 ELSE 73 END
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-8651
SELECT DISTINCT - 43 * - + ( + 71 ), + 57 DIV - 17 AS col1
----
3053
-3

skipif mysql # not compatible
query II rowsort label-8651
SELECT DISTINCT - 43 * - + ( + 71 ), + 57 / - 17 AS col1
----
3053
-3

query I rowsort
SELECT DISTINCT - 31 AS col2
----
-31

query I rowsort
SELECT + 4 * 17 AS col0
----
68

query I rowsort
SELECT ALL - ( - + NULLIF ( - - 89, - 10 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + 48 + - + COALESCE ( + - NULLIF ( - + 12, + CASE WHEN NOT 7 IN ( 64 ) THEN 66 ELSE NULL END + + COUNT( * ) ), + 12, + 83 + + ( - CASE 68 WHEN - COUNT( * ) + COUNT( * ) THEN - 73 END + + 19 ) ) + + 41
----
77

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 48 + - + COALESCE ( + - NULLIF ( - + 12, + CASE WHEN NOT 7 IN ( 64 ) THEN 66 ELSE NULL END + + COUNT ( * ) ), + 12, + 83 + + ( - CASE 68 WHEN - COUNT ( * ) + COUNT ( * ) THEN - 73 END + + 19 ) ) + + 41
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT ALL 50 DIV - ( + ( + + 97 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL 50 / - ( + ( + + 97 ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8657
SELECT 4 DIV + - 2
----
-2

skipif mysql # not compatible
query I rowsort label-8657
SELECT 4 / + - 2
----
-2

query I rowsort
SELECT ALL - 42 + - + 11 AS col0
----
-53

query I rowsort
SELECT ALL - ( - + 97 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT DISTINCT COUNT( ALL 49 ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT COUNT ( ALL 49 ) / + 87
----
0

query I rowsort
SELECT - 51 * + - 11 - + 63 AS col1
----
498

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT MIN( DISTINCT + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT MIN ( DISTINCT + 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT ALL CAST( NULL AS SIGNED ) + - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL CAST ( NULL AS INTEGER ) + - 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT COUNT( * ) + + - ( - 71 ) + + + COUNT( DISTINCT 58 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8664
SELECT COUNT ( * ) + + - ( - 71 ) + + + COUNT ( DISTINCT 58 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8665
SELECT ALL COUNT( * ) AS col2, COALESCE ( - 94, + CAST( - - 89 AS SIGNED ) * + - 91 * 92 + 53 - + CAST( + 17 AS SIGNED ) * + CAST( NULL AS SIGNED ), + COUNT( * ) + COUNT( * ) ) * - 30 - ( 98 - - ( + 35 ) )
----
1
2687

skipif mysql # not compatible
query II rowsort label-8665
SELECT ALL COUNT ( * ) AS col2, COALESCE ( - 94, + CAST ( - - 89 AS INTEGER ) * + - 91 * 92 + 53 - + CAST ( + 17 AS INTEGER ) * + CAST ( NULL AS INTEGER ), + COUNT ( * ) + COUNT ( * ) ) * - 30 - ( 98 - - ( + 35 ) )
----
1
2687

query I rowsort
SELECT DISTINCT + 98 + 45 * - 91 AS col0
----
-3997

query I rowsort
SELECT ALL 78 + - ( 52 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT COUNT( * ) + + 98
----
99

skipif mysql # not compatible
query I rowsort label-8668
SELECT COUNT ( * ) + + 98
----
99

query I rowsort
SELECT - 30 * - 94 * + 68 AS col2
----
191760

query I rowsort
SELECT 76 col2
----
76

query II rowsort
SELECT ALL 71 AS col0, - 37 AS col1
----
71
-37

query II rowsort
SELECT 46 AS col0, 77
----
46
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT - COUNT( * ), 51 * - + 21 AS col2
----
-1
-1071

skipif mysql # not compatible
query II rowsort label-8673
SELECT - COUNT ( * ), 51 * - + 21 AS col2
----
-1
-1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT + - COUNT( * ) + 42 DIV + + 97 * - ( + 32 ) * + 14
----
-1

skipif mysql # not compatible
query I rowsort label-8674
SELECT + - COUNT ( * ) + 42 / + + 97 * - ( + 32 ) * + 14
----
-1

query I rowsort
SELECT ALL - 32 - - - 50 col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + + ( - COUNT( * ) ) * + 61 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8676
SELECT + + ( - COUNT ( * ) ) * + 61 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT + + 63 + - 78 + + CAST( NULL AS SIGNED ) - + 27 - 55 + + - COUNT( * ) * - 94 / 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT + + 63 + - 78 + + CAST ( NULL AS INTEGER ) - + 27 - 55 + + - COUNT ( * ) * - 94 / 5 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT ALL - CAST( - 37 AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - CAST ( - 37 AS INTEGER ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT - + 10, COUNT( * ) AS col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-8679
SELECT - + 10, COUNT ( * ) AS col1
----
-10
1

query II rowsort
SELECT ALL - 98, - 93 col0
----
-98
-93

query I rowsort
SELECT DISTINCT 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL SUM( ALL 88 ) * + 54 - + 15
----
4737

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL SUM ( ALL 88 ) * + 54 - + 15
----
4737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT + CAST( NULL AS SIGNED ) * + - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT + CAST ( NULL AS INTEGER ) * + - 56 AS col2
----
NULL

query I rowsort
SELECT + 43 * 9
----
387

onlyif mysql # DIV for integer division: 
query I rowsort label-8685
SELECT + ( + 31 ) DIV + - 21
----
-1

skipif mysql # not compatible
query I rowsort label-8685
SELECT + ( + 31 ) / + - 21
----
-1

query I rowsort
SELECT ALL + 5 * - - 39 + - - 3 + + ( ( - - 22 ) ) + 62 * + 48 AS col2
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - - 36 + - + ( - - ( + COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-8687
SELECT - - 36 + - + ( - - ( + COUNT ( * ) ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + + 25 * - - NULLIF ( + - 44, + CASE - 67 WHEN MAX( + 92 ) THEN NULL ELSE + 58 + 84 * + 5 END + 67 * 99 ) * 52 AS col1
----
-57200

skipif mysql # not compatible
query I rowsort label-8688
SELECT + + 25 * - - NULLIF ( + - 44, + CASE - 67 WHEN MAX ( + 92 ) THEN NULL ELSE + 58 + 84 * + 5 END + 67 * 99 ) * 52 AS col1
----
-57200

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - + COALESCE ( - 49, - - COUNT( * ) * 51 + - 32 ) * + 30 * 99
----
145530

skipif mysql # not compatible
query I rowsort label-8689
SELECT - + COALESCE ( - 49, - - COUNT ( * ) * 51 + - 32 ) * + 30 * 99
----
145530

query I rowsort
SELECT DISTINCT + - 45
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8691
SELECT ALL + CAST( NULL AS SIGNED ), + 97 col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8691
SELECT ALL + CAST ( NULL AS INTEGER ), + 97 col2
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL + + COUNT( + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + + COUNT ( + 34 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT + - NULLIF ( + 52, - - COUNT( * ) * - + 19 * + 76 / - CAST( NULL AS SIGNED ) + + ( + 73 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8693
SELECT + - NULLIF ( + 52, - - COUNT ( * ) * - + 19 * + 76 / - CAST ( NULL AS INTEGER ) + + ( + 73 ) ) AS col2
----
-52

query I rowsort
SELECT ALL + 92 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - 87 * - - CASE + + COUNT( * ) WHEN + + NULLIF ( + 27, + - ( + 3 ) + 40 * 50 ) THEN NULL WHEN + 74 THEN - 2 + 49 END + + 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 87 * - - CASE + + COUNT ( * ) WHEN + + NULLIF ( + 27, + - ( + 3 ) + 40 * 50 ) THEN NULL WHEN + 74 THEN - 2 + 49 END + + 35 col0
----
NULL

query I rowsort
SELECT ALL + - 85 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT + 44 * + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8697
SELECT + 44 * + COUNT ( * ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8698
SELECT + CAST( NULL AS SIGNED ) + 6, + CAST( NULL AS SIGNED ), - 31 AS col0
----
NULL
NULL
-31

skipif mysql # not compatible
query III rowsort label-8698
SELECT + CAST ( NULL AS INTEGER ) + 6, + CAST ( NULL AS INTEGER ), - 31 AS col0
----
NULL
NULL
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT COUNT( ALL - 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8699
SELECT COUNT ( ALL - 0 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8700
SELECT - 85 * - - 18 DIV + ( COUNT( * ) ) + 33 * - 19 col0
----
-2157

skipif mysql # not compatible
query I rowsort label-8700
SELECT - 85 * - - 18 / + ( COUNT ( * ) ) + 33 * - 19 col0
----
-2157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT - 85 * + CAST( + + 70 AS SIGNED ) * + + 8 AS col0
----
-47600

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 85 * + CAST ( + + 70 AS INTEGER ) * + + 8 AS col0
----
-47600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL - 40 * + - CAST( NULL AS SIGNED ) + - ( 64 ) + + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - 40 * + - CAST ( NULL AS INTEGER ) + - ( 64 ) + + 20 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8703
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + COUNT( * ) + 30 * - 75 + 9 - + - 35 * 63 * 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT - CAST ( NULL AS REAL ) * + COUNT ( * ) + 30 * - 75 + 9 - + - 35 * 63 * 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT 57 * - 12 * - + COUNT( ALL - CASE - 57 WHEN + 2 THEN - + 45 ELSE NULL END ) - - ( - ( + COUNT( * ) ) ) * + 41
----
-41

skipif mysql # not compatible
query I rowsort label-8704
SELECT 57 * - 12 * - + COUNT ( ALL - CASE - 57 WHEN + 2 THEN - + 45 ELSE NULL END ) - - ( - ( + COUNT ( * ) ) ) * + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL + NULLIF ( - - 53, + COUNT( * ) ) + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + NULLIF ( - - 53, + COUNT ( * ) ) + + COUNT ( * )
----
54

query II rowsort
SELECT ALL ( - + 8 ), 67 AS col2
----
-8
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT DISTINCT + 67 DIV - + 88 * - + 59
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + 67 / - + 88 * - + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL - 12 + - - MAX( - ( - 78 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - 12 + - - MAX ( - ( - 78 ) ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT DISTINCT COALESCE ( + 23, + - CAST( 40 AS SIGNED ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT COALESCE ( + 23, + - CAST ( 40 AS INTEGER ) ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8710
SELECT - COUNT( * ) DIV 30, + 58 AS col0
----
0
58

skipif mysql # not compatible
query II rowsort label-8710
SELECT - COUNT ( * ) / 30, + 58 AS col0
----
0
58

query I rowsort
SELECT ALL ( + 49 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT DISTINCT + ( + + CASE + 11 WHEN 28 THEN NULL WHEN - 18 THEN COUNT( * ) * - CASE + COUNT( * ) WHEN - 62 THEN 73 * - COUNT( CAST( + 6 AS SIGNED ) ) - 31 WHEN - 64 - 34 THEN + 16 * ( 44 ) + NULLIF ( + 4, 9 ) END * 96 + 4 + - 89 * - 50 ELSE NULL END ) / - ( + 38 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT + ( + + CASE + 11 WHEN 28 THEN NULL WHEN - 18 THEN COUNT ( * ) * - CASE + COUNT ( * ) WHEN - 62 THEN 73 * - COUNT ( CAST ( + 6 AS INTEGER ) ) - 31 WHEN - 64 - 34 THEN + 16 * ( 44 ) + NULLIF ( + 4, 9 ) END * 96 + 4 + - 89 * - 50 ELSE NULL END ) / - ( + 38 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8713
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN + CAST( NULL AS SIGNED ) END AS col1, + 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-8713
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN + CAST ( NULL AS INTEGER ) END AS col1, + 93
----
NULL
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8714
SELECT ALL CAST( - 37 AS SIGNED ), + 68 * 54 + COUNT( * ) / 62 * - - CASE - 40 WHEN 23 THEN NULL WHEN - COUNT( * ) THEN - 91 * + SUM( 21 ) WHEN + 63 + + 11 * 53 THEN NULL WHEN - 56 THEN - 2 END AS col2
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL CAST ( - 37 AS INTEGER ), + 68 * 54 + COUNT ( * ) / 62 * - - CASE - 40 WHEN 23 THEN NULL WHEN - COUNT ( * ) THEN - 91 * + SUM ( 21 ) WHEN + 63 + + 11 * 53 THEN NULL WHEN - 56 THEN - 2 END AS col2
----
-37
NULL

query I rowsort
SELECT + 59 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT COALESCE ( + 64, + + 51 * - + 63, - - 51 * + + 45 ) * + ( - MIN( 24 ) ) * ( 87 + ( + 59 ) )
----
-224256

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT COALESCE ( + 64, + + 51 * - + 63, - - 51 * + + 45 ) * + ( - MIN ( 24 ) ) * ( 87 + ( + 59 ) )
----
-224256

query I rowsort
SELECT ALL + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT DISTINCT - ( - + 0 ) AS col1, + 71 + - - COUNT( * ) * + 31
----
0
102

skipif mysql # not compatible
query II rowsort label-8718
SELECT DISTINCT - ( - + 0 ) AS col1, + 71 + - - COUNT ( * ) * + 31
----
0
102

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT + + 15 * - 93 col1, - 41 * + 24 - + 34 * + CASE + 90 WHEN + COUNT( * ) * 43 THEN - 66 + AVG ( 68 ) END col2
----
-1395
NULL

skipif mysql # not compatible
query II rowsort label-8719
SELECT + + 15 * - 93 col1, - 41 * + 24 - + 34 * + CASE + 90 WHEN + COUNT ( * ) * 43 THEN - 66 + AVG ( 68 ) END col2
----
-1395
NULL

query I rowsort
SELECT - - 45 + - - 34 * 35
----
1235

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT + - 40 - - COUNT( * ) AS col0, 99 * + 34 AS col1
----
-39
3366

skipif mysql # not compatible
query II rowsort label-8721
SELECT + - 40 - - COUNT ( * ) AS col0, 99 * + 34 AS col1
----
-39
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - + SUM( DISTINCT - - 43 ) + 5 - 52 * - + MIN( 73 )
----
3758

skipif mysql # not compatible
query I rowsort label-8722
SELECT - + SUM ( DISTINCT - - 43 ) + 5 - 52 * - + MIN ( 73 )
----
3758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT + + CAST( + 44 AS SIGNED ) col1
----
44

skipif mysql # not compatible
query I rowsort label-8723
SELECT + + CAST ( + 44 AS INTEGER ) col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT - 89 DIV - 61 * - COUNT( * ) + + + ( COUNT( + 87 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT - 89 / - 61 * - COUNT ( * ) + + + ( COUNT ( + 87 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-8725
SELECT + 59 * 73, - 46 AS col1, + 23 * - MAX( DISTINCT - ( 23 ) ) * 24 AS col0
----
4307
-46
12696

skipif mysql # not compatible
query III rowsort label-8725
SELECT + 59 * 73, - 46 AS col1, + 23 * - MAX ( DISTINCT - ( 23 ) ) * 24 AS col0
----
4307
-46
12696

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + - COALESCE ( + 72, COUNT( * ), - 33 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + - COALESCE ( + 72, COUNT ( * ), - 33 ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8727
SELECT DISTINCT + COUNT( * ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT + COUNT ( * ) / + 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8728
SELECT ALL + 93 DIV - - 16 + + - 54 + 17 * MAX( DISTINCT - 81 ) + + + 75 col0
----
-1351

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + 93 / - - 16 + + - 54 + 17 * MAX ( DISTINCT - 81 ) + + + 75 col0
----
-1351

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + - 78 * + + 35 + 84 + COUNT( * ) * - + 35 + 34
----
-2647

skipif mysql # not compatible
query I rowsort label-8729
SELECT + - 78 * + + 35 + 84 + COUNT ( * ) * - + 35 + 34
----
-2647

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT + + 88 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-8730
SELECT + + 88 / - 60
----
-1

query I rowsort
SELECT ALL + - NULLIF ( 44, 42 )
----
-44

query I rowsort
SELECT + - 51
----
-51

query I rowsort
SELECT + 44 + - 54 + - 27 - - + ( - 74 ) * + - 81 AS col0
----
5957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8734
SELECT ALL - - COUNT( * ) DIV + 93 DIV ( - 39 ) - ( + 93 ) + - + ( 50 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL - - COUNT ( * ) / + 93 / ( - 39 ) - ( + 93 ) + - + ( 50 ) AS col2
----
-143

query I rowsort
SELECT ALL + 33 * - 50 AS col2
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8736
SELECT + + CAST( NULL AS SIGNED ) / - 75 + + + 67, - 30 + + - CAST( 59 AS SIGNED ) AS col2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-8736
SELECT + + CAST ( NULL AS INTEGER ) / - 75 + + + 67, - 30 + + - CAST ( 59 AS INTEGER ) AS col2
----
NULL
-89

query I rowsort
SELECT + 90 col2
----
90

query I rowsort
SELECT + ( - 34 ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT + 27 * - NULLIF ( + ( + COALESCE ( 60, 16 * - COUNT( * ), + 61 ) ), 32 + + 37 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT + 27 * - NULLIF ( + ( + COALESCE ( 60, 16 * - COUNT ( * ), + 61 ) ), 32 + + 37 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT DISTINCT - 46 DIV - 74 + - ( + 39 ) + + 53 + + 51 + 14 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - 46 / - 74 + - ( + 39 ) + + 53 + + 51 + 14 AS col2
----
79

query I rowsort
SELECT + ( + 87 )
----
87

query I rowsort
SELECT ( - 63 ) AS col0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8743
SELECT 61 * - - COALESCE ( + + 11, ( + ( CAST( NULL AS DECIMAL ) ) ), + 90 ) + + CASE - 11 WHEN 19 THEN 33 ELSE NULL END + 10 * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT 61 * - - COALESCE ( + + 11, ( + ( CAST ( NULL AS REAL ) ) ), + 90 ) + + CASE - 11 WHEN 19 THEN 33 ELSE NULL END + 10 * 56
----
NULL

query I rowsort
SELECT ( + 18 )
----
18

query I rowsort
SELECT ALL 79 * - + 48
----
-3792

query I rowsort
SELECT + 49 + + 92 AS col0
----
141

query I rowsort
SELECT CASE - + 33 WHEN - 3 THEN NULL ELSE 63 END AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL + NULLIF ( - 30, - COUNT( * ) / 4 + + + 14 ) * COUNT( * ) + + 21
----
-9

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + NULLIF ( - 30, - COUNT ( * ) / 4 + + + 14 ) * COUNT ( * ) + + 21
----
-9

query I rowsort
SELECT ALL - 36 * - - 34 + 93
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT 19 + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8750
SELECT 19 + - COUNT ( * )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT 58 * - + 51 * - 76 * COALESCE ( COUNT( * ), + CAST( - + 3 AS SIGNED ) )
----
224808

skipif mysql # not compatible
query I rowsort label-8751
SELECT 58 * - + 51 * - 76 * COALESCE ( COUNT ( * ), + CAST ( - + 3 AS INTEGER ) )
----
224808

query I rowsort
SELECT ALL + 81 - + 54 + - - 31 + + 63
----
121

query I rowsort
SELECT 45 + + 85
----
130

query I rowsort
SELECT 48 * - 67 AS col1
----
-3216

query I rowsort
SELECT DISTINCT 21 AS col2
----
21

query II rowsort
SELECT ALL 25, 25
----
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT DISTINCT + + COUNT( * ) * + MAX( + 85 ) + - 99 * - 31 * COUNT( * ) - - 29
----
3183

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + + COUNT ( * ) * + MAX ( + 85 ) + - 99 * - 31 * COUNT ( * ) - - 29
----
3183

query I rowsort
SELECT + 98 + + 36 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT ALL + 49 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + 49 / - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT MIN( - 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT MIN ( - 82 ) col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL CAST( 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL CAST ( 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT 17 + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8762
SELECT 17 + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT + 65 * + 3
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - COUNT( * ) + - - 44 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8764
SELECT - COUNT ( * ) + - - 44 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT ALL + - 16 / + - 5 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + - 16 / + - 5 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT - MIN( DISTINCT - + 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8766
SELECT - MIN ( DISTINCT - + 48 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT 65 * - - COUNT( DISTINCT - + ( - 81 ) )
----
65

skipif mysql # not compatible
query I rowsort label-8767
SELECT 65 * - - COUNT ( DISTINCT - + ( - 81 ) )
----
65

query I rowsort
SELECT - 48 + - 39 AS col1
----
-87

query I rowsort
SELECT - - 96 AS col0
----
96

query I rowsort
SELECT DISTINCT + 97 * 77
----
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT DISTINCT + + ( 29 ) + + CAST( + + 12 AS SIGNED ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT + + ( 29 ) + + CAST ( + + 12 AS INTEGER ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT + 14 * - NULLIF ( + + 62, + ( + COUNT( * ) ) )
----
-868

skipif mysql # not compatible
query I rowsort label-8772
SELECT + 14 * - NULLIF ( + + 62, + ( + COUNT ( * ) ) )
----
-868

query I rowsort
SELECT DISTINCT - 47 col0
----
-47

query I rowsort
SELECT ALL + 73 + + - 34 + - 81 * + + ( - 63 )
----
5142

query I rowsort
SELECT ALL - - 7 AS col1
----
7

query I rowsort
SELECT ALL + 4 + - - 30
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + COUNT( DISTINCT - - CASE + 70 WHEN - - 61 * - 5 + NULLIF ( - 93, 88 * + 82 ) THEN - 4 WHEN 39 THEN NULL END ) * 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8777
SELECT + COUNT ( DISTINCT - - CASE + 70 WHEN - - 61 * - 5 + NULLIF ( - 93, 88 * + 82 ) THEN - 4 WHEN 39 THEN NULL END ) * 24 AS col2
----
0

query I rowsort
SELECT - 80 col0
----
-80

query I rowsort
SELECT ALL 34 + - - 24
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8780
SELECT ( + 43 ) DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-8780
SELECT ( + 43 ) / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT COUNT( * ) * + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8781
SELECT COUNT ( * ) * + 37 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8782
SELECT ALL ( - - CAST( + + COUNT( * ) AS SIGNED ) ) DIV - - ( + 96 ) * + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) / - - ( + 96 ) * + 95 AS col2
----
0

query I rowsort
SELECT 84 * + 84 + + 27 + + 41
----
7124

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT NULLIF ( + 92, - 3 ) DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-8784
SELECT NULLIF ( + 92, - 3 ) / 72
----
1

query I rowsort
SELECT DISTINCT - 71 AS col0
----
-71

query I rowsort
SELECT DISTINCT 55 * - 33
----
-1815

query I rowsort
SELECT 23 + - - 53 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT 58 DIV + 9
----
6

skipif mysql # not compatible
query I rowsort label-8788
SELECT 58 / + 9
----
6

query I rowsort
SELECT 85 * - 30 + 0 AS col1
----
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT ALL 78 * - - CAST( - 2 AS SIGNED ) AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL 78 * - - CAST ( - 2 AS INTEGER ) AS col2
----
-156

query I rowsort
SELECT DISTINCT - 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT NULLIF ( 59, MAX( - 80 ) ) * COUNT( * ) + - + 13
----
46

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT NULLIF ( 59, MAX ( - 80 ) ) * COUNT ( * ) + - + 13
----
46

query I rowsort
SELECT + 96 * 69 - - - ( 29 ) + 74 col0
----
6669

query I rowsort
SELECT ALL 33 AS col2
----
33

query I rowsort
SELECT 42 * + 31 AS col0
----
1302

query I rowsort
SELECT + 95 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT ALL COALESCE ( + 5, - 48 + + 36 * CAST( NULL AS SIGNED ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL COALESCE ( + 5, - 48 + + 36 * CAST ( NULL AS INTEGER ) ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL + CAST( NULLIF ( COUNT( ALL 62 ), - 87 ) AS SIGNED ) * + 14
----
14

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + CAST ( NULLIF ( COUNT ( ALL 62 ), - 87 ) AS INTEGER ) * + 14
----
14

query I rowsort
SELECT - 95 col0
----
-95

query I rowsort
SELECT 11 - + 5 * + 12
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL - COUNT( + 95 ) + - + 91 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - COUNT ( + 95 ) + - + 91 AS col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8802
SELECT ALL - 77 + - - COUNT( * ) + - 52 DIV + ( 15 ) - 97 * + 59 AS col2
----
-5802

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - 77 + - - COUNT ( * ) + - 52 / + ( 15 ) - 97 * + 59 AS col2
----
-5802

query I rowsort
SELECT + 12 * + 19
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8804
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col1, 39 * + 16 + - + CAST( NULL AS SIGNED ) + - 67 + - 23 * - 0 / + COUNT( * ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8804
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1, 39 * + 16 + - + CAST ( NULL AS INTEGER ) + - 67 + - 23 * - 0 / + COUNT ( * ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL - + COUNT( * ) + - CASE - - NULLIF ( 7, - NULLIF ( NULLIF ( - COALESCE ( + 55, 67 + COUNT( * ) ), - 79 * 22 ), 69 + 58 ) ) WHEN - 39 + + 49 THEN + 40 WHEN - 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL - + COUNT ( * ) + - CASE - - NULLIF ( 7, - NULLIF ( NULLIF ( - COALESCE ( + 55, 67 + COUNT ( * ) ), - 79 * 22 ), 69 + 58 ) ) WHEN - 39 + + 49 THEN + 40 WHEN - 23 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8806
SELECT - 48 * + COUNT( * ) AS col1, 58
----
-48
58

skipif mysql # not compatible
query II rowsort label-8806
SELECT - 48 * + COUNT ( * ) AS col1, 58
----
-48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + + COALESCE ( 76, COALESCE ( + 38, + COUNT( * ) + + + CASE 84 WHEN - MIN( DISTINCT + 18 ) THEN 39 END ) )
----
76

skipif mysql # not compatible
query I rowsort label-8807
SELECT + + COALESCE ( 76, COALESCE ( + 38, + COUNT ( * ) + + + CASE 84 WHEN - MIN ( DISTINCT + 18 ) THEN 39 END ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + MIN( ALL - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-8808
SELECT + MIN ( ALL - + 95 )
----
-95

query I rowsort
SELECT + + 72 AS col1
----
72

query I rowsort
SELECT 59 + 58
----
117

query I rowsort
SELECT ALL - 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT COALESCE ( CASE + COALESCE ( - 12, + - ( - 18 ) ) WHEN 88 THEN 27 WHEN - - 0 THEN NULL ELSE NULL END, + + SUM( ALL 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-8812
SELECT COALESCE ( CASE + COALESCE ( - 12, + - ( - 18 ) ) WHEN 88 THEN 27 WHEN - - 0 THEN NULL ELSE NULL END, + + SUM ( ALL 63 ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8813
SELECT 98 / - CASE 93 WHEN - 5 + + - 3 + + CAST( NULL AS SIGNED ) * 14 - 91 THEN - 30 / - COUNT( * ) / 34 - - ( - COUNT( * ) + 2 ) * 91 WHEN 4 * + 92 + COUNT( * ) THEN 82 * 86 END + - 3 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT 98 / - CASE 93 WHEN - 5 + + - 3 + + CAST ( NULL AS INTEGER ) * 14 - 91 THEN - 30 / - COUNT ( * ) / 34 - - ( - COUNT ( * ) + 2 ) * 91 WHEN 4 * + 92 + COUNT ( * ) THEN 82 * 86 END + - 3 * + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT + ( - 68 ) * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT + ( - 68 ) * - COUNT ( * )
----
68

query I rowsort
SELECT - 14 * - 13
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT + COUNT( + + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + COUNT ( + + 81 )
----
1

query II rowsort
SELECT + 44, 0 AS col0
----
44
0

query I rowsort
SELECT + 96 + + 57
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT + CAST( NULL AS SIGNED ) * + 78 + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT + CAST ( NULL AS INTEGER ) * + 78 + 58 AS col0
----
NULL

query I rowsort
SELECT ALL + 3 AS col0
----
3

query I rowsort
SELECT - 84 * - 23 AS col0
----
1932

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT COUNT( * ) AS col1, + COUNT( * ) + + 86 * - 79
----
1
-6793

skipif mysql # not compatible
query II rowsort label-8822
SELECT COUNT ( * ) AS col1, + COUNT ( * ) + + 86 * - 79
----
1
-6793

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT - MIN( + 41 ) + + COALESCE ( + MIN( ALL 88 ), + COALESCE ( - NULLIF ( + + MIN( DISTINCT - - 85 ), 65 ), + 28 * ( 93 ) ) * - 46, - 32, - 57 DIV + COUNT( 24 ) )
----
47

skipif mysql # not compatible
query I rowsort label-8823
SELECT - MIN ( + 41 ) + + COALESCE ( + MIN ( ALL 88 ), + COALESCE ( - NULLIF ( + + MIN ( DISTINCT - - 85 ), 65 ), + 28 * ( 93 ) ) * - 46, - 32, - 57 / + COUNT ( 24 ) )
----
47

query I rowsort
SELECT + 54 * - - 38 * 85
----
174420

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT DISTINCT - 45 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT - 45 / - 56
----
0

query I rowsort
SELECT - 18 + + 89 * - - 31
----
2741

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT NULLIF ( - 87, + + 23 * - + 10 ) * + + ( ( - + 15 ) ) * MAX( ALL NULLIF ( + + 12, 66 * 72 - 6 ) ) - 37
----
15623

skipif mysql # not compatible
query I rowsort label-8827
SELECT NULLIF ( - 87, + + 23 * - + 10 ) * + + ( ( - + 15 ) ) * MAX ( ALL NULLIF ( + + 12, 66 * 72 - 6 ) ) - 37
----
15623

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT DISTINCT - ( - COUNT( * ) ) * - 94, - 58 + - 59 AS col2
----
-94
-117

skipif mysql # not compatible
query II rowsort label-8828
SELECT DISTINCT - ( - COUNT ( * ) ) * - 94, - 58 + - 59 AS col2
----
-94
-117

query I rowsort
SELECT - ( ( + + 75 ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL - SUM( DISTINCT + + ( 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - SUM ( DISTINCT + + ( 78 ) )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT - + 3, COUNT( * ) AS col0
----
-3
1

skipif mysql # not compatible
query II rowsort label-8831
SELECT - + 3, COUNT ( * ) AS col0
----
-3
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT + - 78 DIV - 8
----
9

skipif mysql # not compatible
query I rowsort label-8832
SELECT + - 78 / - 8
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8833
SELECT + - 67 + - NULLIF ( + + 55, + - CAST( 61 AS DECIMAL ) + + 1 )
----
-122

skipif mysql # not compatible
query I rowsort label-8833
SELECT + - 67 + - NULLIF ( + + 55, + - CAST ( 61 AS REAL ) + + 1 )
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL 39 + - - 65 + + 76 * + ( + - 18 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL 39 + - - 65 + + 76 * + ( + - 18 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 83 + - 44
----
39

query I rowsort
SELECT ALL 22 + - - 59
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT + COALESCE ( ( - - COALESCE ( - 71, 44 * 0 + + 67, - COUNT( + 51 ) * + 44 + - 49 ) ), COUNT( 95 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + COALESCE ( ( - - COALESCE ( - 71, 44 * 0 + + 67, - COUNT ( + 51 ) * + 44 + - 49 ) ), COUNT ( 95 ) ) AS col2
----
-71

query I rowsort
SELECT ALL 66 + ( + 13 ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8839
SELECT + - 26 + + 0 - + + CAST( + 35 AS SIGNED ) * COALESCE ( - 74, + - 7, + MIN( ALL 10 ) * + - CAST( NULL AS SIGNED ) ) AS col0
----
2564

skipif mysql # not compatible
query I rowsort label-8839
SELECT + - 26 + + 0 - + + CAST ( + 35 AS INTEGER ) * COALESCE ( - 74, + - 7, + MIN ( ALL 10 ) * + - CAST ( NULL AS INTEGER ) ) AS col0
----
2564

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL COUNT ( ALL + 17 )
----
1

query I rowsort
SELECT - + 51 col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - - SUM( + 95 ) + - 12 * + - COUNT( * ) - + 94 col0
----
13

skipif mysql # not compatible
query I rowsort label-8842
SELECT - - SUM ( + 95 ) + - 12 * + - COUNT ( * ) - + 94 col0
----
13

query I rowsort
SELECT + - ( 3 ) * 50 * - - 46
----
-6900

query I rowsort
SELECT - + 1 + 30
----
29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8845
SELECT ALL - 21 * - - 68 - CAST( NULL AS SIGNED ) + + - 68 * - - 21 * CAST( + + 43 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - 21 * - - 68 - CAST ( NULL AS INTEGER ) + + - 68 * - - 21 * CAST ( + + 43 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL 69 - COALESCE ( + CASE - 86 WHEN + - 68 THEN - COUNT( * ) WHEN + - 82 THEN NULL END, - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL 69 - COALESCE ( + CASE - 86 WHEN + - 68 THEN - COUNT ( * ) WHEN + - 82 THEN NULL END, - COUNT ( * ) )
----
70

query I rowsort
SELECT + 68 * + 51 AS col2
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT ALL + NULLIF ( COUNT( * ), + 60 / - 75 * - 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + NULLIF ( COUNT ( * ), + 60 / - 75 * - 60 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8849
SELECT CAST( NULL AS SIGNED ), + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-8849
SELECT CAST ( NULL AS INTEGER ), + 24 AS col0
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ALL + MIN( + + 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + MIN ( + + 6 ) col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8851
SELECT 30 DIV + 38 * + - 98 * - COUNT( * ) - + 8 + + + 17 + + 95 * + - 70 * + NULLIF ( - 68, + + 28 * - NULLIF ( - 32 + - 11, NULLIF ( 59, ( - 20 ) + SUM( ( 92 ) ) ) ) ) + - 63 * - 74
----
456871

skipif mysql # not compatible
query I rowsort label-8851
SELECT 30 / + 38 * + - 98 * - COUNT ( * ) - + 8 + + + 17 + + 95 * + - 70 * + NULLIF ( - 68, + + 28 * - NULLIF ( - 32 + - 11, NULLIF ( 59, ( - 20 ) + SUM ( ( 92 ) ) ) ) ) + - 63 * - 74
----
456871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT - 20 DIV - - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 20 / - - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + CASE - 33 WHEN + + 57 THEN + COUNT( * ) WHEN + + 16 THEN + 91 + + 10 - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + CASE - 33 WHEN + + 57 THEN + COUNT ( * ) WHEN + + 16 THEN + 91 + + 10 - 39 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT + 93 / + 61 + - CASE - 74 WHEN 96 * + + 63 * + 18 THEN + COUNT( DISTINCT 12 ) * + 59 END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT + 93 / + 61 + - CASE - 74 WHEN 96 * + + 63 * + 18 THEN + COUNT ( DISTINCT 12 ) * + 59 END + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - MIN( ALL 23 ) * - 50
----
1150

skipif mysql # not compatible
query I rowsort label-8856
SELECT - MIN ( ALL 23 ) * - 50
----
1150

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT ALL - 22 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL - 22 / + 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8858
SELECT DISTINCT COUNT( * ) DIV ( + COALESCE ( - + COUNT( * ), + + 58 * - 32, CAST( NULL AS SIGNED ) ) ) * - + CAST( + - 7 AS SIGNED ) col0, CAST( NULL AS SIGNED ) + + + MIN( 82 )
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-8858
SELECT DISTINCT COUNT ( * ) / ( + COALESCE ( - + COUNT ( * ), + + 58 * - 32, CAST ( NULL AS INTEGER ) ) ) * - + CAST ( + - 7 AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + + + MIN ( 82 )
----
-7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8859
SELECT - COUNT( * ) - 19 DIV 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8859
SELECT - COUNT ( * ) - 19 / 26 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL + MIN( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + MIN ( 75 )
----
75

query II rowsort
SELECT - 30 * - 15, COALESCE ( - 23, + 19 ) col1
----
450
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL 54 * + + COUNT( * ) + 18 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL 54 * + + COUNT ( * ) + 18 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL 23 * - COUNT( * ) + + 2 + + 84 + 54
----
117

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL 23 * - COUNT ( * ) + + 2 + + 84 + 54
----
117

query I rowsort
SELECT - 35 * 67 + + - 56 AS col2
----
-2401

query I rowsort
SELECT - ( + - 32 ) + 93 + - 21
----
104

query I rowsort
SELECT 59 * - + 79 + 42
----
-4619

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8867
SELECT + 57 AS col0, - CAST( NULL AS SIGNED ) * 52
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8867
SELECT + 57 AS col0, - CAST ( NULL AS INTEGER ) * 52
----
57
NULL

query I rowsort
SELECT DISTINCT + - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - 54 * + 97 * - CASE - - 14 WHEN - NULLIF ( 68, COUNT( * ) / - 57 ) THEN NULL WHEN - 53 + 32 THEN - 17 / + 11 + COALESCE ( + 98, 21 - 49 * 3 ) END * 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT - 54 * + 97 * - CASE - - 14 WHEN - NULLIF ( 68, COUNT ( * ) / - 57 ) THEN NULL WHEN - 53 + 32 THEN - 17 / + 11 + COALESCE ( + 98, 21 - 49 * 3 ) END * 66 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT - + MIN( - 92 ) + - COALESCE ( - COALESCE ( 68, - 47 ), + + 16 + + 47 ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-8870
SELECT - + MIN ( - 92 ) + - COALESCE ( - COALESCE ( 68, - 47 ), + + 16 + + 47 ) AS col1
----
160

query I rowsort
SELECT DISTINCT - ( + 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL COUNT( * ) * - + ( - ( + + 23 ) )
----
23

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL COUNT ( * ) * - + ( - ( + + 23 ) )
----
23

query I rowsort
SELECT - + 60 - - 0
----
-60

query I rowsort
SELECT + + ( + 36 ) * - 1 + - 63 AS col1
----
-99

query I rowsort
SELECT + - 80 * - 64 * 90
----
460800

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL - CASE - - 94 WHEN COUNT( + 79 ) THEN - + 61 WHEN + + 22 / AVG ( 41 ) + 48 + - 67 THEN NULL WHEN 43 THEN NULL END - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - CASE - - 94 WHEN COUNT ( + 79 ) THEN - + 61 WHEN + + 22 / AVG ( 41 ) + 48 + - 67 THEN NULL WHEN 43 THEN NULL END - 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT ALL + ( + CASE + COUNT( * ) WHEN + + 28 THEN NULL WHEN + - 81 * NULLIF ( 37, + 93 ) + - 18 - - - 63 + - 73 THEN 48 DIV - AVG ( - ( 58 ) ) WHEN - 94 THEN - 30 ELSE 91 END ) * 68
----
6188

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL + ( + CASE + COUNT ( * ) WHEN + + 28 THEN NULL WHEN + - 81 * NULLIF ( 37, + 93 ) + - 18 - - - 63 + - 73 THEN 48 / - AVG ( - ( 58 ) ) WHEN - 94 THEN - 30 ELSE 91 END ) * 68
----
6188

query I rowsort
SELECT - + ( 83 ) AS col1
----
-83

query I rowsort
SELECT DISTINCT + 72 - + 12 AS col0
----
60

query I rowsort
SELECT ALL - - 26 * + 20
----
520

query I rowsort
SELECT ALL 76 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT DISTINCT 57 * + - 89 DIV + + COUNT( * ) col1
----
-5073

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT 57 * + - 89 / + + COUNT ( * ) col1
----
-5073

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT DISTINCT + COUNT( * ) AS col0, 79 + - COUNT( * )
----
1
78

skipif mysql # not compatible
query II rowsort label-8883
SELECT DISTINCT + COUNT ( * ) AS col0, 79 + - COUNT ( * )
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ( - 74 ) * 98 * + CASE + CASE 62 WHEN + 20 / + 15 + 34 * - ( - - 36 ) + - 93 THEN - ( - 68 ) + - COUNT( * ) END WHEN + MIN( DISTINCT + 62 ) THEN NULL WHEN 23 + 77 THEN NULL ELSE ( ( 60 ) ) END
----
-435120

skipif mysql # not compatible
query I rowsort label-8884
SELECT ( - 74 ) * 98 * + CASE + CASE 62 WHEN + 20 / + 15 + 34 * - ( - - 36 ) + - 93 THEN - ( - 68 ) + - COUNT ( * ) END WHEN + MIN ( DISTINCT + 62 ) THEN NULL WHEN 23 + 77 THEN NULL ELSE ( ( 60 ) ) END
----
-435120

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT COUNT( * ) + - ( + + CASE + - 65 WHEN 43 + + 47 THEN NULL WHEN + + MIN( + 10 ) THEN ( + 71 ) ELSE - - 12 - - COUNT( * ) END ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8885
SELECT COUNT ( * ) + - ( + + CASE + - 65 WHEN 43 + + 47 THEN NULL WHEN + + MIN ( + 10 ) THEN ( + 71 ) ELSE - - 12 - - COUNT ( * ) END ) AS col0
----
-12

query I rowsort
SELECT 23 + + + COALESCE ( - + 11, + + 93 * - 58 + 2 + - 65, - ( - + 86 ) ) + 55 + + 96
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT COUNT( DISTINCT 95 ) - - MAX( ALL - 86 )
----
-85

skipif mysql # not compatible
query I rowsort label-8887
SELECT COUNT ( DISTINCT 95 ) - - MAX ( ALL - 86 )
----
-85

query II rowsort
SELECT 29 * + 55 AS col1, + 40
----
1595
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT COUNT( * ) + + - 2 * - 8 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8889
SELECT COUNT ( * ) + + - 2 * - 8 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8890
SELECT ALL SUM( - 41 ) DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL SUM ( - 41 ) / + + 66
----
0

query I rowsort
SELECT DISTINCT - 87
----
-87

query I rowsort
SELECT + 26 * - + 83 + 35 * - + ( - - 74 ) AS col1
----
-4748

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - NULLIF ( + 25, + MAX( - 60 ) / 66 * + 75 + + AVG ( + - 66 ) * - 88 * + 95 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - NULLIF ( + 25, + MAX ( - 60 ) / 66 * + 75 + + AVG ( + - 66 ) * - 88 * + 95 ) AS col1
----
-25

query I rowsort
SELECT DISTINCT - 41 AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8895
SELECT ALL 95 + - 7 * + 68 - - - COUNT( * ) DIV 20 + COALESCE ( + 62, + ( + COUNT( * ) ) ) + + - COUNT( * ) - + - 89 DIV + 21 + + 99 * + 56
----
5228

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 95 + - 7 * + 68 - - - COUNT ( * ) / 20 + COALESCE ( + 62, + ( + COUNT ( * ) ) ) + + - COUNT ( * ) - + - 89 / + 21 + + 99 * + 56
----
5228

query I rowsort
SELECT DISTINCT - 15 AS col2
----
-15

query I rowsort
SELECT 54 + - 48
----
6

query I rowsort
SELECT 93 + - 73 AS col2
----
20

query I rowsort
SELECT + 66 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT 73 * + 58 + + COUNT( * )
----
4235

skipif mysql # not compatible
query I rowsort label-8900
SELECT 73 * + 58 + + COUNT ( * )
----
4235

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT ALL - COUNT( * ) + + 7 AS col1, 91 AS col0
----
6
91

skipif mysql # not compatible
query II rowsort label-8901
SELECT ALL - COUNT ( * ) + + 7 AS col1, 91 AS col0
----
6
91

query I rowsort
SELECT ( 97 ) * - ( - 6 ) + + 84
----
666

query I rowsort
SELECT DISTINCT + 19 + - + 88 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-8904
SELECT ALL 98 DIV + - 71 AS col2, - 71 col1
----
-1
-71

skipif mysql # not compatible
query II rowsort label-8904
SELECT ALL 98 / + - 71 AS col2, - 71 col1
----
-1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - 81 * + 41 * 26 - 95 + - - NULLIF ( NULLIF ( - 75, + 22 ), 91 ) + - 49 * + 6 + + + 89 * + COUNT( * )
----
-86721

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - 81 * + 41 * 26 - 95 + - - NULLIF ( NULLIF ( - 75, + 22 ), 91 ) + - 49 * + 6 + + + 89 * + COUNT ( * )
----
-86721

query I rowsort
SELECT ALL - - 78 + 71 AS col0
----
149

query II rowsort
SELECT DISTINCT - 48 * 21 AS col2, - 61
----
-1008
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT 96 + + COUNT( * ) + - + 11 * - 13
----
240

skipif mysql # not compatible
query I rowsort label-8908
SELECT 96 + + COUNT ( * ) + - + 11 * - 13
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - ( + + 66 ) * - COUNT( * ) - 67
----
-1

skipif mysql # not compatible
query I rowsort label-8909
SELECT - ( + + 66 ) * - COUNT ( * ) - 67
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT + COUNT( * ) + + - 41, 79 * - NULLIF ( 27, + CASE + - COALESCE ( - - 68, 29 ) WHEN + + 66 * 58 + COALESCE ( - 15, ( + 49 ) ) + SUM( - 91 + - 62 ) * 35 THEN NULL WHEN 85 * - COUNT( - 70 ) THEN - 7 END + + COUNT( * ) ) AS col2
----
-40
-2133

skipif mysql # not compatible
query II rowsort label-8911
SELECT + COUNT ( * ) + + - 41, 79 * - NULLIF ( 27, + CASE + - COALESCE ( - - 68, 29 ) WHEN + + 66 * 58 + COALESCE ( - 15, ( + 49 ) ) + SUM ( - 91 + - 62 ) * 35 THEN NULL WHEN 85 * - COUNT ( - 70 ) THEN - 7 END + + COUNT ( * ) ) AS col2
----
-40
-2133

query I rowsort
SELECT + 86 * 58 - - - 46 * - - ( + ( - - 37 ) ) * - + 6
----
15200

query I rowsort
SELECT - - 88
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT - 1 + - 39 * - COUNT( * ) DIV 88
----
-1

skipif mysql # not compatible
query I rowsort label-8914
SELECT - 1 + - 39 * - COUNT ( * ) / 88
----
-1

query I rowsort
SELECT - - 78
----
78

query II rowsort
SELECT ALL + 43 * - - 56 AS col0, + 0
----
2408
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT + NULLIF ( + COUNT( * ), - 32 - - COALESCE ( - SUM( - ( + - 4 ) ), 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - 32 - - COALESCE ( - SUM ( - ( + - 4 ) ), 45 ) )
----
1

query II rowsort
SELECT ALL + ( + 45 ), 59 AS col1
----
45
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT ALL 11 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL 11 / 74 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT 58 + - 37 DIV 57
----
58

skipif mysql # not compatible
query I rowsort label-8920
SELECT 58 + - 37 / 57
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT DISTINCT + + SUM( DISTINCT 33 ) / + CASE - 41 WHEN - 9 THEN + - COUNT( * ) WHEN + + ( - - ( - COALESCE ( + CASE - + 74 WHEN 88 * 78 - - 44 THEN 69 / + 53 END, 24 * COUNT( * ) ) ) ) THEN + CAST( NULL AS SIGNED ) * 82 WHEN - COALESCE ( + 69, 64, CAST( 24 AS SIGNED ) ) THEN NULL ELSE NULL END + 83 * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT + + SUM ( DISTINCT 33 ) / + CASE - 41 WHEN - 9 THEN + - COUNT ( * ) WHEN + + ( - - ( - COALESCE ( + CASE - + 74 WHEN 88 * 78 - - 44 THEN 69 / + 53 END, 24 * COUNT ( * ) ) ) ) THEN + CAST ( NULL AS INTEGER ) * 82 WHEN - COALESCE ( + 69, 64, CAST ( 24 AS INTEGER ) ) THEN NULL ELSE NULL END + 83 * 57 AS col0
----
NULL

query I rowsort
SELECT ALL 99 AS col2
----
99

query I rowsort
SELECT 23 * - 11 AS col1
----
-253

query I rowsort
SELECT DISTINCT 20 * + 68 * 28
----
38080

query I rowsort
SELECT 74 * + 68
----
5032

query I rowsort
SELECT ALL 55 + - + 11
----
44

query I rowsort
SELECT ALL - 77 + 23
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT 64 + 26 * 63 - COUNT( * )
----
1701

skipif mysql # not compatible
query I rowsort label-8929
SELECT 64 + 26 * 63 - COUNT ( * )
----
1701

query I rowsort
SELECT DISTINCT - ( - 92 ) + - - 15
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT COUNT( ALL + 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8931
SELECT COUNT ( ALL + 56 ) AS col0
----
1

query I rowsort
SELECT 54 * - 29
----
-1566

query I rowsort
SELECT 57 - + 33 AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT 96 DIV 82 + - 37 * - 46 * + - ( + 20 ) + + 58 + + - 62
----
-34043

skipif mysql # not compatible
query I rowsort label-8934
SELECT 96 / 82 + - 37 * - 46 * + - ( + 20 ) + + 58 + + - 62
----
-34043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT DISTINCT 58 * 83 + 92 DIV - - COUNT( * ) + - 27 * + 7
----
4717

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT 58 * 83 + 92 / - - COUNT ( * ) + - 27 * + 7
----
4717

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT SUM( + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8936
SELECT SUM ( + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT COUNT( * ) DIV - 94 - - 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8937
SELECT COUNT ( * ) / - 94 - - 48 AS col2
----
48

query II rowsort
SELECT ALL - 18 AS col0, + 63 AS col0
----
-18
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8939
SELECT DISTINCT 71 + + ( - COUNT( * ) ) * CASE CAST( + 38 AS SIGNED ) WHEN - 18 * 81 THEN - CAST( NULL AS DECIMAL ) * + 12 * - - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN + MAX( 18 ) - + 63 * 18 END * NULLIF ( + 68, 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT 71 + + ( - COUNT ( * ) ) * CASE CAST ( + 38 AS INTEGER ) WHEN - 18 * 81 THEN - CAST ( NULL AS REAL ) * + 12 * - - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN + MAX ( 18 ) - + 63 * 18 END * NULLIF ( + 68, 18 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL - + CAST( + ( - 75 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - + CAST ( + ( - 75 ) AS INTEGER )
----
75

query I rowsort
SELECT ALL 5 * - + 5 - - 36 * + 71 * + - 27 col2
----
-69037

query I rowsort
SELECT ALL - 41 - + - 43 * + 31 * - + 2 AS col2
----
-2707

query I rowsort
SELECT 24 * + 95
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 72 + + + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 72 + + + COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT DISTINCT - + 50
----
-50

query I rowsort
SELECT ALL - + CASE + 92 WHEN - 9 THEN - 72 ELSE 94 END
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT 3 * - MIN( - 32 ) * - 32 - - + 26
----
-3046

skipif mysql # not compatible
query I rowsort label-8947
SELECT 3 * - MIN ( - 32 ) * - 32 - - + 26
----
-3046

query I rowsort
SELECT ALL - + 99 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT CAST( - COALESCE ( + - 81, ( + CAST( - - 96 AS SIGNED ) ) * + 21 + + - ( + 0 ) - 73 * - + 78 + - - 46 + + 98 * - 52, - 19 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-8949
SELECT CAST ( - COALESCE ( + - 81, ( + CAST ( - - 96 AS INTEGER ) ) * + 21 + + - ( + 0 ) - 73 * - + 78 + - - 46 + + 98 * - 52, - 19 ) AS INTEGER )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8950
SELECT COUNT( * ) * 9 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT COUNT ( * ) * 9 / - - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL - CASE 63 WHEN 64 + - ( + + 66 ) * - COUNT( * ) THEN NULL WHEN + 63 + - 35 THEN - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - CASE 63 WHEN 64 + - ( + + 66 ) * - COUNT ( * ) THEN NULL WHEN + 63 + - 35 THEN - 35 END
----
NULL

query II rowsort
SELECT ALL 49 AS col2, 0 + - + 83
----
49
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - - ( COUNT( * ) ) * + 74 + 62 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-8953
SELECT - - ( COUNT ( * ) ) * + 74 + 62 AS col2
----
136

query I rowsort
SELECT + 18 + - + 92
----
-74

query I rowsort
SELECT DISTINCT + - 58 * - 94
----
5452

query I rowsort
SELECT - 68 * - 34
----
2312

query I rowsort
SELECT ALL 50 + - 73
----
-23

query I rowsort
SELECT - 61 - 22 AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT - CAST( + - 67 AS SIGNED ) + + MIN( DISTINCT 8 ) * - + 84 - + - 88 + - 79
----
-596

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - CAST ( + - 67 AS INTEGER ) + + MIN ( DISTINCT 8 ) * - + 84 - + - 88 + - 79
----
-596

query I rowsort
SELECT ALL - 45 + - + 13
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT COUNT( 22 ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT COUNT ( 22 ) + - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT CASE - 78 WHEN + 73 * + 81 THEN - 77 + 65 * COUNT( * ) + 77 + - 89 WHEN 72 * + 49 * + 27 / - 51 THEN - 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT CASE - 78 WHEN + 73 * + 81 THEN - 77 + 65 * COUNT ( * ) + 77 + - 89 WHEN 72 * + 49 * + 27 / - 51 THEN - 36 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8963
SELECT - CAST( - ( COUNT( + + 20 ) ) AS SIGNED ) DIV 21 + + 95 col0
----
95

skipif mysql # not compatible
query I rowsort label-8963
SELECT - CAST ( - ( COUNT ( + + 20 ) ) AS INTEGER ) / 21 + + 95 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8964
SELECT - COALESCE ( COUNT( 82 ), 80, 35 * + COALESCE ( + + 21, 18, + ( - 11 ) * + 28 * + 40 + - - MIN( ALL - + NULLIF ( + 59, + 67 + - 92 ) ) - CAST( NULL AS SIGNED ) ) - + 67 - + NULLIF ( - 19, - COALESCE ( ( + MAX( ALL - 73 ) ), ( 69 ) + 86 ) + COALESCE ( 10, + 92 * + 2 ) ) * 85 ) + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-8964
SELECT - COALESCE ( COUNT ( 82 ), 80, 35 * + COALESCE ( + + 21, 18, + ( - 11 ) * + 28 * + 40 + - - MIN ( ALL - + NULLIF ( + 59, + 67 + - 92 ) ) - CAST ( NULL AS INTEGER ) ) - + 67 - + NULLIF ( - 19, - COALESCE ( ( + MAX ( ALL - 73 ) ), ( 69 ) + 86 ) + COALESCE ( 10, + 92 * + 2 ) ) * 85 ) + - 66
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT - CAST( NULL AS SIGNED ) * + 71 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT - CAST ( NULL AS INTEGER ) * + 71 * - 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8966
SELECT ALL + 0 DIV - COUNT( * ) * + - CAST( - NULLIF ( 12, CASE 17 WHEN + - COUNT( * ) THEN - 37 END ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + 0 / - COUNT ( * ) * + - CAST ( - NULLIF ( 12, CASE 17 WHEN + - COUNT ( * ) THEN - 37 END ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), 53 + - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), 53 + - 2 )
----
NULL

query I rowsort
SELECT - 54 + - + 30 AS col0
----
-84

query I rowsort
SELECT ALL - 73 + - 52
----
-125

query I rowsort
SELECT DISTINCT - 83 * - + 44
----
3652

query I rowsort
SELECT DISTINCT 23 * 4 - - 29 + + 51 AS col0
----
172

query I rowsort
SELECT DISTINCT + 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + 0 + - 86 + + 63 * + NULLIF ( + COUNT( * ), CASE - 10 WHEN + COUNT( ALL + 44 ) * ( + CASE + COUNT( * ) WHEN 85 + + 78 + + 82 * - CASE 44 * - COALESCE ( ( - 70 ), - 12 ) WHEN + 61 * - ( 6 ) + 34 THEN - MIN( 30 ) * + CASE WHEN NOT ( 75 ) < + NULLIF ( - 56, - 60 - 15 ) THEN + 67 * + 35 END END THEN + 53 + ( ( - MAX( DISTINCT 80 ) ) ) END ) THEN + 45 + + 48 ELSE + 53 END * 80 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8973
SELECT + 0 + - 86 + + 63 * + NULLIF ( + COUNT ( * ), CASE - 10 WHEN + COUNT ( ALL + 44 ) * ( + CASE + COUNT ( * ) WHEN 85 + + 78 + + 82 * - CASE 44 * - COALESCE ( ( - 70 ), - 12 ) WHEN + 61 * - ( 6 ) + 34 THEN - MIN ( 30 ) * + CASE WHEN NOT ( 75 ) < + NULLIF ( - 56, - 60 - 15 ) THEN + 67 * + 35 END END THEN + 53 + ( ( - MAX ( DISTINCT 80 ) ) ) END ) THEN + 45 + + 48 ELSE + 53 END * 80 ) AS col1
----
-23

query I rowsort
SELECT - 73 + - 38
----
-111

query I rowsort
SELECT + - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8976
SELECT + ( - 35 ) * COUNT( * ) + COUNT( 79 ) + - 11 + 10 + - - 49 + + COUNT( * ) * - - 8 DIV - 44 + + + COUNT( * ) - - 86 + 6
----
107

skipif mysql # not compatible
query I rowsort label-8976
SELECT + ( - 35 ) * COUNT ( * ) + COUNT ( 79 ) + - 11 + 10 + - - 49 + + COUNT ( * ) * - - 8 / - 44 + + + COUNT ( * ) - - 86 + 6
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - 44 * - 33 + + - 54 + + + MIN( DISTINCT - 41 ) * 48 AS col0
----
-570

skipif mysql # not compatible
query I rowsort label-8977
SELECT - 44 * - 33 + + - 54 + + + MIN ( DISTINCT - 41 ) * 48 AS col0
----
-570

query I rowsort
SELECT - - 98 * + 16 * + 27 AS col2
----
42336

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL + 87 * 73 + - + 82 - + - COUNT( * ) col0
----
6270

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + 87 * 73 + - + 82 - + - COUNT ( * ) col0
----
6270

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8980
SELECT ALL + 6 * - 65 - CAST( + 78 AS SIGNED ), 85 DIV + 89 col1
----
-468
0

skipif mysql # not compatible
query II rowsort label-8980
SELECT ALL + 6 * - 65 - CAST ( + 78 AS INTEGER ), 85 / + 89 col1
----
-468
0

query I rowsort
SELECT DISTINCT + - 88 AS col0
----
-88

query I rowsort
SELECT ALL + 38 * 76
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + COUNT( * ) + + + 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8983
SELECT + COUNT ( * ) + + + 0 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT ALL CAST( NULL AS SIGNED ) * + 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL CAST ( NULL AS INTEGER ) * + 8 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 49 + + 6
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT ALL + - MIN( 24 ) AS col1, 16 AS col2
----
-24
16

skipif mysql # not compatible
query II rowsort label-8987
SELECT ALL + - MIN ( 24 ) AS col1, 16 AS col2
----
-24
16

query I rowsort
SELECT + 63 * + + 12 + + 71 AS col1
----
827

query I rowsort
SELECT + 2 + - ( + 99 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + - 97 + - 57 + MIN( ALL 6 ) + + COUNT( * ) + + - 95 AS col2
----
-242

skipif mysql # not compatible
query I rowsort label-8990
SELECT + - 97 + - 57 + MIN ( ALL 6 ) + + COUNT ( * ) + + - 95 AS col2
----
-242

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT + + 22 DIV - 20
----
-1

skipif mysql # not compatible
query I rowsort label-8991
SELECT + + 22 / - 20
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT - - ( - NULLIF ( + 57, - 99 + - COUNT( DISTINCT + 77 ) + 96 + + 36 - AVG ( + 65 ) * - 15 * 16 * - - 73 / COALESCE ( 72, - CASE 92 WHEN + 16 * - 1 THEN - 31 ELSE 10 END * 26 ) / - CAST( NULL AS SIGNED ) ) ) + - 15 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8992
SELECT - - ( - NULLIF ( + 57, - 99 + - COUNT ( DISTINCT + 77 ) + 96 + + 36 - AVG ( + 65 ) * - 15 * 16 * - - 73 / COALESCE ( 72, - CASE 92 WHEN + 16 * - 1 THEN - 31 ELSE 10 END * 26 ) / - CAST ( NULL AS INTEGER ) ) ) + - 15 AS col0
----
-72

query II rowsort
SELECT + - 5 + 79, + 14 AS col0
----
74
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8994
SELECT ALL + 41 + + - MIN( ALL + CAST( 74 AS SIGNED ) ) * - 53 col2
----
3963

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL + 41 + + - MIN ( ALL + CAST ( 74 AS INTEGER ) ) * - 53 col2
----
3963

query I rowsort
SELECT DISTINCT 9 + - + 69
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT CASE + 35 WHEN 13 * + + COUNT( ALL - + 99 ) + + - 2 + 27 THEN - NULLIF ( + + 53, - 53 + + 11 * - 53 + - - 10 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT CASE + 35 WHEN 13 * + + COUNT ( ALL - + 99 ) + + - 2 + 27 THEN - NULLIF ( + + 53, - 53 + + 11 * - 53 + - - 10 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 76 + - 62 + - 34 AS col1
----
-172

query I rowsort
SELECT + 38 + 98
----
136

query I rowsort
SELECT ALL 44 + - 30
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT - COALESCE ( - ( - 99 ), - + ( + + 23 ) * + 98 + - COUNT( * ), - 34 * - 79 ) + - 11 + + MAX( DISTINCT + ( + + 49 ) ) AS col0, 55 + - 28
----
-61
27

skipif mysql # not compatible
query II rowsort label-9000
SELECT - COALESCE ( - ( - 99 ), - + ( + + 23 ) * + 98 + - COUNT ( * ), - 34 * - 79 ) + - 11 + + MAX ( DISTINCT + ( + + 49 ) ) AS col0, 55 + - 28
----
-61
27

query I rowsort
SELECT ALL + 4 + + + 7 * - - CASE - 86 WHEN + 88 + + - 32 THEN + + 38 ELSE NULL END + + - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - COUNT( * ) + + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-9002
SELECT - COUNT ( * ) + + - 6
----
-7

query I rowsort
SELECT ALL + 14 * + 84 AS col1
----
1176

query I rowsort
SELECT 94 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL + 41 - ( COUNT( ALL 36 ) ) + - + 99 * 24 + 25 + - + CASE - COUNT( * ) WHEN + 39 + - - 58 + + AVG ( DISTINCT 58 ) + - NULLIF ( + - ( 99 ), 20 ) * AVG ( 30 ) THEN - 11 * COALESCE ( 83, 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + 41 - ( COUNT ( ALL 36 ) ) + - + 99 * 24 + 25 + - + CASE - COUNT ( * ) WHEN + 39 + - - 58 + + AVG ( DISTINCT 58 ) + - NULLIF ( + - ( 99 ), 20 ) * AVG ( 30 ) THEN - 11 * COALESCE ( 83, 94 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( - 93 )
----
-93

query I rowsort
SELECT ALL 36 * + 44
----
1584

query I rowsort
SELECT DISTINCT 95 - - 45
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT ALL CAST( - 65 AS SIGNED ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL CAST ( - 65 AS INTEGER ) col0
----
-65

query I rowsort
SELECT 18 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9011
SELECT DISTINCT NULLIF ( - + 13, + CAST( 89 AS SIGNED ) * + ( + + CAST( - + 15 AS SIGNED ) ) + 1 ), - 82 + - - 80 AS col0
----
-13
-2

skipif mysql # not compatible
query II rowsort label-9011
SELECT DISTINCT NULLIF ( - + 13, + CAST ( 89 AS INTEGER ) * + ( + + CAST ( - + 15 AS INTEGER ) ) + 1 ), - 82 + - - 80 AS col0
----
-13
-2

query I rowsort
SELECT - 18 * + 89
----
-1602

query I rowsort
SELECT + - 61
----
-61

query I rowsort
SELECT + NULLIF ( 44, ( 67 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT - + CAST( NULL AS SIGNED ) * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT - + CAST ( NULL AS INTEGER ) * 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9016
SELECT - 79 DIV 12 + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9016
SELECT - 79 / 12 + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL + 58 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + 58 * + COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT - - AVG ( ALL + CAST( NULL AS SIGNED ) ) * - 25 + ( 99 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) * - 25 + ( 99 ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT - + ( SUM( DISTINCT 42 ) ) * - 2
----
84

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - + ( SUM ( DISTINCT 42 ) ) * - 2
----
84

query I rowsort
SELECT DISTINCT + - 76
----
-76

query I rowsort
SELECT ALL - 74 col2
----
-74

query I rowsort
SELECT - 20 * + 25
----
-500

query I rowsort
SELECT ALL - ( + 54 )
----
-54

query I rowsort
SELECT ALL - - 78
----
78

query I rowsort
SELECT ALL + 6 + - 4 AS col1
----
2

query I rowsort
SELECT + COALESCE ( + + ( + 52 ), - + 62 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT COALESCE ( - - 78, + 17 ) + + 90 * + + COUNT( * ) col1
----
168

skipif mysql # not compatible
query I rowsort label-9027
SELECT COALESCE ( - - 78, + 17 ) + + 90 * + + COUNT ( * ) col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT + + SUM( - + 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9028
SELECT + + SUM ( - + 37 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9029
SELECT ( + - CAST( NULL AS DECIMAL ) ) * - 26 * - + ( + 63 ) / 17 * - + 96 / COUNT( * ) - + 68 + - CAST( NULL AS DECIMAL ) / - COUNT( * ) + 22 + + + 66 * - + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT ( + - CAST ( NULL AS REAL ) ) * - 26 * - + ( + 63 ) / 17 * - + 96 / COUNT ( * ) - + 68 + - CAST ( NULL AS REAL ) / - COUNT ( * ) + 22 + + + 66 * - + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT + - COALESCE ( - 49, SUM( + ( + 63 ) ) - 79 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9030
SELECT + - COALESCE ( - 49, SUM ( + ( + 63 ) ) - 79 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT + CAST( + + MAX( + 4 ) AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9031
SELECT + CAST ( + + MAX ( + 4 ) AS INTEGER ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9032
SELECT ALL - CAST( - 48 AS SIGNED ) + 49, + MIN( + 71 ) * - 49 + + 48 * - + 51 + - 36 AS col0
----
97
-5963

skipif mysql # not compatible
query II rowsort label-9032
SELECT ALL - CAST ( - 48 AS INTEGER ) + 49, + MIN ( + 71 ) * - 49 + + 48 * - + 51 + - 36 AS col0
----
97
-5963

query I rowsort
SELECT ALL - 54 + 93 * + + 87 * + 27
----
218403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT 91 + - + COUNT( * ) DIV 10
----
91

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT 91 + - + COUNT ( * ) / 10
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9035
SELECT DISTINCT 76, - COUNT( ALL + 16 ) * + - CAST( NULL AS SIGNED ) + + AVG ( DISTINCT - - 73 ) - + 91 + - 74 col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-9035
SELECT DISTINCT 76, - COUNT ( ALL + 16 ) * + - CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - - 73 ) - + 91 + - 74 col0
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL 26 + COUNT( * ) * - 84
----
-58

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL 26 + COUNT ( * ) * - 84
----
-58

query I rowsort
SELECT DISTINCT 38 * + 75 AS col1
----
2850

onlyif mysql # aggregate syntax: 
query II rowsort label-9038
SELECT ALL 82, MAX( + - 42 ) AS col1
----
82
-42

skipif mysql # not compatible
query II rowsort label-9038
SELECT ALL 82, MAX ( + - 42 ) AS col1
----
82
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT COUNT( * ) + - - 39
----
40

skipif mysql # not compatible
query I rowsort label-9039
SELECT COUNT ( * ) + - - 39
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT COALESCE ( - ( - COUNT( * ) ), + 62 * MIN( ALL - + 4 ) * 3 + - + 60 ) * + + 68 + + 73 + - - 89 + - + 5 + + 97 * - - 15 * 89
----
129720

skipif mysql # not compatible
query I rowsort label-9040
SELECT COALESCE ( - ( - COUNT ( * ) ), + 62 * MIN ( ALL - + 4 ) * 3 + - + 60 ) * + + 68 + + 73 + - - 89 + - + 5 + + 97 * - - 15 * 89
----
129720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT COUNT( - 88 ) DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT COUNT ( - 88 ) / - + 53
----
0

query I rowsort
SELECT 64 * - 98 col1
----
-6272

query I rowsort
SELECT 71 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT MAX( - 20 ) * - - 4
----
-80

skipif mysql # not compatible
query I rowsort label-9044
SELECT MAX ( - 20 ) * - - 4
----
-80

query II rowsort
SELECT ALL 50, 95 AS col1
----
50
95

query I rowsort
SELECT ALL 2 AS col0
----
2

query I rowsort
SELECT 92 + + 50 col2
----
142

query I rowsort
SELECT ALL 30 - + 51 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT 89 DIV - + 75
----
-1

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT 89 / - + 75
----
-1

query I rowsort
SELECT ALL + 10 - - 86 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9051
SELECT 82 + - CASE + - COUNT( * ) WHEN + 84 THEN NULL ELSE 66 + - COUNT( * ) END * + + 23 * + - CAST( - + CASE + 91 WHEN - 58 THEN 60 ELSE NULL END AS SIGNED ) - + 41 * + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT 82 + - CASE + - COUNT ( * ) WHEN + 84 THEN NULL ELSE 66 + - COUNT ( * ) END * + + 23 * + - CAST ( - + CASE + 91 WHEN - 58 THEN 60 ELSE NULL END AS INTEGER ) - + 41 * + + 75 AS col0
----
NULL

query I rowsort
SELECT 18 - + + 57
----
-39

query I rowsort
SELECT 88 * - 50
----
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT CASE WHEN NOT 0 IS NOT NULL THEN - - 86 ELSE NULL END + 40 + - COALESCE ( + - 28, - - COUNT( * ) + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT CASE WHEN NOT 0 IS NOT NULL THEN - - 86 ELSE NULL END + 40 + - COALESCE ( + - 28, - - COUNT ( * ) + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 27 - - 0 + - + 33 * - 65 AS col1
----
2172

query I rowsort
SELECT - + 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT COUNT( * ) AS col1, - 45
----
1
-45

skipif mysql # not compatible
query II rowsort label-9057
SELECT COUNT ( * ) AS col1, - 45
----
1
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9058
SELECT + 43 + + - COUNT( * ) + + 46 DIV 96 * 43
----
42

skipif mysql # not compatible
query I rowsort label-9058
SELECT + 43 + + - COUNT ( * ) + + 46 / 96 * 43
----
42

query I rowsort
SELECT DISTINCT - + 17
----
-17

query II rowsort
SELECT ALL - 99 AS col2, 71 AS col0
----
-99
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9061
SELECT 64 AS col2, + 14 * CAST( - + 89 AS SIGNED ) AS col0
----
64
-1246

skipif mysql # not compatible
query II rowsort label-9061
SELECT 64 AS col2, + 14 * CAST ( - + 89 AS INTEGER ) AS col0
----
64
-1246

query II rowsort
SELECT ALL - 45 AS col2, 35
----
-45
35

query II rowsort
SELECT DISTINCT - - 83 AS col2, + 34 AS col2
----
83
34

query I rowsort
SELECT ALL - ( 30 ) + - 80 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT CASE + + 90 WHEN 51 + + - 91 THEN + 38 WHEN 74 THEN NULL ELSE COUNT( * ) * - + 54 - + 27 + - 48 END
----
-129

skipif mysql # not compatible
query I rowsort label-9065
SELECT CASE + + 90 WHEN 51 + + - 91 THEN + 38 WHEN 74 THEN NULL ELSE COUNT ( * ) * - + 54 - + 27 + - 48 END
----
-129

query II rowsort
SELECT ALL + - 64 + - 17 AS col0, 50
----
-81
50

query I rowsort
SELECT 65 + - 42
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + 75 * + MAX( DISTINCT + - 18 ) + + - 70 * + 98
----
-8210

skipif mysql # not compatible
query I rowsort label-9068
SELECT + 75 * + MAX ( DISTINCT + - 18 ) + + - 70 * + 98
----
-8210

query I rowsort
SELECT + - 58 col0
----
-58

query I rowsort
SELECT DISTINCT - + 39 * + 20 AS col0
----
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9071
SELECT NULLIF ( + 32, - 64 ) + - MAX( ALL CAST( NULL AS SIGNED ) ) + + + MAX( + 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT NULLIF ( + 32, - 64 ) + - MAX ( ALL CAST ( NULL AS INTEGER ) ) + + + MAX ( + 37 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT DISTINCT + COALESCE ( 40, - - 23 * - + CASE + 44 WHEN - - 35 * - - 7 THEN NULL WHEN - CAST( NULL AS SIGNED ) + + - COUNT( * ) THEN - - 81 + + COUNT( * ) WHEN + 43 THEN 61 * ( + 50 ) + 51 ELSE - 0 END + 6 * - 19 ) + + 76 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + COALESCE ( 40, - - 23 * - + CASE + 44 WHEN - - 35 * - - 7 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) THEN - - 81 + + COUNT ( * ) WHEN + 43 THEN 61 * ( + 50 ) + 51 ELSE - 0 END + 6 * - 19 ) + + 76 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT - + 47 * COUNT( * ) * 4
----
-188

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT - + 47 * COUNT ( * ) * 4
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9074
SELECT ALL + 77 + 61 + - - 92 - + 85 * 44 * - - COALESCE ( 68, + 63 * - - 57 ) * + + 95 + - 1 DIV COUNT( * ) DIV 70 DIV + 42 + + + 14
----
-24160156

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + 77 + 61 + - - 92 - + 85 * 44 * - - COALESCE ( 68, + 63 * - - 57 ) * + + 95 + - 1 / COUNT ( * ) / 70 / + 42 + + + 14
----
-24160156

query I rowsort
SELECT 48 + + 9
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT 41 * COUNT( * ) * + ( CASE - SUM( ALL - ( 97 ) ) WHEN - 60 THEN NULL ELSE - 94 END ) * + 40 + + 10 AS col2
----
-154150

skipif mysql # not compatible
query I rowsort label-9076
SELECT 41 * COUNT ( * ) * + ( CASE - SUM ( ALL - ( 97 ) ) WHEN - 60 THEN NULL ELSE - 94 END ) * + 40 + + 10 AS col2
----
-154150

query I rowsort
SELECT DISTINCT - 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL + 41 - + + 9 + + + SUM( DISTINCT - 93 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL + 41 - + + 9 + + + SUM ( DISTINCT - 93 ) AS col0
----
-61

query I rowsort
SELECT 2 + 47 - 26 + + 7 * - + 8 AS col1
----
-33

query I rowsort
SELECT DISTINCT 84 * + 50 * 29 AS col0
----
121800

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL + 41 - ( + + 64 ) + + 82 * - 14 - ( - - CASE 93 WHEN + COUNT( ALL - - 94 ) / - - 76 THEN NULL WHEN + 91 THEN - 98 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + 41 - ( + + 64 ) + + 82 * - 14 - ( - - CASE 93 WHEN + COUNT ( ALL - - 94 ) / - - 76 THEN NULL WHEN + 91 THEN - 98 END )
----
NULL

query I rowsort
SELECT 92 + + 53 + - 92 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9083
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT DISTINCT + 69 * + 61 AS col0, - 73 * - - 75
----
4209
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT COUNT( * ) * + - 58 * 30 AS col1
----
-1740

skipif mysql # not compatible
query I rowsort label-9085
SELECT COUNT ( * ) * + - 58 * 30 AS col1
----
-1740

query I rowsort
SELECT 43 col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT COALESCE ( - + 27, 24 * - + 83 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT COALESCE ( - + 27, 24 * - + 83 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL COUNT( * ) * - NULLIF ( 26, - + 23 * + ( + 12 ) * + 56 + - - COUNT( * ) - 8 * - 45 * + 35 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL COUNT ( * ) * - NULLIF ( 26, - + 23 * + ( + 12 ) * + 56 + - - COUNT ( * ) - 8 * - 45 * + 35 ) AS col1
----
-26

query I rowsort
SELECT 27 + + 59 + 62
----
148

query I rowsort
SELECT ALL 14 col0
----
14

query I rowsort
SELECT - NULLIF ( + 59, + 96 * + - 72 - 3 + - + 32 ) col2
----
-59

query I rowsort
SELECT ( - + 45 ) + - 45
----
-90

query I rowsort
SELECT DISTINCT NULLIF ( + 32, + - 71 * 81 + - 32 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT ALL + 0 DIV 66 * + 17 + + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL + 0 / 66 * + 17 + + 13 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9095
SELECT ALL COALESCE ( - + COUNT( * ), CAST( + 1 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL COALESCE ( - + COUNT ( * ), CAST ( + 1 AS INTEGER ) )
----
-1

query I rowsort
SELECT + + ( 24 ) * - - 52 AS col2
----
1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9097
SELECT + + 45 DIV + ( + - MAX( DISTINCT + + 1 ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-9097
SELECT + + 45 / + ( + - MAX ( DISTINCT + + 1 ) ) col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9098
SELECT ALL - CASE - ( - COUNT( * ) ) WHEN - - NULLIF ( 15, 5 ) * COUNT( * ) * + COUNT( * ) THEN NULL WHEN + CAST( NULL AS DECIMAL ) * 75 THEN - COUNT( - ( + 41 ) ) * - 22 + + - 51 END + - - ( 35 ) + 90 * ( + MAX( DISTINCT 20 ) * COUNT( * ) + 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - CASE - ( - COUNT ( * ) ) WHEN - - NULLIF ( 15, 5 ) * COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN + CAST ( NULL AS REAL ) * 75 THEN - COUNT ( - ( + 41 ) ) * - 22 + + - 51 END + - - ( 35 ) + 90 * ( + MAX ( DISTINCT 20 ) * COUNT ( * ) + 24 ) AS col0
----
NULL

query I rowsort
SELECT + - 75 - - 58
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9100
SELECT + + COUNT( * ) - - 65, CAST( 29 AS SIGNED ) AS col1
----
66
29

skipif mysql # not compatible
query II rowsort label-9100
SELECT + + COUNT ( * ) - - 65, CAST ( 29 AS INTEGER ) AS col1
----
66
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL COUNT( * ) * - ( ( + 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL COUNT ( * ) * - ( ( + 38 ) )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT COALESCE ( NULLIF ( + 8, + CASE + NULLIF ( 92, + - ( + ( COUNT( * ) ) ) ) WHEN + 86 + + COUNT( * ) THEN NULL WHEN + + COUNT( * ) * + + COUNT( * ) * - 79 * - 79 * + 96 * - 42 THEN COALESCE ( CAST( 98 AS SIGNED ), - COUNT( * ) / COUNT( * ) ) ELSE 1 END * 98 ), 6 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9102
SELECT COALESCE ( NULLIF ( + 8, + CASE + NULLIF ( 92, + - ( + ( COUNT ( * ) ) ) ) WHEN + 86 + + COUNT ( * ) THEN NULL WHEN + + COUNT ( * ) * + + COUNT ( * ) * - 79 * - 79 * + 96 * - 42 THEN COALESCE ( CAST ( 98 AS INTEGER ), - COUNT ( * ) / COUNT ( * ) ) ELSE 1 END * 98 ), 6 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + 33 / - 15 + + COUNT( * ) - - - CASE + - 21 WHEN + ( + 35 ) THEN - 62 WHEN + + COUNT( * ) THEN NULL END * 92 - - 66 * + 11 / - CASE NULLIF ( + + 66, 61 * MAX( 67 ) ) WHEN - 34 THEN NULL WHEN 21 THEN - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9103
SELECT + 33 / - 15 + + COUNT ( * ) - - - CASE + - 21 WHEN + ( + 35 ) THEN - 62 WHEN + + COUNT ( * ) THEN NULL END * 92 - - 66 * + 11 / - CASE NULLIF ( + + 66, 61 * MAX ( 67 ) ) WHEN - 34 THEN NULL WHEN 21 THEN - 19 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 76, + 61 ) * + + 14 + - 23
----
-1087

query I rowsort
SELECT DISTINCT + - ( + 70 )
----
-70

query I rowsort
SELECT DISTINCT + - 97
----
-97

query I rowsort
SELECT 21 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - COUNT( * ) * + 15 + - 58 + + - 8 * - 79 AS col1
----
559

skipif mysql # not compatible
query I rowsort label-9108
SELECT - COUNT ( * ) * + 15 + - 58 + + - 8 * - 79 AS col1
----
559

query I rowsort
SELECT DISTINCT + 16 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT + 61 + - + 2 DIV - - 57 - 12 * 0 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9110
SELECT + 61 + - + 2 / - - 57 - 12 * 0 AS col0
----
61

query II rowsort
SELECT + 22 AS col0, + 98 + + ( + 55 ) * + 91 col2
----
22
5103

query I rowsort
SELECT ALL + 22 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT MAX( DISTINCT + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9113
SELECT MAX ( DISTINCT + 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT - CAST( NULL AS SIGNED ) - - - 80 + + 94 - + + NULLIF ( + - 10, - + COUNT( * ) + + CASE - COUNT( * ) WHEN + 77 + + + COUNT( * ) THEN + 84 ELSE + - COUNT( * ) + - - 81 + - COALESCE ( + ( + 40 ), - MIN( ALL 71 ) - + 89 ) END + + 23 * - 63 * + 92 ) * + CASE COUNT( * ) WHEN - CAST( 89 AS SIGNED ) * - 23 THEN MIN( DISTINCT 65 ) ELSE 31 END * + MAX( ALL 72 * - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT - CAST ( NULL AS INTEGER ) - - - 80 + + 94 - + + NULLIF ( + - 10, - + COUNT ( * ) + + CASE - COUNT ( * ) WHEN + 77 + + + COUNT ( * ) THEN + 84 ELSE + - COUNT ( * ) + - - 81 + - COALESCE ( + ( + 40 ), - MIN ( ALL 71 ) - + 89 ) END + + 23 * - 63 * + 92 ) * + CASE COUNT ( * ) WHEN - CAST ( 89 AS INTEGER ) * - 23 THEN MIN ( DISTINCT 65 ) ELSE 31 END * + MAX ( ALL 72 * - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + 55 * + COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT - CASE + 50 WHEN - MIN( + + 21 ) * + COUNT( * ) * + 89 THEN NULL WHEN - 5 THEN - + 60 + 3 * + COUNT( * ) * - + 98 END * - - CASE + - 26 WHEN - ( + 91 ) * - - 8 THEN + 49 / - 0 + COUNT( * ) WHEN 82 * + 33 + + 28 THEN 59 * CAST( 57 AS SIGNED ) - + 15 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT - CASE + 50 WHEN - MIN ( + + 21 ) * + COUNT ( * ) * + 89 THEN NULL WHEN - 5 THEN - + 60 + 3 * + COUNT ( * ) * - + 98 END * - - CASE + - 26 WHEN - ( + 91 ) * - - 8 THEN + 49 / - 0 + COUNT ( * ) WHEN 82 * + 33 + + 28 THEN 59 * CAST ( 57 AS INTEGER ) - + 15 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT DISTINCT 78 DIV + 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT 78 / + 78 AS col2
----
1

query I rowsort
SELECT ALL - 82 * + 16
----
-1312

query I rowsort
SELECT ALL 95 * - ( - + 56 ) - 23 AS col2
----
5297

query I rowsort
SELECT DISTINCT + 25 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9121
SELECT ALL + 10 - + 96 + - - MIN( DISTINCT + + 83 ) AS col1, 54 * CAST( NULL AS SIGNED ) - + COUNT( * )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL + 10 - + 96 + - - MIN ( DISTINCT + + 83 ) AS col1, 54 * CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
-3
NULL

query I rowsort
SELECT ALL ( - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL - 83 * + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - 83 * + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - COUNT( * ) + 76
----
75

skipif mysql # not compatible
query I rowsort label-9124
SELECT - COUNT ( * ) + 76
----
75

query I rowsort
SELECT ALL ( - 64 )
----
-64

query I rowsort
SELECT ALL ( - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT - MAX( DISTINCT + 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9127
SELECT - MAX ( DISTINCT + 99 ) AS col1
----
-99

query I rowsort
SELECT DISTINCT ( + 67 ) AS col0
----
67

query I rowsort
SELECT - 42 + - 68
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT DISTINCT CASE - CAST( - CASE - - 90 WHEN 29 THEN ( - 73 ) * + ( + 48 ) / - COALESCE ( + - 94, + + 97 + 82 ) * + ( + 10 ) + - COUNT( * ) - 94 + + + 31 END AS SIGNED ) WHEN CAST( + 6 AS SIGNED ) THEN - MAX( ALL - ( + 71 ) ) WHEN + 32 / - 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT CASE - CAST ( - CASE - - 90 WHEN 29 THEN ( - 73 ) * + ( + 48 ) / - COALESCE ( + - 94, + + 97 + 82 ) * + ( + 10 ) + - COUNT ( * ) - 94 + + + 31 END AS INTEGER ) WHEN CAST ( + 6 AS INTEGER ) THEN - MAX ( ALL - ( + 71 ) ) WHEN + 32 / - 58 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL NULLIF ( COUNT( * ), - COUNT( * ) ) + + 19 * + 79 * COUNT( * )
----
1502

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL NULLIF ( COUNT ( * ), - COUNT ( * ) ) + + 19 * + 79 * COUNT ( * )
----
1502

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT - 35 + + 12 DIV - 74 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9132
SELECT - 35 + + 12 / - 74 AS col0
----
-35

query I rowsort
SELECT ALL ( - - 55 )
----
55

query I rowsort
SELECT DISTINCT ( 41 )
----
41

query I rowsort
SELECT - 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL + - 10 + - SUM( + 41 ) * - 57
----
2327

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL + - 10 + - SUM ( + 41 ) * - 57
----
2327

query II rowsort
SELECT 31 AS col2, + 62 AS col2
----
31
62

query I rowsort
SELECT - 44 + + 27 AS col1
----
-17

query I rowsort
SELECT + 14 - - 49 + + 3
----
66

query II rowsort
SELECT + 27 - 63 + - 67 col2, 63
----
-103
63

query I rowsort
SELECT - - 95 AS col0
----
95

query I rowsort
SELECT - - 38
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT DISTINCT - 27 + - ( + 21 ) DIV - 92 + - + 39 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT - 27 + - ( + 21 ) / - 92 + - + 39 AS col0
----
-66

query I rowsort
SELECT DISTINCT + + 68 + - 85
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + ( + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL 34 / + 18 * 82 + + COUNT( * ) + - 71 + CAST( + 59 AS SIGNED ) - + NULLIF ( + - 58, - 86 ) / - + CAST( NULL AS SIGNED ) * - 89 * - COUNT( * ) * + + SUM( DISTINCT + 62 ) / + COUNT( DISTINCT + + 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL 34 / + 18 * 82 + + COUNT ( * ) + - 71 + CAST ( + 59 AS INTEGER ) - + NULLIF ( + - 58, - 86 ) / - + CAST ( NULL AS INTEGER ) * - 89 * - COUNT ( * ) * + + SUM ( DISTINCT + 62 ) / + COUNT ( DISTINCT + + 70 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9147
SELECT CAST( 93 AS SIGNED ) * + 86 * - + 90 + + 29 + - ( - + 77 ) * 41 + + 9 + - 16 * - ( + 2 ) * + COUNT( * )
----
-716593

skipif mysql # not compatible
query I rowsort label-9147
SELECT CAST ( 93 AS INTEGER ) * + 86 * - + 90 + + 29 + - ( - + 77 ) * 41 + + 9 + - 16 * - ( + 2 ) * + COUNT ( * )
----
-716593

query I rowsort
SELECT ALL + + 63 AS col1
----
63

query I rowsort
SELECT DISTINCT + 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT + - SUM( DISTINCT - + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + - SUM ( DISTINCT - + 58 ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT + 60 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT + 60 / 62 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT DISTINCT - 80 DIV - 1 - - - 87 * - - 91
----
-7837

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - 80 / - 1 - - - 87 * - - 91
----
-7837

query I rowsort
SELECT ALL 13 * 71 AS col1
----
923

query I rowsort
SELECT + ( - 15 ) * + - 73
----
1095

query I rowsort
SELECT + ( - 88 ) + + 42
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT 72 * + COUNT( * ) * + - ( - COUNT( * ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT 72 * + COUNT ( * ) * + - ( - COUNT ( * ) ) AS col0
----
72

query I rowsort
SELECT ALL + ( - 94 ) AS col0
----
-94

query I rowsort
SELECT + ( - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - 19 + - - COUNT( * ) * + 97 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9160
SELECT - 19 + - - COUNT ( * ) * + 97 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT NULLIF ( - ( + + COUNT( * ) ), + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-9161
SELECT NULLIF ( - ( + + COUNT ( * ) ), + 72 )
----
-1

query I rowsort
SELECT 15 * - 82 + 29 AS col1
----
-1201

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT COALESCE ( + 4, + - 47, COUNT( * ) ) AS col1, - 50 AS col2
----
4
-50

skipif mysql # not compatible
query II rowsort label-9163
SELECT COALESCE ( + 4, + - 47, COUNT ( * ) ) AS col1, - 50 AS col2
----
4
-50

query I rowsort
SELECT + 66 * + + 37
----
2442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9165
SELECT - 71 + + - 93 * - + 71 - + + COUNT( * ) DIV - 42 * 24 DIV 4 col2
----
6532

skipif mysql # not compatible
query I rowsort label-9165
SELECT - 71 + + - 93 * - + 71 - + + COUNT ( * ) / - 42 * 24 / 4 col2
----
6532

query I rowsort
SELECT DISTINCT - 97 * + + ( + 36 ) AS col0
----
-3492

query I rowsort
SELECT ALL 24 + + 23
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9168
SELECT 17 + + 98, + NULLIF ( - NULLIF ( COUNT( * ), + ( - + 74 ) ), - - 36 ) DIV - CAST( - 77 AS SIGNED ) - 43 DIV - 96 col2
----
115
0

skipif mysql # not compatible
query II rowsort label-9168
SELECT 17 + + 98, + NULLIF ( - NULLIF ( COUNT ( * ), + ( - + 74 ) ), - - 36 ) / - CAST ( - 77 AS INTEGER ) - 43 / - 96 col2
----
115
0

query I rowsort
SELECT ALL 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT - COUNT( * ) + - 67 * + 76 AS col0
----
-5093

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT - COUNT ( * ) + - 67 * + 76 AS col0
----
-5093

query II rowsort
SELECT ALL + 52 + - 93 AS col0, ( - 23 ) + + 54 AS col1
----
-41
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9172
SELECT ALL - COALESCE ( - - MAX( + - 79 ), + 25 ) + 74 * - CAST( NULL AS SIGNED ) - + ( + - 47 ) + + 30 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - COALESCE ( - - MAX ( + - 79 ), + 25 ) + 74 * - CAST ( NULL AS INTEGER ) - + ( + - 47 ) + + 30 * 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9173
SELECT 84 * - + 65 + - 12 DIV + - 41 AS col2, COUNT( * ) AS col2
----
-5460
1

skipif mysql # not compatible
query II rowsort label-9173
SELECT 84 * - + 65 + - 12 / + - 41 AS col2, COUNT ( * ) AS col2
----
-5460
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT + MIN( DISTINCT + 50 ) + - 38 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9175
SELECT + MIN ( DISTINCT + 50 ) + - 38 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT CAST( + - 4 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9176
SELECT CAST ( + - 4 AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT DISTINCT + 65 - 8
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT 32 * COUNT( 86 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9178
SELECT 32 * COUNT ( 86 ) AS col1
----
32

query I rowsort
SELECT ALL - 91 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9180
SELECT - COUNT( * ) - + - COUNT( * ) + 68 + + + COUNT( * ) * CAST( + + 2 AS SIGNED ) - + 91 * - - 3 + - 16, COUNT( * ) AS col2
----
-219
1

skipif mysql # not compatible
query II rowsort label-9180
SELECT - COUNT ( * ) - + - COUNT ( * ) + 68 + + + COUNT ( * ) * CAST ( + + 2 AS INTEGER ) - + 91 * - - 3 + - 16, COUNT ( * ) AS col2
----
-219
1

query I rowsort
SELECT + + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT 81 + + - NULLIF ( - 28, + 34 ) * COUNT( * ) + - - 16
----
125

skipif mysql # not compatible
query I rowsort label-9182
SELECT 81 + + - NULLIF ( - 28, + 34 ) * COUNT ( * ) + - - 16
----
125

onlyif mysql # DIV for integer division: 
query II rowsort label-9183
SELECT + 27 DIV + 82 AS col1, - 72 AS col0
----
0
-72

skipif mysql # not compatible
query II rowsort label-9183
SELECT + 27 / + 82 AS col1, - 72 AS col0
----
0
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL + ( + MIN( DISTINCT 76 ) ) * + + 62 AS col0
----
4712

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + ( + MIN ( DISTINCT 76 ) ) * + + 62 AS col0
----
4712

query II rowsort
SELECT ( - 28 ) * + ( 87 ), 18 + + 37 col0
----
-2436
55

query I rowsort
SELECT + COALESCE ( + 41, + + 61 )
----
41

query I rowsort
SELECT DISTINCT - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 25 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9190
SELECT ALL 90 DIV 37 * 27 * - MAX( ALL - 48 ) AS col2
----
2592

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL 90 / 37 * 27 * - MAX ( ALL - 48 ) AS col2
----
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT 2 DIV 32 col0
----
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT 2 / 32 col0
----
0

query I rowsort
SELECT 73 * - 72
----
-5256

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT DISTINCT 25 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT 25 / 50
----
0

query II rowsort
SELECT + 89 AS col2, 74
----
89
74

query II rowsort
SELECT 86 AS col2, - 2 * 25 + + 68
----
86
18

query I rowsort
SELECT ALL - 56 col0
----
-56

onlyif mysql # DIV for integer division: 
query III rowsort label-9197
SELECT 59, - 90 DIV 12 AS col2, + 93 * 60 AS col2
----
59
-7
5580

skipif mysql # not compatible
query III rowsort label-9197
SELECT 59, - 90 / 12 AS col2, + 93 * 60 AS col2
----
59
-7
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL COUNT( + - 65 ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL COUNT ( + - 65 ) + + 14
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9199
SELECT 67 AS col2, + CAST( NULL AS SIGNED ) / + COUNT( * )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9199
SELECT 67 AS col2, + CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT ALL 54 + + CASE + 79 WHEN 39 + - 53 THEN NULL ELSE + 0 END AS col1, COUNT( * ) * + 17 * - COUNT( * ) * 16 + - 34 * + CASE COUNT( * ) WHEN + 68 * - 82 THEN 50 * - 85 / - SUM( + - 57 ) + - 76 + 85 END
----
54
NULL

skipif mysql # not compatible
query II rowsort label-9200
SELECT ALL 54 + + CASE + 79 WHEN 39 + - 53 THEN NULL ELSE + 0 END AS col1, COUNT ( * ) * + 17 * - COUNT ( * ) * 16 + - 34 * + CASE COUNT ( * ) WHEN + 68 * - 82 THEN 50 * - 85 / - SUM ( + - 57 ) + - 76 + 85 END
----
54
NULL

query I rowsort
SELECT 8 - - 47 * - + 40
----
-1872

query I rowsort
SELECT DISTINCT 65 * + 95
----
6175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT DISTINCT 83 + + ( - 48 ) - 30 * + CASE + ( - + CAST( - 76 AS SIGNED ) ) WHEN - + ( + CAST( + COALESCE ( + COUNT( * ), COUNT( * ) ) AS SIGNED ) ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT 83 + + ( - 48 ) - 30 * + CASE + ( - + CAST ( - 76 AS INTEGER ) ) WHEN - + ( + CAST ( + COALESCE ( + COUNT ( * ), COUNT ( * ) ) AS INTEGER ) ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9204
SELECT DISTINCT SUM( ALL 20 ) + + CAST( - ( + - 81 ) AS SIGNED ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT SUM ( ALL 20 ) + + CAST ( - ( + - 81 ) AS INTEGER ) AS col1
----
101

query I rowsort
SELECT ALL 18 + - 81 AS col0
----
-63

query I rowsort
SELECT + 12 + - - 68 AS col0
----
80

query I rowsort
SELECT - - 86
----
86

query I rowsort
SELECT + 26 + - + ( - 68 ) - - 25
----
119

query I rowsort
SELECT - + 45 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + ( - + CASE ( - - CASE + 36 WHEN + - 12 THEN - 12 * - - 51 ELSE NULL END ) WHEN - - COUNT( * ) THEN - COUNT( * ) ELSE NULL END ) - - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + ( - + CASE ( - - CASE + 36 WHEN + - 12 THEN - 12 * - - 51 ELSE NULL END ) WHEN - - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END ) - - 18 AS col1
----
NULL

query I rowsort
SELECT ALL - - 42 - 95 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT 78 + 18 - CASE WHEN NOT ( + 40 ) IS NOT NULL THEN 90 * AVG ( ALL + - 29 ) / - 81 * + 49 * + COUNT( * ) * + 7 * + COUNT( * ) + + - ( + CASE WHEN NULL <> + COUNT( ALL - + CAST( NULL AS SIGNED ) ) THEN - 50 * + 33 / COUNT( * ) - 66 ELSE NULL END ) * - 21 WHEN NOT ( 40 / MIN( - 68 ) + - 31 ) NOT IN ( + CAST( 74 AS SIGNED ) + - 40 ) THEN NULL END * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT 78 + 18 - CASE WHEN NOT ( + 40 ) IS NOT NULL THEN 90 * AVG ( ALL + - 29 ) / - 81 * + 49 * + COUNT ( * ) * + 7 * + COUNT ( * ) + + - ( + CASE WHEN NULL <> + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) THEN - 50 * + 33 / COUNT ( * ) - 66 ELSE NULL END ) * - 21 WHEN NOT ( 40 / MIN ( - 68 ) + - 31 ) NOT IN ( + CAST ( 74 AS INTEGER ) + - 40 ) THEN NULL END * - 80 AS col2
----
NULL

query I rowsort
SELECT ALL - + 17 * + + 65
----
-1105

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT DISTINCT - 0 DIV + 69 * - 81 + + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT - 0 / + 69 * - 81 + + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT - MIN( ALL - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9215
SELECT - MIN ( ALL - 58 )
----
58

query I rowsort
SELECT DISTINCT 70 AS col0
----
70

query I rowsort
SELECT ALL + 67 - + - 89 + - 69 * - 57
----
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT + 8 * + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + 8 * + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9219
SELECT COALESCE ( - SUM( DISTINCT + + 87 ), - 2 DIV COUNT( * ) ) * 58, - 59 * CASE + 16 WHEN 44 THEN NULL ELSE - NULLIF ( 79, 59 + - - 43 ) DIV + 85 END AS col1
----
-5046
0

skipif mysql # not compatible
query II rowsort label-9219
SELECT COALESCE ( - SUM ( DISTINCT + + 87 ), - 2 / COUNT ( * ) ) * 58, - 59 * CASE + 16 WHEN 44 THEN NULL ELSE - NULLIF ( 79, 59 + - - 43 ) / + 85 END AS col1
----
-5046
0

query I rowsort
SELECT ALL - ( + - 48 )
----
48

query I rowsort
SELECT + 12 - + - 48 AS col1
----
60

query I rowsort
SELECT - + 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT MIN( + - 56 ) + + SUM( + 74 ) + 28 * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9223
SELECT MIN ( + - 56 ) + + SUM ( + 74 ) + 28 * + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + 25 + + MIN( DISTINCT - 65 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9224
SELECT + 25 + + MIN ( DISTINCT - 65 ) AS col1
----
-40

query I rowsort
SELECT DISTINCT - - 52 col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT DISTINCT - ( CAST( 23 AS SIGNED ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - ( CAST ( 23 AS INTEGER ) ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL - 23 * - + COUNT( * ) * 83 * + 86
----
164174

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - 23 * - + COUNT ( * ) * 83 * + 86
----
164174

query I rowsort
SELECT ALL 83 * 32 + + - 44 * + 94
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT - 42 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - 42 * COUNT ( * )
----
-42

query I rowsort
SELECT 73 + + 5 - + 9 * + 19
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT COUNT( * ), - 43 col2
----
1
-43

skipif mysql # not compatible
query II rowsort label-9231
SELECT COUNT ( * ), - 43 col2
----
1
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT ALL 95 * 18 DIV 44 + 89 + + 43 * - 41
----
-1636

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL 95 * 18 / 44 + 89 + + 43 * - 41
----
-1636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT 18 * + + CAST( + 18 AS SIGNED ) col0
----
324

skipif mysql # not compatible
query I rowsort label-9233
SELECT 18 * + + CAST ( + 18 AS INTEGER ) col0
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT COUNT( + 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9234
SELECT COUNT ( + 43 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT COUNT( - 16 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9235
SELECT COUNT ( - 16 ) col1
----
1

query I rowsort
SELECT ALL + 12 * - 76 + - NULLIF ( - + 47, - 58 ) + + + 35 * 66 + + 31 + + - 66 + - + 51 * 11 + - + COALESCE ( + + 95, + + 80 ) + - - 43 - + ( - - ( + 44 ) ) + 31
----
784

query II rowsort
SELECT + 41, 28 * - 61 AS col1
----
41
-1708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT ALL 32 * + ( 83 ) / - 83 * 16 + COALESCE ( + + 91, MAX( ALL 61 ) * - + 54 - 16 * + ( 0 ), - 53 * + 55 * - - 94 + 4, 42 ) + + + CAST( NULL AS SIGNED ) - + COALESCE ( - COUNT( * ), COUNT( * ) * 40, 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL 32 * + ( 83 ) / - 83 * 16 + COALESCE ( + + 91, MAX ( ALL 61 ) * - + 54 - 16 * + ( 0 ), - 53 * + 55 * - - 94 + 4, 42 ) + + + CAST ( NULL AS INTEGER ) - + COALESCE ( - COUNT ( * ), COUNT ( * ) * 40, 6 ) AS col1
----
NULL

query I rowsort
SELECT 52 * + + 78 + - 46 AS col0
----
4010

query I rowsort
SELECT DISTINCT + 79 col2
----
79

query I rowsort
SELECT ALL - 13 * - 24 + - 44 col1
----
268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT + 36 + CAST( - CASE - COUNT( * ) WHEN + 74 THEN + + 75 ELSE 83 END AS SIGNED ) + + COUNT( DISTINCT + 62 ) * + 61
----
14

skipif mysql # not compatible
query I rowsort label-9242
SELECT + 36 + CAST ( - CASE - COUNT ( * ) WHEN + 74 THEN + + 75 ELSE 83 END AS INTEGER ) + + COUNT ( DISTINCT + 62 ) * + 61
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT ALL COALESCE ( - - 12, - 72 + + 41 * - 93 + 46 * 12 + + 88 * + - 1 ) DIV 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL COALESCE ( - - 12, - 72 + + 41 * - 93 + 46 * 12 + + 88 * + - 1 ) / 12 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9244
SELECT + 12 + - - CASE + - 57 WHEN - 73 + + 16 THEN NULL WHEN + CASE - 46 WHEN 14 + + 97 + 94 + - COUNT( * ) * 8 / + + NULLIF ( - COUNT( * ), + 88 ) THEN 30 ELSE + + ( - - 0 ) * + 76 END THEN NULL WHEN 55 / + 6 / - 23 THEN CAST( - 34 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT + 12 + - - CASE + - 57 WHEN - 73 + + 16 THEN NULL WHEN + CASE - 46 WHEN 14 + + 97 + 94 + - COUNT ( * ) * 8 / + + NULLIF ( - COUNT ( * ), + 88 ) THEN 30 ELSE + + ( - - 0 ) * + 76 END THEN NULL WHEN 55 / + 6 / - 23 THEN CAST ( - 34 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT ALL - CAST( + - 38 AS SIGNED ) * - - 20 + - 4 / - - CAST( NULL AS SIGNED ) / - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - CAST ( + - 38 AS INTEGER ) * - - 20 + - 4 / - - CAST ( NULL AS INTEGER ) / - 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT DISTINCT + 80 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + 80 / - 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT 52 * 37 * - COUNT( * ) + - + 16 AS col0
----
-1940

skipif mysql # not compatible
query I rowsort label-9247
SELECT 52 * 37 * - COUNT ( * ) + - + 16 AS col0
----
-1940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9248
SELECT DISTINCT 29 - CAST( + NULLIF ( - MIN( - 4 ), + + COUNT( * ) - + 15 ) AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT 29 - CAST ( + NULLIF ( - MIN ( - 4 ), + + COUNT ( * ) - + 15 ) AS INTEGER ) AS col2
----
25

query I rowsort
SELECT + + 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + 80 + 66 * - ( + 49 ) + - 49 * + COUNT( * ) * + + 7 * - 35 + 71 * + CASE + NULLIF ( + 47, - 69 ) WHEN 29 THEN NULL ELSE + - 10 END
----
8141

skipif mysql # not compatible
query I rowsort label-9250
SELECT + 80 + 66 * - ( + 49 ) + - 49 * + COUNT ( * ) * + + 7 * - 35 + 71 * + CASE + NULLIF ( + 47, - 69 ) WHEN 29 THEN NULL ELSE + - 10 END
----
8141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT + + 26 * - - CASE 6 WHEN + 68 - 89 + 16 THEN + 85 * + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - + 53 + ( - NULLIF ( + + 60, + 83 ) ) + + - 7 * 63 WHEN + 48 + - + 61 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + + 26 * - - CASE 6 WHEN + 68 - 89 + 16 THEN + 85 * + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 53 + ( - NULLIF ( + + 60, + 83 ) ) + + - 7 * 63 WHEN + 48 + - + 61 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + NULLIF ( 33, 53 ) )
----
-33

query I rowsort
SELECT ALL 9 col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9254
SELECT ALL MIN( DISTINCT - 93 ) AS col2, CAST( - 44 AS SIGNED ) AS col1
----
-93
-44

skipif mysql # not compatible
query II rowsort label-9254
SELECT ALL MIN ( DISTINCT - 93 ) AS col2, CAST ( - 44 AS INTEGER ) AS col1
----
-93
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT ALL + 71 - - 61 - + + COALESCE ( - COUNT( * ), + COALESCE ( + + 91, - 36 ) ) DIV 42
----
132

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + 71 - - 61 - + + COALESCE ( - COUNT ( * ), + COALESCE ( + + 91, - 36 ) ) / 42
----
132

query I rowsort
SELECT ALL 43 AS col0
----
43

query I rowsort
SELECT DISTINCT ( - 63 ) * 70 + - 24 AS col1
----
-4434

onlyif mysql # DIV for integer division: 
query II rowsort label-9258
SELECT ALL + 59 AS col2, ( + - 30 ) DIV + 46 AS col0
----
59
0

skipif mysql # not compatible
query II rowsort label-9258
SELECT ALL + 59 AS col2, ( + - 30 ) / + 46 AS col0
----
59
0

query I rowsort
SELECT DISTINCT 60 col2
----
60

query I rowsort
SELECT + 40 * - + 1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT + COUNT( * ) DIV 28 col0
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT + COUNT ( * ) / 28 col0
----
0

query I rowsort
SELECT + + 74 - - COALESCE ( - 28, 54 + - 24 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL + 94 * + MIN( DISTINCT 6 ) AS col0
----
564

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL + 94 * + MIN ( DISTINCT 6 ) AS col0
----
564

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT + - 98 + + 70 + 37 DIV 96
----
-28

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + - 98 + + 70 + 37 / 96
----
-28

query I rowsort
SELECT DISTINCT 50 * 13 * - 95
----
-61750

query I rowsort
SELECT ALL 8 + - 21
----
-13

query I rowsort
SELECT - 47 * 53 + - 79
----
-2570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT - COALESCE ( 27, - + 50, - - COALESCE ( - - COUNT( * ), + 98 + + COUNT( * ) ) * - 47 - - + COUNT( * ) * - 29 * 30 DIV + - 33 ) DIV + 76 * - 70 + + + MAX( CAST( + 30 AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - COALESCE ( 27, - + 50, - - COALESCE ( - - COUNT ( * ), + 98 + + COUNT ( * ) ) * - 47 - - + COUNT ( * ) * - 29 * 30 / + - 33 ) / + 76 * - 70 + + + MAX ( CAST ( + 30 AS INTEGER ) )
----
30

query I rowsort
SELECT ( 78 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT 56 DIV + 38 + + + 95
----
96

skipif mysql # not compatible
query I rowsort label-9270
SELECT 56 / + 38 + + + 95
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT ALL + 68 DIV - 39 + + - 15
----
-16

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + 68 / - 39 + + - 15
----
-16

query I rowsort
SELECT ( 82 ) col0
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9273
SELECT DISTINCT 28 DIV - 30 + - ( + - ( - COALESCE ( + CAST( NULL AS SIGNED ), 93 + + 72, - - 10 DIV - - CAST( NULL AS SIGNED ) * + - 90 ) ) ) col0
----
-165

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT 28 / - 30 + - ( + - ( - COALESCE ( + CAST ( NULL AS INTEGER ), 93 + + 72, - - 10 / - - CAST ( NULL AS INTEGER ) * + - 90 ) ) ) col0
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-9274
SELECT - 36 * + 88 AS col1, - SUM( ALL - + 19 ) + - - MAX( ALL + 12 ) * 49 * - 17 col2
----
-3168
-9977

skipif mysql # not compatible
query II rowsort label-9274
SELECT - 36 * + 88 AS col1, - SUM ( ALL - + 19 ) + - - MAX ( ALL + 12 ) * 49 * - 17 col2
----
-3168
-9977

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL - 91 * + COUNT( * ) + MIN( ALL + 8 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - 91 * + COUNT ( * ) + MIN ( ALL + 8 ) AS col0
----
-83

query I rowsort
SELECT ALL + CASE - 6 WHEN 52 THEN NULL ELSE 47 END
----
47

query I rowsort
SELECT ALL - 52 * - 46 + - NULLIF ( - COALESCE ( - 15, - 57 ), AVG ( DISTINCT - + 94 ) )
----
2377

query I rowsort
SELECT - 0 * - NULLIF ( - 86, + 18 ) AS col1
----
0

query I rowsort
SELECT ALL + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT COALESCE ( - MAX( DISTINCT + + 52 ), 44 + + 17, - COUNT( * ) * 74 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9280
SELECT COALESCE ( - MAX ( DISTINCT + + 52 ), 44 + + 17, - COUNT ( * ) * 74 ) AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9281
SELECT ALL + COUNT( * ) * + 91 - + 10 DIV 67 * + + 70
----
91

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + COUNT ( * ) * + 91 - + 10 / 67 * + + 70
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - 70 * - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9282
SELECT - 70 * - COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT + - 9 * + - MAX( DISTINCT + - 20 ) * - 19 col0
----
3420

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT + - 9 * + - MAX ( DISTINCT + - 20 ) * - 19 col0
----
3420

query I rowsort
SELECT DISTINCT + 90 AS col1
----
90

query I rowsort
SELECT DISTINCT + - 65 AS col2
----
-65

query I rowsort
SELECT ALL + NULLIF ( - - 23, + 24 ) AS col2
----
23

query I rowsort
SELECT + 53 * + 8 + + 93
----
517

query I rowsort
SELECT + 58 * + + 73
----
4234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9289
SELECT ALL + 50 DIV - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL + 50 / - COUNT ( * )
----
-50

query I rowsort
SELECT + 71 * - 19 * 1 * + 28
----
-37772

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT 70 * - COUNT( * ) + + + 16 * + ( - 6 ) AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-9291
SELECT 70 * - COUNT ( * ) + + + 16 * + ( - 6 ) AS col0
----
-166

query I rowsort
SELECT - 24 + 92 col2
----
68

query I rowsort
SELECT - 72 col2
----
-72

query I rowsort
SELECT + 38 + + 54 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT + - 4 + - 15 * + COUNT( * ) + COUNT( * ) + - 78 * MAX( 54 ) * + ( - CASE + + 48 WHEN - 43 THEN NULL WHEN - - 6 + - - 80 + + + 42 THEN NULL WHEN COALESCE ( - 66, - + 38 * + 0 * + ( 49 ) + 43 + 76 ) THEN 63 * + 31 - - ( + 77 + 15 ) ELSE NULL END ) - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT + - 4 + - 15 * + COUNT ( * ) + COUNT ( * ) + - 78 * MAX ( 54 ) * + ( - CASE + + 48 WHEN - 43 THEN NULL WHEN - - 6 + - - 80 + + + 42 THEN NULL WHEN COALESCE ( - 66, - + 38 * + 0 * + ( 49 ) + 43 + 76 ) THEN 63 * + 31 - - ( + 77 + 15 ) ELSE NULL END ) - - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL ( 57 ) * 66 * 81 + - 14 AS col1
----
304708

query II rowsort
SELECT ALL + 34 + - 93 col1, - 26 * + 93
----
-59
-2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT + + COUNT( * ) + - + CAST( - 7 AS SIGNED ) + - + 94 * + + 89
----
-8358

skipif mysql # not compatible
query I rowsort label-9298
SELECT + + COUNT ( * ) + - + CAST ( - 7 AS INTEGER ) + - + 94 * + + 89
----
-8358

query I rowsort
SELECT DISTINCT - 65 * 5 AS col1
----
-325

query I rowsort
SELECT + - 54 + - 56 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT ALL 57 + + 77 - + + 43 - + + COUNT( DISTINCT + 99 ) + 84 * 9 AS col2
----
846

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL 57 + + 77 - + + 43 - + + COUNT ( DISTINCT + 99 ) + 84 * 9 AS col2
----
846

query I rowsort
SELECT + 55 + - - 59 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL MIN( DISTINCT 79 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL MIN ( DISTINCT 79 ) col2
----
79

query I rowsort
SELECT - 74 AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT 27 DIV - + 24
----
-1

skipif mysql # not compatible
query I rowsort label-9305
SELECT 27 / - + 24
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT 31 + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9306
SELECT 31 + COUNT ( * )
----
32

query I rowsort
SELECT DISTINCT CASE + ( 75 ) WHEN - 30 * - 10 * + + ( - 80 ) THEN - + 49 + + 13 + + 93 + + - 3 / - 36 + 91 * + - 94 + + 88 + + 90 ELSE NULL END * + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL 55 + - CASE - 87 WHEN - 44 THEN NULL ELSE - COUNT( * ) * 22 + COUNT( * ) END AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL 55 + - CASE - 87 WHEN - 44 THEN NULL ELSE - COUNT ( * ) * 22 + COUNT ( * ) END AS col0
----
76

query I rowsort
SELECT DISTINCT 66 + - 65 + + - 16 AS col2
----
-15

query I rowsort
SELECT ALL + 61 * 99
----
6039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 16 + - + MIN( 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 16 + - + MIN ( 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9312
SELECT ALL - 56, SUM( + 7 ) AS col2
----
-56
7

skipif mysql # not compatible
query II rowsort label-9312
SELECT ALL - 56, SUM ( + 7 ) AS col2
----
-56
7

query I rowsort
SELECT DISTINCT - 88 - - 9
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ( - 1 ) * + + 42 * + MIN( + - 80 ) AS col1
----
3360

skipif mysql # not compatible
query I rowsort label-9314
SELECT ( - 1 ) * + + 42 * + MIN ( + - 80 ) AS col1
----
3360

query I rowsort
SELECT 36 * + - 74
----
-2664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9316
SELECT + 48, CAST( - 73 AS SIGNED ) * - NULLIF ( + 97, + - AVG ( ALL 36 ) ) AS col1
----
48
7081

skipif mysql # not compatible
query II rowsort label-9316
SELECT + 48, CAST ( - 73 AS INTEGER ) * - NULLIF ( + 97, + - AVG ( ALL 36 ) ) AS col1
----
48
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT - CASE 71 WHEN 13 - 33 THEN NULL WHEN + 94 / 67 / + 38 THEN + 95 * - 30 * + + 56 - + 48 + - + COUNT( * ) * - + 49 + 12 * + - ( + 26 ) * - 66 * 65 WHEN 47 THEN - ( - + 82 ) * + ( 25 ) * MIN( + 19 ) END * 43 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT - CASE 71 WHEN 13 - 33 THEN NULL WHEN + 94 / 67 / + 38 THEN + 95 * - 30 * + + 56 - + 48 + - + COUNT ( * ) * - + 49 + 12 * + - ( + 26 ) * - 66 * 65 WHEN 47 THEN - ( - + 82 ) * + ( 25 ) * MIN ( + 19 ) END * 43 + 78
----
NULL

query I rowsort
SELECT 52 - - + 95
----
147

query I rowsort
SELECT 26 * + 95
----
2470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9320
SELECT 26, + CASE + 54 WHEN - CAST( - COUNT( * ) AS SIGNED ) * + 3 + - NULLIF ( - - 48, - + COUNT( * ) * - 55 ) + + 3 * - ( 36 ) + - 15 THEN - 97 - - 67 ELSE NULL END + + SUM( - + 76 ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9320
SELECT 26, + CASE + 54 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) * + 3 + - NULLIF ( - - 48, - + COUNT ( * ) * - 55 ) + + 3 * - ( 36 ) + - 15 THEN - 97 - - 67 ELSE NULL END + + SUM ( - + 76 ) AS col2
----
26
NULL

query I rowsort
SELECT DISTINCT - 4 AS col0
----
-4

query I rowsort
SELECT ALL - NULLIF ( 98, - 30 + + 60 - + 47 )
----
-98

query I rowsort
SELECT DISTINCT - 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT - COUNT( * ) + + 6 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9324
SELECT - COUNT ( * ) + + 6 AS col2
----
5

query II rowsort
SELECT ALL - 74 AS col2, - CASE 51 WHEN + 23 + + - 19 THEN NULL ELSE + + 9 END AS col0
----
-74
-9

query I rowsort
SELECT DISTINCT - - 54
----
54

query I rowsort
SELECT + - 17 * - + ( 99 ) + + + 57 + + 65 * - 68
----
-2680

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL + + COUNT( * ) * + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + + COUNT ( * ) * + 59 AS col1
----
59

query II rowsort
SELECT COALESCE ( + - 24, - 86 * - + 1 ) AS col2, - 73
----
-24
-73

query I rowsort
SELECT ALL - - 12 AS col1
----
12

query I rowsort
SELECT 68 * + 51 + + + 80
----
3548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT + CAST( - 40 AS SIGNED ) + - ( SUM( ALL - 59 ) )
----
19

skipif mysql # not compatible
query I rowsort label-9332
SELECT + CAST ( - 40 AS INTEGER ) + - ( SUM ( ALL - 59 ) )
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9333
SELECT + 4 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT + 4 / - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9334
SELECT 45 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT 45 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 56
----
56

query I rowsort
SELECT ALL + - 56 + - 26 AS col2
----
-82

query I rowsort
SELECT ALL + 27 * 26 AS col1
----
702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COALESCE ( COALESCE ( + 35, + - 38 + 94 + - - 0 + 35 / 20, - ( ( COUNT( * ) ) ), - 13 ), 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COALESCE ( COALESCE ( + 35, + - 38 + 94 + - - 0 + 35 / 20, - ( ( COUNT ( * ) ) ), - 13 ), 66 ) AS col2
----
NULL

query II rowsort
SELECT ALL 73, 89 AS col2
----
73
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - 97 - NULLIF ( 50, - MAX( DISTINCT - + NULLIF ( 4, - 2 ) ) ) * 55 AS col2
----
-2847

skipif mysql # not compatible
query I rowsort label-9340
SELECT - 97 - NULLIF ( 50, - MAX ( DISTINCT - + NULLIF ( 4, - 2 ) ) ) * 55 AS col2
----
-2847

query I rowsort
SELECT ALL ( + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL + + 76 + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + + 76 + + COUNT ( * )
----
77

query I rowsort
SELECT 94 * - 16 AS col2
----
-1504

query I rowsort
SELECT - 69 AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT NULLIF ( CAST( - CAST( + 3 AS SIGNED ) AS SIGNED ), + + AVG ( + 87 ) ) * - + ( + 15 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9345
SELECT NULLIF ( CAST ( - CAST ( + 3 AS INTEGER ) AS INTEGER ), + + AVG ( + 87 ) ) * - + ( + 15 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ALL 14 - + 61 * + + 94 + 93 + 87 DIV - 26
----
-5630

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL 14 - + 61 * + + 94 + 93 + 87 / - 26
----
-5630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT 11 - - 94 + 74 - - - 24 - + + 52 * COALESCE ( - + 30, - 96 ) + 32 + 31 + + 45 - + COUNT( * ) * - 34 DIV COUNT( * ) * + - 77 * - COUNT( * ) AS col2
----
4441

skipif mysql # not compatible
query I rowsort label-9347
SELECT 11 - - 94 + 74 - - - 24 - + + 52 * COALESCE ( - + 30, - 96 ) + 32 + 31 + + 45 - + COUNT ( * ) * - 34 / COUNT ( * ) * + - 77 * - COUNT ( * ) AS col2
----
4441

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT 17 + 39 * + COUNT( 90 )
----
56

skipif mysql # not compatible
query I rowsort label-9348
SELECT 17 + 39 * + COUNT ( 90 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL + 2 * - ( + + 92 ) * + NULLIF ( + 60, - 67 ) + + - 64 + - COUNT( * )
----
-11105

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + 2 * - ( + + 92 ) * + NULLIF ( + 60, - 67 ) + + - 64 + - COUNT ( * )
----
-11105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL COALESCE ( - 76, COUNT( * ), + + CAST( + + ( 56 ) AS SIGNED ) ) * + 12 AS col0
----
-912

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL COALESCE ( - 76, COUNT ( * ), + + CAST ( + + ( 56 ) AS INTEGER ) ) * + 12 AS col0
----
-912

query I rowsort
SELECT ALL 91 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9352
SELECT CAST( NULL AS SIGNED ) * - - 97, - 28 - + - 62 + + COUNT( * ) AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9352
SELECT CAST ( NULL AS INTEGER ) * - - 97, - 28 - + - 62 + + COUNT ( * ) AS col0
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9353
SELECT + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + 82 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT CASE CAST( + SUM( - 28 ) AS SIGNED ) WHEN - 14 THEN - - 64 ELSE - 4 END - - COUNT( * ) + - NULLIF ( + ( + 34 ), + COUNT( * ) + - + 32 / - COALESCE ( 92, 80 ) + - 82 * + 55 ) * + 3 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-9354
SELECT CASE CAST ( + SUM ( - 28 ) AS INTEGER ) WHEN - 14 THEN - - 64 ELSE - 4 END - - COUNT ( * ) + - NULLIF ( + ( + 34 ), + COUNT ( * ) + - + 32 / - COALESCE ( 92, 80 ) + - 82 * + 55 ) * + 3 AS col0
----
-105

query I rowsort
SELECT + 7 / - CASE - + 72 WHEN + - 67 THEN 68 + - + 73 / - + 96 + 94 ELSE NULL END + + 71
----
NULL

query I rowsort
SELECT 36 * + 18 AS col2
----
648

query I rowsort
SELECT DISTINCT - 78 AS col0
----
-78

query I rowsort
SELECT 55 + 8 * + 60 * - 0 AS col0
----
55

query I rowsort
SELECT 61 * 63 AS col0
----
3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT + 52 - - 88 * - - 89 * COUNT( * ) + CASE + 28 WHEN - 78 - + 60 * 6 THEN NULL WHEN + 98 * 46 THEN 12 - - 36 WHEN + - ( 1 ) THEN - 91 + - 12 * + CASE - - 1 WHEN - - 74 + 84 * COALESCE ( 58, - - 22 ) DIV - 31 + 6 THEN NULL WHEN + 52 * 58 + 84 DIV COUNT( * ) THEN CASE COUNT( ALL 41 ) WHEN - 2 * COALESCE ( + ( + AVG ( DISTINCT 0 ) ), 87 ) THEN + 61 WHEN + 43 THEN NULL ELSE NULL END WHEN 54 * ( 77 ) + 70 THEN NULL ELSE NULL END ELSE ( 58 ) * 86 END DIV - 59
----
7800

skipif mysql # not compatible
query I rowsort label-9360
SELECT + 52 - - 88 * - - 89 * COUNT ( * ) + CASE + 28 WHEN - 78 - + 60 * 6 THEN NULL WHEN + 98 * 46 THEN 12 - - 36 WHEN + - ( 1 ) THEN - 91 + - 12 * + CASE - - 1 WHEN - - 74 + 84 * COALESCE ( 58, - - 22 ) / - 31 + 6 THEN NULL WHEN + 52 * 58 + 84 / COUNT ( * ) THEN CASE COUNT ( ALL 41 ) WHEN - 2 * COALESCE ( + ( + AVG ( DISTINCT 0 ) ), 87 ) THEN + 61 WHEN + 43 THEN NULL ELSE NULL END WHEN 54 * ( 77 ) + 70 THEN NULL ELSE NULL END ELSE ( 58 ) * 86 END / - 59
----
7800

query I rowsort
SELECT 47 * - + 81
----
-3807

query I rowsort
SELECT ALL - + 96
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT - + 41 * - 22 - - 74 - 99 AS col0, - MAX( - COALESCE ( 73, 13 ) )
----
877
73

skipif mysql # not compatible
query II rowsort label-9363
SELECT - + 41 * - 22 - - 74 - 99 AS col0, - MAX ( - COALESCE ( 73, 13 ) )
----
877
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT DISTINCT ( - - COUNT( * ) ) * 51 DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT ( - - COUNT ( * ) ) * 51 / + - 57
----
0

query I rowsort
SELECT + 79 * + 59 * 91 AS col2
----
424151

query I rowsort
SELECT ALL - - 18
----
18

query I rowsort
SELECT ALL - NULLIF ( + + 2, 86 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT DISTINCT - 89 + - NULLIF ( 55, + 48 + + MAX( DISTINCT - 22 ) )
----
-144

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - 89 + - NULLIF ( 55, + 48 + + MAX ( DISTINCT - 22 ) )
----
-144

query I rowsort
SELECT 47 - 38
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT + 65 + - COUNT( * ) - + 3 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + 65 + - COUNT ( * ) - + 3 AS col1
----
61

query I rowsort
SELECT ALL + 7 + 30 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9372
SELECT ( 15 ) + - + 46 + + ( + CAST( - 67 AS SIGNED ) ) DIV + 42
----
-32

skipif mysql # not compatible
query I rowsort label-9372
SELECT ( 15 ) + - + 46 + + ( + CAST ( - 67 AS INTEGER ) ) / + 42
----
-32

query I rowsort
SELECT + 95 + + 97
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT COUNT( * ) - - 71 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9374
SELECT COUNT ( * ) - - 71 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - + NULLIF ( + 1, + - COUNT( * ) + - + 36 ) - 58
----
-59

skipif mysql # not compatible
query I rowsort label-9375
SELECT - + NULLIF ( + 1, + - COUNT ( * ) + - + 36 ) - 58
----
-59

query I rowsort
SELECT - + 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT - 92 DIV - + 32
----
2

skipif mysql # not compatible
query I rowsort label-9377
SELECT - 92 / - + 32
----
2

query I rowsort
SELECT DISTINCT + 13 + 75 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL + 6 - + 6 + - ( - - 20 ) + - CASE ( 94 ) WHEN - COUNT( * ) / - - 99 + - - COUNT( * ) + - - SUM( 68 ) THEN + 24 * - ( + - 42 ) ELSE NULL END - - COALESCE ( + 3, - CAST( 93 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + 6 - + 6 + - ( - - 20 ) + - CASE ( 94 ) WHEN - COUNT ( * ) / - - 99 + - - COUNT ( * ) + - - SUM ( 68 ) THEN + 24 * - ( + - 42 ) ELSE NULL END - - COALESCE ( + 3, - CAST ( 93 AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 20 + 50
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL MIN( - 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL MIN ( - 43 ) col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - 96 + + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9382
SELECT - 96 + + - COUNT ( * )
----
-97

query I rowsort
SELECT - 14 * + - 15 * + - 69
----
-14490

query I rowsort
SELECT - 72 + 21
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9385
SELECT ALL - ( 20 ) DIV - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - ( 20 ) / - COUNT ( * ) AS col2
----
20

query I rowsort
SELECT - 78 * - 70 AS col1
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + NULLIF ( - 80, COALESCE ( COUNT( 42 ), - 53 * - 34 ) * 75 ) + - + CASE + 44 WHEN 16 THEN + + ( + + MAX( ALL + + 59 ) ) * + 97 * - + 92 + 52 + - 15 * 76 WHEN - + 77 THEN NULL ELSE NULL END / - - COUNT( * ) + + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT + NULLIF ( - 80, COALESCE ( COUNT ( 42 ), - 53 * - 34 ) * 75 ) + - + CASE + 44 WHEN 16 THEN + + ( + + MAX ( ALL + + 59 ) ) * + 97 * - + 92 + 52 + - 15 * 76 WHEN - + 77 THEN NULL ELSE NULL END / - - COUNT ( * ) + + - 42
----
NULL

query I rowsort
SELECT ALL CASE + + 9 WHEN - 21 + 78 THEN + 34 / 25 + + 58 END
----
NULL

query I rowsort
SELECT DISTINCT - 16 * + 6
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT ALL - 44 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - 44 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT SUM( DISTINCT - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT SUM ( DISTINCT - 54 ) AS col0
----
-54

query I rowsort
SELECT - 47 + + 38 * - + 87 col0
----
-3353

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9394
SELECT + MIN( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT + MIN ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT - 2 DIV - 6 * - 42 + - - 86 - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 2 / - 6 * - 42 + - - 86 - COUNT ( * )
----
85

query I rowsort
SELECT ( + - 64 ) AS col0
----
-64

query I rowsort
SELECT + 76 * + - 73 AS col0
----
-5548

query I rowsort
SELECT - 50 + + + 56
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + - SUM( ALL - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + - SUM ( ALL - 35 ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT + COUNT( * ) - - 96 - 92 - + CAST( + NULLIF ( CASE + ( - MIN( ALL - 13 ) ) WHEN + 70 THEN NULL WHEN - SUM( - 62 ) THEN + - 85 ELSE 65 * - 11 * - 79 + - + 1 + 21 END, - COUNT( 49 ) * - CAST( - MIN( + - 7 ) AS SIGNED ) * - 49 * - 83 ) AS SIGNED ) AS col0
----
-56500

skipif mysql # not compatible
query I rowsort label-9400
SELECT + COUNT ( * ) - - 96 - 92 - + CAST ( + NULLIF ( CASE + ( - MIN ( ALL - 13 ) ) WHEN + 70 THEN NULL WHEN - SUM ( - 62 ) THEN + - 85 ELSE 65 * - 11 * - 79 + - + 1 + 21 END, - COUNT ( 49 ) * - CAST ( - MIN ( + - 7 ) AS INTEGER ) * - 49 * - 83 ) AS INTEGER ) AS col0
----
-56500

query I rowsort
SELECT + COALESCE ( - 59, - 12, + 74 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + COUNT( * ) * + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9402
SELECT + COUNT ( * ) * + + 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT ALL 64 * + SUM( + 69 ) + - 43 + + - COUNT( * ), - 58 AS col0
----
4372
-58

skipif mysql # not compatible
query II rowsort label-9403
SELECT ALL 64 * + SUM ( + 69 ) + - 43 + + - COUNT ( * ), - 58 AS col0
----
4372
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT + ( + 38 ) * + + 63 + + COUNT( * ) * 15 AS col2, 36 * - 89 + 3
----
2409
-3201

skipif mysql # not compatible
query II rowsort label-9404
SELECT + ( + 38 ) * + + 63 + + COUNT ( * ) * 15 AS col2, 36 * - 89 + 3
----
2409
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT + COALESCE ( - 51, - COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + COALESCE ( - 51, - COUNT ( * ) )
----
-51

query II rowsort
SELECT DISTINCT + 65 * 55 + - 61 AS col0, 43 col2
----
3514
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT + 93 * + MIN( DISTINCT - 34 ) + - 35
----
-3197

skipif mysql # not compatible
query I rowsort label-9407
SELECT + 93 * + MIN ( DISTINCT - 34 ) + - 35
----
-3197

onlyif mysql # aggregate syntax: 
query II rowsort label-9408
SELECT ALL + COUNT( * ) * - - COUNT( * ) * + + ( 84 ) + COUNT( * ), 99 * + ( + 76 ) AS col2
----
85
7524

skipif mysql # not compatible
query II rowsort label-9408
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) * + + ( 84 ) + COUNT ( * ), 99 * + ( + 76 ) AS col2
----
85
7524

query I rowsort
SELECT + - 95 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL 19 * + COUNT( + 21 )
----
19

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL 19 * + COUNT ( + 21 )
----
19

query I rowsort
SELECT ALL 23 * - 17 AS col1
----
-391

query I rowsort
SELECT + 36 col0
----
36

query I rowsort
SELECT DISTINCT + + 41 AS col2
----
41

query I rowsort
SELECT ALL + 8 col0
----
8

query I rowsort
SELECT + + 15 * 55 AS col1
----
825

query I rowsort
SELECT DISTINCT 18 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL CASE + 74 WHEN 69 * + 80 + + 65 THEN + AVG ( DISTINCT 19 ) WHEN 21 * - COALESCE ( CASE - 18 WHEN - ( + - 95 ) * + COUNT( * ) / - 92 - + 48 THEN + COUNT( * ) ELSE NULL END, 72 ) THEN - 83 * ( - + COALESCE ( - SUM( DISTINCT NULLIF ( 43, 14 ) ), 36 * 24 + 73 * 90 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL CASE + 74 WHEN 69 * + 80 + + 65 THEN + AVG ( DISTINCT 19 ) WHEN 21 * - COALESCE ( CASE - 18 WHEN - ( + - 95 ) * + COUNT ( * ) / - 92 - + 48 THEN + COUNT ( * ) ELSE NULL END, 72 ) THEN - 83 * ( - + COALESCE ( - SUM ( DISTINCT NULLIF ( 43, 14 ) ), 36 * 24 + 73 * 90 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 2 ) * - - 31
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT ALL COUNT( * ) col2, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-9419
SELECT ALL COUNT ( * ) col2, 45
----
1
45

query I rowsort
SELECT + 84 - + - ( - ( + 83 ) ) * 53 AS col1
----
-4315

query I rowsort
SELECT - 90 * 82
----
-7380

query I rowsort
SELECT + 60 - CASE 82 WHEN 75 THEN - 84 END
----
NULL

query II rowsort
SELECT 91 AS col1, 94 + + + 38
----
91
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - 60 * + COALESCE ( - + COUNT( * ), - - COUNT( * ), + 35 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9424
SELECT - 60 * + COALESCE ( - + COUNT ( * ), - - COUNT ( * ), + 35 ) AS col1
----
60

query I rowsort
SELECT ALL ( - + 38 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL SUM( 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL SUM ( 46 ) AS col1
----
46

query I rowsort
SELECT ALL ( + ( - + 75 ) ) AS col0
----
-75

query I rowsort
SELECT DISTINCT + 30 + - 17 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + 85 + - + ( + ( - COUNT( * ) ) ) + 57 * 38
----
2252

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + 85 + - + ( + ( - COUNT ( * ) ) ) + 57 * 38
----
2252

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL + 13 + + 7 + 52 + + - 55 * MIN( + - 50 ) * 62 - - - 34 * - 45 * + 10 AS col0
----
185872

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL + 13 + + 7 + 52 + + - 55 * MIN ( + - 50 ) * 62 - - - 34 * - 45 * + 10 AS col0
----
185872

query II rowsort
SELECT - 57, 33 AS col1
----
-57
33

query I rowsort
SELECT 36 col1
----
36

query I rowsort
SELECT - 88 * - 5
----
440

query I rowsort
SELECT - 47 + - 20
----
-67

query I rowsort
SELECT - 64 * - 8
----
512

query I rowsort
SELECT ( - 99 ) * 0 + - 13
----
-13

query I rowsort
SELECT + 22 - + 42 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT DISTINCT + COALESCE ( - - 82, + 34 ) DIV 65 + + 46
----
47

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + COALESCE ( - - 82, + 34 ) / 65 + + 46
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT ALL - 4 DIV - - 11 + + 84 * - + 3 + 20 col2
----
-232

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - 4 / - - 11 + + 84 * - + 3 + 20 col2
----
-232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9440
SELECT ALL 62 DIV - - 53 + - MIN( + - 70 ) + - - COUNT( * ) DIV - SUM( 44 ) AS col2, + 33 AS col2
----
71
33

skipif mysql # not compatible
query II rowsort label-9440
SELECT ALL 62 / - - 53 + - MIN ( + - 70 ) + - - COUNT ( * ) / - SUM ( 44 ) AS col2, + 33 AS col2
----
71
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT - + CAST( NULL AS SIGNED ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - + CAST ( NULL AS INTEGER ) * - 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT ALL + 75 DIV + 15 - COUNT( * ) * + - 72 + - 18 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + 75 / + 15 - COUNT ( * ) * + - 72 + - 18 AS col0
----
59

query I rowsort
SELECT ALL + + 41 col2
----
41

query II rowsort
SELECT NULLIF ( - ( 31 ), + + 72 ) AS col2, - 43
----
-31
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT + NULLIF ( - 73, - 72 + + 36 / + 72 * - 41 + - - CAST( NULL AS SIGNED ) + - 16 * + + 17 ) * - + ( 27 ) + + 66 AS col0
----
2037

skipif mysql # not compatible
query I rowsort label-9445
SELECT + NULLIF ( - 73, - 72 + + 36 / + 72 * - 41 + - - CAST ( NULL AS INTEGER ) + - 16 * + + 17 ) * - + ( 27 ) + + 66 AS col0
----
2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT COALESCE ( - COUNT( + - CAST( NULL AS SIGNED ) ), - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT COALESCE ( - COUNT ( + - CAST ( NULL AS INTEGER ) ), - 26 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9447
SELECT - COUNT( * ), COUNT( * ) + CAST( NULL AS SIGNED ) * + 65 * + MIN( ALL - - 84 ) * - 33 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9447
SELECT - COUNT ( * ), COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 65 * + MIN ( ALL - - 84 ) * - 33 col1
----
-1
NULL

query I rowsort
SELECT + 0 - 72 col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL - CAST( 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - CAST ( 55 AS INTEGER )
----
-55

query II rowsort
SELECT ALL - + 74 AS col1, + 34 col1
----
-74
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9451
SELECT ALL MAX( CAST( NULL AS DECIMAL ) ) * + - 29 * - COALESCE ( + - MAX( ALL 66 ), - 32 - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL MAX ( CAST ( NULL AS REAL ) ) * + - 29 * - COALESCE ( + - MAX ( ALL 66 ), - 32 - - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL ( - + COUNT( * ) ) * + + 98
----
-98

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL ( - + COUNT ( * ) ) * + + 98
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT COALESCE ( + - COUNT( * ), 66 * + 66, - 12 * + 69 + + - ( - NULLIF ( ( 4 ), 63 + + - 95 + + 40 + - 46 * COUNT( * ) + + - ( 9 ) ) ) + COALESCE ( - COALESCE ( + 0, 24 DIV - + 14 + ( - - 53 ) + 13 ), 86 ) DIV + 57 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT COALESCE ( + - COUNT ( * ), 66 * + 66, - 12 * + 69 + + - ( - NULLIF ( ( 4 ), 63 + + - 95 + + 40 + - 46 * COUNT ( * ) + + - ( 9 ) ) ) + COALESCE ( - COALESCE ( + 0, 24 / - + 14 + ( - - 53 ) + 13 ), 86 ) / + 57 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT COUNT( * ) + + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9454
SELECT COUNT ( * ) + + 61 AS col2
----
62

query I rowsort
SELECT 46 - - 77
----
123

query I rowsort
SELECT ALL 72 * + + ( 33 ) AS col1
----
2376

query I rowsort
SELECT ALL ( - 22 ) * 65
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT NULLIF ( 47, - 51 ) + + NULLIF ( 75, 45 + + 88 + + 27 + + 13 + - + COUNT( * ) * + 97 + + 59 ) + 76 * - MIN( DISTINCT + 27 ) + + 96 AS col0
----
-1834

skipif mysql # not compatible
query I rowsort label-9458
SELECT NULLIF ( 47, - 51 ) + + NULLIF ( 75, 45 + + 88 + + 27 + + 13 + - + COUNT ( * ) * + 97 + + 59 ) + 76 * - MIN ( DISTINCT + 27 ) + + 96 AS col0
----
-1834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9459
SELECT COALESCE ( NULLIF ( - ( - 87 ), - CASE 62 WHEN 79 * + COALESCE ( - 56, 77 ) + 45 + - - COUNT( * ) * - 18 * - - 91 THEN 94 ELSE NULL END ), + COUNT( DISTINCT + + 7 ), 39 * + COUNT( * ) + - 68 ) DIV 21 * - + ( COUNT( * ) ) * - 67 * + + 1 DIV - - CASE + 40 WHEN 77 * - CAST( NULL AS SIGNED ) + ( 22 ) THEN NULL ELSE - 49 * ( SUM( ALL - 27 ) DIV ( 39 DIV 22 + COUNT( * ) ) ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT COALESCE ( NULLIF ( - ( - 87 ), - CASE 62 WHEN 79 * + COALESCE ( - 56, 77 ) + 45 + - - COUNT ( * ) * - 18 * - - 91 THEN 94 ELSE NULL END ), + COUNT ( DISTINCT + + 7 ), 39 * + COUNT ( * ) + - 68 ) / 21 * - + ( COUNT ( * ) ) * - 67 * + + 1 / - - CASE + 40 WHEN 77 * - CAST ( NULL AS INTEGER ) + ( 22 ) THEN NULL ELSE - 49 * ( SUM ( ALL - 27 ) / ( 39 / 22 + COUNT ( * ) ) ) END AS col0
----
0

query I rowsort
SELECT 30 + 32
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT DISTINCT 83 DIV - CASE - - 36 WHEN 65 + + 75 * - 85 THEN NULL ELSE MAX( DISTINCT 31 ) * - - 89 END * - + 43
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT 83 / - CASE - - 36 WHEN 65 + + 75 * - 85 THEN NULL ELSE MAX ( DISTINCT 31 ) * - - 89 END * - + 43
----
0

query I rowsort
SELECT ALL ( 15 ) + - 32 AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT CAST( NULL AS SIGNED ) + + ( - 34 ) - 46 / - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT CAST ( NULL AS INTEGER ) + + ( - 34 ) - 46 / - 20 AS col0
----
NULL

query I rowsort
SELECT ALL 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL 82 + - 58 - 66 + - 46 * - 71 * + 62 * + MAX( ALL + 29 ) AS col0
----
5872226

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL 82 + - 58 - 66 + - 46 * - 71 * + 62 * + MAX ( ALL + 29 ) AS col0
----
5872226

query I rowsort
SELECT 42 + - - 72 AS col2
----
114

query I rowsort
SELECT ALL 59 * 69 * 35 * - 84
----
-11968740

query I rowsort
SELECT 87 * - 26 AS col0
----
-2262

query I rowsort
SELECT DISTINCT + 99 + 25 AS col0
----
124

query I rowsort
SELECT ALL + + ( 28 ) + + + 55 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9471
SELECT - MAX( DISTINCT 19 ), - COALESCE ( 60, 95 * - 39 * - CAST( - - 8 AS SIGNED ) + - 34 ) col1
----
-19
-60

skipif mysql # not compatible
query II rowsort label-9471
SELECT - MAX ( DISTINCT 19 ), - COALESCE ( 60, 95 * - 39 * - CAST ( - - 8 AS INTEGER ) + - 34 ) col1
----
-19
-60

query I rowsort
SELECT ALL - 60 * + 1 * 21
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT - 2 + + MIN( DISTINCT - + 22 ) - - + NULLIF ( - COALESCE ( - - 65, - CASE - + ( COUNT( * ) ) WHEN + - 43 THEN NULL WHEN - 93 THEN + 93 ELSE NULL END * + ( 72 ), + + 77 ), + 48 + + - 82 + - COUNT( * ) ) * + 49
----
-3209

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 2 + + MIN ( DISTINCT - + 22 ) - - + NULLIF ( - COALESCE ( - - 65, - CASE - + ( COUNT ( * ) ) WHEN + - 43 THEN NULL WHEN - 93 THEN + 93 ELSE NULL END * + ( 72 ), + + 77 ), + 48 + + - 82 + - COUNT ( * ) ) * + 49
----
-3209

query I rowsort
SELECT ALL 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL + COUNT( * ) * 80 * + 92 AS col0
----
7360

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + COUNT ( * ) * 80 * + 92 AS col0
----
7360

query I rowsort
SELECT + - 45 AS col2
----
-45

query I rowsort
SELECT DISTINCT - + 74 AS col1
----
-74

query I rowsort
SELECT ALL - COALESCE ( - 78, - 78 ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT + CAST( NULL AS SIGNED ) + - 60 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT + CAST ( NULL AS INTEGER ) + - 60 * - 56
----
NULL

query I rowsort
SELECT - 22 * - ( + - 35 )
----
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL + CAST( NULL AS SIGNED ) / + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + CAST ( NULL AS INTEGER ) / + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + COUNT( * ) + + 70
----
71

skipif mysql # not compatible
query I rowsort label-9482
SELECT + COUNT ( * ) + + 70
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT + SUM( DISTINCT + + CAST( - 22 AS SIGNED ) )
----
-22

skipif mysql # not compatible
query I rowsort label-9483
SELECT + SUM ( DISTINCT + + CAST ( - 22 AS INTEGER ) )
----
-22

query I rowsort
SELECT ALL - + 14 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT + 89 * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT + 89 * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT ALL + + COALESCE ( + - 65, - + COALESCE ( 20, + 26, 28, + 69 ) + + 8, + + 85 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + + COALESCE ( + - 65, - + COALESCE ( 20, + 26, 28, + 69 ) + + 8, + + 85 ) / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL + MAX( ALL - 78 ) * - + 21 AS col0
----
1638

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + MAX ( ALL - 78 ) * - + 21 AS col0
----
1638

query I rowsort
SELECT + + 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT COUNT( * ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9489
SELECT COUNT ( * ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL + COUNT( * ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + COUNT ( * ) * + 7
----
7

query II rowsort
SELECT 24 AS col0, 94
----
24
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9492
SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), 3 - - CAST( NULL AS SIGNED ) * 51 ) ) * 11 + + + 48 AS col2
----
-91
543

skipif mysql # not compatible
query II rowsort label-9492
SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), 3 - - CAST ( NULL AS INTEGER ) * 51 ) ) * 11 + + + 48 AS col2
----
-91
543

query II rowsort
SELECT DISTINCT - 62 AS col1, 46 - 42 + - 1 AS col1
----
-62
3

query I rowsort
SELECT DISTINCT + COALESCE ( - 84, 73, ( - 23 ) + - - 22 ) + + + 10
----
-74

query I rowsort
SELECT ALL 77 + - 19
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT ALL + CAST( NULL AS SIGNED ) + 82 + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL + CAST ( NULL AS INTEGER ) + 82 + - 40
----
NULL

query I rowsort
SELECT 36 - + + 73 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT - COUNT( * ) col1, 90
----
-1
90

skipif mysql # not compatible
query II rowsort label-9498
SELECT - COUNT ( * ) col1, 90
----
-1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT NULLIF ( + 87, - ( - 80 ) * 17 * + 93 * 43 * + MIN( 97 ) - - - 91 + + + 39 + + + 87 + - - 3 ) - + + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9499
SELECT NULLIF ( + 87, - ( - 80 ) * 17 * + 93 * 43 * + MIN ( 97 ) - - - 91 + + + 39 + + + 87 + - - 3 ) - + + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT DISTINCT 76 + + 28 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9501
SELECT 71 * - CASE - CAST( NULL AS DECIMAL ) WHEN 34 * - 64 + + 4 THEN + 86 - - COUNT( * ) ELSE NULL END * - 95 * - ( CAST( - 93 AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT 71 * - CASE - CAST ( NULL AS REAL ) WHEN 34 * - 64 + + 4 THEN + 86 - - COUNT ( * ) ELSE NULL END * - 95 * - ( CAST ( - 93 AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT ALL 29 DIV - 33 * + 28 col2
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL 29 / - 33 * + 28 col2
----
0

query I rowsort
SELECT 77 + 75 AS col2
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9504
SELECT DISTINCT + 73 - 74 + + CAST( NULL AS DECIMAL ) + + COUNT( * ) + + - 71 + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + 73 - 74 + + CAST ( NULL AS REAL ) + + COUNT ( * ) + + - 71 + + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9505
SELECT - MIN( DISTINCT 12 ) - + 0 * - CASE - 8 WHEN + 79 / - 74 * - + 9 * + + 81 THEN - SUM( ALL - 21 ) WHEN 78 THEN NULL WHEN + - COUNT( ALL + CASE 81 WHEN 84 * - 42 - CAST( NULL AS SIGNED ) THEN NULL ELSE - 58 END ) THEN NULL END / + - 42 + 85 col0, - COUNT( * ) - - 85 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-9505
SELECT - MIN ( DISTINCT 12 ) - + 0 * - CASE - 8 WHEN + 79 / - 74 * - + 9 * + + 81 THEN - SUM ( ALL - 21 ) WHEN 78 THEN NULL WHEN + - COUNT ( ALL + CASE 81 WHEN 84 * - 42 - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 58 END ) THEN NULL END / + - 42 + 85 col0, - COUNT ( * ) - - 85 AS col2
----
NULL
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9506
SELECT + 23 * + - COALESCE ( - CAST( NULL AS SIGNED ), - 99 DIV + - 86 + + NULLIF ( + 0, + MAX( DISTINCT + 89 ) ) * 28 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9506
SELECT + 23 * + - COALESCE ( - CAST ( NULL AS INTEGER ), - 99 / + - 86 + + NULLIF ( + 0, + MAX ( DISTINCT + 89 ) ) * 28 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - - NULLIF ( + COUNT( * ), - COUNT( ALL 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9507
SELECT - - NULLIF ( + COUNT ( * ), - COUNT ( ALL 1 ) )
----
1

query I rowsort
SELECT - ( + 52 ) + ( - 6 ) * + 48 AS col2
----
-340

query II rowsort
SELECT ALL + 80 AS col2, - 27
----
80
-27

query I rowsort
SELECT + 59 * + + 68
----
4012

query I rowsort
SELECT ALL + - COALESCE ( - - 41, 93 )
----
-41

query I rowsort
SELECT 38 AS col2
----
38

query I rowsort
SELECT ALL + 60 col1
----
60

query I rowsort
SELECT - + ( - 36 ) * - 54
----
-1944

query I rowsort
SELECT ALL + - 70 AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT - + 78 DIV + ( - ( - - 81 ) ) - - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9516
SELECT - + 78 / + ( - ( - - 81 ) ) - - 37 AS col0
----
37

query I rowsort
SELECT - 38 + + 62 - + 71
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT ALL + CASE - - COUNT( * ) WHEN - 93 THEN + 56 * + MIN( ALL + 26 ) - + 3 WHEN - + 37 + - + 5 * + 20 + + MIN( 76 ) + - 54 - COUNT( 51 ) + + 69 * 57 * - + 71 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL + CASE - - COUNT ( * ) WHEN - 93 THEN + 56 * + MIN ( ALL + 26 ) - + 3 WHEN - + 37 + - + 5 * + 20 + + MIN ( 76 ) + - 54 - COUNT ( 51 ) + + 69 * 57 * - + 71 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9519
SELECT - 14 DIV - COUNT( 36 )
----
14

skipif mysql # not compatible
query I rowsort label-9519
SELECT - 14 / - COUNT ( 36 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT SUM( ALL 21 ) * + 82 + - 21 AS col1
----
1701

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT SUM ( ALL 21 ) * + 82 + - 21 AS col1
----
1701

onlyif mysql # aggregate syntax: 
query II rowsort label-9521
SELECT ALL 31 * + 69 + COUNT( ALL + 88 ) AS col1, - 99
----
2140
-99

skipif mysql # not compatible
query II rowsort label-9521
SELECT ALL 31 * + 69 + COUNT ( ALL + 88 ) AS col1, - 99
----
2140
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - 43 * - ( + COUNT( * ) ) - + + 0
----
43

skipif mysql # not compatible
query I rowsort label-9522
SELECT - 43 * - ( + COUNT ( * ) ) - + + 0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL COUNT( * ) * 29 + + + 38
----
67

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL COUNT ( * ) * 29 + + + 38
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL - 54 + - COUNT( * ) * COUNT( * ) - 15 + 78 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - 54 + - COUNT ( * ) * COUNT ( * ) - 15 + 78 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - COALESCE ( + 44, - 84 ) + - 93 * - COUNT( * ) + 55 col1
----
104

skipif mysql # not compatible
query I rowsort label-9525
SELECT - COALESCE ( + 44, - 84 ) + - 93 * - COUNT ( * ) + 55 col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9526
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-9526
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0, + 45
----
NULL
45

query II rowsort
SELECT DISTINCT ( + 33 ) col2, 86 AS col1
----
33
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL + 54 + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL + 54 + + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT - 94 + - + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9529
SELECT - 94 + - + COUNT ( * )
----
-95

query I rowsort
SELECT ALL ( - - ( + + 8 ) ) AS col2
----
8

query I rowsort
SELECT DISTINCT 62 col1
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-9532
SELECT + CASE + 65 WHEN + + ( + 42 ) THEN + + 45 DIV 64 - - 55 - + CASE - 82 WHEN + 23 + + 30 THEN - 97 END DIV - ( - 2 ) ELSE + 41 END + ( + 47 ), + 31 AS col1
----
88
31

skipif mysql # not compatible
query II rowsort label-9532
SELECT + CASE + 65 WHEN + + ( + 42 ) THEN + + 45 / 64 - - 55 - + CASE - 82 WHEN + 23 + + 30 THEN - 97 END / - ( - 2 ) ELSE + 41 END + ( + 47 ), + 31 AS col1
----
88
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT - 11 / - CAST( NULL AS SIGNED ) * + 20 * - 45 * - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - 11 / - CAST ( NULL AS INTEGER ) * + 20 * - 45 * - + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT - + 89 DIV - 46 + - + 82
----
-81

skipif mysql # not compatible
query I rowsort label-9534
SELECT - + 89 / - 46 + - + 82
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT - 16 + + CAST( + - 65 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9535
SELECT - 16 + + CAST ( + - 65 AS INTEGER ) AS col2
----
-81

query I rowsort
SELECT - NULLIF ( 52, - + 14 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT + 4 + 16 + 61 - + SUM( + 31 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9537
SELECT + 4 + 16 + 61 - + SUM ( + 31 ) AS col1
----
50

query I rowsort
SELECT + 43 * 98
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL - 17 * COALESCE ( 92, - + ( ( + - ( COUNT( * ) ) ) ) + - 95 * + ( - ( - 82 ) ) ) * - 21 AS col0
----
32844

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL - 17 * COALESCE ( 92, - + ( ( + - ( COUNT ( * ) ) ) ) + - 95 * + ( - ( - 82 ) ) ) * - 21 AS col0
----
32844

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + MIN( ALL - 73 ) * + CASE - 33 WHEN 20 + - 13 THEN 88 * - 47 * - 36 ELSE - 75 END + - 47
----
5428

skipif mysql # not compatible
query I rowsort label-9540
SELECT + MIN ( ALL - 73 ) * + CASE - 33 WHEN 20 + - 13 THEN 88 * - 47 * - 36 ELSE - 75 END + - 47
----
5428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9541
SELECT DISTINCT - 26 * + SUM( + 99 ) - + - 69 DIV + CAST( - 33 AS SIGNED ) AS col0
----
-2576

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - 26 * + SUM ( + 99 ) - + - 69 / + CAST ( - 33 AS INTEGER ) AS col0
----
-2576

query I rowsort
SELECT 56 * - + 59 + + + 21 + + + 92
----
-3191

query I rowsort
SELECT DISTINCT + - 19
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT + + CAST( - 51 AS SIGNED ) * - CAST( - SUM( + 27 ) AS SIGNED ) AS col2
----
-1377

skipif mysql # not compatible
query I rowsort label-9544
SELECT + + CAST ( - 51 AS INTEGER ) * - CAST ( - SUM ( + 27 ) AS INTEGER ) AS col2
----
-1377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9545
SELECT - - COUNT( * ) DIV + - 46 + + 35 - - 17 + 27 + - COUNT( DISTINCT - 28 ) + + 3 + + + 10 + ( - 19 ) + + 58 * + 10 * - 56 DIV COUNT( * ) * - - NULLIF ( + - 42, - - ( + 71 ) * - 72 ) AS col1
----
1364232

skipif mysql # not compatible
query I rowsort label-9545
SELECT - - COUNT ( * ) / + - 46 + + 35 - - 17 + 27 + - COUNT ( DISTINCT - 28 ) + + 3 + + + 10 + ( - 19 ) + + 58 * + 10 * - 56 / COUNT ( * ) * - - NULLIF ( + - 42, - - ( + 71 ) * - 72 ) AS col1
----
1364232

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + 46 + - COUNT( * ) * - 8 + 45 + + - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9546
SELECT + 46 + - COUNT ( * ) * - 8 + 45 + + - COUNT ( * ) AS col1
----
98

query II rowsort
SELECT + 60 * - 77 * 69 * + + 9, 52 * 26 + 50 - - 71 AS col2
----
-2869020
1473

query I rowsort
SELECT - 29 + - 62
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT DISTINCT + 73 DIV - COUNT( * ) + - + 54
----
-127

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + 73 / - COUNT ( * ) + - + 54
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT DISTINCT + 95 / - 23 + COUNT( * ) - - CAST( NULL AS SIGNED ) * COUNT( * ) / + + 37 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + 95 / - 23 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * COUNT ( * ) / + + 37 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + ( - + 68 ) ) AS col2
----
-68

query I rowsort
SELECT + 8 + + + 65 * + 87 AS col1
----
5663

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL - 62 * + COUNT( DISTINCT - 11 ) * - 87 + - ( + 14 ) + - 66 col0
----
5314

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - 62 * + COUNT ( DISTINCT - 11 ) * - 87 + - ( + 14 ) + - 66 col0
----
5314

query I rowsort
SELECT ALL + 84 AS col2
----
84

query I rowsort
SELECT ( - 39 )
----
-39

query I rowsort
SELECT - 78 * + 84
----
-6552

query I rowsort
SELECT ( - + 30 ) AS col2
----
-30

query I rowsort
SELECT + 26 * 10 + + 13 AS col1
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT CASE - - 4 WHEN + 37 * + COUNT( * ) / - 59 * - + 17 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT CASE - - 4 WHEN + 37 * + COUNT ( * ) / - 59 * - + 17 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9561
SELECT - 42 * 55 DIV - 28 AS col2, - 23 col1
----
82
-23

skipif mysql # not compatible
query II rowsort label-9561
SELECT - 42 * 55 / - 28 AS col2, - 23 col1
----
82
-23

query I rowsort
SELECT DISTINCT - 40 * - + 87 AS col2
----
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT ALL CAST( + 27 AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL CAST ( + 27 AS INTEGER ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL + COUNT( * ) * + 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + COUNT ( * ) * + 96 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9565
SELECT - COUNT( ALL + 53 ) DIV + NULLIF ( - + NULLIF ( - 94, CASE + 61 WHEN - ( ( + 16 ) ) THEN NULL WHEN - ( - 75 ) DIV - + 74 * - + 42 * + COALESCE ( + - COUNT( * ), CAST( NULL AS SIGNED ) DIV + - COUNT( * ) ) * + - 60 THEN NULL ELSE 67 + + + COUNT( * ) + + ( 72 ) END ), - 7 - 79 ) AS col0, + 37
----
0
37

skipif mysql # not compatible
query II rowsort label-9565
SELECT - COUNT ( ALL + 53 ) / + NULLIF ( - + NULLIF ( - 94, CASE + 61 WHEN - ( ( + 16 ) ) THEN NULL WHEN - ( - 75 ) / - + 74 * - + 42 * + COALESCE ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) / + - COUNT ( * ) ) * + - 60 THEN NULL ELSE 67 + + + COUNT ( * ) + + ( 72 ) END ), - 7 - 79 ) AS col0, + 37
----
0
37

query I rowsort
SELECT DISTINCT NULLIF ( - - 97, 20 * - - 91 * - 58 * 7 * 86 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9567
SELECT COUNT( * ), - 37 + + 87 col2
----
1
50

skipif mysql # not compatible
query II rowsort label-9567
SELECT COUNT ( * ), - 37 + + 87 col2
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT + + 58 * + + 79 + - COUNT( * ) - COUNT( * ) col1
----
4580

skipif mysql # not compatible
query I rowsort label-9568
SELECT + + 58 * + + 79 + - COUNT ( * ) - COUNT ( * ) col1
----
4580

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT 0 - COUNT( * ) + COALESCE ( 40, + + 99, - 49 - + 3 ) + + 64 * ( + - 20 ) * ( 75 ) + NULLIF ( ( - 21 ), - - 13 ) * - 56 AS col1
----
-94785

skipif mysql # not compatible
query I rowsort label-9569
SELECT 0 - COUNT ( * ) + COALESCE ( 40, + + 99, - 49 - + 3 ) + + 64 * ( + - 20 ) * ( 75 ) + NULLIF ( ( - 21 ), - - 13 ) * - 56 AS col1
----
-94785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9570
SELECT - MAX( - + NULLIF ( + 2, + CAST( NULL AS SIGNED ) ) ) * - 30 AS col0, 73
----
-60
73

skipif mysql # not compatible
query II rowsort label-9570
SELECT - MAX ( - + NULLIF ( + 2, + CAST ( NULL AS INTEGER ) ) ) * - 30 AS col0, 73
----
-60
73

query I rowsort
SELECT ALL 4 AS col0
----
4

query I rowsort
SELECT + 84 + - 76
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - SUM( + NULLIF ( + 71, 60 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9573
SELECT - SUM ( + NULLIF ( + 71, 60 ) ) AS col0
----
-71

query I rowsort
SELECT ALL ( - 44 ) col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT - NULLIF ( - SUM( ALL + 52 ), + 24 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9575
SELECT - NULLIF ( - SUM ( ALL + 52 ), + 24 ) AS col2
----
52

query I rowsort
SELECT ALL + ( 24 )
----
24

query I rowsort
SELECT - - 0 AS col2
----
0

query I rowsort
SELECT - 77 * + 75 AS col1
----
-5775

query I rowsort
SELECT ALL - + 19 + + 64 AS col2
----
45

query I rowsort
SELECT - 17 * 58
----
-986

query I rowsort
SELECT - + 92 AS col2
----
-92

query I rowsort
SELECT - - 79
----
79

query I rowsort
SELECT + 0 + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT - NULLIF ( + 27, 21 + - 71 ) + ( - COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - NULLIF ( + 27, 21 + - 71 ) + ( - COUNT ( * ) ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL - ( 49 ) + - COUNT( 40 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - ( 49 ) + - COUNT ( 40 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT - - 14 * - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - - 14 * - COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9587
SELECT ALL 2 + - COUNT( * ) + 15 * + + 15 * - CAST( + 29 AS SIGNED ) AS col1, + 87 DIV + 86 + - - 93
----
-6524
94

skipif mysql # not compatible
query II rowsort label-9587
SELECT ALL 2 + - COUNT ( * ) + 15 * + + 15 * - CAST ( + 29 AS INTEGER ) AS col1, + 87 / + 86 + - - 93
----
-6524
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9588
SELECT COUNT( * ) DIV + 79 AS col2, NULLIF ( - 7, + - 76 DIV COUNT( * ) * + AVG ( ( + 14 ) ) + - CAST( NULL AS SIGNED ) )
----
0
-7

skipif mysql # not compatible
query II rowsort label-9588
SELECT COUNT ( * ) / + 79 AS col2, NULLIF ( - 7, + - 76 / COUNT ( * ) * + AVG ( ( + 14 ) ) + - CAST ( NULL AS INTEGER ) )
----
0
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT DISTINCT 20 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT 20 / - 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9590
SELECT DISTINCT - 88, + 69 + + - COALESCE ( ( 89 ), 56 ) * 95 + + COUNT( * ) AS col1
----
-88
-8385

skipif mysql # not compatible
query II rowsort label-9590
SELECT DISTINCT - 88, + 69 + + - COALESCE ( ( 89 ), 56 ) * 95 + + COUNT ( * ) AS col1
----
-88
-8385

onlyif mysql # DIV for integer division: 
query II rowsort label-9591
SELECT 26 - - - 79 DIV + 16 - + 89, + 22 * 67 AS col2
----
-67
1474

skipif mysql # not compatible
query II rowsort label-9591
SELECT 26 - - - 79 / + 16 - + 89, + 22 * 67 AS col2
----
-67
1474

query I rowsort
SELECT 83 col2
----
83

query I rowsort
SELECT 54 * - ( 12 ) + 35 + - 35
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT 81 * - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9594
SELECT 81 * - COUNT ( * ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT ALL - 16 col0, COUNT( * )
----
-16
1

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL - 16 col0, COUNT ( * )
----
-16
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9596
SELECT 69 AS col2, MAX( 53 ) AS col0
----
69
53

skipif mysql # not compatible
query II rowsort label-9596
SELECT 69 AS col2, MAX ( 53 ) AS col0
----
69
53

query I rowsort
SELECT ALL 12 * + + 1
----
12

query I rowsort
SELECT ALL 24 * - NULLIF ( ( + 79 ), 79 * + 32 ) * 53
----
-100488

query I rowsort
SELECT ALL - COALESCE ( + 64, - 14 * + 81 + 0 - + - 37, - 80 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + ( - 55 ) * - 32 - - 92 + - - MAX( DISTINCT - 29 )
----
1823

skipif mysql # not compatible
query I rowsort label-9600
SELECT + ( - 55 ) * - 32 - - 92 + - - MAX ( DISTINCT - 29 )
----
1823

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT COUNT( - 13 ) * + 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9601
SELECT COUNT ( - 13 ) * + 23 AS col2
----
23

query I rowsort
SELECT 99 + - 87 col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9603
SELECT 70 + - 47 AS col2, CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9603
SELECT 70 + - 47 AS col2, CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT + COUNT( * ) * - CASE NULLIF ( CASE + 42 WHEN + 47 THEN NULL WHEN - - 22 * - - 73 + - 18 + 19 * + 84 THEN - + COALESCE ( COUNT( * ), 6 / + 76 * - COUNT( * ) ) * - 23 - - 96 * + CAST( NULL AS SIGNED ) WHEN + + ( 4 ) * MIN( + + 19 ) + 89 * 18 THEN + 18 * - + 41 ELSE NULL END, + + 63 * + + 81 - 15 ) WHEN + 51 THEN NULL WHEN + 28 THEN + 69 END * 51 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT + COUNT ( * ) * - CASE NULLIF ( CASE + 42 WHEN + 47 THEN NULL WHEN - - 22 * - - 73 + - 18 + 19 * + 84 THEN - + COALESCE ( COUNT ( * ), 6 / + 76 * - COUNT ( * ) ) * - 23 - - 96 * + CAST ( NULL AS INTEGER ) WHEN + + ( 4 ) * MIN ( + + 19 ) + 89 * 18 THEN + 18 * - + 41 ELSE NULL END, + + 63 * + + 81 - 15 ) WHEN + 51 THEN NULL WHEN + 28 THEN + 69 END * 51 + 60
----
NULL

query I rowsort
SELECT 15 - - 62 AS col2
----
77

query II rowsort
SELECT ALL 60 AS col2, 1 AS col2
----
60
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9607
SELECT COUNT( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2
----
49
-5025

skipif mysql # not compatible
query II rowsort label-9607
SELECT COUNT ( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX ( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2
----
49
-5025

query I rowsort
SELECT ALL CASE - ( - 7 ) WHEN 65 + + 53 + 60 * + 31 THEN - + ( + ( - - 88 ) ) WHEN + 54 THEN NULL WHEN - 89 + 59 - - 23 * + + 80 + 32 THEN + 97 + + + 20 ELSE NULL END col0
----
NULL

query I rowsort
SELECT 45 * 3 + + - 38
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL + - 96 * + - COUNT( * ) * - 33
----
-3168

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + - 96 * + - COUNT ( * ) * - 33
----
-3168

query I rowsort
SELECT 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT + 39 + - 70 + + - NULLIF ( + 70, + 90 + + + COUNT( * ) - - + 94 + 68 ) - + 48 * 97 * - ( - 93 ) + - 22 AS col0
----
-433131

skipif mysql # not compatible
query I rowsort label-9612
SELECT + 39 + - 70 + + - NULLIF ( + 70, + 90 + + + COUNT ( * ) - - + 94 + 68 ) - + 48 * 97 * - ( - 93 ) + - 22 AS col0
----
-433131

query I rowsort
SELECT ALL - 20 * + 61
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - COUNT( * ) * - 29 * + + 49
----
1421

skipif mysql # not compatible
query I rowsort label-9614
SELECT - COUNT ( * ) * - 29 * + + 49
----
1421

query I rowsort
SELECT ALL - - 66 + 39
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT + 95 AS col2, 10 + COUNT( * )
----
95
11

skipif mysql # not compatible
query II rowsort label-9616
SELECT + 95 AS col2, 10 + COUNT ( * )
----
95
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + COUNT( * ) + 9 * + ( - + 30 ) * - - CASE - - CASE - - 46 WHEN + - 30 THEN - 51 ELSE + ( + - 58 ) END WHEN 24 THEN - 73 ELSE NULL END + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT + COUNT ( * ) + 9 * + ( - + 30 ) * - - CASE - - CASE - - 46 WHEN + - 30 THEN - 51 ELSE + ( + - 58 ) END WHEN 24 THEN - 73 ELSE NULL END + - 42 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 56, + + 22 * - 53 ) AS col1
----
56

query I rowsort
SELECT 94 + + 90
----
184

query I rowsort
SELECT ALL + 15 + + - 43 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9621
SELECT ALL + 93 + 76 DIV - COUNT( + 92 ) + 29 * - 60 + ( - + 91 )
----
-1814

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + 93 + 76 / - COUNT ( + 92 ) + 29 * - 60 + ( - + 91 )
----
-1814

query I rowsort
SELECT - 64 + - 67 AS col0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT CAST( NULL AS SIGNED ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT CAST ( NULL AS INTEGER ) * 54
----
NULL

query I rowsort
SELECT ALL 8 * 64 col1
----
512

query I rowsort
SELECT 55 + 35
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL + COUNT( * ) * - 28 * + 26 * - + MAX( ALL - - 70 ) + + + 42 col0
----
51002

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + COUNT ( * ) * - 28 * + 26 * - + MAX ( ALL - - 70 ) + + + 42 col0
----
51002

query I rowsort
SELECT 36 + - + 97 * 41 AS col0
----
-3941

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT DISTINCT 78 * - 40 * CASE 14 WHEN - 71 + - 42 + + + 77 * + 67 THEN - + 0 + - MAX( ALL - 62 ) + + 39 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT 78 * - 40 * CASE 14 WHEN - 71 + - 42 + + + 77 * + 67 THEN - + 0 + - MAX ( ALL - 62 ) + + 39 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT + COUNT( * ) * - 39 * - 17 - - 63 col0
----
726

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT + COUNT ( * ) * - 39 * - 17 - - 63 col0
----
726

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT + 18 DIV + + 33 + - 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9630
SELECT + 18 / + + 33 + - 91 AS col1
----
-91

query I rowsort
SELECT ALL + 50 * 55 AS col2
----
2750

query I rowsort
SELECT ALL - 95 * + + 95 AS col0
----
-9025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9633
SELECT ALL CASE COUNT( * ) WHEN + 14 THEN NULL WHEN - 60 * - ( ( COUNT( * ) ) ) + + 13 * - 78 DIV - 98 * - ( ( + - 10 ) ) + - + 72 THEN NULL ELSE + - 25 END DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL CASE COUNT ( * ) WHEN + 14 THEN NULL WHEN - 60 * - ( ( COUNT ( * ) ) ) + + 13 * - 78 / - 98 * - ( ( + - 10 ) ) + - + 72 THEN NULL ELSE + - 25 END / + 61
----
0

query I rowsort
SELECT + 96 col1
----
96

query I rowsort
SELECT DISTINCT + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT 23 * - COUNT( * ) * - 89 + + 63
----
2110

skipif mysql # not compatible
query I rowsort label-9636
SELECT 23 * - COUNT ( * ) * - 89 + + 63
----
2110

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL + NULLIF ( 23, + - 25 / + + CASE + 16 WHEN + + MAX( ALL - 39 ) THEN + 4 ELSE COUNT( + + 75 ) + - - 77 + + 77 END + - 38 + - COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + NULLIF ( 23, + - 25 / + + CASE + 16 WHEN + + MAX ( ALL - 39 ) THEN + 4 ELSE COUNT ( + + 75 ) + - - 77 + + 77 END + - 38 + - COUNT ( * ) ) AS col0
----
23

query I rowsort
SELECT DISTINCT + 28 AS col2
----
28

query I rowsort
SELECT ALL 40 + 85
----
125

query I rowsort
SELECT DISTINCT + 71 + 80 * - 91 * - 63
----
458711

query I rowsort
SELECT ALL + 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT - 38 + - - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT - 38 + - - COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT - - 39 AS col0
----
39

query I rowsort
SELECT ( - 62 )
----
-62

query I rowsort
SELECT - - 29 col1
----
29

query I rowsort
SELECT DISTINCT + NULLIF ( 53, + 58 )
----
53

query I rowsort
SELECT DISTINCT - 37 AS col0
----
-37

query I rowsort
SELECT - + 55
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9649
SELECT DISTINCT - 95 DIV MIN( - + ( 41 ) ) * + - 58 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT - 95 / MIN ( - + ( 41 ) ) * + - 58 AS col2
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT - 53 - - 60 DIV 32
----
-52

skipif mysql # not compatible
query I rowsort label-9650
SELECT - 53 - - 60 / 32
----
-52

query I rowsort
SELECT ALL + 62 * + + 70 AS col1
----
4340

query I rowsort
SELECT - + 34
----
-34

query I rowsort
SELECT + 20 col2
----
20

query I rowsort
SELECT - ( 66 ) col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9655
SELECT DISTINCT + 81 * + 12 * COUNT( * ), COUNT( * ) AS col0
----
972
1

skipif mysql # not compatible
query II rowsort label-9655
SELECT DISTINCT + 81 * + 12 * COUNT ( * ), COUNT ( * ) AS col0
----
972
1

query I rowsort
SELECT - ( ( - + 85 ) ) * 60
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL + NULLIF ( + 61, COUNT( * ) * - ( + 58 ) * + 82 / MIN( ALL - + 31 ) + + 15 * - 63 + - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL + NULLIF ( + 61, COUNT ( * ) * - ( + 58 ) * + 82 / MIN ( ALL - + 31 ) + + 15 * - 63 + - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ( - NULLIF ( + - 7, CASE + - MAX( - 57 ) WHEN 36 / + 8 + - 34 * - 72 + + 55 + + 87 + + 60 * - - 79 + - 78 + 86 + NULLIF ( 41, + 88 ) + 21 / + + 11 THEN - 57 ELSE CASE + 96 WHEN - 96 * ( + + 50 ) THEN - MAX( DISTINCT - - 33 ) ELSE NULL END END + + - 99 + MAX( ALL + 50 ) ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9658
SELECT ( - NULLIF ( + - 7, CASE + - MAX ( - 57 ) WHEN 36 / + 8 + - 34 * - 72 + + 55 + + 87 + + 60 * - - 79 + - 78 + 86 + NULLIF ( 41, + 88 ) + 21 / + + 11 THEN - 57 ELSE CASE + 96 WHEN - 96 * ( + + 50 ) THEN - MAX ( DISTINCT - - 33 ) ELSE NULL END END + + - 99 + MAX ( ALL + 50 ) ) ) AS col0
----
7

query I rowsort
SELECT ALL + COALESCE ( - - 99, - 45, + 1 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL + SUM( ALL + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + SUM ( ALL + 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT ( - ( + CAST( 92 AS SIGNED ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9661
SELECT ( - ( + CAST ( 92 AS INTEGER ) ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9662
SELECT ALL + 25 col1, - ( + 47 ) + - COUNT( * ) + - 44 AS col0
----
25
-92

skipif mysql # not compatible
query II rowsort label-9662
SELECT ALL + 25 col1, - ( + 47 ) + - COUNT ( * ) + - 44 AS col0
----
25
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9663
SELECT + COUNT( * ) AS col2, - 72 * - 78 * - - 44 + COUNT( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST( ( + 20 ) AS SIGNED ) * - + COUNT( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9663
SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT COUNT( * ) DIV + + 58 + + 89
----
89

skipif mysql # not compatible
query I rowsort label-9664
SELECT COUNT ( * ) / + + 58 + + 89
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9665
SELECT + COUNT( * ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9665
SELECT + COUNT ( * ), COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 11 + 91 + 37 AS col2
----
117

query I rowsort
SELECT ALL - 92 * 54 AS col0
----
-4968

query I rowsort
SELECT NULLIF ( + 74, - + 55 * + 37 ) AS col0
----
74

query I rowsort
SELECT ALL - 19 * - - 13
----
-247

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT + - ( - + NULLIF ( - 21, + - 65 ) ), COUNT( * ) col2
----
-21
1

skipif mysql # not compatible
query II rowsort label-9670
SELECT + - ( - + NULLIF ( - 21, + - 65 ) ), COUNT ( * ) col2
----
-21
1

query I rowsort
SELECT + + 15 + 27 AS col1
----
42

query I rowsort
SELECT ALL + - 19 * 97 + - 77 + + 67 - + 95 AS col1
----
-1948

query I rowsort
SELECT DISTINCT + - 95 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT - + COUNT( * ) + 14 + + COALESCE ( - 46, - 43 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9674
SELECT - + COUNT ( * ) + 14 + + COALESCE ( - 46, - 43 ) AS col0
----
-33

query I rowsort
SELECT 24 col0
----
24

query I rowsort
SELECT + 57 - 70 + - 30
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + + 79 + - 79 + - ( - - ( + SUM( ALL 68 ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9677
SELECT + + 79 + - 79 + - ( - - ( + SUM ( ALL 68 ) ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL - 37 * - 63 * - 96 + + CASE ( 43 ) WHEN 64 + - NULLIF ( + 95, - + 55 ) - 98 + + 96 THEN - 70 WHEN - 94 THEN - MAX( ALL + - 0 ) ELSE NULL END - - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 37 * - 63 * - 96 + + CASE ( 43 ) WHEN 64 + - NULLIF ( + 95, - + 55 ) - 98 + + 96 THEN - 70 WHEN - 94 THEN - MAX ( ALL + - 0 ) ELSE NULL END - - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + 24 * - - 97 + SUM( - 76 ) AS col1
----
2252

skipif mysql # not compatible
query I rowsort label-9679
SELECT + 24 * - - 97 + SUM ( - 76 ) AS col1
----
2252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT ALL + 77 * ( - 44 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + 77 * ( - 44 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 66 - - 24
----
90

query I rowsort
SELECT ALL + 57 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9683
SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT( * ) - - COALESCE ( + - 40, - - 22 ) * CAST( NULL AS SIGNED ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST( NULL AS SIGNED ) ) * + 13 * + COUNT( * ) * + - 67 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9683
SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT ( * ) - - COALESCE ( + - 40, - - 22 ) * CAST ( NULL AS INTEGER ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST ( NULL AS INTEGER ) ) * + 13 * + COUNT ( * ) * + - 67 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 33 - + 66 AS col2
----
-33

query I rowsort
SELECT + + 27 * + 52
----
1404

query I rowsort
SELECT + + 22 * + 80 + + + 19 + - 22 - 26
----
1731

query I rowsort
SELECT - ( 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9688
SELECT - COUNT( * ) AS col1, + CAST( ( - NULLIF ( - - 6, - 70 ) ) AS SIGNED )
----
-1
-6

skipif mysql # not compatible
query II rowsort label-9688
SELECT - COUNT ( * ) AS col1, + CAST ( ( - NULLIF ( - - 6, - 70 ) ) AS INTEGER )
----
-1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + COUNT( * ) + - + 1
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT + COUNT ( * ) + - + 1
----
0

query I rowsort
SELECT 99 AS col0
----
99

query I rowsort
SELECT + 25 + - 95
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM ( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT + 78 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 78 / - - 97
----
0

query I rowsort
SELECT + 95 + + 49 + + 61 * + 52 * - - 10 AS col2
----
31864

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT ALL 1 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL 1 / - 15
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9696
SELECT 90 + + + 85 / - CAST( NULL AS DECIMAL ) + ( - 65 ) - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT 90 + + + 85 / - CAST ( NULL AS REAL ) + ( - 65 ) - + 54 AS col2
----
NULL

query I rowsort
SELECT + 83 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9698
SELECT 64 DIV COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9698
SELECT 64 / COUNT ( * )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT 23 DIV ( + COUNT( * ) ) + + 7 * - COUNT( ALL + - 19 ) * + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9699
SELECT 23 / ( + COUNT ( * ) ) + + 7 * - COUNT ( ALL + - 19 ) * + COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL + 32 * - NULLIF ( COUNT( * ), 86 + - 69 ) * - 65
----
2080

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + 32 * - NULLIF ( COUNT ( * ), 86 + - 69 ) * - 65
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT DISTINCT - SUM( 19 ) + 43
----
24

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT - SUM ( 19 ) + 43
----
24

query I rowsort
SELECT DISTINCT 59 * + 64
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - 60 + + CASE - 94 WHEN 14 THEN NULL WHEN - ( + 10 ) * + COUNT( * ) THEN + + 55 * 37 END * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - 60 + + CASE - 94 WHEN 14 THEN NULL WHEN - ( + 10 ) * + COUNT ( * ) THEN + + 55 * 37 END * 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 63 AS col2
----
-63

query I rowsort
SELECT ALL 94 + + 66 AS col1
----
160

query I rowsort
SELECT DISTINCT - 76
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL + ( 82 ) + + + CAST( + ( + 38 ) AS SIGNED ) + - 46 * + - 58 AS col0
----
2788

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL + ( 82 ) + + + CAST ( + ( + 38 ) AS INTEGER ) + - 46 * + - 58 AS col0
----
2788

query I rowsort
SELECT + + 46
----
46

query I rowsort
SELECT NULLIF ( + 41, 95 )
----
41

query I rowsort
SELECT ALL - - 10 * - 19 * + + 42 col2
----
-7980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9711
SELECT DISTINCT - - 34 * - 93 + - 98 + - MAX( - 36 ) * + - 77 * + + NULLIF ( + + 89, CAST( - - ( + 58 ) AS DECIMAL ) ) DIV COUNT( * )
----
-249968

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT - - 34 * - 93 + - 98 + - MAX ( - 36 ) * + - 77 * + + NULLIF ( + + 89, CAST ( - - ( + 58 ) AS REAL ) ) / COUNT ( * )
----
-249968

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - - 18 * COUNT( * ) * 91 AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - - 18 * COUNT ( * ) * 91 AS col1
----
1638

query I rowsort
SELECT ALL 20 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - NULLIF ( 8, - - ( + - 41 ) / - 67 + ( - 0 ) + + 13 ) * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - NULLIF ( 8, - - ( + - 41 ) / - 67 + ( - 0 ) + + 13 ) * - 58
----
NULL

query I rowsort
SELECT - ( 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT - 74 DIV - + 58 - + 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 74 / - + 58 - + 10 AS col2
----
-9

query I rowsort
SELECT - + 2 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT 17 - - 64 DIV - 25
----
15

skipif mysql # not compatible
query I rowsort label-9718
SELECT 17 - - 64 / - 25
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT - CASE + 29 WHEN + 84 THEN NULL WHEN - 46 + - COUNT( * ) THEN - - COUNT( * ) ELSE - COALESCE ( - 62, + + MIN( DISTINCT 78 ) DIV 72 * 61 ) * - 27 - - 13 * - 63 END * - 14
----
-34902

skipif mysql # not compatible
query I rowsort label-9719
SELECT - CASE + 29 WHEN + 84 THEN NULL WHEN - 46 + - COUNT ( * ) THEN - - COUNT ( * ) ELSE - COALESCE ( - 62, + + MIN ( DISTINCT 78 ) / 72 * 61 ) * - 27 - - 13 * - 63 END * - 14
----
-34902

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - COUNT( + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-9720
SELECT - COUNT ( + 69 )
----
-1

query I rowsort
SELECT 64 * 96 AS col1
----
6144

query I rowsort
SELECT - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-9723
SELECT ALL 69, - 59 + - COUNT( * ) AS col2
----
69
-60

skipif mysql # not compatible
query II rowsort label-9723
SELECT ALL 69, - 59 + - COUNT ( * ) AS col2
----
69
-60

query I rowsort
SELECT - 70 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT 84 - + ( + - 32 ) + + COUNT( * ) * + MAX( 95 ) * + 60 * - 66
----
-376084

skipif mysql # not compatible
query I rowsort label-9725
SELECT 84 - + ( + - 32 ) + + COUNT ( * ) * + MAX ( 95 ) * + 60 * - 66
----
-376084

query I rowsort
SELECT ALL 60 * - 95
----
-5700

query I rowsort
SELECT 54 * - - 63
----
3402

query II rowsort
SELECT - 78 AS col0, 78 col2
----
-78
78

query I rowsort
SELECT ALL 54 + 78
----
132

query I rowsort
SELECT 73 + + 3 AS col1
----
76

query I rowsort
SELECT 80 * 80
----
6400

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT COUNT( * ) * 40 * + 38 AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-9732
SELECT COUNT ( * ) * 40 * + 38 AS col1
----
1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT ALL 47 + + + COUNT( * ) DIV + 45
----
47

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL 47 + + + COUNT ( * ) / + 45
----
47

query I rowsort
SELECT DISTINCT - 19 * - 88 * 22 * + 73 AS col2
----
2685232

query I rowsort
SELECT ( + 1 ) - + 17 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT - MIN( 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT - MIN ( 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT MIN( - 89 ) + - 70 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT MIN ( - 89 ) + - 70 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL - ( - MAX( - COALESCE ( + 81, + 4 ) ) ) + + 91 * - 58
----
-5359

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - ( - MAX ( - COALESCE ( + 81, + 4 ) ) ) + + 91 * - 58
----
-5359

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT + COUNT( * ), + COUNT( * ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-9739
SELECT + COUNT ( * ), + COUNT ( * ) col2
----
1
1

query I rowsort
SELECT ALL 88 + + + 11 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9741
SELECT ALL COUNT( * ) DIV + + COALESCE ( - - 26, + - 97, + ( - 22 ) + + 92, - COALESCE ( + 72, 99, COUNT( * ) ) ) * - ( ( + ( - - 72 ) ) ) + + CAST( + + 19 AS SIGNED ) * 30
----
570

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL COUNT ( * ) / + + COALESCE ( - - 26, + - 97, + ( - 22 ) + + 92, - COALESCE ( + 72, 99, COUNT ( * ) ) ) * - ( ( + ( - - 72 ) ) ) + + CAST ( + + 19 AS INTEGER ) * 30
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT + 98 * - - CAST( + + 47 AS SIGNED ) + - 98 AS col2
----
4508

skipif mysql # not compatible
query I rowsort label-9742
SELECT + 98 * - - CAST ( + + 47 AS INTEGER ) + - 98 AS col2
----
4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT COALESCE ( + - 49, - 52 ) DIV + + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9743
SELECT COALESCE ( + - 49, - 52 ) / + + COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT DISTINCT - 51 * + 65
----
-3315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9745
SELECT + COUNT( * ) * + CAST( - 98 AS SIGNED ) + + CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT + COUNT ( * ) * + CAST ( - 98 AS INTEGER ) + + CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 35 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-9747
SELECT ALL + 32 * + ( + 28 ) AS col2, + 39 DIV 66 + + 88 AS col1
----
896
88

skipif mysql # not compatible
query II rowsort label-9747
SELECT ALL + 32 * + ( + 28 ) AS col2, + 39 / 66 + + 88 AS col1
----
896
88

query I rowsort
SELECT ALL - 73 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL - CAST( + + 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - CAST ( + + 63 AS INTEGER )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT - 15 * - + 30 * + 70 * - 35 - + 72 + - 55 * + 17 / - 1 + - CAST( CASE + CAST( NULL AS SIGNED ) WHEN - + CASE - + 46 WHEN CASE + - 42 WHEN - - 37 THEN 97 * - + 46 * - 93 END * - - 6 + - 81 * - + COUNT( + 58 ) THEN + 21 * + - 39 + - 31 END THEN + AVG ( 87 ) * 30 / 81 * + 34 - + 74 WHEN - 72 THEN - COUNT( * ) WHEN - ( - 12 ) / 3 + 13 THEN MAX( 53 ) + - 61 * - COUNT( * ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT - 15 * - + 30 * + 70 * - 35 - + 72 + - 55 * + 17 / - 1 + - CAST ( CASE + CAST ( NULL AS INTEGER ) WHEN - + CASE - + 46 WHEN CASE + - 42 WHEN - - 37 THEN 97 * - + 46 * - 93 END * - - 6 + - 81 * - + COUNT ( + 58 ) THEN + 21 * + - 39 + - 31 END THEN + AVG ( 87 ) * 30 / 81 * + 34 - + 74 WHEN - 72 THEN - COUNT ( * ) WHEN - ( - 12 ) / 3 + 13 THEN MAX ( 53 ) + - 61 * - COUNT ( * ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT 53 + - - COALESCE ( 56, + + ( - - COUNT( * ) ) * + + MAX( + 90 ) * - + 22, - 82 + + 29 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-9751
SELECT 53 + - - COALESCE ( 56, + + ( - - COUNT ( * ) ) * + + MAX ( + 90 ) * - + 22, - 82 + + 29 ) AS col2
----
109

query I rowsort
SELECT ALL - + 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ( ( + + 18 ) ) * - CASE + COUNT( ALL - 51 ) WHEN - 26 * + 91 - 46 * + 84 + - 28 + + ( - 67 ) + + 67 THEN COALESCE ( + 19, - NULLIF ( + 2, - - 60 ) ) ELSE NULL END + + + 39 + - - 94 - + 4 + - 27 / + + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT ( ( + + 18 ) ) * - CASE + COUNT ( ALL - 51 ) WHEN - 26 * + 91 - 46 * + 84 + - 28 + + ( - 67 ) + + 67 THEN COALESCE ( + 19, - NULLIF ( + 2, - - 60 ) ) ELSE NULL END + + + 39 + - - 94 - + 4 + - 27 / + + 47 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT + 42 DIV COUNT( * ) + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9754
SELECT + 42 / COUNT ( * ) + COUNT ( * ) AS col2
----
43

query II rowsort
SELECT + 81 * + - 69 + + 99, 34 AS col2
----
-5490
34

query I rowsort
SELECT ALL + + 65 * 22 AS col1
----
1430

query I rowsort
SELECT DISTINCT + 22 * 69
----
1518

query I rowsort
SELECT DISTINCT - 50 * + 88
----
-4400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9759
SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST( NULL AS SIGNED ), + 73 ) DIV 9 col1
----
-23
84

skipif mysql # not compatible
query II rowsort label-9759
SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 73 ) / 9 col1
----
-23
84

query I rowsort
SELECT ALL - 32 + COALESCE ( 68, - - 24 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT - 60 + + - 38 DIV + - 21 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9761
SELECT - 60 + + - 38 / + - 21 AS col0
----
-59

query II rowsort
SELECT 56 AS col0, 86
----
56
86

query I rowsort
SELECT - ( + 69 ) + - 86 AS col2
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT + 42 DIV + + 14 col1
----
3

skipif mysql # not compatible
query I rowsort label-9764
SELECT + 42 / + + 14 col1
----
3

query I rowsort
SELECT DISTINCT + 60 + + - 18 AS col0
----
42

query II rowsort
SELECT - 33 AS col2, - 3
----
-33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT + 78 + - - 34 * - 95 - + COUNT( * )
----
-3153

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT + 78 + - - 34 * - 95 - + COUNT ( * )
----
-3153

query I rowsort
SELECT 42 col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-9769
SELECT ALL ( + ( 80 ) ) + - 47 + + 56 DIV + 28 AS col0, - 25 AS col0
----
35
-25

skipif mysql # not compatible
query II rowsort label-9769
SELECT ALL ( + ( 80 ) ) + - 47 + + 56 / + 28 AS col0, - 25 AS col0
----
35
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - 6 + - + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9770
SELECT - 6 + - + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL CASE + 68 WHEN - 57 * + - MAX( DISTINCT + 72 ) + - COALESCE ( 32, + + COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL CASE + 68 WHEN - 57 * + - MAX ( DISTINCT + 72 ) + - COALESCE ( 32, + + COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT - 88 * - 58 * 71 AS col0
----
362384

query I rowsort
SELECT + 2 col1
----
2

query II rowsort
SELECT ( 5 ) AS col0, - 34 + 44
----
5
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9775
SELECT + CASE 42 WHEN COUNT( DISTINCT + 10 ) * 86 - + 51 THEN NULL ELSE - 42 * - - 3 + 40 - 74 * - - CAST( + + 78 AS SIGNED ) + + 90 + + + 39 END AS col0
----
-5729

skipif mysql # not compatible
query I rowsort label-9775
SELECT + CASE 42 WHEN COUNT ( DISTINCT + 10 ) * 86 - + 51 THEN NULL ELSE - 42 * - - 3 + 40 - 74 * - - CAST ( + + 78 AS INTEGER ) + + 90 + + + 39 END AS col0
----
-5729

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL COUNT( * ) * + NULLIF ( + COUNT( * ), + + 58 + + 62 - + 0 * 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL COUNT ( * ) * + NULLIF ( + COUNT ( * ), + + 58 + + 62 - + 0 * 68 ) AS col1
----
1

query I rowsort
SELECT - 46 * 77
----
-3542

query I rowsort
SELECT ( + 86 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT ALL - - 56 * 30 - + CAST( - 59 AS SIGNED ) + 37
----
1776

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - - 56 * 30 - + CAST ( - 59 AS INTEGER ) + 37
----
1776

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT ALL + 9 AS col1, - 97 * - - 80 + COUNT( * ) AS col0
----
9
-7759

skipif mysql # not compatible
query II rowsort label-9780
SELECT ALL + 9 AS col1, - 97 * - - 80 + COUNT ( * ) AS col0
----
9
-7759

query I rowsort
SELECT + - 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT SUM( DISTINCT 54 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-9782
SELECT SUM ( DISTINCT 54 ) col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9783
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, COALESCE ( + COUNT( * ), 40 - + 78 * 52 * + - 8, - NULLIF ( 6, - 77 * + 34 ) * + 59 * - 14 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9783
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + COUNT ( * ), 40 - + 78 * 52 * + - 8, - NULLIF ( 6, - 77 * + 34 ) * + 59 * - 14 )
----
NULL
1

query II rowsort
SELECT ALL + - 46 AS col1, + 17 AS col1
----
-46
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT COALESCE ( 71, - 40 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 85 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9785
SELECT COALESCE ( 71, - 40 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 85 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9786
SELECT + + 89 DIV NULLIF ( - 93, + + COUNT( * ) * - 57 - - COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT + + 89 / NULLIF ( - 93, + + COUNT ( * ) * - 57 - - COUNT ( * ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + + 84 * SUM( - 73 )
----
-6132

skipif mysql # not compatible
query I rowsort label-9787
SELECT + + 84 * SUM ( - 73 )
----
-6132

query I rowsort
SELECT 15 * + 26 - - + 42
----
432

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT + COUNT( * ) * + COUNT( * ) + - 19 + + + 60 AS col2, ( + - COALESCE ( + 22, 71 ) )
----
42
-22

skipif mysql # not compatible
query II rowsort label-9789
SELECT + COUNT ( * ) * + COUNT ( * ) + - 19 + + + 60 AS col2, ( + - COALESCE ( + 22, 71 ) )
----
42
-22

query I rowsort
SELECT ALL + 45 * - + 47 * - 45
----
95175

query I rowsort
SELECT - ( + 74 ) AS col1
----
-74

query I rowsort
SELECT ALL + 54 * 29
----
1566

query I rowsort
SELECT ALL + - ( - 76 )
----
76

query I rowsort
SELECT DISTINCT - 26 * + 90 AS col0
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ALL - 73 * - - COUNT( DISTINCT 71 ) + + 69 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - 73 * - - COUNT ( DISTINCT 71 ) + + 69 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-9796
SELECT ALL CASE - 89 WHEN 73 THEN NULL WHEN - 88 + + 55 * + 35 DIV - - 1 THEN - 19 * + 9 + 90 * - - 55 * - 99 END * - 72 * 17 + 72 * - + 69 * + 6 AS col2, + 78 + 14 + - ( 38 ) - - + 41 * COALESCE ( - 21, - 34 * - 10 ) DIV 98 col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-9796
SELECT ALL CASE - 89 WHEN 73 THEN NULL WHEN - 88 + + 55 * + 35 / - - 1 THEN - 19 * + 9 + 90 * - - 55 * - 99 END * - 72 * 17 + 72 * - + 69 * + 6 AS col2, + 78 + 14 + - ( 38 ) - - + 41 * COALESCE ( - 21, - 34 * - 10 ) / 98 col1
----
NULL
46

query I rowsort
SELECT + - 8 * + - ( + 95 ) + 34 col2
----
794

query I rowsort
SELECT + 17 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9799
SELECT - COALESCE ( - 34, 73, - + 99 * + SUM( ALL + CASE + 69 WHEN - 65 THEN 73 ELSE NULL END ) DIV + MAX( DISTINCT 81 ) * 4 + + 20 * + 54 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9799
SELECT - COALESCE ( - 34, 73, - + 99 * + SUM ( ALL + CASE + 69 WHEN - 65 THEN 73 ELSE NULL END ) / + MAX ( DISTINCT 81 ) * 4 + + 20 * + 54 ) AS col2
----
34

query I rowsort
SELECT - ( - - 14 ) AS col1
----
-14

query I rowsort
SELECT + 19 + ( - - 15 ) + - 41 * + 79 * 32 AS col2
----
-103614

onlyif mysql # aggregate syntax: 
query II rowsort label-9802
SELECT - 42 + - 70, + NULLIF ( + 73, 15 + + 20 ) + - + COALESCE ( + + 93, 63, COUNT( * ) + + 21 ) AS col2
----
-112
-20

skipif mysql # not compatible
query II rowsort label-9802
SELECT - 42 + - 70, + NULLIF ( + 73, 15 + + 20 ) + - + COALESCE ( + + 93, 63, COUNT ( * ) + + 21 ) AS col2
----
-112
-20

query I rowsort
SELECT 4 AS col1
----
4

query I rowsort
SELECT ALL 18 + 7 + 21 + - 1 * + + 81
----
-35

query I rowsort
SELECT ALL 77 + - + 77 + - + ( + ( 42 ) ) * - 45 - - 61 AS col0
----
1951

query II rowsort
SELECT ALL ( + 75 ), + 89 AS col1
----
75
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL + NULLIF ( ( + + 4 ), - CAST( 73 AS SIGNED ) ) + - 92
----
-88

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + NULLIF ( ( + + 4 ), - CAST ( 73 AS INTEGER ) ) + - 92
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9809
SELECT ALL ( 36 ) AS col1, 16 DIV + 77
----
36
0

skipif mysql # not compatible
query II rowsort label-9809
SELECT ALL ( 36 ) AS col1, 16 / + 77
----
36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT - COUNT( * ) * + NULLIF ( ( + COUNT( * ) ), + 10 ) * + 61 + + - 11
----
-72

skipif mysql # not compatible
query I rowsort label-9810
SELECT - COUNT ( * ) * + NULLIF ( ( + COUNT ( * ) ), + 10 ) * + 61 + + - 11
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT - NULLIF ( + 90, - - 74 ) DIV + 26 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT - NULLIF ( + 90, - - 74 ) / + 26 AS col1
----
-3

query I rowsort
SELECT DISTINCT + + 12
----
12

query I rowsort
SELECT - 52 * ( + + 1 )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT - + 56 * + COALESCE ( COUNT( * ), COALESCE ( - + 34, - 53 DIV + + 31 + - 64 * - 7 ) ) * 49 - + - 52 + 42 - - 50
----
-2600

skipif mysql # not compatible
query I rowsort label-9814
SELECT - + 56 * + COALESCE ( COUNT ( * ), COALESCE ( - + 34, - 53 / + + 31 + - 64 * - 7 ) ) * 49 - + - 52 + 42 - - 50
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL + MAX( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + MAX ( 43 )
----
43

query I rowsort
SELECT + - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT CASE - COUNT( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT CASE - COUNT ( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - + 60 * 70 * + MIN( 33 ) - - + 57
----
-138543

skipif mysql # not compatible
query I rowsort label-9818
SELECT - + 60 * 70 * + MIN ( 33 ) - - + 57
----
-138543

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL + - COUNT( DISTINCT + + 33 ) * - + 96 * 41 + - - ( 0 ) AS col1
----
3936

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + - COUNT ( DISTINCT + + 33 ) * - + 96 * 41 + - - ( 0 ) AS col1
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT + 97 * + COUNT( * ) + - 26 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9820
SELECT + 97 * + COUNT ( * ) + - 26 AS col0
----
71

query I rowsort
SELECT ALL + - 80 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9822
SELECT - ( 73 ) + COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) AS col0, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-9822
SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0
----
NULL
18

query I rowsort
SELECT DISTINCT + 72 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL + 48 / - CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), - 85 + MIN( ALL 47 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + 48 / - CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), - 85 + MIN ( ALL 47 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 27 )
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9826
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT ALL 23 DIV - - ( - 20 ) + - 64 + + 57
----
-8

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL 23 / - - ( - 20 ) + - 64 + + 57
----
-8

query I rowsort
SELECT DISTINCT 83 + + 67 AS col2
----
150

query I rowsort
SELECT ALL - 73 + 94
----
21

query I rowsort
SELECT 64 * 2 * - + 28
----
-3584

query I rowsort
SELECT + 63 AS col2
----
63

query I rowsort
SELECT ALL 1 + - + 88 AS col0
----
-87

query II rowsort
SELECT - 21 AS col1, - 65 AS col1
----
-21
-65

query I rowsort
SELECT ALL 25 + + 26
----
51

query I rowsort
SELECT 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL 95 * CASE + + COUNT( * ) WHEN - + ( + + 11 ) THEN + 84 WHEN + 69 THEN COUNT( * ) + - 14 ELSE - 65 END * COUNT( * ) + + 62 AS col0
----
-6113

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL 95 * CASE + + COUNT ( * ) WHEN - + ( + + 11 ) THEN + 84 WHEN + 69 THEN COUNT ( * ) + - 14 ELSE - 65 END * COUNT ( * ) + + 62 AS col0
----
-6113

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ( - 67 ) - - MIN( ALL 56 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-9837
SELECT ( - 67 ) - - MIN ( ALL 56 ) col0
----
-11

query II rowsort
SELECT - 30, + 30 AS col1
----
-30
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9839
SELECT ALL 89 - - 62 + CAST( NULL AS SIGNED ) AS col2, 45 + - 75 * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9839
SELECT ALL 89 - - 62 + CAST ( NULL AS INTEGER ) AS col2, 45 + - 75 * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT ( + + COUNT( * ) ) + + CAST( COUNT( * ) AS SIGNED ) + + 57
----
59

skipif mysql # not compatible
query I rowsort label-9840
SELECT ( + + COUNT ( * ) ) + + CAST ( COUNT ( * ) AS INTEGER ) + + 57
----
59

query I rowsort
SELECT 40 - 32 AS col0
----
8

query II rowsort
SELECT DISTINCT 46 col1, 55
----
46
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT ALL + 43 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + 43 / - 96 AS col1
----
0

query I rowsort
SELECT 50 - 91 - - 29 * - 76
----
-2245

query I rowsort
SELECT ALL 88 - - 41
----
129

query II rowsort
SELECT - 52, - 43 AS col0
----
-52
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9847
SELECT ALL 54 AS col1, - ( CAST( NULL AS DECIMAL ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-9847
SELECT ALL 54 AS col1, - ( CAST ( NULL AS REAL ) ) AS col2
----
54
NULL

query I rowsort
SELECT 30 + + ( 98 )
----
128

query II rowsort
SELECT DISTINCT 56 AS col2, 38 * - 4
----
56
-152

query I rowsort
SELECT ALL 81 * 15
----
1215

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT ALL + COUNT( * ), COALESCE ( MIN( + 30 ), - + ( - - 95 ) + 46 + + + 81 - - + 72 * - COUNT( * ), - + 78 ) * 75 - - CASE + 58 WHEN + ( + NULLIF ( ( - - 52 ), + MIN( DISTINCT - 51 ) ) ) * - + 61 + - - 5 THEN NULL WHEN + - 20 + - 20 - + - 78 * - + 44 THEN - 86 ELSE NULL END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9851
SELECT ALL + COUNT ( * ), COALESCE ( MIN ( + 30 ), - + ( - - 95 ) + 46 + + + 81 - - + 72 * - COUNT ( * ), - + 78 ) * 75 - - CASE + 58 WHEN + ( + NULLIF ( ( - - 52 ), + MIN ( DISTINCT - 51 ) ) ) * - + 61 + - - 5 THEN NULL WHEN + - 20 + - 20 - + - 78 * - + 44 THEN - 86 ELSE NULL END AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT ALL + CAST( + 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + CAST ( + 26 AS INTEGER ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT + 2 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT + 2 / + 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT 59 + + + 5 * + 64 * + - CAST( NULL AS SIGNED ) + - + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT 59 + + + 5 * + 64 * + - CAST ( NULL AS INTEGER ) + - + 49 col0
----
NULL

query II rowsort
SELECT - + 46, 94 AS col0
----
-46
94

query II rowsort
SELECT + - 89 AS col0, + 24
----
-89
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2
----
22
-3808

skipif mysql # not compatible
query II rowsort label-9857
SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT ( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2
----
22
-3808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9858
SELECT + 22 AS col2, CAST( ( - SUM( + ( 36 ) ) ) AS SIGNED ) AS col2
----
22
-36

skipif mysql # not compatible
query II rowsort label-9858
SELECT + 22 AS col2, CAST ( ( - SUM ( + ( 36 ) ) ) AS INTEGER ) AS col2
----
22
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT ALL - ( - + COUNT( * ) ) DIV 37 + + 15
----
15

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - ( - + COUNT ( * ) ) / 37 + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL NULLIF ( 29, COUNT( * ) ) + - 38 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL NULLIF ( 29, COUNT ( * ) ) + - 38 AS col0
----
-9

query I rowsort
SELECT DISTINCT - - ( - + 17 ) col2
----
-17

query I rowsort
SELECT ALL + ( 99 ) + + COALESCE ( + NULLIF ( 87, 84 ), + 43 ) AS col0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9863
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), 83 ) AS col1, ( - 29 )
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-9863
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), 83 ) AS col1, ( - 29 )
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL - MAX( + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - MAX ( + 31 ) AS col1
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9865
SELECT ALL 87 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL 87 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 50, 2 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT CAST( + 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-9867
SELECT CAST ( + 50 AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + COUNT( + 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + COUNT ( + 91 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT + 86 DIV + 86
----
1

skipif mysql # not compatible
query I rowsort label-9869
SELECT + 86 / + 86
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9870
SELECT ALL + COUNT( * ) DIV + 83 + + 3
----
3

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + COUNT ( * ) / + 83 + + 3
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT ALL COUNT( 60 ) DIV - 99 + COUNT( * ) * ( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL COUNT ( 60 ) / - 99 + COUNT ( * ) * ( + 14 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9872
SELECT COUNT( * ) DIV 8 - + 42
----
-42

skipif mysql # not compatible
query I rowsort label-9872
SELECT COUNT ( * ) / 8 - + 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9873
SELECT ALL CAST( NULL AS SIGNED ) / SUM( ALL 49 / - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL CAST ( NULL AS INTEGER ) / SUM ( ALL 49 / - 50 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9874
SELECT + CASE + 94 WHEN CAST( 53 AS DECIMAL ) THEN ( 11 ) END * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT + CASE + 94 WHEN CAST ( 53 AS REAL ) THEN ( 11 ) END * + 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT - 11 DIV - ( 69 ) + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 11 / - ( 69 ) + 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT - COUNT( * ) * - 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9876
SELECT - COUNT ( * ) * - 35 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT ALL - 14 DIV 66 + 5 DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - 14 / 66 + 5 / + 88 AS col1
----
0

query I rowsort
SELECT + 20 + - 70
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - 26 * ( 33 * COUNT( * ) )
----
-858

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 26 * ( 33 * COUNT ( * ) )
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + SUM( ALL + COALESCE ( ( + 39 ), + 0 ) ) + NULLIF ( - ( - 21 ) + - SUM( ALL ( - 49 ) ), COUNT( * ) ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-9880
SELECT + SUM ( ALL + COALESCE ( ( + 39 ), + 0 ) ) + NULLIF ( - ( - 21 ) + - SUM ( ALL ( - 49 ) ), COUNT ( * ) ) AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT COUNT( * ) * + 55 + + 16
----
71

skipif mysql # not compatible
query I rowsort label-9881
SELECT COUNT ( * ) * + 55 + + 16
----
71

query I rowsort
SELECT DISTINCT 89 * - 39
----
-3471

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - - 80 + + COUNT( ALL 16 )
----
81

skipif mysql # not compatible
query I rowsort label-9883
SELECT - - 80 + + COUNT ( ALL 16 )
----
81

query I rowsort
SELECT - COALESCE ( + 90, - 56 * 65 ) * 44
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT - + COUNT( * ) + + 65
----
64

skipif mysql # not compatible
query I rowsort label-9885
SELECT - + COUNT ( * ) + + 65
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9886
SELECT - 51 + - 21 DIV + COUNT( * ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-9886
SELECT - 51 + - 21 / + COUNT ( * ) col2
----
-72

query I rowsort
SELECT - + 97 * - 19 AS col0
----
1843

query I rowsort
SELECT 39 * 88 + - 99 AS col0
----
3333

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT + MIN( - 91 ) * COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + MIN ( - 91 ) * COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9890
SELECT - SUM( - 82 ) + + CASE - 14 WHEN - COALESCE ( + 31, 80 ) DIV + ( 44 ) THEN - 8 DIV - 79 + - 34 * + CAST( NULL AS SIGNED ) WHEN 95 THEN NULL ELSE + 38 END
----
120

skipif mysql # not compatible
query I rowsort label-9890
SELECT - SUM ( - 82 ) + + CASE - 14 WHEN - COALESCE ( + 31, 80 ) / + ( 44 ) THEN - 8 / - 79 + - 34 * + CAST ( NULL AS INTEGER ) WHEN 95 THEN NULL ELSE + 38 END
----
120

query I rowsort
SELECT - + 53 + 71 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + COUNT( * ) + - 23 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9892
SELECT + COUNT ( * ) + - 23 AS col1
----
-22

query I rowsort
SELECT DISTINCT - + 57 * - ( 92 ) AS col1
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL - 81 * COUNT( * ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL - 81 * COUNT ( * ) col2
----
-81

query I rowsort
SELECT ALL + 23 + 29 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT COUNT( * ) * 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9896
SELECT COUNT ( * ) * 80 AS col0
----
80

query I rowsort
SELECT - 25 * 4 col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - 94 + + SUM( DISTINCT + 93 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9898
SELECT - 94 + + SUM ( DISTINCT + 93 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT COUNT( * ) + - 48 DIV 20
----
-1

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( * ) + - 48 / 20
----
-1

query I rowsort
SELECT 12 + - - 38 AS col0
----
50

query I rowsort
SELECT DISTINCT + 71 + - + 69 AS col1
----
2

query I rowsort
SELECT 21 + + - 5 * 13 AS col2
----
-44

query I rowsort
SELECT DISTINCT 98 + + 92 AS col1
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT COUNT( * ) + - 98 - 89 * 0
----
-97

skipif mysql # not compatible
query I rowsort label-9904
SELECT COUNT ( * ) + - 98 - 89 * 0
----
-97

query I rowsort
SELECT DISTINCT 92 * + + 47
----
4324

query I rowsort
SELECT DISTINCT + 26 + 35 + 73 AS col0
----
134

query I rowsort
SELECT ( 48 ) * + 76
----
3648

query I rowsort
SELECT ( 50 ) + 4 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9909
SELECT 40 * + 98 DIV - COUNT( * )
----
-3920

skipif mysql # not compatible
query I rowsort label-9909
SELECT 40 * + 98 / - COUNT ( * )
----
-3920

query I rowsort
SELECT ( + + ( + 93 ) ) * + 34 + NULLIF ( 54, 11 )
----
3216

query I rowsort
SELECT ALL - 9 - + 66 AS col1
----
-75

query I rowsort
SELECT ALL 84 - + + 1
----
83

query I rowsort
SELECT 65 * 49 AS col1
----
3185

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT 72 DIV - - CASE 28 WHEN 28 THEN 78 WHEN - 84 THEN + ( 16 ) END col1
----
0

skipif mysql # not compatible
query I rowsort label-9914
SELECT 72 / - - CASE 28 WHEN 28 THEN 78 WHEN - 84 THEN + ( 16 ) END col1
----
0

query I rowsort
SELECT DISTINCT - 81 * + COALESCE ( + 69, 72, + 41 ) AS col2
----
-5589

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT DISTINCT + 70 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT + 70 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL - 37 * - 84 * COUNT( * ) AS col1
----
3108

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - 37 * - 84 * COUNT ( * ) AS col1
----
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + - COUNT( * ) * 4 - 27
----
-31

skipif mysql # not compatible
query I rowsort label-9918
SELECT + - COUNT ( * ) * 4 - 27
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT 18 * + COUNT( * ) + 44 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9919
SELECT 18 * + COUNT ( * ) + 44 AS col0
----
62

query I rowsort
SELECT DISTINCT 41 * 97 AS col1
----
3977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9921
SELECT ALL - COUNT( DISTINCT - + 26 ) + 89 DIV CAST( - 64 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL - COUNT ( DISTINCT - + 26 ) + 89 / CAST ( - 64 AS INTEGER ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT 8 + + - 16 * - SUM( ALL - ( + 99 ) * + 15 ) col2
----
-23752

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT 8 + + - 16 * - SUM ( ALL - ( + 99 ) * + 15 ) col2
----
-23752

query I rowsort
SELECT ALL + - 58 + + + 72 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT 46 + - CAST( - 24 AS SIGNED ) + 4 * - 47 * CASE + 11 WHEN - NULLIF ( 72, - 66 ) * 31 THEN NULL WHEN ( - COUNT( 80 ) ) THEN + 42 + - 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT 46 + - CAST ( - 24 AS INTEGER ) + 4 * - 47 * CASE + 11 WHEN - NULLIF ( 72, - 66 ) * 31 THEN NULL WHEN ( - COUNT ( 80 ) ) THEN + 42 + - 99 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + 74 + + NULLIF ( - 84, - ( 78 ) * - SUM( DISTINCT - 69 ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 74 + + NULLIF ( - 84, - ( 78 ) * - SUM ( DISTINCT - 69 ) ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL CASE 88 WHEN + 91 + 13 THEN + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL CASE 88 WHEN + 91 + 13 THEN + COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - MAX( 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9927
SELECT - MAX ( 97 ) AS col2
----
-97

query I rowsort
SELECT + 92 * - 73 AS col2
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - + MAX( DISTINCT + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9929
SELECT - + MAX ( DISTINCT + 32 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT 12 DIV COALESCE ( + + 67, - 70, + 30 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT 12 / COALESCE ( + + 67, - 70, + 30 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 16 + - - 78
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - NULLIF ( + COUNT( * ), - 17 + 89 ) * 57 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - NULLIF ( + COUNT ( * ), - 17 + 89 ) * 57 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9933
SELECT DISTINCT COUNT( * ), 71 * 52 AS col2
----
1
3692

skipif mysql # not compatible
query II rowsort label-9933
SELECT DISTINCT COUNT ( * ), 71 * 52 AS col2
----
1
3692

query I rowsort
SELECT 47 * + 62 * - 68 AS col2
----
-198152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT COUNT( ALL - CAST( 38 AS SIGNED ) ) - 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9935
SELECT COUNT ( ALL - CAST ( 38 AS INTEGER ) ) - 90 AS col2
----
-89

query II rowsort
SELECT 11 AS col2, 13 * + 43 AS col1
----
11
559

query II rowsort
SELECT - 92 AS col2, 75
----
-92
75

query I rowsort
SELECT 37 - 6 + - ( 88 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT 40 DIV - - 57 * - 54 * 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT 40 / - - 57 * - 54 * 23 AS col2
----
0

query I rowsort
SELECT 75 * + - 89
----
-6675

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT ALL - 50 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - 50 / 56
----
0

query II rowsort
SELECT + 3 AS col0, - 33
----
3
-33

query I rowsort
SELECT 75 * 88
----
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT 50 * - + ( 26 ) + + 83 * MAX( DISTINCT - 81 )
----
-8023

skipif mysql # not compatible
query I rowsort label-9944
SELECT 50 * - + ( 26 ) + + 83 * MAX ( DISTINCT - 81 )
----
-8023

query I rowsort
SELECT ALL - 78 * - + 19
----
1482

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT + 95 AS col0, + COUNT( - 30 ) * ( COUNT( * ) * + 60 + + 6 * MIN( - 85 ) ) + ( + 54 ) * 98 AS col2
----
95
4842

skipif mysql # not compatible
query II rowsort label-9946
SELECT + 95 AS col0, + COUNT ( - 30 ) * ( COUNT ( * ) * + 60 + + 6 * MIN ( - 85 ) ) + ( + 54 ) * 98 AS col2
----
95
4842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9947
SELECT 13 * - - CAST( + COUNT( * ) AS SIGNED ) DIV COALESCE ( - COUNT( * ) * + 2 + + 24, 48 )
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT 13 * - - CAST ( + COUNT ( * ) AS INTEGER ) / COALESCE ( - COUNT ( * ) * + 2 + + 24, 48 )
----
0

query I rowsort
SELECT + 47 * - - 68 * ( 28 )
----
89488

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + + CASE - 27 WHEN - COALESCE ( COALESCE ( 28, MIN( - 1 ) + - 16 ), - 59 + 60, + 73 * - 78 + - MIN( ( ( - 74 ) ) ) ) THEN + 71 ELSE - 95 END
----
-95

skipif mysql # not compatible
query I rowsort label-9949
SELECT + + CASE - 27 WHEN - COALESCE ( COALESCE ( 28, MIN ( - 1 ) + - 16 ), - 59 + 60, + 73 * - 78 + - MIN ( ( ( - 74 ) ) ) ) THEN + 71 ELSE - 95 END
----
-95

query II rowsort
SELECT 89 AS col0, + 39 + + 87 AS col2
----
89
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL 44 * - 37 + COUNT( * ) AS col0
----
-1627

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL 44 * - 37 + COUNT ( * ) AS col0
----
-1627

query I rowsort
SELECT 36 * 5 + - 19 + 31
----
192

query I rowsort
SELECT DISTINCT - - 15 + - 54 AS col0
----
-39

query I rowsort
SELECT - + 76 * - + 40
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9955
SELECT + + MIN( ALL + 92 ) + - CAST( NULL AS SIGNED ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT + + MIN ( ALL + 92 ) + - CAST ( NULL AS INTEGER ) * - 35
----
NULL

query I rowsort
SELECT + - ( 98 ) * - 37 + 20
----
3646

query I rowsort
SELECT + - 95 + + 51 * - 76 + 43 * - 66
----
-6809

query I rowsort
SELECT DISTINCT + 32 * + ( - 93 ) * 52 + - 22 * 46 AS col2
----
-155764

onlyif mysql # aggregate syntax: 
query II rowsort label-9959
SELECT DISTINCT 75 AS col0, 92 * - 73 * - 72 + COUNT( * ) * 23
----
75
483575

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT 75 AS col0, 92 * - 73 * - 72 + COUNT ( * ) * 23
----
75
483575

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9960
SELECT + 16 * MIN( CASE NULLIF ( CAST( ( + 30 ) AS DECIMAL ), + 52 ) WHEN + 30 THEN 8 ELSE NULL END ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 16 * MIN ( CASE NULLIF ( CAST ( ( + 30 ) AS REAL ), + 52 ) WHEN + 30 THEN 8 ELSE NULL END ) AS col2
----
128

query I rowsort
SELECT - 86 * 11 AS col1
----
-946

query I rowsort
SELECT ALL 60 + 52 AS col2
----
112

query I rowsort
SELECT - CASE + 5 WHEN + 62 THEN NULL WHEN - 95 + - 90 THEN - 42 + - 47 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL COUNT( DISTINCT - + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL COUNT ( DISTINCT - + 96 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9965
SELECT ALL 28 - - 0 AS col2, + 31 * - CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9965
SELECT ALL 28 - - 0 AS col2, + 31 * - CAST ( NULL AS INTEGER )
----
28
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT + 40 * + + 4 * 7 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 40 * + + 4 * 7 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - COUNT( * ) + + - 46 + NULLIF ( + 61, ( COUNT( * ) ) ) + 3 * + CASE - 24 WHEN 18 * - ( COALESCE ( 48, - 92 ) * 44 ) THEN 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT - COUNT ( * ) + + - 46 + NULLIF ( + 61, ( COUNT ( * ) ) ) + 3 * + CASE - 24 WHEN 18 * - ( COALESCE ( 48, - 92 ) * 44 ) THEN 41 END AS col1
----
NULL

query I rowsort
SELECT - CASE + - AVG ( + NULLIF ( - 0, - 68 ) ) WHEN 46 THEN 10 * + COALESCE ( 94, - 20 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 92 + + + 53 AS col0
----
-39

query I rowsort
SELECT + 4 * + - ( - 64 )
----
256

query I rowsort
SELECT - 73 + 54
----
-19

query I rowsort
SELECT ALL NULLIF ( 20, + - 10 ) AS col1
----
20

query I rowsort
SELECT DISTINCT + 36 * NULLIF ( 78, + 99 * 68 )
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT 14 * - SUM( + ( 34 ) )
----
-476

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT 14 * - SUM ( + ( 34 ) )
----
-476

query I rowsort
SELECT + 38 * + 48 AS col2
----
1824

query I rowsort
SELECT ALL + 46 * + 0 * + 30 AS col0
----
0

query II rowsort
SELECT ( - 70 ) AS col1, 58 AS col1
----
-70
58

query I rowsort
SELECT ( - CASE - 77 WHEN - 9 THEN - 41 * 9 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9979
SELECT - + NULLIF ( 56, - 28 ) DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-9979
SELECT - + NULLIF ( 56, - 28 ) / - - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - 0 * - 5 + + 53 + + NULLIF ( - MIN( - 91 ), - 30 * + 65 + SUM( 17 ) ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-9980
SELECT - 0 * - 5 + + 53 + + NULLIF ( - MIN ( - 91 ), - 30 * + 65 + SUM ( 17 ) ) AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - 71 * CASE - 97 WHEN COUNT( * ) * 13 THEN 6 + - 40 END * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT - 71 * CASE - 97 WHEN COUNT ( * ) * 13 THEN 6 + - 40 END * + 9 AS col0
----
NULL

query I rowsort
SELECT ALL 45 * - + 86 AS col2
----
-3870

query I rowsort
SELECT DISTINCT 42 * ( + + 78 ) + + 82
----
3358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL + NULLIF ( + 41, NULLIF ( - 69, - 54 * CAST( + COALESCE ( + COUNT( * ), - 42 ) AS SIGNED ) ) - - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + NULLIF ( + 41, NULLIF ( - 69, - 54 * CAST ( + COALESCE ( + COUNT ( * ), - 42 ) AS INTEGER ) ) - - COUNT ( * ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT DISTINCT 62 * - 97 + - - COUNT( * ) * - - 31 * + 90
----
-3224

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT 62 * - 97 + - - COUNT ( * ) * - - 31 * + 90
----
-3224

query I rowsort
SELECT ALL - 96 * + 76
----
-7296

query I rowsort
SELECT - + 91 * - 5
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - COALESCE ( - COUNT( * ), - 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9988
SELECT - COALESCE ( - COUNT ( * ), - 81 ) AS col2
----
1

query I rowsort
SELECT ALL - + 37 * - 89 * - 62 * + 27 + - 76
----
-5512558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9990
SELECT - CAST( - 62 AS SIGNED ), 61 + - ( + 49 ) AS col0
----
62
12

skipif mysql # not compatible
query II rowsort label-9990
SELECT - CAST ( - 62 AS INTEGER ), 61 + - ( + 49 ) AS col0
----
62
12

query I rowsort
SELECT + ( + - 87 ) * + NULLIF ( - 21, + 14 ) AS col0
----
1827

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT - 3 * + ( - 8 ) DIV - 80 DIV + 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - 3 * + ( - 8 ) / - 80 / + 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT - 16 * - ( 93 ) - - MAX( DISTINCT 34 ) + COUNT( * )
----
1523

skipif mysql # not compatible
query I rowsort label-9993
SELECT - 16 * - ( 93 ) - - MAX ( DISTINCT 34 ) + COUNT ( * )
----
1523

query I rowsort
SELECT ALL + + NULLIF ( - 73, 21 ) * 11
----
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - 14 * - + 99 * + + COUNT( * ) + + 27 AS col1
----
1413

skipif mysql # not compatible
query I rowsort label-9995
SELECT - 14 * - + 99 * + + COUNT ( * ) + + 27 AS col1
----
1413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT DISTINCT + 37 * + 64 DIV + + COUNT( * ) - - 6
----
2374

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + 37 * + 64 / + + COUNT ( * ) - - 6
----
2374

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT + 16 - - 58 * - + NULLIF ( + + COUNT( * ), + - 2 * 51 )
----
-42

skipif mysql # not compatible
query I rowsort label-9997
SELECT + 16 - - 58 * - + NULLIF ( + + COUNT ( * ), + - 2 * 51 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9998
SELECT DISTINCT ( 95 ) DIV - ( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT ( 95 ) / - ( 99 )
----
0

query I rowsort
SELECT - 86 + - ( + + 69 )
----
-155

