sqllogictest
Artifact Content
Not logged in

Artifact 6497c88656305d07caf0d05584cebfa98b07961c:


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, +