sqllogictest
Artifact Content
Not logged in

Artifact e1e5604e370fc0e748b24ee4abec804f331d5f9f:


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 + ( + 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT - 84 - - MAX( DISTINCT - 13 ) + - - 56
----
-41

skipif mysql # not compatible
query I rowsort label-1
SELECT - 84 - - MAX ( DISTINCT - 13 ) + - - 56
----
-41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT ALL - COALESCE ( - - 65, - 54, - 92 ) DIV - 6 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - COALESCE ( - - 65, - 54, - 92 ) / - 6 AS col0
----
10

query I rowsort
SELECT DISTINCT - ( + 3 ) col1
----
-3

query I rowsort
SELECT DISTINCT - 92 * + 77 * 44 AS col0
----
-311696

query I rowsort
SELECT ALL 42 + 8
----
50

query II rowsort
SELECT 49 AS col2, + 55 * 29
----
49
1595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8
SELECT - CASE + ( 59 ) WHEN - 63 THEN NULL ELSE + + 30 * 54 * 99 * - - 28 - NULLIF ( ( + - 22 ), + 38 ) + - CAST( NULL AS SIGNED ) + + - 12 + + + COALESCE ( - 22, - + 34 ) * 77 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT - CASE + ( 59 ) WHEN - 63 THEN NULL ELSE + + 30 * 54 * 99 * - - 28 - NULLIF ( ( + - 22 ), + 38 ) + - CAST ( NULL AS INTEGER ) + + - 12 + + + COALESCE ( - 22, - + 34 ) * 77 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT - - 29 col2, COUNT( * ) * + - 62 - - - ( + + 75 ) + - 8 * + 34 + + 11
----
29
-398

skipif mysql # not compatible
query II rowsort label-9
SELECT - - 29 col2, COUNT ( * ) * + - 62 - - - ( + + 75 ) + - 8 * + 34 + + 11
----
29
-398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-10
SELECT ALL + 73, - COUNT( * ) * COUNT( * ) * + - 30 * CAST( NULL AS SIGNED ) / CAST( + + 28 AS SIGNED ) col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-10
SELECT ALL + 73, - COUNT ( * ) * COUNT ( * ) * + - 30 * CAST ( NULL AS INTEGER ) / CAST ( + + 28 AS INTEGER ) col1
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT COUNT( * ) * - COUNT( * ) + - ( - + 62 ) * ( + 88 ) col1
----
5455

skipif mysql # not compatible
query I rowsort label-11
SELECT COUNT ( * ) * - COUNT ( * ) + - ( - + 62 ) * ( + 88 ) col1
----
5455

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT + 7 + SUM( 0 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-12
SELECT + 7 + SUM ( 0 ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-13
SELECT ALL + ( - COALESCE ( + - 27, + CAST( NULL AS SIGNED ) ) ) DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + ( - COALESCE ( + - 27, + CAST ( NULL AS INTEGER ) ) ) / + + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - COUNT( * ) * + 65 * + 94 + + 14 * - + 80 col2
----
-7230

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - COUNT ( * ) * + 65 * + 94 + + 14 * - + 80 col2
----
-7230

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

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

query I rowsort
SELECT DISTINCT + 63 - - 36 * + + 31 + - NULLIF ( - 92, 23 * - 39 * 37 ) + + - 34 AS col2
----
1237

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT DISTINCT - 30 - NULLIF ( + - 80, COALESCE ( 25, ( + 56 ), + + 89 ) + - + SUM( ALL - NULLIF ( - - 38, + 12 - + 50 ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT - 30 - NULLIF ( + - 80, COALESCE ( 25, ( + 56 ), + + 89 ) + - + SUM ( ALL - NULLIF ( - - 38, + 12 - + 50 ) ) )
----
50

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

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

query II rowsort
SELECT 66, 38 AS col1
----
66
38

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT + NULLIF ( + 3, + COUNT( * ) ) * 28 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-20
SELECT + NULLIF ( + 3, + COUNT ( * ) ) * 28 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT + 93 * ( + COUNT( * ) ) * - 44 + - 83 col1
----
-4175

skipif mysql # not compatible
query I rowsort label-21
SELECT + 93 * ( + COUNT ( * ) ) * - 44 + - 83 col1
----
-4175

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

query I rowsort
SELECT + 32 + - 55
----
-23

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

query I rowsort
SELECT 26 + 91 AS col1
----
117

query I rowsort
SELECT DISTINCT + 68 * - 37 AS col0
----
-2516

query I rowsort
SELECT 13 * - 22 * 21 AS col0
----
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT + 58 DIV 47 + 32
----
33

skipif mysql # not compatible
query I rowsort label-28
SELECT + 58 / 47 + 32
----
33

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

skipif mysql # not compatible
query I rowsort label-29
SELECT 58 / + 37 * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT + 69 + - COUNT( * ) + + 24 * 18 + + - 72 + 37 col1
----
465

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT + 69 + - COUNT ( * ) + + 24 * 18 + + - 72 + 37 col1
----
465

query I rowsort
SELECT ALL + 51 + + - 82
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-32
SELECT DISTINCT - 24 * + 3 AS col2, COUNT( * ) - + NULLIF ( + 68, - + 87 ) AS col0
----
-72
-67

skipif mysql # not compatible
query II rowsort label-32
SELECT DISTINCT - 24 * + 3 AS col2, COUNT ( * ) - + NULLIF ( + 68, - + 87 ) AS col0
----
-72
-67

query I rowsort
SELECT ALL + 52 + - 26 + 6
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT DISTINCT - CAST( + 43 AS SIGNED ) + - - 7 + 98
----
62

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - CAST ( + 43 AS INTEGER ) + - - 7 + 98
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT ALL 1 + - CAST( + NULLIF ( COUNT( * ), 98 ) AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL 1 + - CAST ( + NULLIF ( COUNT ( * ), 98 ) AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT 16 * - 24 + - 61 - + COUNT( + 63 ) * ( - 65 ) * + CASE 7 WHEN + 82 * 50 THEN 72 - - + 15 - - + 45 * - 63 WHEN - - 18 THEN - COUNT( * ) * + ( + + 93 ) + + 73 * - 26 END * + 46 * 33 - + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT 16 * - 24 + - 61 - + COUNT ( + 63 ) * ( - 65 ) * + CASE 7 WHEN + 82 * 50 THEN 72 - - + 15 - - + 45 * - 63 WHEN - - 18 THEN - COUNT ( * ) * + ( + + 93 ) + + 73 * - 26 END * + 46 * 33 - + 38 AS col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT - 5 DIV + - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-39
SELECT - 5 / + - 68 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT SUM( + + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT SUM ( + + 38 ) AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT + 7 DIV 35 * 43
----
0

skipif mysql # not compatible
query I rowsort label-42
SELECT + 7 / 35 * 43
----
0

query I rowsort
SELECT 93 * - + 56 * 53 + - 23 * 85
----
-277979

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT + COUNT( * ) * + NULLIF ( - + 54, - - 12 ) + 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT + COUNT ( * ) * + NULLIF ( - + 54, - - 12 ) + 27 AS col0
----
-27

query I rowsort
SELECT - 57 * 64 + 70 - 31
----
-3609

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL - 82 + COUNT( * ) - + 82 + - - 67 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - 82 + COUNT ( * ) - + 82 + - - 67 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL COUNT( * ) * CASE + 34 WHEN - 50 THEN - 71 * - NULLIF ( + COUNT( * ), - COALESCE ( 49, - - CASE CASE - - 57 WHEN 76 + + + MAX( 12 ) THEN AVG ( DISTINCT + 11 ) * + 74 END WHEN - 23 + NULLIF ( - + ( + 35 ), + 44 ) + 87 * - - 22 * 31 * + COUNT( * ) * + MIN( DISTINCT - 22 ) THEN 15 WHEN - COUNT( - - 59 ) - + 46 THEN NULLIF ( + 86, - 99 * - NULLIF ( COUNT( * ), 84 ) ) ELSE - + 80 + + + 93 END - + 44 + + 97 ) ) WHEN - 79 THEN NULL ELSE + 37 + - 37 END * 38
----
0

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL COUNT ( * ) * CASE + 34 WHEN - 50 THEN - 71 * - NULLIF ( + COUNT ( * ), - COALESCE ( 49, - - CASE CASE - - 57 WHEN 76 + + + MAX ( 12 ) THEN AVG ( DISTINCT + 11 ) * + 74 END WHEN - 23 + NULLIF ( - + ( + 35 ), + 44 ) + 87 * - - 22 * 31 * + COUNT ( * ) * + MIN ( DISTINCT - 22 ) THEN 15 WHEN - COUNT ( - - 59 ) - + 46 THEN NULLIF ( + 86, - 99 * - NULLIF ( COUNT ( * ), 84 ) ) ELSE - + 80 + + + 93 END - + 44 + + 97 ) ) WHEN - 79 THEN NULL ELSE + 37 + - 37 END * 38
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL CASE ( + 4 ) WHEN 78 * + CASE + 36 WHEN - - COALESCE ( - COUNT( DISTINCT + 93 ), + + ( + MIN( - ( 9 ) ) ) ) * + COUNT( * ) + + + 2 + + ( COUNT( * ) ) THEN NULL ELSE + AVG ( DISTINCT 22 ) END THEN + COALESCE ( 33, + - CAST( 51 AS SIGNED ) * CAST( NULL AS SIGNED ) + - - CASE - 96 WHEN NULLIF ( + 29, - 51 ) * 23 * - 77 THEN - CASE 54 WHEN + 21 THEN 50 * - 56 END * + 4 + + 90 ELSE NULL END / - COUNT( * ), 35 ) * 69 * - 61 END + - + 12 + + ( - - 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL CASE ( + 4 ) WHEN 78 * + CASE + 36 WHEN - - COALESCE ( - COUNT ( DISTINCT + 93 ), + + ( + MIN ( - ( 9 ) ) ) ) * + COUNT ( * ) + + + 2 + + ( COUNT ( * ) ) THEN NULL ELSE + AVG ( DISTINCT 22 ) END THEN + COALESCE ( 33, + - CAST ( 51 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - - CASE - 96 WHEN NULLIF ( + 29, - 51 ) * 23 * - 77 THEN - CASE 54 WHEN + 21 THEN 50 * - 56 END * + 4 + + 90 ELSE NULL END / - COUNT ( * ), 35 ) * 69 * - 61 END + - + 12 + + ( - - 97 ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - - 15, - + 63 + + 59 )
----
15

query I rowsort
SELECT CASE 78 WHEN 98 THEN - 49 + 27 WHEN 57 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 13 AS col0, 11
----
13
11

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL - SUM( + - 97 ) * 35 + COUNT( * ) * - CASE 85 WHEN + ( 90 ) - + 60 THEN NULLIF ( - 26, + - NULLIF ( - 87, - + 82 ) + - 21 ) WHEN + + 85 * - 33 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - SUM ( + - 97 ) * 35 + COUNT ( * ) * - CASE 85 WHEN + ( 90 ) - + 60 THEN NULLIF ( - 26, + - NULLIF ( - 87, - + 82 ) + - 21 ) WHEN + + 85 * - 33 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT NULLIF ( + 27, + 95 / 6 * + COUNT( * ) / - 31 * + 18 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-54
SELECT NULLIF ( + 27, + 95 / 6 * + COUNT ( * ) / - 31 * + 18 ) AS col1
----
27

query I rowsort
SELECT DISTINCT + 31 * ( + 27 ) + 14 + NULLIF ( 76, + - 29 )
----
927

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL + 47 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + 47 / + + 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-57
SELECT SUM( + 16 ) DIV + 21 * 64 - + + MAX( - 43 ) + COUNT( * ) + + ( + + 15 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-57
SELECT SUM ( + 16 ) / + 21 * 64 - + + MAX ( - 43 ) + COUNT ( * ) + + ( + + 15 ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-58
SELECT ALL 3 * + ( 21 ) DIV 75 + 39 - - MIN( DISTINCT 79 ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 3 * + ( 21 ) / 75 + 39 - - MIN ( DISTINCT 79 ) AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT - 77 * NULLIF ( - 22, - - CASE + - 49 WHEN - + NULLIF ( 49, - - 13 * + COALESCE ( + + ( + 52 ), + 5 + - 95 ) + 2 * 71 * - CASE 71 WHEN + 32 + - - 70 THEN + 83 WHEN 33 - - + COUNT( ( + 29 ) ) THEN NULL ELSE NULL END * COUNT( * ) ) * + + 41 + - - ( 1 ) THEN + 94 END ) AS col2
----
1694

skipif mysql # not compatible
query I rowsort label-59
SELECT - 77 * NULLIF ( - 22, - - CASE + - 49 WHEN - + NULLIF ( 49, - - 13 * + COALESCE ( + + ( + 52 ), + 5 + - 95 ) + 2 * 71 * - CASE 71 WHEN + 32 + - - 70 THEN + 83 WHEN 33 - - + COUNT ( ( + 29 ) ) THEN NULL ELSE NULL END * COUNT ( * ) ) * + + 41 + - - ( 1 ) THEN + 94 END ) AS col2
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT - COUNT( * ) + + 45 + + 67 * + 21 AS col1
----
1451

skipif mysql # not compatible
query I rowsort label-60
SELECT - COUNT ( * ) + + 45 + + 67 * + 21 AS col1
----
1451

query II rowsort
SELECT + 94, 66 AS col1
----
94
66

query I rowsort
SELECT DISTINCT - 54 * + ( - 35 ) + + 71
----
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL + 46 * - ( - 70 ) * COUNT( * ) - + - COUNT( * )
----
3221

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + 46 * - ( - 70 ) * COUNT ( * ) - + - COUNT ( * )
----
3221

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

query I rowsort
SELECT - - NULLIF ( + + 8, + 43 ) + - 5 + 77
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT - - 36 - MIN( - 19 ) - 70 * - 49 * CASE - 58 WHEN + 55 * - 90 * + + 17 THEN 32 WHEN - 33 + + COUNT( * ) / + - 44 + - 79 - + 64 THEN - + 74 + - 29 WHEN + AVG ( - 2 ) + COUNT( * ) + + + 18 THEN NULL END - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT - - 36 - MIN ( - 19 ) - 70 * - 49 * CASE - 58 WHEN + 55 * - 90 * + + 17 THEN 32 WHEN - 33 + + COUNT ( * ) / + - 44 + - 79 - + 64 THEN - + 74 + - 29 WHEN + AVG ( - 2 ) + COUNT ( * ) + + + 18 THEN NULL END - - 11 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - COUNT ( ALL - - 6 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT + + MAX( - ( + 29 ) ) - - 84
----
55

skipif mysql # not compatible
query I rowsort label-68
SELECT + + MAX ( - ( + 29 ) ) - - 84
----
55

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

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

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

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

query I rowsort
SELECT - 5 + + 61 + + - 21 + + 66 AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT ALL 45 * - + 37 + + + COALESCE ( COUNT( * ), + ( - 42 ) DIV + 99 + + + NULLIF ( 78, - 61 ) + - 7 )
----
-1664

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL 45 * - + 37 + + + COALESCE ( COUNT ( * ), + ( - 42 ) / + 99 + + + NULLIF ( 78, - 61 ) + - 7 )
----
-1664

query I rowsort
SELECT - + 84 * 8 * + - NULLIF ( - 73, + 90 )
----
-49056

query I rowsort
SELECT - NULLIF ( + 73, 3 ) AS col0
----
-73

query I rowsort
SELECT ALL - 98 + 61
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT CASE - 47 WHEN - COUNT( * ) * + - 98 THEN NULLIF ( + COUNT( * ), COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT CASE - 47 WHEN - COUNT ( * ) * + - 98 THEN NULLIF ( + COUNT ( * ), COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - 94 + - - 81 - - + SUM( - + 9 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-77
SELECT - 94 + - - 81 - - + SUM ( - + 9 ) AS col1
----
-22

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

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

query I rowsort
SELECT ALL 79 + + 59
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT - 85 + - CAST( - 22 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-80
SELECT - 85 + - CAST ( - 22 AS INTEGER )
----
-63

query I rowsort
SELECT + 91 * + 60 * 24 * - ( - - 13 )
----
-1703520

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT - 69 + ( + 36 ) + - 27 + COUNT( * ) * + - 39
----
-99

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - 69 + ( + 36 ) + - 27 + COUNT ( * ) * + - 39
----
-99

query II rowsort
SELECT ALL 58, + 13 AS col0
----
58
13

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

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

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

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

query I rowsort
SELECT ALL 26 + - - 7 * + - 51 * 60 AS col2
----
-21394

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT CAST( + COUNT( DISTINCT 50 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-88
SELECT CAST ( + COUNT ( DISTINCT 50 ) AS INTEGER ) AS col1
----
1

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

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

query I rowsort
SELECT + ( + - 90 ) + 76
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-91
SELECT ALL NULLIF ( + 65, + - MIN( ALL + 40 ) ) DIV COUNT( * ) - - 63 DIV 63 + - CAST( + 18 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL NULLIF ( + 65, + - MIN ( ALL + 40 ) ) / COUNT ( * ) - - 63 / 63 + - CAST ( + 18 AS INTEGER )
----
48

query I rowsort
SELECT + COALESCE ( - 70, - + 81, - 77 ) AS col1
----
-70

query II rowsort
SELECT ALL + 31 AS col1, + 61
----
31
61

query I rowsort
SELECT ALL + COALESCE ( - 28, - + 95 ) AS col0
----
-28

query II rowsort
SELECT ALL + 21, 88 * + + 98 AS col2
----
21
8624

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT - + ( - - 66 ) DIV 96 + - 28 + - ( - + 81 ) * - + 98 AS col0
----
-7966

skipif mysql # not compatible
query I rowsort label-97
SELECT - + ( - - 66 ) / 96 + - 28 + - ( - + 81 ) * - + 98 AS col0
----
-7966

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-99
SELECT - 76 * - 22 * + COUNT( * ) + 95 + - ( + 78 ) * 65 DIV + SUM( DISTINCT - ( 42 ) ) AS col1
----
1887

skipif mysql # not compatible
query I rowsort label-99
SELECT - 76 * - 22 * + COUNT ( * ) + 95 + - ( + 78 ) * 65 / + SUM ( DISTINCT - ( 42 ) ) AS col1
----
1887

query II rowsort
SELECT DISTINCT + 81 AS col1, 60 AS col1
----
81
60

query I rowsort
SELECT - ( - - 31 ) * + 46 col1
----
-1426

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

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

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

query II rowsort
SELECT DISTINCT + 37 AS col0, 79 * - 3 + 85 AS col0
----
37
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-105
SELECT ALL - - 64 * - 36 * + - COUNT( 61 ) + 71 * + 63 AS col1, - 64 * - 0
----
6777
0

skipif mysql # not compatible
query II rowsort label-105
SELECT ALL - - 64 * - 36 * + - COUNT ( 61 ) + 71 * + 63 AS col1, - 64 * - 0
----
6777
0

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - COUNT( * ) + - 11 * + 53
----
-584

skipif mysql # not compatible
query I rowsort label-106
SELECT - COUNT ( * ) + - 11 * + 53
----
-584

query I rowsort
SELECT DISTINCT + 64 + - 61 AS col1
----
3

query I rowsort
SELECT DISTINCT - 37 + + 27 + - 86 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT DISTINCT - 65 + - 64 * + ( - - 25 ) + - 76 - + - 33 * + + 16 * - SUM( ALL + 83 ) col1
----
-45565

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - 65 + - 64 * + ( - - 25 ) + - 76 - + - 33 * + + 16 * - SUM ( ALL + 83 ) col1
----
-45565

query I rowsort
SELECT ALL 26 + 76 - - + 30 + - 45
----
87

query I rowsort
SELECT DISTINCT - 47 * + NULLIF ( + - 82, + 34 )
----
3854

query III rowsort
SELECT ALL - 20 - - - 17, 66 * - - 60 * + 31 AS col1, - 27 AS col2
----
-37
122760
-27

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

skipif mysql # not compatible
query I rowsort label-113
SELECT 57 - - 8 / - COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT 93 * + CAST( MIN( ALL - 26 ) AS SIGNED ) * + SUM( - 50 ) AS col0
----
120900

skipif mysql # not compatible
query I rowsort label-114
SELECT 93 * + CAST ( MIN ( ALL - 26 ) AS INTEGER ) * + SUM ( - 50 ) AS col0
----
120900

query I rowsort
SELECT - 75 col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT SUM( + 81 ) * + 83 + 70 AS col1
----
6793

skipif mysql # not compatible
query I rowsort label-116
SELECT SUM ( + 81 ) * + 83 + 70 AS col1
----
6793

query I rowsort
SELECT 5 * 17
----
85

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT ALL - 21 - 85 DIV + MAX( + 10 ) - - - 57
----
-86

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - 21 - 85 / + MAX ( + 10 ) - - - 57
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-120
SELECT 83 * - MIN( - 89 ) AS col0, - COALESCE ( + + 82, 55 )
----
7387
-82

skipif mysql # not compatible
query II rowsort label-120
SELECT 83 * - MIN ( - 89 ) AS col0, - COALESCE ( + + 82, 55 )
----
7387
-82

query II rowsort
SELECT DISTINCT 77 * - - 61, - 22 AS col2
----
4697
-22

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-123
SELECT + COALESCE ( + + 40, - 1 * - 55 + - 31 * - + CAST( NULLIF ( + 87, - 89 ) AS SIGNED ) + + 86 + + 1, - 7 + + 93 * - 98, - - CASE - COUNT( * ) WHEN - 86 THEN 86 * COUNT( * ) + COUNT( * ) WHEN - 18 - + 58 THEN + 25 + - 46 - - - 8 * - ( - - 28 ) END ) * - COALESCE ( + + 48, - - 40 * - 95 * + 41 * - 20 - + + 14 - - 73 ), 6 DIV - 47 AS col1
----
-1920
0

skipif mysql # not compatible
query II rowsort label-123
SELECT + COALESCE ( + + 40, - 1 * - 55 + - 31 * - + CAST ( NULLIF ( + 87, - 89 ) AS INTEGER ) + + 86 + + 1, - 7 + + 93 * - 98, - - CASE - COUNT ( * ) WHEN - 86 THEN 86 * COUNT ( * ) + COUNT ( * ) WHEN - 18 - + 58 THEN + 25 + - 46 - - - 8 * - ( - - 28 ) END ) * - COALESCE ( + + 48, - - 40 * - 95 * + 41 * - 20 - + + 14 - - 73 ), 6 / - 47 AS col1
----
-1920
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT ( + COALESCE ( 28, CAST( NULL AS SIGNED ) ) ) * - 8 * 3
----
-672

skipif mysql # not compatible
query I rowsort label-124
SELECT ( + COALESCE ( 28, CAST ( NULL AS INTEGER ) ) ) * - 8 * 3
----
-672

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT DISTINCT 39 + + + 14 AS col0, - COUNT( * )
----
53
-1

skipif mysql # not compatible
query II rowsort label-127
SELECT DISTINCT 39 + + + 14 AS col0, - COUNT ( * )
----
53
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-128
SELECT ALL 66 + + 34 - + NULLIF ( + COUNT( DISTINCT + 87 ), + - 4 / - CAST( 71 AS SIGNED ) + 21 )
----
99

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL 66 + + 34 - + NULLIF ( + COUNT ( DISTINCT + 87 ), + - 4 / - CAST ( 71 AS INTEGER ) + 21 )
----
99

query I rowsort
SELECT DISTINCT - + 2 * + 86 AS col1
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT 23 * - + CAST( NULL AS SIGNED ) + - + 92 / + - 84 * 81 * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT 23 * - + CAST ( NULL AS INTEGER ) + - + 92 / + - 84 * 81 * - 36
----
NULL

query I rowsort
SELECT - 23 - - - 82
----
-105

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

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT + 32 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-133
SELECT + 32 / 69 AS col1
----
0

query II rowsort
SELECT ALL + 95 + + - 33, + 92 AS col1
----
62
92

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL NULLIF ( + 78, + AVG ( DISTINCT - 83 ) * + 95 + + ( 55 ) ) + COUNT( * ) - + 35
----
44

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL NULLIF ( + 78, + AVG ( DISTINCT - 83 ) * + 95 + + ( 55 ) ) + COUNT ( * ) - + 35
----
44

query I rowsort
SELECT - + COALESCE ( + - 91, + + 30 + + - 39 )
----
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT - ( - 15 ) DIV + ( - + ( 53 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-138
SELECT - ( - 15 ) / + ( - + ( 53 ) ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-140
SELECT DISTINCT 62 * + 73 * + CAST( NULL AS SIGNED ) AS col0, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-140
SELECT DISTINCT 62 * + 73 * + CAST ( NULL AS INTEGER ) AS col0, + 78
----
NULL
78

query I rowsort
SELECT 67 - - - 24
----
43

query I rowsort
SELECT 41 + - 55 AS col1
----
-14

query I rowsort
SELECT ALL - 52 - + - 82 * + 47
----
3802

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT 57 + - 72 * + 19 * - 67 - - - 6 * - COUNT( * ) col0
----
91719

skipif mysql # not compatible
query I rowsort label-144
SELECT 57 + - 72 * + 19 * - 67 - - - 6 * - COUNT ( * ) col0
----
91719

query I rowsort
SELECT 60 * + + 11
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-146
SELECT 42, CASE - + 45 WHEN - - 98 THEN NULL WHEN - 67 THEN NULL WHEN - + COALESCE ( - - 24, COUNT( * ) * - 25 - + CAST( NULL AS SIGNED ) + - - ( - 59 ) / + COALESCE ( - - 50, - + COUNT( DISTINCT 89 ) - AVG ( + + 62 ) ) ) / 43 * ( + + 37 ) * + 30 THEN - 54 * 89 END * - + 81 AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-146
SELECT 42, CASE - + 45 WHEN - - 98 THEN NULL WHEN - 67 THEN NULL WHEN - + COALESCE ( - - 24, COUNT ( * ) * - 25 - + CAST ( NULL AS INTEGER ) + - - ( - 59 ) / + COALESCE ( - - 50, - + COUNT ( DISTINCT 89 ) - AVG ( + + 62 ) ) ) / 43 * ( + + 37 ) * + 30 THEN - 54 * 89 END * - + 81 AS col1
----
42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT 67 + 83 * ( - - 64 ) DIV - 87 + - - ( 43 ) + - 86 * 45
----
-3821

skipif mysql # not compatible
query I rowsort label-147
SELECT 67 + 83 * ( - - 64 ) / - 87 + - - ( 43 ) + - 86 * 45
----
-3821

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT ALL MIN( + ( - 71 ) ), + ( 37 ) AS col1
----
-71
37

skipif mysql # not compatible
query II rowsort label-148
SELECT ALL MIN ( + ( - 71 ) ), + ( 37 ) AS col1
----
-71
37

query I rowsort
SELECT 76 + - 1
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL - 89 * + COUNT( * ) * - 80
----
7120

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - 89 * + COUNT ( * ) * - 80
----
7120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-152
SELECT 92 / + CASE + 21 WHEN NULLIF ( - + COUNT( * ), + 24 / - 19 + + CAST( NULL AS SIGNED ) + - 75 / COUNT( * ) ) THEN 78 - 77 - + + 91 + + 39 / 44 WHEN + 90 THEN + + MIN( DISTINCT + 65 ) END AS col0, CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-152
SELECT 92 / + CASE + 21 WHEN NULLIF ( - + COUNT ( * ), + 24 / - 19 + + CAST ( NULL AS INTEGER ) + - 75 / COUNT ( * ) ) THEN 78 - 77 - + + 91 + + 39 / 44 WHEN + 90 THEN + + MIN ( DISTINCT + 65 ) END AS col0, CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL - MAX( DISTINCT + COALESCE ( - 5, + 93 ) ) * + 2
----
10

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - MAX ( DISTINCT + COALESCE ( - 5, + 93 ) ) * + 2
----
10

query I rowsort
SELECT 76 * + 92 AS col2
----
6992

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT + 17 DIV 39 * 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-155
SELECT + 17 / 39 * 76 AS col0
----
0

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

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

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

query I rowsort
SELECT - 21 * + 6 + - + 35 AS col2
----
-161

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

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT ALL 84 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL 84 / + 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-161
SELECT ALL - + 73 * MAX( + 9 ) + - 28 AS col1, 5
----
-685
5

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL - + 73 * MAX ( + 9 ) + - 28 AS col1, 5
----
-685
5

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-164
SELECT 16 DIV - 62 * 84, 67 DIV + + COALESCE ( - - 26, + + 99 ) AS col2
----
0
2

skipif mysql # not compatible
query II rowsort label-164
SELECT 16 / - 62 * 84, 67 / + + COALESCE ( - - 26, + + 99 ) AS col2
----
0
2

query I rowsort
SELECT ALL - 97 * 11 + + 14 AS col1
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + - 54 * + - 94 + + + 12 * - - 17 + + 76 + - 56 * + 60 + - COUNT( + 44 ) + + 77 AS col1
----
2072

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + - 54 * + - 94 + + + 12 * - - 17 + + 76 + - 56 * + 60 + - COUNT ( + 44 ) + + 77 AS col1
----
2072

query II rowsort
SELECT DISTINCT - 64, + 89 AS col0
----
-64
89

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

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

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

query I rowsort
SELECT + - 72 + - 69 - + + 80 AS col2
----
-221

query I rowsort
SELECT ALL - 66 + 29 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL COUNT( * ) * - NULLIF ( ( 76 ), + - 94 ) * + - MAX( - 23 ) * + 55 - 84 col0
----
-96224

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL COUNT ( * ) * - NULLIF ( ( 76 ), + - 94 ) * + - MAX ( - 23 ) * + 55 - 84 col0
----
-96224

query I rowsort
SELECT + 70 + - 69
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT ALL SUM( - ( - 69 ) ) + + - 6 + 14 + - 39 DIV - 20 + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL SUM ( - ( - 69 ) ) + + - 6 + 14 + - 39 / - 20 + - COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT - 58 - + 28 col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + COUNT( DISTINCT - 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-178
SELECT + COUNT ( DISTINCT - 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - MIN( ( 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-179
SELECT - MIN ( ( 65 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + COUNT( * ) + + COUNT( * ) * + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-180
SELECT + COUNT ( * ) + + COUNT ( * ) * + 96 AS col0
----
97

query I rowsort
SELECT ALL 14 - - 80
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-182
SELECT - 85 + + 8 DIV - 44
----
-85

skipif mysql # not compatible
query I rowsort label-182
SELECT - 85 + + 8 / - 44
----
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT + SUM( ALL + 60 ) * + 59 + 70 * 24 AS col0
----
5220

skipif mysql # not compatible
query I rowsort label-184
SELECT + SUM ( ALL + 60 ) * + 59 + 70 * 24 AS col0
----
5220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT - ( + CAST( + COALESCE ( 5, + 92 ) AS SIGNED ) ) * + ( - COUNT( * ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-185
SELECT - ( + CAST ( + COALESCE ( 5, + 92 ) AS INTEGER ) ) * + ( - COUNT ( * ) ) AS col2
----
5

query I rowsort
SELECT ALL 67 * - 25 AS col2
----
-1675

query II rowsort
SELECT - 78 + 36 AS col0, - 71 * - 70 AS col2
----
-42
4970

query I rowsort
SELECT ALL - 30 * 38 * + 94
----
-107160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT + ( ( + CASE COUNT( * ) WHEN - 64 + - 67 THEN NULL WHEN + COUNT( * ) * + 51 + + + 8 * + CASE 73 WHEN - 26 THEN NULL WHEN 60 - - + 13 + + - AVG ( + 7 ) * - 32 THEN - + 36 END + MIN( 10 ) THEN - COALESCE ( - - 90, + 38 + - 92 ) * - CASE - - 53 WHEN + - 25 THEN NULL ELSE + - COUNT( * ) - 25 * - SUM( - 89 ) - - AVG ( ALL + - 89 ) END + + 92 END ) ) * - + AVG ( DISTINCT 40 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT + ( ( + CASE COUNT ( * ) WHEN - 64 + - 67 THEN NULL WHEN + COUNT ( * ) * + 51 + + + 8 * + CASE 73 WHEN - 26 THEN NULL WHEN 60 - - + 13 + + - AVG ( + 7 ) * - 32 THEN - + 36 END + MIN ( 10 ) THEN - COALESCE ( - - 90, + 38 + - 92 ) * - CASE - - 53 WHEN + - 25 THEN NULL ELSE + - COUNT ( * ) - 25 * - SUM ( - 89 ) - - AVG ( ALL + - 89 ) END + + 92 END ) ) * - + AVG ( DISTINCT 40 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-191
SELECT ALL CASE CAST( + - 99 AS SIGNED ) WHEN - + 8 + - + ( - - 10 ) + 22 THEN NULL ELSE + 94 * - 19 END, + 35 * - - 74 * - COALESCE ( - 64, - CASE 81 WHEN - 95 + + 80 - + COUNT( * ) THEN + + 28 DIV - COUNT( * ) END ) * - 62 + - COALESCE ( - 82, + 3 + 58 ) AS col2
----
-1786
-10277038

skipif mysql # not compatible
query II rowsort label-191
SELECT ALL CASE CAST ( + - 99 AS INTEGER ) WHEN - + 8 + - + ( - - 10 ) + 22 THEN NULL ELSE + 94 * - 19 END, + 35 * - - 74 * - COALESCE ( - 64, - CASE 81 WHEN - 95 + + 80 - + COUNT ( * ) THEN + + 28 / - COUNT ( * ) END ) * - 62 + - COALESCE ( - 82, + 3 + 58 ) AS col2
----
-1786
-10277038

query I rowsort
SELECT - 1 * - + 62
----
62

query I rowsort
SELECT ALL 7 * 24 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT + SUM( ALL + 77 ) * + - COALESCE ( - NULLIF ( - 23, + - COUNT( * ) ), - 0, + 88, 68 * - - 12 ) * - + COALESCE ( 4, + 34 )
----
7084

skipif mysql # not compatible
query I rowsort label-194
SELECT + SUM ( ALL + 77 ) * + - COALESCE ( - NULLIF ( - 23, + - COUNT ( * ) ), - 0, + 88, 68 * - - 12 ) * - + COALESCE ( 4, + 34 )
----
7084

query I rowsort
SELECT - 71 * - 50 * + + 26
----
92300

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT + MIN( + 28 ) - + 3 * COALESCE ( 79, 29 - - + 35 ) * + COUNT( * ) AS col0
----
-209

skipif mysql # not compatible
query I rowsort label-196
SELECT + MIN ( + 28 ) - + 3 * COALESCE ( 79, 29 - - + 35 ) * + COUNT ( * ) AS col0
----
-209

query I rowsort
SELECT ALL + - ( ( + - 52 ) ) + - 77 - - - 64
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-198
SELECT - CAST( NULL AS DECIMAL ) - - 8 + - COALESCE ( + + COUNT( DISTINCT + 9 ), - + ( - ( + - SUM( + - 61 ) ) ) + 55 / 12 ) + 31 + + 52 * SUM( - 82 ) - + ( + + ( + + 25 ) ) + + COUNT( * ) * - 72 * - 94 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT - CAST ( NULL AS REAL ) - - 8 + - COALESCE ( + + COUNT ( DISTINCT + 9 ), - + ( - ( + - SUM ( + - 61 ) ) ) + 55 / 12 ) + 31 + + 52 * SUM ( - 82 ) - + ( + + ( + + 25 ) ) + + COUNT ( * ) * - 72 * - 94 + - COUNT ( * ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL - - COUNT( ALL + + 8 ) * + 80 * 12 + 71 AS col1
----
1031

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - - COUNT ( ALL + + 8 ) * + 80 * 12 + 71 AS col1
----
1031

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT 81 * - + COUNT( * ) + 36 + 29 * 74 AS col2
----
2101

skipif mysql # not compatible
query I rowsort label-202
SELECT 81 * - + COUNT ( * ) + 36 + 29 * 74 AS col2
----
2101

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

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

skipif mysql # not compatible
query I rowsort label-204
SELECT + + 1 / + ( COUNT ( * ) ) + + - 92 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL 6 * - + NULLIF ( + ( - + 4 ), + ( 73 ) ) - - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL 6 * - + NULLIF ( + ( - + 4 ), + ( 73 ) ) - - COUNT ( * ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - 24 + - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - 24 + - 22 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL - 77 * 88 * 15 + - MAX( 10 ) - - 73 * - COALESCE ( - 3, - - CASE - 83 WHEN 15 THEN 94 WHEN NULLIF ( + 41, - 17 ) * + AVG ( - 83 ) * - 38 THEN NULL ELSE NULL END, + 83 ) AS col1
----
-101431

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - 77 * 88 * 15 + - MAX ( 10 ) - - 73 * - COALESCE ( - 3, - - CASE - 83 WHEN 15 THEN 94 WHEN NULLIF ( + 41, - 17 ) * + AVG ( - 83 ) * - 38 THEN NULL ELSE NULL END, + 83 ) AS col1
----
-101431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-209
SELECT ALL - 29 / - + CAST( NULL AS SIGNED ) * + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 29 / - + CAST ( NULL AS INTEGER ) * + - 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT ALL + CASE - 57 WHEN 30 * + - COUNT( * ) + MIN( ALL + 60 ) + - + MAX( DISTINCT + - 72 ) * + + 44 * - 85 THEN CASE 40 WHEN + - 82 THEN + NULLIF ( + 1, + 92 ) END + + 21 ELSE NULL END AS col2, 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-210
SELECT ALL + CASE - 57 WHEN 30 * + - COUNT ( * ) + MIN ( ALL + 60 ) + - + MAX ( DISTINCT + - 72 ) * + + 44 * - 85 THEN CASE 40 WHEN + - 82 THEN + NULLIF ( + 1, + 92 ) END + + 21 ELSE NULL END AS col2, 60 AS col1
----
NULL
60

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

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

query II rowsort
SELECT DISTINCT 21 * ( + - 15 ) - 27 + - + 42 AS col2, 33
----
-384
33

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT COALESCE ( + COUNT( * ), + - 86, COUNT( * ) * + 14 - + + 32 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-213
SELECT COALESCE ( + COUNT ( * ), + - 86, COUNT ( * ) * + 14 - + + 32 ) col2
----
1

query I rowsort
SELECT DISTINCT 8 * + 2 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT + COUNT( * ) + + 61 - - + 8
----
70

skipif mysql # not compatible
query I rowsort label-215
SELECT + COUNT ( * ) + + 61 - - + 8
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-216
SELECT ALL + 34 * NULLIF ( 23, - + 49 * + CAST( NULL AS SIGNED ) ) AS col0, + ( - + 76 ) AS col0
----
782
-76

skipif mysql # not compatible
query II rowsort label-216
SELECT ALL + 34 * NULLIF ( 23, - + 49 * + CAST ( NULL AS INTEGER ) ) AS col0, + ( - + 76 ) AS col0
----
782
-76

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

skipif mysql # not compatible
query I rowsort label-217
SELECT SUM ( ALL - 15 )
----
-15

query I rowsort
SELECT DISTINCT + 16 * - 2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL SUM( DISTINCT 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL SUM ( DISTINCT 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + 19 - - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-220
SELECT + 19 - - COUNT ( * ) AS col2
----
20

query I rowsort
SELECT + 89 + 98
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT + ( - + 81 ) DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-222
SELECT + ( - + 81 ) / 59
----
-1

query I rowsort
SELECT + 71 * - 92
----
-6532

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT CASE - COALESCE ( - 96, + MIN( DISTINCT 5 ) * - 16 * - 75 * - 36 * + 11 ) WHEN ( - 40 ) THEN - - 71 WHEN - AVG ( ALL + 64 ) THEN + - 29 ELSE - 70 END * 43 col0
----
-3010

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT CASE - COALESCE ( - 96, + MIN ( DISTINCT 5 ) * - 16 * - 75 * - 36 * + 11 ) WHEN ( - 40 ) THEN - - 71 WHEN - AVG ( ALL + 64 ) THEN + - 29 ELSE - 70 END * 43 col0
----
-3010

query I rowsort
SELECT + 59 + 58
----
117

query I rowsort
SELECT ALL 65 + - + 87 AS col0
----
-22

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

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL COUNT ( * ) / - 58 * + 10 * + 35 AS col1
----
0

query I rowsort
SELECT + 35 + 10 * 59
----
625

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

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

query I rowsort
SELECT ALL 17 + + 41
----
58

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

query I rowsort
SELECT ALL 94 + 91 AS col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT DISTINCT COUNT( ALL 16 ) + 0
----
1

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT COUNT ( ALL 16 ) + 0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT - 12 DIV + 50 + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-234
SELECT - 12 / + 50 + 7 AS col0
----
7

query I rowsort
SELECT + 24 * + 74 + + 88 col2
----
1864

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL - NULLIF ( + COUNT( * ), + COUNT( ALL + 23 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - NULLIF ( + COUNT ( * ), + COUNT ( ALL + 23 ) ) col2
----
NULL

query I rowsort
SELECT ( - 88 ) * + 77
----
-6776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT - COUNT( + NULLIF ( 92, + 33 * + 55 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - COUNT ( + NULLIF ( 92, + 33 * + 55 ) ) AS col2
----
-1

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

query I rowsort
SELECT 61 * ( 9 * 87 ) col1
----
47763

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

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

query I rowsort
SELECT 77 + 1 AS col2
----
78

query I rowsort
SELECT ALL + 2 * 75
----
150

query I rowsort
SELECT 51 * + 58
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT COUNT( - 42 ) * 44
----
44

skipif mysql # not compatible
query I rowsort label-246
SELECT COUNT ( - 42 ) * 44
----
44

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT DISTINCT 78 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT 78 / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-250
SELECT 95 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-250
SELECT 95 / 96 AS col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT DISTINCT - 58 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - 58 / 87 AS col1
----
0

query I rowsort
SELECT 76 * + 6 AS col1
----
456

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

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

query I rowsort
SELECT DISTINCT + 85 + 44 AS col1
----
129

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( 49 ) * 11
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT DISTINCT + MAX( + 33 ) + - MAX( ALL 27 )
----
6

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT + MAX ( + 33 ) + - MAX ( ALL 27 )
----
6

query I rowsort
SELECT DISTINCT 59 + + CASE WHEN NOT 60 >= + 68 THEN - 44 ELSE NULL END
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - MAX( DISTINCT + 76 ) * + CAST( - 98 * - 37 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT + 76 ) * + CAST ( - 98 * - 37 AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT - 60 DIV 1
----
-60

skipif mysql # not compatible
query I rowsort label-264
SELECT - 60 / 1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-265
SELECT DISTINCT + 12 DIV - NULLIF ( COUNT( * ), 28 + - 67 * + 59 )
----
-12

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT + 12 / - NULLIF ( COUNT ( * ), 28 + - 67 * + 59 )
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT 78 - MAX( DISTINCT 52 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-267
SELECT 78 - MAX ( DISTINCT 52 ) col0
----
26

query I rowsort
SELECT + 27 - ( 96 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT ALL + ( 19 ) DIV - 4
----
-4

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + ( 19 ) / - 4
----
-4

query I rowsort
SELECT ALL 66 * - 4 AS col1
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT DISTINCT 6 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT 6 / + 39
----
0

query I rowsort
SELECT ALL 80 * - 8 AS col0
----
-640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-273
SELECT COALESCE ( - 0, - 72 + 15, + 56 - COALESCE ( 59 - + 32, + MAX( + 16 ) - CAST( NULL AS SIGNED ) ) ) * 42
----
0

skipif mysql # not compatible
query I rowsort label-273
SELECT COALESCE ( - 0, - 72 + 15, + 56 - COALESCE ( 59 - + 32, + MAX ( + 16 ) - CAST ( NULL AS INTEGER ) ) ) * 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL NULLIF ( 19, + 67 * 14 ) * COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL NULLIF ( 19, + 67 * 14 ) * COUNT ( * ) AS col2
----
19

query I rowsort
SELECT DISTINCT + 60 * - 6 AS col1
----
-360

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

query I rowsort
SELECT - 38 * + 86 + 79 AS col0
----
-3189

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT - MAX( 31 ) - + 45 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-278
SELECT - MAX ( 31 ) - + 45 AS col2
----
-76

query I rowsort
SELECT ALL 46 * 41 col0
----
1886

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - NULLIF ( 88, + 11 / 28 + ( + 46 - 60 ) ) * - COUNT( * ) - + 43
----
45

skipif mysql # not compatible
query I rowsort label-281
SELECT - NULLIF ( 88, + 11 / 28 + ( + 46 - 60 ) ) * - COUNT ( * ) - + 43
----
45

query I rowsort
SELECT DISTINCT - 98 col1
----
-98

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

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

query I rowsort
SELECT 96 * - - 93
----
8928

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT ALL 55 + + + COALESCE ( 90, + 76 DIV - 71 + - 70 )
----
145

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL 55 + + + COALESCE ( 90, + 76 / - 71 + - 70 )
----
145

query I rowsort
SELECT ALL - 71 * 68
----
-4828

query I rowsort
SELECT 86 * - 2
----
-172

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

query I rowsort
SELECT ALL - 62 + - - 58 AS col1
----
-4

query I rowsort
SELECT DISTINCT 49 * + - 94 * 1 AS col1
----
-4606

query I rowsort
SELECT ALL + 98 + + 78 * 74 AS col2
----
5870

query I rowsort
SELECT 70 * - + 75 AS col0
----
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - MIN( - 17 ) * - 68 AS col0
----
-1156

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - MIN ( - 17 ) * - 68 AS col0
----
-1156

query I rowsort
SELECT 11 * + 72
----
792

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

query I rowsort
SELECT DISTINCT - 53 * 15
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT 92 - + + COALESCE ( 38, MIN( DISTINCT - 26 ) * NULLIF ( COUNT( * ), - 9 ) ) * 46
----
-1656

skipif mysql # not compatible
query I rowsort label-297
SELECT 92 - + + COALESCE ( 38, MIN ( DISTINCT - 26 ) * NULLIF ( COUNT ( * ), - 9 ) ) * 46
----
-1656

query I rowsort
SELECT 99 * + 53 * + 57 + - 17 AS col0
----
299062

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-300
SELECT ALL - 9 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - 9 / + 80
----
0

query I rowsort
SELECT 27 - + 0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT - 27 DIV - - 20
----
-1

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - 27 / - - 20
----
-1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT ALL - - 87 DIV 17
----
5

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - - 87 / 17
----
5

query I rowsort
SELECT + + 63 + + 54
----
117

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

query I rowsort
SELECT - - 16 col1
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT - 11 + - + MAX( DISTINCT - 25 )
----
14

skipif mysql # not compatible
query I rowsort label-310
SELECT - 11 + - + MAX ( DISTINCT - 25 )
----
14

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

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

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

query I rowsort
SELECT ALL - + 82 * 4
----
-328

query I rowsort
SELECT + 34 * + 75 * - 46
----
-117300

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT - 89 * - ( COUNT( + 28 ) )
----
89

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - 89 * - ( COUNT ( + 28 ) )
----
89

query I rowsort
SELECT - - 50 * + 85 + 68 AS col1
----
4318

query I rowsort
SELECT + + 39 col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT + - NULLIF ( - + COALESCE ( CAST( NULL AS SIGNED ), 17 * - 29 ), - 68 * - 34 ) + - 29
----
-522

skipif mysql # not compatible
query I rowsort label-318
SELECT + - NULLIF ( - + COALESCE ( CAST ( NULL AS INTEGER ), 17 * - 29 ), - 68 * - 34 ) + - 29
----
-522

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

query I rowsort
SELECT DISTINCT + CASE + + 39 WHEN - 2 THEN 49 + 85 * - 74 END * 33
----
NULL

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

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

query I rowsort
SELECT DISTINCT 52 * 83 + 25
----
4341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-323
SELECT ALL 21 * - ( + 36 ) + + 67 DIV COUNT( * )
----
-689

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL 21 * - ( + 36 ) + + 67 / COUNT ( * )
----
-689

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT DISTINCT - 80 * - 36 + - 51 + 5 DIV 21
----
2829

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - 80 * - 36 + - 51 + 5 / 21
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT ALL + SUM( + - 15 ) * - 94 + + ( + COUNT( * ) + + 68 * 39 )
----
4063

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + SUM ( + - 15 ) * - 94 + + ( + COUNT ( * ) + + 68 * 39 )
----
4063

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT CASE + COALESCE ( CAST( + 54 AS SIGNED ), + 72, ( 0 ) ) WHEN 11 THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT CASE + COALESCE ( CAST ( + 54 AS INTEGER ), + 72, ( 0 ) ) WHEN 11 THEN - 68 END
----
NULL

query I rowsort
SELECT ALL 8 * - 85 AS col1
----
-680

query I rowsort
SELECT DISTINCT 8 * - 85 * 93 + 64 * 8 AS col0
----
-62728

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + CASE 56 WHEN + - 34 THEN NULL WHEN 57 THEN 64 * COALESCE ( + COUNT( * ), ( 91 ) / 97, - 49 ) + AVG ( - 95 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT + CASE 56 WHEN + - 34 THEN NULL WHEN 57 THEN 64 * COALESCE ( + COUNT ( * ), ( 91 ) / 97, - 49 ) + AVG ( - 95 ) END
----
NULL

query I rowsort
SELECT COALESCE ( - 95, 7 + + 49 )
----
-95

query II rowsort
SELECT DISTINCT + 34, 65 AS col2
----
34
65

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL - 93 * + 39 * - - COUNT( * ) * - 69 + 77
----
250340

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL - 93 * + 39 * - - COUNT ( * ) * - 69 + 77
----
250340

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT SUM( + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-333
SELECT SUM ( + 49 ) AS col0
----
49

query I rowsort
SELECT - 89 * + 78 AS col0
----
-6942

query I rowsort
SELECT ALL 95 * + 74 * + 49 col0
----
344470

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - ( + - MIN( DISTINCT NULLIF ( 5, - 57 + 37 ) ) ) col1
----
5

skipif mysql # not compatible
query I rowsort label-336
SELECT - ( + - MIN ( DISTINCT NULLIF ( 5, - 57 + 37 ) ) ) col1
----
5

query I rowsort
SELECT - 6 + + 82 * 55 + 37
----
4541

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT + + ( 37 ) * + - COUNT( * ) + - 12 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-339
SELECT + + ( 37 ) * + - COUNT ( * ) + - 12 AS col1
----
-49

query I rowsort
SELECT NULLIF ( - 9, + 55 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT + CASE - MAX( DISTINCT 23 ) WHEN 32 THEN NULL ELSE + ( 57 ) + + 32 END * - 53 col1
----
-4717

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT + CASE - MAX ( DISTINCT 23 ) WHEN 32 THEN NULL ELSE + ( 57 ) + + 32 END * - 53 col1
----
-4717

query I rowsort
SELECT DISTINCT - NULLIF ( - 81, - 21 * + 59 )
----
81

query II rowsort
SELECT DISTINCT + 66 col0, 95 - 66 + - 37 AS col0
----
66
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT + MIN( - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-344
SELECT + MIN ( - 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-345
SELECT - 36 DIV CAST( - 27 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-345
SELECT - 36 / CAST ( - 27 AS INTEGER )
----
1

query I rowsort
SELECT - - ( + 72 ) + + 21 col2
----
93

query II rowsort
SELECT + 57, - 69 * - + 78 + 83 AS col2
----
57
5465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-348
SELECT - + CAST( NULL AS SIGNED ) AS col2, 57 + + + ( 77 ) + COUNT( * ) DIV - 57
----
NULL
134

skipif mysql # not compatible
query II rowsort label-348
SELECT - + CAST ( NULL AS INTEGER ) AS col2, 57 + + + ( 77 ) + COUNT ( * ) / - 57
----
NULL
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-349
SELECT - - 76 AS col0, 64 DIV - + MIN( ALL - 56 )
----
76
1

skipif mysql # not compatible
query II rowsort label-349
SELECT - - 76 AS col0, 64 / - + MIN ( ALL - 56 )
----
76
1

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT - + 64 AS col0, 31 + - 89 + CASE COUNT( * ) WHEN 13 THEN - 90 + ( 39 ) * - COALESCE ( - 25, + 47 ) END
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-350
SELECT - + 64 AS col0, 31 + - 89 + CASE COUNT ( * ) WHEN 13 THEN - 90 + ( 39 ) * - COALESCE ( - 25, + 47 ) END
----
-64
NULL

query I rowsort
SELECT - 68 * - - 82 + - 87
----
-5663

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-353
SELECT ALL + + 67 + + - CAST( NULL AS SIGNED ) * CASE ( + 44 ) WHEN 15 THEN NULL WHEN + NULLIF ( CASE + 16 WHEN - 95 THEN + CAST( 58 AS DECIMAL ) * - 85 WHEN + CASE 35 WHEN - 10 / 22 THEN + MIN( DISTINCT 91 ) ELSE NULL END THEN NULL END, - 49 ) * + 96 + - 61 THEN + 73 END * + 78 + + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL + + 67 + + - CAST ( NULL AS INTEGER ) * CASE ( + 44 ) WHEN 15 THEN NULL WHEN + NULLIF ( CASE + 16 WHEN - 95 THEN + CAST ( 58 AS REAL ) * - 85 WHEN + CASE 35 WHEN - 10 / 22 THEN + MIN ( DISTINCT 91 ) ELSE NULL END THEN NULL END, - 49 ) * + 96 + - 61 THEN + 73 END * + 78 + + 85 AS col0
----
NULL

query I rowsort
SELECT - 11 - 32 + + 47
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - + COUNT( - - 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-355
SELECT - + COUNT ( - - 90 ) AS col2
----
-1

query I rowsort
SELECT ALL - ( + 55 ) + - 50
----
-105

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

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

query I rowsort
SELECT ALL + 44 * + 72 AS col0
----
3168

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

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

query I rowsort
SELECT DISTINCT - 89 * 59 AS col1
----
-5251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT ALL + MAX( DISTINCT + - 1 ) DIV - + COUNT( * ) + + - ( + ( - 82 ) ) + 96 AS col2
----
179

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + MAX ( DISTINCT + - 1 ) / - + COUNT ( * ) + + - ( + ( - 82 ) ) + 96 AS col2
----
179

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

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

query I rowsort
SELECT + 79 - - - 86 * + 31
----
-2587

query I rowsort
SELECT DISTINCT + NULLIF ( - + 65, + - 51 ) col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-365
SELECT + 79 DIV - - COUNT( * ) + + 38 * + ( 86 ) AS col0
----
3347

skipif mysql # not compatible
query I rowsort label-365
SELECT + 79 / - - COUNT ( * ) + + 38 * + ( 86 ) AS col0
----
3347

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - CASE - 84 WHEN + + NULLIF ( - 10, - COUNT( * ) ) + 31 THEN - 73 + 38 END * + 10 - - AVG ( DISTINCT 62 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT - CASE - 84 WHEN + + NULLIF ( - 10, - COUNT ( * ) ) + 31 THEN - 73 + 38 END * + 10 - - AVG ( DISTINCT 62 ) col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT DISTINCT MAX( ALL + - 41 ) DIV - ( 67 )
----
0

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT MAX ( ALL + - 41 ) / - ( 67 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT DISTINCT + NULLIF ( - + 84, + - COUNT( DISTINCT 96 ) * + 1 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT + NULLIF ( - + 84, + - COUNT ( DISTINCT 96 ) * + 1 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-371
SELECT DISTINCT ( - 77 ) DIV + MIN( COALESCE ( COALESCE ( ( - 70 ), 11 * 26 + + 95 * 23, + 29 + CAST( NULL AS SIGNED ) ), 76 ) ) - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT ( - 77 ) / + MIN ( COALESCE ( COALESCE ( ( - 70 ), 11 * 26 + + 95 * 23, + 29 + CAST ( NULL AS INTEGER ) ), 76 ) ) - 83 AS col0
----
-82

query I rowsort
SELECT ALL NULLIF ( + - 85, 52 + + 31 - 89 ) * + 15 AS col0
----
-1275

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

query I rowsort
SELECT 18 * 50 + + 30 AS col0
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL - COUNT( * ) * 22 - + 84
----
-106

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - COUNT ( * ) * 22 - + 84
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-376
SELECT DISTINCT MAX( + COALESCE ( - CAST( - ( 83 ) AS SIGNED ), 68 ) ) * 92 AS col1
----
7636

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT MAX ( + COALESCE ( - CAST ( - ( 83 ) AS INTEGER ), 68 ) ) * 92 AS col1
----
7636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL + NULLIF ( - + ( + - CAST( NULL AS SIGNED ) ), - 94 ) * 41 - 25 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + NULLIF ( - + ( + - CAST ( NULL AS INTEGER ) ), - 94 ) * 41 - 25 * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT + 89 * - CASE - + 34 WHEN + 42 THEN 0 * 31 + 35 WHEN 91 THEN + 26 + + 77 WHEN + CASE + ( + 9 ) WHEN + 36 - 35 THEN - SUM( ALL 31 ) ELSE + 70 * 97 END THEN NULL ELSE NULL END / - ( 65 * 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT + 89 * - CASE - + 34 WHEN + 42 THEN 0 * 31 + 35 WHEN 91 THEN + 26 + + 77 WHEN + CASE + ( + 9 ) WHEN + 36 - 35 THEN - SUM ( ALL 31 ) ELSE + 70 * 97 END THEN NULL ELSE NULL END / - ( 65 * 20 )
----
NULL

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

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

query I rowsort
SELECT 40 * + 2 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COALESCE ( - + COUNT( * ), - 16 + - + 22 ) * - 80
----
80

skipif mysql # not compatible
query I rowsort label-381
SELECT COALESCE ( - + COUNT ( * ), - 16 + - + 22 ) * - 80
----
80

query I rowsort
SELECT 43 * 92 * 52
----
205712

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 61 * + 77 + - + COUNT( * )
----
4696

skipif mysql # not compatible
query I rowsort label-383
SELECT 61 * + 77 + - + COUNT ( * )
----
4696

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL - MIN( DISTINCT + - NULLIF ( 66, 28 ) ) col2
----
66

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - MIN ( DISTINCT + - NULLIF ( 66, 28 ) ) col2
----
66

query I rowsort
SELECT 22 * 81 AS col2
----
1782

query II rowsort
SELECT ALL + - 7 * 96, 9 AS col1
----
-672
9

query I rowsort
SELECT 53 - + + 28
----
25

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

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT 55 + + 76, 4 * 96 * 26 + COUNT( * ) AS col1
----
131
9985

skipif mysql # not compatible
query II rowsort label-389
SELECT 55 + + 76, 4 * 96 * 26 + COUNT ( * ) AS col1
----
131
9985

query I rowsort
SELECT - 29 - - 11
----
-18

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

skipif mysql # not compatible
query I rowsort label-391
SELECT 1 + - COUNT ( DISTINCT 17 ) + 44 / - 20 * + COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT 45 + 13 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT ALL ( - 56 ) + + CAST( - 85 AS SIGNED ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL ( - 56 ) + + CAST ( - 85 AS INTEGER ) AS col0
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT + 96 + COUNT( * ), - ( + - 12 ) - + 80 * - ( COUNT( * ) - + 33 ) AS col2
----
97
-2548

skipif mysql # not compatible
query II rowsort label-394
SELECT + 96 + COUNT ( * ), - ( + - 12 ) - + 80 * - ( COUNT ( * ) - + 33 ) AS col2
----
97
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT NULLIF ( 38, + 77 + + 0 ) + - SUM( ALL 40 + 76 )
----
-78

skipif mysql # not compatible
query I rowsort label-395
SELECT NULLIF ( 38, + 77 + + 0 ) + - SUM ( ALL 40 + 76 )
----
-78

query I rowsort
SELECT 71 + 97 AS col0
----
168

query I rowsort
SELECT ALL - + ( + 30 ) + - 46 + + 94
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL + 24 + - + 87 + + CAST( - + COUNT( 32 ) AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL + 24 + - + 87 + + CAST ( - + COUNT ( 32 ) AS INTEGER ) AS col1
----
-64

query II rowsort
SELECT ALL 42, + 12 AS col2
----
42
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-400
SELECT SUM( - CAST( NULL AS SIGNED ) ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) * + 8
----
NULL

query II rowsort
SELECT + 46 AS col1, - 53 AS col1
----
46
-53

query I rowsort
SELECT DISTINCT - 67 + - 35
----
-102

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

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

query I rowsort
SELECT 86 * + - 17
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT 24 + + 40 + + 30 - - COUNT( * ) * - 63 + - ( 93 ) * 98
----
-9083

skipif mysql # not compatible
query I rowsort label-405
SELECT 24 + + 40 + + 30 - - COUNT ( * ) * - 63 + - ( 93 ) * 98
----
-9083

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT + 67 - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + 67 - COUNT ( * )
----
66

query I rowsort
SELECT 40 * + ( - + 89 ) * - - 24 + - - 9 AS col1
----
-85431

query II rowsort
SELECT 32 AS col2, 10 AS col0
----
32
10

query I rowsort
SELECT ALL + 40 * 98
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL 84 - - 52 + - + COUNT( * ) + 82 * + + 2 + 96 col0
----
395

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL 84 - - 52 + - + COUNT ( * ) + 82 * + + 2 + 96 col0
----
395

query II rowsort
SELECT DISTINCT - 98, + 98 AS col0
----
-98
98

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

query I rowsort
SELECT 4 - 31 * + + 29
----
-895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-415
SELECT COUNT( * ) * + 51 DIV + CAST( - 56 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT COUNT ( * ) * + 51 / + CAST ( - 56 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT 10 * + + 73
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT - COUNT( * ) * - - 25 + - 48 + - 85 + - 94 * 90 AS col1
----
-8618

skipif mysql # not compatible
query I rowsort label-417
SELECT - COUNT ( * ) * - - 25 + - 48 + - 85 + - 94 * 90 AS col1
----
-8618

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL - MIN( ALL - - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - MIN ( ALL - - 49 ) AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-420
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT 26 + - ( + 42 ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-422
SELECT COUNT( * ) DIV + 82 * - CAST( + + 13 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-422
SELECT COUNT ( * ) / + 82 * - CAST ( + + 13 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-423
SELECT CAST( + - 69 AS SIGNED ) + ( + ( + 47 ) ) * + 94
----
4349

skipif mysql # not compatible
query I rowsort label-423
SELECT CAST ( + - 69 AS INTEGER ) + ( + ( + 47 ) ) * + 94
----
4349

query I rowsort
SELECT DISTINCT 12 * - 51
----
-612

query I rowsort
SELECT ALL + 46 * + - 23
----
-1058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 29 * + - CASE - COUNT( * ) WHEN - 37 * + COUNT( * ) - ( 82 ) THEN 59 WHEN 74 / 47 + 30 * - 38 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 29 * + - CASE - COUNT ( * ) WHEN - 37 * + COUNT ( * ) - ( 82 ) THEN 59 WHEN 74 / 47 + 30 * - 38 THEN 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL + 43 * + - 95 * COUNT( * )
----
-4085

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + 43 * + - 95 * COUNT ( * )
----
-4085

query I rowsort
SELECT - 27 + 80 * - 14 + - 13 + + 69 AS col2
----
-1091

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT ALL - CASE + - 81 WHEN - 11 THEN NULL ELSE 25 DIV + + 65 * + 85 + - 31 END + 51 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL - CASE + - 81 WHEN - 11 THEN NULL ELSE 25 / + + 65 * + 85 + - 31 END + 51 AS col0
----
82

query I rowsort
SELECT DISTINCT + 52 + + 67 * + 71 + - ( 92 ) + + 67 AS col2
----
4784

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

query I rowsort
SELECT ALL + 8 + 49 AS col1
----
57

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

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

query I rowsort
SELECT ALL 46 + - 68 + - 82
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT + COALESCE ( - - 38, - SUM( 69 ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-435
SELECT + COALESCE ( - - 38, - SUM ( 69 ) ) AS col2
----
38

query I rowsort
SELECT ALL 90 + + 14 AS col1
----
104

query I rowsort
SELECT DISTINCT + + ( 10 ) * - 86 * - 84
----
72240

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT 19 + + 85 + + COUNT( * ) + - NULLIF ( - 68, 5 + 19 ) + 34 * 67 * ( - ( 37 ) + 87 ) AS col2
----
114073

skipif mysql # not compatible
query I rowsort label-438
SELECT 19 + + 85 + + COUNT ( * ) + - NULLIF ( - 68, 5 + 19 ) + 34 * 67 * ( - ( 37 ) + 87 ) AS col2
----
114073

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-440
SELECT - COUNT( * ) AS col1, CASE 2 WHEN - AVG ( ALL - - 28 ) THEN + 64 * 11 + 49 WHEN + 84 THEN NULL WHEN 95 THEN - NULLIF ( 22, COUNT( * ) / COUNT( * ) - COUNT( * ) ) ELSE + ( CASE - COUNT( * ) WHEN 10 THEN + 16 WHEN - 15 * - 36 THEN + COALESCE ( + 61, 83 ) + + CAST( NULL AS SIGNED ) WHEN - 92 + 9 THEN 5 / - 78 END ) END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-440
SELECT - COUNT ( * ) AS col1, CASE 2 WHEN - AVG ( ALL - - 28 ) THEN + 64 * 11 + 49 WHEN + 84 THEN NULL WHEN 95 THEN - NULLIF ( 22, COUNT ( * ) / COUNT ( * ) - COUNT ( * ) ) ELSE + ( CASE - COUNT ( * ) WHEN 10 THEN + 16 WHEN - 15 * - 36 THEN + COALESCE ( + 61, 83 ) + + CAST ( NULL AS INTEGER ) WHEN - 92 + 9 THEN 5 / - 78 END ) END
----
-1
NULL

query I rowsort
SELECT ALL 62 - ( - 52 ) * - 4 AS col0
----
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT - COUNT( * ) AS col2, + COUNT( * ) - MAX( - 3 )
----
-1
4

skipif mysql # not compatible
query II rowsort label-442
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) - MAX ( - 3 )
----
-1
4

query II rowsort
SELECT ALL 52 AS col2, + 13 AS col0
----
52
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-444
SELECT NULLIF ( + 31, - COUNT( * ) ) - + CAST( + - 31 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-444
SELECT NULLIF ( + 31, - COUNT ( * ) ) - + CAST ( + - 31 AS INTEGER )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT DISTINCT 84 * - 26 * - - COUNT( * )
----
-2184

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT 84 * - 26 * - - COUNT ( * )
----
-2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-446
SELECT 54 DIV + + 27 + - - COUNT( * ) * + NULLIF ( + - 92, + - 22 )
----
-90

skipif mysql # not compatible
query I rowsort label-446
SELECT 54 / + + 27 + - - COUNT ( * ) * + NULLIF ( + - 92, + - 22 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT 21 * COUNT( * ) * - 63 * 95 * 15 * + 53
----
-99919575

skipif mysql # not compatible
query I rowsort label-447
SELECT 21 * COUNT ( * ) * - 63 * 95 * 15 * + 53
----
-99919575

query I rowsort
SELECT 54 * 49 + - 31 AS col2
----
2615

query I rowsort
SELECT - 66 - + 42 - - - 53 AS col1
----
-161

query I rowsort
SELECT + 77 * - 52
----
-4004

query I rowsort
SELECT - 45 * - 87 - - 52 AS col1
----
3967

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-452
SELECT ALL + CASE - 63 WHEN 36 * + COUNT( * ) + - CAST( NULL AS DECIMAL ) * + 66 THEN NULL WHEN - 0 THEN + 18 - 76 ELSE + COALESCE ( + 12, - 61 * - 53 ) END
----
12

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + CASE - 63 WHEN 36 * + COUNT ( * ) + - CAST ( NULL AS REAL ) * + 66 THEN NULL WHEN - 0 THEN + 18 - 76 ELSE + COALESCE ( + 12, - 61 * - 53 ) END
----
12

query I rowsort
SELECT - 54 * + 56 AS col1
----
-3024

query I rowsort
SELECT - CASE - + 98 WHEN + + 61 THEN NULL WHEN + 0 + ( + ( + 68 ) ) * 15 THEN NULL ELSE CASE + 35 WHEN - 97 + - 0 THEN - 73 * 20 END END * + 92 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT DISTINCT + 91 * - - CAST( NULL AS SIGNED ) * 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 91 * - - CAST ( NULL AS INTEGER ) * 39 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + - 1
----
-1

query II rowsort
SELECT + 41 col1, 2
----
41
2

query I rowsort
SELECT ALL - 91 * - - 10 + 0 AS col2
----
-910

query I rowsort
SELECT - - 84 + - + COALESCE ( - 1, + + 24, - 61 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT + 12 * - 65 + + ( 94 ) + - - 41 + + COUNT( * ) - - 93 * - NULLIF ( 90 * - 49, 4 ) AS col1
----
409486

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + 12 * - 65 + + ( 94 ) + - - 41 + + COUNT ( * ) - - 93 * - NULLIF ( 90 * - 49, 4 ) AS col1
----
409486

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT CASE - CASE + ( + + 49 ) WHEN 44 * - - MAX( + 89 ) / 54 THEN NULL WHEN + 74 THEN + 87 * ( 31 * 53 ) ELSE NULL END WHEN 42 THEN NULL WHEN 45 + + 15 THEN - NULLIF ( 45, ( CASE - NULLIF ( 89, + 61 + NULLIF ( 0 + + 19 * - ( + 66 ), - NULLIF ( - 73, - 44 + - 86 * 32 ) * COUNT( * ) + + 69 ) ) WHEN 91 THEN NULL WHEN 30 * COUNT( * ) THEN NULL WHEN - 46 THEN 69 ELSE NULL END ) ) - + 71 * + 11 ELSE 88 END
----
88

skipif mysql # not compatible
query I rowsort label-463
SELECT CASE - CASE + ( + + 49 ) WHEN 44 * - - MAX ( + 89 ) / 54 THEN NULL WHEN + 74 THEN + 87 * ( 31 * 53 ) ELSE NULL END WHEN 42 THEN NULL WHEN 45 + + 15 THEN - NULLIF ( 45, ( CASE - NULLIF ( 89, + 61 + NULLIF ( 0 + + 19 * - ( + 66 ), - NULLIF ( - 73, - 44 + - 86 * 32 ) * COUNT ( * ) + + 69 ) ) WHEN 91 THEN NULL WHEN 30 * COUNT ( * ) THEN NULL WHEN - 46 THEN 69 ELSE NULL END ) ) - + 71 * + 11 ELSE 88 END
----
88

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL - ( - CAST( - - 6 AS SIGNED ) ) + 42 - 60
----
-12

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - ( - CAST ( - - 6 AS INTEGER ) ) + 42 - 60
----
-12

query I rowsort
SELECT 17 * 94 + + 38
----
1636

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT - MAX( DISTINCT - + ( + - ( 71 ) ) ), 71 col0
----
-71
71

skipif mysql # not compatible
query II rowsort label-468
SELECT - MAX ( DISTINCT - + ( + - ( 71 ) ) ), 71 col0
----
-71
71

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT ALL + 21 col1, - SUM( DISTINCT 75 ) + - 42
----
21
-117

skipif mysql # not compatible
query II rowsort label-469
SELECT ALL + 21 col1, - SUM ( DISTINCT 75 ) + - 42
----
21
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL ( + COUNT( 16 ) ) + + - 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL ( + COUNT ( 16 ) ) + + - 83 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-471
SELECT - - 54, SUM( + + COALESCE ( + + NULLIF ( + 52, - 59 ), - 78, - 57 ) ) * ( + ( - ( 73 ) ) ) AS col2
----
54
-3796

skipif mysql # not compatible
query II rowsort label-471
SELECT - - 54, SUM ( + + COALESCE ( + + NULLIF ( + 52, - 59 ), - 78, - 57 ) ) * ( + ( - ( 73 ) ) ) AS col2
----
54
-3796

onlyif mysql # aggregate syntax: 
query II rowsort label-472
SELECT ALL + 97 col1, + COUNT( ( - + 10 ) ) * 0 * 36 + + 99
----
97
99

skipif mysql # not compatible
query II rowsort label-472
SELECT ALL + 97 col1, + COUNT ( ( - + 10 ) ) * 0 * 36 + + 99
----
97
99

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

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - 29 + + + COUNT ( * ) AS col0
----
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - + COALESCE ( + - 17, + 71 ) + + - COUNT( DISTINCT + 70 )
----
16

skipif mysql # not compatible
query I rowsort label-475
SELECT - + COALESCE ( + - 17, + 71 ) + + - COUNT ( DISTINCT + 70 )
----
16

query I rowsort
SELECT + + 2 + 2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT ALL + CAST( + 40 AS SIGNED ) - + 19 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + CAST ( + 40 AS INTEGER ) - + 19 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-478
SELECT - - 91 * 15 AS col2, NULLIF ( + 1, + + 37 ) DIV + 38 + MIN( ALL 50 ) * - 73 + 78 * 68
----
1365
1654

skipif mysql # not compatible
query II rowsort label-478
SELECT - - 91 * 15 AS col2, NULLIF ( + 1, + + 37 ) / + 38 + MIN ( ALL 50 ) * - 73 + 78 * 68
----
1365
1654

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT CASE - - 15 WHEN - COUNT( * ) * + COUNT( * ) + 47 THEN NULL WHEN - 48 THEN - 5 * - 38 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT CASE - - 15 WHEN - COUNT ( * ) * + COUNT ( * ) + 47 THEN NULL WHEN - 48 THEN - 5 * - 38 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-481
SELECT - COUNT( * ) * + 24 * 69 * + - CAST( - + 2 AS SIGNED ) * + - 94 AS col2
----
311328

skipif mysql # not compatible
query I rowsort label-481
SELECT - COUNT ( * ) * + 24 * 69 * + - CAST ( - + 2 AS INTEGER ) * + - 94 AS col2
----
311328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-482
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1, - 90
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-482
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1, - 90
----
NULL
-90

query I rowsort
SELECT + 20 + + ( 17 )
----
37

query I rowsort
SELECT + 96 + - ( 95 )
----
1

query I rowsort
SELECT + 90 * + - ( - 57 ) AS col0
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT + 2 + + 88 * + COUNT( DISTINCT - 19 ) * + 62 + - + CASE + + COALESCE ( - 87, 40, + 52 + - 38 ) WHEN ( 10 ) + 31 * + ( COUNT( ALL - 79 ) ) THEN 43 * MAX( + 85 ) + SUM( ALL ( 33 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT + 2 + + 88 * + COUNT ( DISTINCT - 19 ) * + 62 + - + CASE + + COALESCE ( - 87, 40, + 52 + - 38 ) WHEN ( 10 ) + 31 * + ( COUNT ( ALL - 79 ) ) THEN 43 * MAX ( + 85 ) + SUM ( ALL ( 33 ) ) END AS col0
----
NULL

query I rowsort
SELECT + 66 + - 0 * - 10
----
66

query I rowsort
SELECT DISTINCT 31 * - 64 AS col0
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - 42 + + MIN( + 3 ) + 98 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-489
SELECT - 42 + + MIN ( + 3 ) + 98 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT CAST( + 91 AS SIGNED ) col2
----
91

skipif mysql # not compatible
query I rowsort label-490
SELECT CAST ( + 91 AS INTEGER ) col2
----
91

query I rowsort
SELECT - 60 * 39
----
-2340

query I rowsort
SELECT ALL 66 * - + 38 col0
----
-2508

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

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT - COUNT( * ) * - 45 + 31 col0
----
76

skipif mysql # not compatible
query I rowsort label-494
SELECT - COUNT ( * ) * - 45 + 31 col0
----
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-497
SELECT ( + - 50 ) col0, - 34 * + COUNT( * ) AS col1
----
-50
-34

skipif mysql # not compatible
query II rowsort label-497
SELECT ( + - 50 ) col0, - 34 * + COUNT ( * ) AS col1
----
-50
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT + COALESCE ( - + 32, - COUNT( * ) * + 35 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-498
SELECT + COALESCE ( - + 32, - COUNT ( * ) * + 35 ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT + + 13 DIV - 85 * + 83 * - COALESCE ( - 31, 42 * 73 )
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT + + 13 / - 85 * + 83 * - COALESCE ( - 31, 42 * 73 )
----
0

query I rowsort
SELECT - + 7 + + 42
----
35

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

onlyif mysql # aggregate syntax: 
query II rowsort label-502
SELECT MAX( + 18 ) AS col2, - 61 AS col1
----
18
-61

skipif mysql # not compatible
query II rowsort label-502
SELECT MAX ( + 18 ) AS col2, - 61 AS col1
----
18
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + + 8 * + - 68 + COUNT( * ) + + COUNT( * ) + - 42 col2
----
-584

skipif mysql # not compatible
query I rowsort label-503
SELECT + + 8 * + - 68 + COUNT ( * ) + + COUNT ( * ) + - 42 col2
----
-584

query I rowsort
SELECT - - 74 * 26 * + 31
----
59644

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT + - 1 * + - NULLIF ( 38, + 13 * - - CAST( NULL AS SIGNED ) - 77 ) + - - 44
----
82

skipif mysql # not compatible
query I rowsort label-506
SELECT + - 1 * + - NULLIF ( 38, + 13 * - - CAST ( NULL AS INTEGER ) - 77 ) + - - 44
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL COUNT( * ) * 69 + 7 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL COUNT ( * ) * 69 + 7 AS col1
----
76

query I rowsort
SELECT + 48 + + - CASE - 48 WHEN + 41 THEN NULL WHEN - - 84 THEN - - 77 ELSE NULL END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT - 62 * - - 83 * 32 + 48 * - 15 - - + 80 DIV - 54 AS col0
----
-165393

skipif mysql # not compatible
query I rowsort label-510
SELECT - 62 * - - 83 * 32 + 48 * - 15 - - + 80 / - 54 AS col0
----
-165393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-511
SELECT DISTINCT 96 * - 33 * - CASE + + 62 WHEN + 61 + - 57 THEN 55 WHEN ( ( 73 ) ) * 87 THEN 77 WHEN - 17 THEN NULL ELSE NULL END * + COALESCE ( - CASE CAST( + 72 AS SIGNED ) WHEN + 17 + - 9 THEN + 70 * - CAST( NULL AS SIGNED ) WHEN 59 + ( + 67 - 27 ) THEN NULL END / + MAX( + 31 ), - NULLIF ( 58, 84 ) * + CASE + COUNT( * ) WHEN 86 THEN MAX( + 9 ) * - 37 WHEN 92 THEN 23 + CAST( NULL AS SIGNED ) ELSE + 4 / ( - ( 53 ) ) END + 12 * 97, COUNT( - 51 ) / + NULLIF ( - COUNT( ALL 75 ), + 33 + 39 ) ) + - COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ), - CASE NULLIF ( CASE - MIN( ALL + 95 ) WHEN - 18 THEN + ( 31 ) * + 80 END, - 64 + 64 * 2 ) WHEN + MAX( + 4 ) THEN NULL ELSE 57 + 38 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT 96 * - 33 * - CASE + + 62 WHEN + 61 + - 57 THEN 55 WHEN ( ( 73 ) ) * 87 THEN 77 WHEN - 17 THEN NULL ELSE NULL END * + COALESCE ( - CASE CAST ( + 72 AS INTEGER ) WHEN + 17 + - 9 THEN + 70 * - CAST ( NULL AS INTEGER ) WHEN 59 + ( + 67 - 27 ) THEN NULL END / + MAX ( + 31 ), - NULLIF ( 58, 84 ) * + CASE + COUNT ( * ) WHEN 86 THEN MAX ( + 9 ) * - 37 WHEN 92 THEN 23 + CAST ( NULL AS INTEGER ) ELSE + 4 / ( - ( 53 ) ) END + 12 * 97, COUNT ( - 51 ) / + NULLIF ( - COUNT ( ALL 75 ), + 33 + 39 ) ) + - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ), - CASE NULLIF ( CASE - MIN ( ALL + 95 ) WHEN - 18 THEN + ( 31 ) * + 80 END, - 64 + 64 * 2 ) WHEN + MAX ( + 4 ) THEN NULL ELSE 57 + 38 END ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT ALL COUNT( * ) * 39 + - - COUNT( 5 ) + - 3 + CAST( COALESCE ( 70, 9 - 17, + 10 ) AS SIGNED ) * - 30 AS col2
----
-2063

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL COUNT ( * ) * 39 + - - COUNT ( 5 ) + - 3 + CAST ( COALESCE ( 70, 9 - 17, + 10 ) AS INTEGER ) * - 30 AS col2
----
-2063

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

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

query I rowsort
SELECT DISTINCT - + 4 * - 40
----
160

query I rowsort
SELECT - - 31 + - 66
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-517
SELECT + CAST( + + 81 AS SIGNED ), + 69 - - 51 - - + 53 DIV + 81 AS col2
----
81
120

skipif mysql # not compatible
query II rowsort label-517
SELECT + CAST ( + + 81 AS INTEGER ), + 69 - - 51 - - + 53 / + 81 AS col2
----
81
120

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

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

query I rowsort
SELECT - 64 * ( ( + 26 ) )
----
-1664

query I rowsort
SELECT - 61 col0
----
-61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-522
SELECT DISTINCT CAST( NULL AS SIGNED ), CAST( 92 AS SIGNED ) AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-522
SELECT DISTINCT CAST ( NULL AS INTEGER ), CAST ( 92 AS INTEGER ) AS col0
----
NULL
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT - CASE - COUNT( * ) WHEN 44 + + - 58 * - COUNT( + 0 ) THEN - CAST( NULL AS SIGNED ) / + - 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT - CASE - COUNT ( * ) WHEN 44 + + - 58 * - COUNT ( + 0 ) THEN - CAST ( NULL AS INTEGER ) / + - 18 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT 53 AS col0, + 55 * + + COUNT( * )
----
53
55

skipif mysql # not compatible
query II rowsort label-525
SELECT 53 AS col0, + 55 * + + COUNT ( * )
----
53
55

query I rowsort
SELECT 11 * + 83 * 75
----
68475

onlyif mysql # aggregate syntax: 
query II rowsort label-527
SELECT COUNT( * ) * + SUM( - 78 ), + 46 AS col2
----
-78
46

skipif mysql # not compatible
query II rowsort label-527
SELECT COUNT ( * ) * + SUM ( - 78 ), + 46 AS col2
----
-78
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-528
SELECT CASE + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN - 77 THEN - 9 + + 19 * 4 + - 73 - 2 * - 18 ELSE ( + 27 ) * 93 + 91 END DIV + 20
----
130

skipif mysql # not compatible
query I rowsort label-528
SELECT CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN - 77 THEN - 9 + + 19 * 4 + - 73 - 2 * - 18 ELSE ( + 27 ) * 93 + 91 END / + 20
----
130

query I rowsort
SELECT ALL 25 + + 46
----
71

query I rowsort
SELECT 30 - - 53
----
83

query I rowsort
SELECT DISTINCT + ( + 43 ) + + 84 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT COUNT( * ) + - 38 col2
----
-37

skipif mysql # not compatible
query I rowsort label-532
SELECT COUNT ( * ) + - 38 col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT DISTINCT 77 + + CASE + CAST( - 31 AS SIGNED ) WHEN 69 THEN + 87 - 7 * - - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT 77 + + CASE + CAST ( - 31 AS INTEGER ) WHEN 69 THEN + 87 - 7 * - - 7 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-534
SELECT COUNT ( * ) / - 24 + 67
----
67

query II rowsort
SELECT + 29 AS col2, 19
----
29
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-536
SELECT DISTINCT 12 + + CASE - - COALESCE ( + COALESCE ( + CAST( NULL AS DECIMAL ), + COALESCE ( NULLIF ( - 67, 32 ), COALESCE ( 31, + 95 ) ), + 26 * ( 42 ), + COUNT( * ) ), COUNT( * ), + ( 67 ) * 70 + - CAST( - 40 AS SIGNED ) ) WHEN 89 THEN CASE - 9 WHEN + CAST( - 90 AS DECIMAL ) * - 1 + - 38 * COUNT( * ) THEN NULL ELSE 20 * 67 END WHEN 85 THEN NULL ELSE 89 END AS col1
----
101

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT 12 + + CASE - - COALESCE ( + COALESCE ( + CAST ( NULL AS REAL ), + COALESCE ( NULLIF ( - 67, 32 ), COALESCE ( 31, + 95 ) ), + 26 * ( 42 ), + COUNT ( * ) ), COUNT ( * ), + ( 67 ) * 70 + - CAST ( - 40 AS INTEGER ) ) WHEN 89 THEN CASE - 9 WHEN + CAST ( - 90 AS REAL ) * - 1 + - 38 * COUNT ( * ) THEN NULL ELSE 20 * 67 END WHEN 85 THEN NULL ELSE 89 END AS col1
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-537
SELECT - ( + + NULLIF ( - + 65, - 43 ) ) * 7 + + + 23 * - + 80 + - ( 50 ) + MAX( - 3 + 56 * 25 ) DIV + 54 AS col2
----
-1410

skipif mysql # not compatible
query I rowsort label-537
SELECT - ( + + NULLIF ( - + 65, - 43 ) ) * 7 + + + 23 * - + 80 + - ( 50 ) + MAX ( - 3 + 56 * 25 ) / + 54 AS col2
----
-1410

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-538
SELECT 28 * - + 14 / - COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-538
SELECT 28 * - + 14 / - COUNT ( * ) + CAST ( NULL AS REAL ) AS col2, COUNT ( * ) AS col0
----
NULL
1

query II rowsort
SELECT + 87, 83 * - - 35 AS col2
----
87
2905

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL ( + 61 ) + CASE - 40 WHEN + COALESCE ( + + 54, 18 * + 66 / 57 - + 27 ) THEN NULL ELSE - 57 * 65 + + COUNT( * ) END AS col1
----
-3643

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL ( + 61 ) + CASE - 40 WHEN + COALESCE ( + + 54, 18 * + 66 / 57 - + 27 ) THEN NULL ELSE - 57 * 65 + + COUNT ( * ) END AS col1
----
-3643

query I rowsort
SELECT ALL - - 63 col0
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT - NULLIF ( + 54, + COUNT( - - 13 ) - - ( - 51 ) ) + + - 77 AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-543
SELECT - NULLIF ( + 54, + COUNT ( - - 13 ) - - ( - 51 ) ) + + - 77 AS col1
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT ALL 7 * 12 + + + ( + 42 ) DIV - 33 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL 7 * 12 + + + ( + 42 ) / - 33 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT - COALESCE ( - + 19, - 16 DIV + + 3 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-545
SELECT - COALESCE ( - + 19, - 16 / + + 3 ) col0
----
19

query I rowsort
SELECT 43 * 65 + 61 * + 64 + 43
----
6742

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL + 62 - + NULLIF ( + + 41, - COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL + 62 - + NULLIF ( + + 41, - COUNT ( * ) )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL + 40 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL + 40 / + 89
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-549
SELECT 22 DIV - + 90 * - 26 AS col1, 5 * - ( + - 86 ) * ( CAST( - NULLIF ( 84, - 8 ) AS SIGNED ) )
----
0
-36120

skipif mysql # not compatible
query II rowsort label-549
SELECT 22 / - + 90 * - 26 AS col1, 5 * - ( + - 86 ) * ( CAST ( - NULLIF ( 84, - 8 ) AS INTEGER ) )
----
0
-36120

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

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

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

query I rowsort
SELECT 24 + + - 87
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-553
SELECT + + 68 col0, CAST( NULL AS SIGNED ) * - 24 AS col1
----
68
NULL

skipif mysql # not compatible
query II rowsort label-553
SELECT + + 68 col0, CAST ( NULL AS INTEGER ) * - 24 AS col1
----
68
NULL

query I rowsort
SELECT 83 + ( 49 ) - - COALESCE ( + + 47, - 17 )
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - 40 + + - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-555
SELECT - 40 + + - COUNT ( * )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-556
SELECT ALL + + ( + - 75 ) DIV + 39 col2
----
-1

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL + + ( + - 75 ) / + 39 col2
----
-1

query II rowsort
SELECT ALL - 4 AS col1, 51 + - 2 AS col1
----
-4
49

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

skipif mysql # not compatible
query I rowsort label-558
SELECT 63 / - + 69
----
0

query II rowsort
SELECT DISTINCT - 22, 48 AS col2
----
-22
48

query I rowsort
SELECT ALL - 55 * 88 col2
----
-4840

query I rowsort
SELECT ALL 3 * 82 * + 62 AS col0
----
15252

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT 30 + 90 DIV 44
----
32

skipif mysql # not compatible
query I rowsort label-562
SELECT 30 + 90 / 44
----
32

query I rowsort
SELECT 33 * 73
----
2409

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT COALESCE ( - COUNT( * ), + + CAST( - + 6 AS SIGNED ) ) * + - 6 - + 73
----
-67

skipif mysql # not compatible
query I rowsort label-565
SELECT COALESCE ( - COUNT ( * ), + + CAST ( - + 6 AS INTEGER ) ) * + - 6 - + 73
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-566
SELECT DISTINCT + CAST( + 43 AS SIGNED ) + - - COUNT( + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT + CAST ( + 43 AS INTEGER ) + - - COUNT ( + 44 ) AS col1
----
44

query I rowsort
SELECT 23 * - 29 AS col2
----
-667

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT 59 + 60 AS col1, 15 + + + ( + + COUNT( * ) ) AS col2
----
119
16

skipif mysql # not compatible
query II rowsort label-568
SELECT 59 + 60 AS col1, 15 + + + ( + + COUNT ( * ) ) AS col2
----
119
16

query II rowsort
SELECT ALL + 59 + - 7 AS col1, 29
----
52
29

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT 49 + - 17 DIV + 76 * ( + 77 ) * - 58 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-570
SELECT 49 + - 17 / + 76 * ( + 77 ) * - 58 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL + CAST( + 36 AS SIGNED ) + CASE - 9 WHEN + - 8 + CASE COALESCE ( - 13, - 22 + - COUNT( * ) ) WHEN - 4 THEN NULL WHEN 31 THEN NULL WHEN - NULLIF ( 72, 95 ) + + 84 THEN + 0 - CASE ( MAX( ALL CAST( NULL AS SIGNED ) ) ) WHEN 13 * 54 + 48 * - 38 THEN NULL WHEN - 79 * - 68 + 73 THEN - 89 / ( - 86 ) + 39 * 37 ELSE NULL END * ( + 90 ) END THEN CASE + 28 WHEN ( - 42 ) THEN NULL WHEN 28 * - 34 + - 1 THEN + 34 ELSE NULL END + 48 END + + 46 * 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + CAST ( + 36 AS INTEGER ) + CASE - 9 WHEN + - 8 + CASE COALESCE ( - 13, - 22 + - COUNT ( * ) ) WHEN - 4 THEN NULL WHEN 31 THEN NULL WHEN - NULLIF ( 72, 95 ) + + 84 THEN + 0 - CASE ( MAX ( ALL CAST ( NULL AS INTEGER ) ) ) WHEN 13 * 54 + 48 * - 38 THEN NULL WHEN - 79 * - 68 + 73 THEN - 89 / ( - 86 ) + 39 * 37 ELSE NULL END * ( + 90 ) END THEN CASE + 28 WHEN ( - 42 ) THEN NULL WHEN 28 * - 34 + - 1 THEN + 34 ELSE NULL END + 48 END + + 46 * 88 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 33 * + + 60, - ( + 57 ) * - + 91 * - + 98 AS col0
----
1980
-508326

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT 39 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-573
SELECT 39 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT CASE + 55 WHEN - + COUNT( * ) THEN + 46 / - - 14 + - 11 ELSE NULL END + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT CASE + 55 WHEN - + COUNT ( * ) THEN + 46 / - - 14 + - 11 ELSE NULL END + 79 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT DISTINCT 69 * - CAST( + 98 AS SIGNED ) + - + CASE - - 4 WHEN 16 THEN NULL WHEN - 83 THEN + ( + 52 ) END * 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT 69 * - CAST ( + 98 AS INTEGER ) + - + CASE - - 4 WHEN 16 THEN NULL WHEN - 83 THEN + ( + 52 ) END * 33 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-576
SELECT ALL + COUNT( * ) * + 95 * - 56 + - 63 + + + 79 - + CAST( COUNT( * ) AS SIGNED )
----
-5305

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + COUNT ( * ) * + 95 * - 56 + - 63 + + + 79 - + CAST ( COUNT ( * ) AS INTEGER )
----
-5305

query I rowsort
SELECT + ( + - 43 ) * + 69 col2
----
-2967

query I rowsort
SELECT - 71 * 3 + - 56 + + - 63 * - ( 17 ) AS col1
----
802

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-582
SELECT DISTINCT 25 * - 46, + CAST( + + 70 AS SIGNED ) DIV + + COUNT( * ) + - 98 + - 47 AS col1
----
-1150
-75

skipif mysql # not compatible
query II rowsort label-582
SELECT DISTINCT 25 * - 46, + CAST ( + + 70 AS INTEGER ) / + + COUNT ( * ) + - 98 + - 47 AS col1
----
-1150
-75

query I rowsort
SELECT ALL - - 30
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-584
SELECT CAST( NULL AS DECIMAL ) * - AVG ( ALL - + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT CAST ( NULL AS REAL ) * - AVG ( ALL - + 2 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-586
SELECT 57, - COUNT( 1 ) AS col2
----
57
-1

skipif mysql # not compatible
query II rowsort label-586
SELECT 57, - COUNT ( 1 ) AS col2
----
57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT - COUNT( + 28 ) * - 48 + - 6 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-587
SELECT - COUNT ( + 28 ) * - 48 + - 6 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL COUNT( * ) + - + 96 - - 81 * + 72
----
5737

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL COUNT ( * ) + - + 96 - - 81 * + 72
----
5737

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT - CASE ( + 4 ) WHEN + 81 THEN - COUNT( * ) WHEN - COUNT( * ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-589
SELECT - CASE ( + 4 ) WHEN + 81 THEN - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT - 19 DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-590
SELECT - 19 / + 38 AS col2
----
0

query I rowsort
SELECT + 31 * + 52 * - 97 AS col2
----
-156364

query I rowsort
SELECT ALL - 18 * - 94 AS col2
----
1692

onlyif mysql # aggregate syntax: 
query II rowsort label-593
SELECT ALL + 64 + - COUNT( * ) * + + 44 AS col2, 94
----
20
94

skipif mysql # not compatible
query II rowsort label-593
SELECT ALL + 64 + - COUNT ( * ) * + + 44 AS col2, 94
----
20
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-594
SELECT ALL COALESCE ( + - 31, 19 + + + COUNT( * ) ) + - - COUNT( * ) DIV - - 57 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL COALESCE ( + - 31, 19 + + + COUNT ( * ) ) + - - COUNT ( * ) / - - 57 AS col0
----
-31

query II rowsort
SELECT - 14, 4 col0
----
-14
4

query I rowsort
SELECT ALL - 92 + - - 56 - + - 78 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT ALL 17 AS col1, ( + - 21 ) + - + COUNT( * )
----
17
-22

skipif mysql # not compatible
query II rowsort label-597
SELECT ALL 17 AS col1, ( + - 21 ) + - + COUNT ( * )
----
17
-22

query I rowsort
SELECT + 71 + - 11 AS col1
----
60

query I rowsort
SELECT + 48 + + 63 AS col0
----
111

query I rowsort
SELECT - ( - - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT 29, + 98 * 59 + + COUNT( * ) AS col2
----
29
5783

skipif mysql # not compatible
query II rowsort label-601
SELECT 29, + 98 * 59 + + COUNT ( * ) AS col2
----
29
5783

query I rowsort
SELECT ALL + 29 - + 48
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-603
SELECT - 17 - - - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT - 17 - - - ( + CAST ( NULL AS REAL ) )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT ALL + CAST( + CASE 62 WHEN 98 * - 2 * - 63 + 41 THEN NULL WHEN 63 + 1 + - 94 * - COALESCE ( + COALESCE ( - 11, 17 ), 25, - 99 ) THEN - CASE 36 WHEN 73 THEN NULL WHEN + 97 * 95 THEN - COUNT( * ) ELSE NULL END * 90 END AS SIGNED ) - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + CAST ( + CASE 62 WHEN 98 * - 2 * - 63 + 41 THEN NULL WHEN 63 + 1 + - 94 * - COALESCE ( + COALESCE ( - 11, 17 ), 25, - 99 ) THEN - CASE 36 WHEN 73 THEN NULL WHEN + 97 * 95 THEN - COUNT ( * ) ELSE NULL END * 90 END AS INTEGER ) - 4
----
NULL

query I rowsort
SELECT - ( - 83 ) * - + 7 * + 84 * + COALESCE ( - 2, + 89 ) - - 7 * - 35 * + 97 + 90
----
73933

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT + 43 DIV + 50 + 61
----
61

skipif mysql # not compatible
query I rowsort label-607
SELECT + 43 / + 50 + 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT ALL + - 51 * - 64 + - COUNT( * ) * + 53 + + 2 - ( + NULLIF ( - 29, + ( - CAST( - 38 AS SIGNED ) ) * - 12 ) ) - 44 * 14 col2
----
2626

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL + - 51 * - 64 + - COUNT ( * ) * + 53 + + 2 - ( + NULLIF ( - 29, + ( - CAST ( - 38 AS INTEGER ) ) * - 12 ) ) - 44 * 14 col2
----
2626

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - COUNT( * ) * + - 41 + + - 11 * - 89
----
1020

skipif mysql # not compatible
query I rowsort label-610
SELECT - COUNT ( * ) * + - 41 + + - 11 * - 89
----
1020

query I rowsort
SELECT - + ( + 66 ) * - + 92 AS col1
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT MIN( DISTINCT - NULLIF ( - + 63, + 70 ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-612
SELECT MIN ( DISTINCT - NULLIF ( - + 63, + 70 ) ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT - + 74 DIV 23 * 67 * + 11
----
-2211

skipif mysql # not compatible
query I rowsort label-613
SELECT - + 74 / 23 * 67 * + 11
----
-2211

query I rowsort
SELECT - - 99 + - 57 + + - 93 AS col1
----
-51

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

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

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

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

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

query I rowsort
SELECT ALL + 15 * + NULLIF ( + 67, 95 + 93 + - - 34 * - 55 ) * + 89 + + - 34 + + 0 + - 12 AS col0
----
89399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT + NULLIF ( - - 88, CASE ( - 33 ) WHEN NULLIF ( - + 62, + COUNT( * ) + - - 93 * 73 ) THEN NULL WHEN + 12 THEN NULL ELSE + CAST( NULL AS SIGNED ) + + NULLIF ( 91 + + 43, 94 + 22 ) * - 84 END * 59 + COUNT( * ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-619
SELECT + NULLIF ( - - 88, CASE ( - 33 ) WHEN NULLIF ( - + 62, + COUNT ( * ) + - - 93 * 73 ) THEN NULL WHEN + 12 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + NULLIF ( 91 + + 43, 94 + 22 ) * - 84 END * 59 + COUNT ( * ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + 75 * + 86 + + COUNT( * )
----
6451

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + 75 * + 86 + + COUNT ( * )
----
6451

query I rowsort
SELECT - 55 + - 2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT + CASE - - 3 WHEN + + 96 + CASE + MAX( 25 ) WHEN + - COALESCE ( + 5, + - ( 44 ) * + 37 ) + 34 THEN - AVG ( 18 ) / + 22 + + 59 WHEN 35 * 8 THEN NULL ELSE NULL END - + 84 THEN - 47 WHEN 38 THEN NULL ELSE NULL END * 35 + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT + CASE - - 3 WHEN + + 96 + CASE + MAX ( 25 ) WHEN + - COALESCE ( + 5, + - ( 44 ) * + 37 ) + 34 THEN - AVG ( 18 ) / + 22 + + 59 WHEN 35 * 8 THEN NULL ELSE NULL END - + 84 THEN - 47 WHEN 38 THEN NULL ELSE NULL END * 35 + - 11 AS col2
----
NULL

query I rowsort
SELECT ALL 2 * 54 AS col0
----
108

query I rowsort
SELECT + 8 + - 7 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT SUM( ALL + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-625
SELECT SUM ( ALL + 9 ) AS col1
----
9

query II rowsort
SELECT ALL 13 AS col1, - COALESCE ( - 71, - 40 ) + - 24
----
13
47

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT + 72 DIV + - 40
----
-1

skipif mysql # not compatible
query I rowsort label-627
SELECT + 72 / + - 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT SUM( + 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-628
SELECT SUM ( + 88 ) AS col1
----
88

query I rowsort
SELECT ALL 60 - + + 92 * + 53
----
-4816

query II rowsort
SELECT 63 AS col0, + 96 * - - 36 AS col2
----
63
3456

onlyif mysql # DIV for integer division: 
query II rowsort label-631
SELECT - ( + 18 ) AS col2, + 17 DIV - NULLIF ( 55, + 93 )
----
-18
0

skipif mysql # not compatible
query II rowsort label-631
SELECT - ( + 18 ) AS col2, + 17 / - NULLIF ( 55, + 93 )
----
-18
0

query I rowsort
SELECT - 30 + - 72 + - 84 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT + 42 / - - 73 * CASE + + CASE - COUNT( * ) WHEN + + 81 * 29 THEN - 39 * 63 + - 64 + + 66 WHEN 90 THEN NULL END WHEN 43 * + COUNT( * ) THEN 23 WHEN - NULLIF ( - NULLIF ( 68, - CASE - 94 WHEN 65 + COALESCE ( SUM( + 68 ), 44, - 88 ) THEN + ( + 30 ) WHEN + COUNT( * ) THEN NULL WHEN - 6 THEN 90 * - 5 END / - 11 ), 16 * 40 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT + 42 / - - 73 * CASE + + CASE - COUNT ( * ) WHEN + + 81 * 29 THEN - 39 * 63 + - 64 + + 66 WHEN 90 THEN NULL END WHEN 43 * + COUNT ( * ) THEN 23 WHEN - NULLIF ( - NULLIF ( 68, - CASE - 94 WHEN 65 + COALESCE ( SUM ( + 68 ), 44, - 88 ) THEN + ( + 30 ) WHEN + COUNT ( * ) THEN NULL WHEN - 6 THEN 90 * - 5 END / - 11 ), 16 * 40 ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT DISTINCT 53 DIV - 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT 53 / - 43 AS col2
----
-1

query I rowsort
SELECT + 94 + - - 22
----
116

query I rowsort
SELECT ALL 0 - - 65 + - - 95 * 65 * - + 81 AS col2
----
-500110

query I rowsort
SELECT + - 13 * + 25 AS col2
----
-325

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

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + + 87 - - + ( - COUNT ( * ) ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT - + 39 * - - 96 * + - SUM( - - ( + 34 ) )
----
127296

skipif mysql # not compatible
query I rowsort label-639
SELECT - + 39 * - - 96 * + - SUM ( - - ( + 34 ) )
----
127296

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL + COUNT( * ) * + 47 * - - CASE + 32 WHEN - - 26 THEN + 33 ELSE NULL END + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + COUNT ( * ) * + 47 * - - CASE + 32 WHEN - - 26 THEN + 33 ELSE NULL END + 85 AS col1
----
NULL

query II rowsort
SELECT - - 0 col2, - 39 * - 35
----
0
1365

query I rowsort
SELECT - - 64 + - 18 * - 38
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - - COALESCE ( - - 43, + CASE - 93 WHEN - 13 THEN NULL WHEN + 4 * - + 4 + - 0 THEN NULL ELSE NULLIF ( ( ( 31 ) ), + 13 ) + 40 END * NULLIF ( 67 * ( 32 ), 32 * - COUNT( * ) ), 9 + - 62 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-643
SELECT - - COALESCE ( - - 43, + CASE - 93 WHEN - 13 THEN NULL WHEN + 4 * - + 4 + - 0 THEN NULL ELSE NULLIF ( ( ( 31 ) ), + 13 ) + 40 END * NULLIF ( 67 * ( 32 ), 32 * - COUNT ( * ) ), 9 + - 62 ) AS col2
----
43

query I rowsort
SELECT - 62 * + - 53 AS col1
----
3286

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

skipif mysql # not compatible
query I rowsort label-645
SELECT - - 14 + - COUNT ( * ) AS col2
----
13

query I rowsort
SELECT DISTINCT + + COALESCE ( + 63, - 73 ) AS col2
----
63

query II rowsort
SELECT ALL + 10, - 73 AS col0
----
10
-73

query I rowsort
SELECT + - ( 94 ) * + 87 * - - 23 + 40 + - + 83 + - ( + 13 ) * 92 + - - 27
----
-189306

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

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

query I rowsort
SELECT ALL + 26 + - NULLIF ( - 58, + - 15 + - 74 ) + - + 51 + - - 50
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-652
SELECT CAST( COALESCE ( - 35, + CAST( + 18 AS SIGNED ) * + 48, NULLIF ( ( + 72 ), - 21 + 37 ) + 73 ) AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-652
SELECT CAST ( COALESCE ( - 35, + CAST ( + 18 AS INTEGER ) * + 48, NULLIF ( ( + 72 ), - 21 + 37 ) + 73 ) AS INTEGER ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT CASE + + ( + - 57 ) WHEN + 57 THEN - NULLIF ( CAST( - + 10 AS SIGNED ), - - 80 ) ELSE + 85 - 17 END * 12 AS col1
----
816

skipif mysql # not compatible
query I rowsort label-653
SELECT CASE + + ( + - 57 ) WHEN + 57 THEN - NULLIF ( CAST ( - + 10 AS INTEGER ), - - 80 ) ELSE + 85 - 17 END * 12 AS col1
----
816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-654
SELECT + 65 + + 84 * - CASE 80 WHEN 71 * - - CAST( NULL AS DECIMAL ) + + + 67 / 21 THEN 60 WHEN 53 THEN + - 31 + + 24 WHEN 97 THEN NULL ELSE NULL END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT + 65 + + 84 * - CASE 80 WHEN 71 * - - CAST ( NULL AS REAL ) + + + 67 / 21 THEN 60 WHEN 53 THEN + - 31 + + 24 WHEN 97 THEN NULL ELSE NULL END * + 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT ALL + 65 + ( - 4 ) DIV 11 + - 34
----
31

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL + 65 + ( - 4 ) / 11 + - 34
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL - 7 * MAX( + 7 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL - 7 * MAX ( + 7 ) AS col0
----
-49

query I rowsort
SELECT 20 * + + 27
----
540

query I rowsort
SELECT ALL + 91 + - - 81
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT 39 DIV 34 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-659
SELECT 39 / 34 / 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL 20 + - - COUNT( * ) * + COALESCE ( + 51, - 92 * + - 42 + + - 8 + + 62 ) + - + COUNT( * ) * 65 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL 20 + - - COUNT ( * ) * + COALESCE ( + 51, - 92 * + - 42 + + - 8 + + 62 ) + - + COUNT ( * ) * 65 AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT DISTINCT - MAX( + - 57 ) col0, - 41 + - ( - - NULLIF ( - 97, - 69 * - + 18 ) )
----
57
56

skipif mysql # not compatible
query II rowsort label-661
SELECT DISTINCT - MAX ( + - 57 ) col0, - 41 + - ( - - NULLIF ( - 97, - 69 * - + 18 ) )
----
57
56

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL 96 + - MAX( - + 0 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL 96 + - MAX ( - + 0 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL - CASE 86 WHEN - 99 / + - COUNT( * ) THEN + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL - CASE 86 WHEN - 99 / + - COUNT ( * ) THEN + 11 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 46 - - ( + 91 )
----
45

query I rowsort
SELECT ALL - 28 - + 23 - + ( - 21 )
----
-30

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

skipif mysql # not compatible
query II rowsort label-666
SELECT 58 * + COUNT ( * ) col0, COUNT ( * )
----
58
1

query I rowsort
SELECT DISTINCT - 11 * CASE - 37 WHEN + - 89 + + 45 THEN 60 * - 57 WHEN - + 23 THEN NULL END * 81 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-668
SELECT 83 * - + 98, 79 DIV + 71 AS col0
----
-8134
1

skipif mysql # not compatible
query II rowsort label-668
SELECT 83 * - + 98, 79 / + 71 AS col0
----
-8134
1

query I rowsort
SELECT ( - - 2 ) + - - 45 * - - 68
----
3062

query I rowsort
SELECT + ( + - CASE ( 29 ) WHEN - + 25 THEN 41 END ) AS col0
----
NULL

query III rowsort
SELECT 14 + - - 89 + + 98 AS col2, 94 + + 17 AS col2, - 42
----
201
111
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT 45 DIV - + 28
----
-1

skipif mysql # not compatible
query I rowsort label-672
SELECT 45 / - + 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - ( NULLIF ( ( + COUNT( * ) ), - 25 + - + 42 ) ) * 82 + 31 + - 96
----
-147

skipif mysql # not compatible
query I rowsort label-673
SELECT - ( NULLIF ( ( + COUNT ( * ) ), - 25 + - + 42 ) ) * 82 + 31 + - 96
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL COALESCE ( - + 49, + + COUNT( * ) * + - NULLIF ( - 81, + NULLIF ( 56, - 66 ) * + + 25 + 4 + + COUNT( * ) ), - 11 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL COALESCE ( - + 49, + + COUNT ( * ) * + - NULLIF ( - 81, + NULLIF ( 56, - 66 ) * + + 25 + 4 + + COUNT ( * ) ), - 11 ) AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-675
SELECT ALL COALESCE ( - MIN( - + 34 ), + + 23 * - NULLIF ( - COUNT( * ), + - COUNT( * ) * + - 20 ) ) + + 98 DIV 78 * 74 * - - ( 68 ) AS col1
----
5066

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL COALESCE ( - MIN ( - + 34 ), + + 23 * - NULLIF ( - COUNT ( * ), + - COUNT ( * ) * + - 20 ) ) + + 98 / 78 * 74 * - - ( 68 ) AS col1
----
5066

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-676
SELECT 37 + + + CAST( - 18 AS SIGNED ) + - 28 + - 87 + + - 71 * + 21 AS col2, 24 * + - 71 AS col1
----
-1587
-1704

skipif mysql # not compatible
query II rowsort label-676
SELECT 37 + + + CAST ( - 18 AS INTEGER ) + - 28 + - 87 + + - 71 * + 21 AS col2, 24 * + - 71 AS col1
----
-1587
-1704

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT ALL + ( + + 11 ) DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL + ( + + 11 ) / 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT 83 + - + 74 + - 79 + + COUNT( * ) - 40 + - 81 * - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-678
SELECT 83 + - + 74 + - 79 + + COUNT ( * ) - 40 + - 81 * - COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT ALL + - ( 40 ) + ( + 23 ) col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT + + CAST( + CAST( - 71 AS SIGNED ) AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-680
SELECT + + CAST ( + CAST ( - 71 AS INTEGER ) AS INTEGER ) AS col2
----
-71

query II rowsort
SELECT DISTINCT - 28 + - - 56, + 72 * + 61 * 55 col2
----
28
241560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT COALESCE ( 93, - ( + 12 ) * + CASE - + 69 WHEN 59 + - 89 THEN 82 * - 67 END * + 39 + + 67 - + COUNT( * ) * 89, COUNT( * ) / 72 ) * CAST( NULL AS SIGNED ) + 5 * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT COALESCE ( 93, - ( + 12 ) * + CASE - + 69 WHEN 59 + - 89 THEN 82 * - 67 END * + 39 + + 67 - + COUNT ( * ) * 89, COUNT ( * ) / 72 ) * CAST ( NULL AS INTEGER ) + 5 * + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT - 62 * + 97 * - MIN( DISTINCT + 17 ) + + - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT - 62 * + 97 * - MIN ( DISTINCT + 17 ) + + - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-684
SELECT - + COUNT( * ) * + ( - + 83 ) + 95 + + + 46 AS col0, 18 col1
----
224
18

skipif mysql # not compatible
query II rowsort label-684
SELECT - + COUNT ( * ) * + ( - + 83 ) + 95 + + + 46 AS col0, 18 col1
----
224
18

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-687
SELECT 2 AS col0, CAST( NULL AS SIGNED ) + - 38 / + + 49 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-687
SELECT 2 AS col0, CAST ( NULL AS INTEGER ) + - 38 / + + 49 AS col1
----
2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-688
SELECT DISTINCT + 59 - + 70 DIV - 75 AS col2, ( 10 ) * + COUNT( * )
----
59
10

skipif mysql # not compatible
query II rowsort label-688
SELECT DISTINCT + 59 - + 70 / - 75 AS col2, ( 10 ) * + COUNT ( * )
----
59
10

query I rowsort
SELECT ALL - 5 * + - 65
----
325

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT + 44, CASE - COUNT( * ) WHEN + 38 THEN NULL WHEN + 18 THEN 84 ELSE NULL END / - COUNT( * ) + 15 + + + NULLIF ( - 30, + 99 ) + - COUNT( * ) + - 25 / - 19 col2
----
44
NULL

skipif mysql # not compatible
query II rowsort label-690
SELECT + 44, CASE - COUNT ( * ) WHEN + 38 THEN NULL WHEN + 18 THEN 84 ELSE NULL END / - COUNT ( * ) + 15 + + + NULLIF ( - 30, + 99 ) + - COUNT ( * ) + - 25 / - 19 col2
----
44
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT CASE - - CASE - + 19 WHEN - - 85 THEN + + 24 - + COUNT( * ) ELSE NULL END WHEN + + AVG ( 54 ) THEN COALESCE ( CASE - + 18 WHEN 86 THEN + CAST( NULL AS SIGNED ) * - 14 + - COUNT( * ) ELSE NULL END, 49 ) WHEN + COALESCE ( + CAST( 90 AS SIGNED ), + 91 * 70 ) THEN NULLIF ( 78, - COALESCE ( 94, 96, - 91 * 9 ) + + 88 ) WHEN 68 THEN NULL WHEN - COUNT( * ) THEN NULL END * 50 - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT CASE - - CASE - + 19 WHEN - - 85 THEN + + 24 - + COUNT ( * ) ELSE NULL END WHEN + + AVG ( 54 ) THEN COALESCE ( CASE - + 18 WHEN 86 THEN + CAST ( NULL AS INTEGER ) * - 14 + - COUNT ( * ) ELSE NULL END, 49 ) WHEN + COALESCE ( + CAST ( 90 AS INTEGER ), + 91 * 70 ) THEN NULLIF ( 78, - COALESCE ( 94, 96, - 91 * 9 ) + + 88 ) WHEN 68 THEN NULL WHEN - COUNT ( * ) THEN NULL END * 50 - + 49
----
NULL

query I rowsort
SELECT DISTINCT + 88 * + 57 AS col0
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT 55 + - 55 + - CAST( - 18 AS SIGNED ) + + + 4 * - 12 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-694
SELECT 55 + - 55 + - CAST ( - 18 AS INTEGER ) + + + 4 * - 12 AS col2
----
-30

query I rowsort
SELECT 58 * 98 col2
----
5684

query I rowsort
SELECT ALL - NULLIF ( - - 11, + ( - + 51 ) )
----
-11

query I rowsort
SELECT ALL - 43 * 38 AS col0
----
-1634

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

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

query I rowsort
SELECT 93 * - 42 AS col2
----
-3906

query II rowsort
SELECT 12, 15 AS col0
----
12
15

query I rowsort
SELECT 99 + 83
----
182

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

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

query I rowsort
SELECT - 22 + - 76
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT + NULLIF ( - 40, COUNT( * ) + - 8 )
----
-40

skipif mysql # not compatible
query I rowsort label-704
SELECT + NULLIF ( - 40, COUNT ( * ) + - 8 )
----
-40

query I rowsort
SELECT 29 * + - 73 + 96 - + 63 AS col0
----
-2084

query I rowsort
SELECT 73 + 4
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-707
SELECT - NULLIF ( 34, - 29 / + - 71 + - CAST( - - 76 AS SIGNED ) - - 6 )
----
-34

skipif mysql # not compatible
query I rowsort label-707
SELECT - NULLIF ( 34, - 29 / + - 71 + - CAST ( - - 76 AS INTEGER ) - - 6 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT DISTINCT + COUNT( * ) * - + ( 24 ), + 17 AS col2
----
-24
17

skipif mysql # not compatible
query II rowsort label-708
SELECT DISTINCT + COUNT ( * ) * - + ( 24 ), + 17 AS col2
----
-24
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT ALL - CAST( NULL AS SIGNED ), - 58 * - 27 AS col1
----
NULL
1566

skipif mysql # not compatible
query II rowsort label-709
SELECT ALL - CAST ( NULL AS INTEGER ), - 58 * - 27 AS col1
----
NULL
1566

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - 64 + - - 52 + COUNT( * ) * + 92 + - 12 - + 94
----
-26

skipif mysql # not compatible
query I rowsort label-711
SELECT - 64 + - - 52 + COUNT ( * ) * + 92 + - 12 - + 94
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT - 68 * + - ( + 71 ) * - ( + - 94 ) * 66 + - 58 + + 16 - - COUNT( ALL + 1 ) + + - 65 * - 67 * COUNT( * ) + + CAST( NULL AS SIGNED ) + + 67 * 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT - 68 * + - ( + 71 ) * - ( + - 94 ) * 66 + - 58 + + 16 - - COUNT ( ALL + 1 ) + + - 65 * - 67 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 67 * 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-713
SELECT + CAST( NULL AS SIGNED ) * 24 * - CAST( + 42 AS DECIMAL ) * + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT + CAST ( NULL AS INTEGER ) * 24 * - CAST ( + 42 AS REAL ) * + 73 AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT + - 29 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-715
SELECT + - 29 / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - - 2 * 67 * - + 99 - - 58 + - MAX( + 39 )
----
-13247

skipif mysql # not compatible
query I rowsort label-716
SELECT - - 2 * 67 * - + 99 - - 58 + - MAX ( + 39 )
----
-13247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT + - NULLIF ( - COALESCE ( + 86, - CASE + 60 WHEN - 91 THEN 77 ELSE NULL END * 93 + + COALESCE ( + 31, - 79 + 77 + - NULLIF ( - 19, ( - 98 ) ) DIV - 54, - 57 ) * + NULLIF ( - 98 + 0, - SUM( 56 ) + ( 8 + NULLIF ( 17, + ( - 67 ) ) ) ) ), 53 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-717
SELECT + - NULLIF ( - COALESCE ( + 86, - CASE + 60 WHEN - 91 THEN 77 ELSE NULL END * 93 + + COALESCE ( + 31, - 79 + 77 + - NULLIF ( - 19, ( - 98 ) ) / - 54, - 57 ) * + NULLIF ( - 98 + 0, - SUM ( 56 ) + ( 8 + NULLIF ( 17, + ( - 67 ) ) ) ) ), 53 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT DISTINCT ( - 47 ) DIV - + 28 + + - 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT ( - 47 ) / - + 28 + + - 66 AS col0
----
-65

query I rowsort
SELECT ALL 79 * + - 36 col0
----
-2844

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + SUM( ALL - - 0 ) + - 61 + - - 83 * + 55 * - COUNT( * ) * + + 91 - - 41 AS col2
----
-415435

skipif mysql # not compatible
query I rowsort label-720
SELECT + SUM ( ALL - - 0 ) + - 61 + - - 83 * + 55 * - COUNT ( * ) * + + 91 - - 41 AS col2
----
-415435

query I rowsort
SELECT DISTINCT 63 * + + 55 - + 41 col0
----
3424

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT COUNT( * ) * + 27 + 20 * - 30 AS col0
----
-573

skipif mysql # not compatible
query I rowsort label-722
SELECT COUNT ( * ) * + 27 + 20 * - 30 AS col0
----
-573

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT + 25 * + + MAX( ALL 24 )
----
600

skipif mysql # not compatible
query I rowsort label-723
SELECT + 25 * + + MAX ( ALL 24 )
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT CASE 64 WHEN + 72 / - + COUNT( * ) THEN MAX( - 73 ) + COALESCE ( - 46, - 14 ) + - + 43 * + - 63 + 79 / - CASE + - COUNT( * ) WHEN + 68 * - 42 THEN NULL WHEN + 43 / + 64 THEN - 17 * + 17 ELSE NULL END * - 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT CASE 64 WHEN + 72 / - + COUNT ( * ) THEN MAX ( - 73 ) + COALESCE ( - 46, - 14 ) + - + 43 * + - 63 + 79 / - CASE + - COUNT ( * ) WHEN + 68 * - 42 THEN NULL WHEN + 43 / + 64 THEN - 17 * + 17 ELSE NULL END * - 45 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 4, 57 / 5 / 52 ) * + 1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT CASE COALESCE ( + + ( + 47 ), 68 ) WHEN 81 THEN 83 * 56 * MIN( + + 10 ) + + 80 + - CAST( 94 AS SIGNED ) WHEN - 25 + - COUNT( ALL 45 ) THEN - 15 * - COUNT( 88 ) ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT CASE COALESCE ( + + ( + 47 ), 68 ) WHEN 81 THEN 83 * 56 * MIN ( + + 10 ) + + 80 + - CAST ( 94 AS INTEGER ) WHEN - 25 + - COUNT ( ALL 45 ) THEN - 15 * - COUNT ( 88 ) ELSE CAST ( NULL AS INTEGER ) END
----
NULL

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

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

query I rowsort
SELECT - ( + 33 ) * - ( - + 45 ) + - 47 + + + 43
----
-1489

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-731
SELECT + CAST( - 62 AS DECIMAL ) / 36 * + 26 + + - CASE WHEN + COUNT( * ) IS NOT NULL THEN NULL WHEN NOT NULL IS NULL THEN + COALESCE ( + - COALESCE ( + 51, - COUNT( * ) * - 11 + - 28 + + 67 ), - 9 ) ELSE 93 - 69 * + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT + CAST ( - 62 AS REAL ) / 36 * + 26 + + - CASE WHEN + COUNT ( * ) IS NOT NULL THEN NULL WHEN NOT NULL IS NULL THEN + COALESCE ( + - COALESCE ( + 51, - COUNT ( * ) * - 11 + - 28 + + 67 ), - 9 ) ELSE 93 - 69 * + 43 END
----
NULL

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

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

query I rowsort
SELECT ALL - 85 * + - 49
----
4165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-734
SELECT ALL - COUNT( * ) + COUNT( * ) + NULLIF ( + MIN( ALL + - CAST( + 94 AS SIGNED ) ), + 52 ) + ( 98 ), 20 + + ( + 69 ) AS col1
----
4
89

skipif mysql # not compatible
query II rowsort label-734
SELECT ALL - COUNT ( * ) + COUNT ( * ) + NULLIF ( + MIN ( ALL + - CAST ( + 94 AS INTEGER ) ), + 52 ) + ( 98 ), 20 + + ( + 69 ) AS col1
----
4
89

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

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

query I rowsort
SELECT DISTINCT + 52 * 59 * - 23
----
-70564

query I rowsort
SELECT DISTINCT - 94 + + ( 64 ) AS col2
----
-30

query I rowsort
SELECT DISTINCT - NULLIF ( - 37, 29 + + - 91 / - 55 )
----
37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT - 22 - + COALESCE ( - + 27, + 55 + + 52 * + 23 * 50 + - + COUNT( * ) + - 25 + - - 74 DIV COUNT( * ) * 9 * 53 DIV + 35 DIV 23 )
----
5

skipif mysql # not compatible
query I rowsort label-740
SELECT - 22 - + COALESCE ( - + 27, + 55 + + 52 * + 23 * 50 + - + COUNT ( * ) + - 25 + - - 74 / COUNT ( * ) * 9 * 53 / + 35 / 23 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT - CASE 21 WHEN - 5 THEN + - 1 * + COUNT( * ) - - NULLIF ( - ( - + 8 ), + 1 ) + - CASE + + CAST( NULL AS SIGNED ) WHEN + 9 / ( - 97 ) THEN 42 END - COUNT( * ) WHEN 90 THEN NULL ELSE 93 END + - COALESCE ( - 93, 74 )
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT - CASE 21 WHEN - 5 THEN + - 1 * + COUNT ( * ) - - NULLIF ( - ( - + 8 ), + 1 ) + - CASE + + CAST ( NULL AS INTEGER ) WHEN + 9 / ( - 97 ) THEN 42 END - COUNT ( * ) WHEN 90 THEN NULL ELSE 93 END + - COALESCE ( - 93, 74 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT - - COUNT( * ) * 32 + - 66
----
-34

skipif mysql # not compatible
query I rowsort label-742
SELECT - - COUNT ( * ) * 32 + - 66
----
-34

query I rowsort
SELECT - 26 col0
----
-26

query I rowsort
SELECT ALL - + 20 - - 2 * - 66 AS col1
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-745
SELECT - - 39 + + ( - CASE - COUNT( * ) WHEN + - ( + CAST( 84 AS SIGNED ) ) THEN - 91 WHEN + - 70 * - 28 THEN 85 WHEN + NULLIF ( + + 27, + COALESCE ( + 7, NULLIF ( 83, 38 ) + 47 ) * ( COALESCE ( 82, - CASE - 14 WHEN + 26 THEN 76 / - 96 END + + 33 * 28, + COUNT( + ( + 35 ) ) ) ) ) THEN ( + CASE ( 15 ) WHEN 73 + - 90 * 62 THEN - 75 WHEN 33 THEN NULL END ) ELSE + 27 END )
----
12

skipif mysql # not compatible
query I rowsort label-745
SELECT - - 39 + + ( - CASE - COUNT ( * ) WHEN + - ( + CAST ( 84 AS INTEGER ) ) THEN - 91 WHEN + - 70 * - 28 THEN 85 WHEN + NULLIF ( + + 27, + COALESCE ( + 7, NULLIF ( 83, 38 ) + 47 ) * ( COALESCE ( 82, - CASE - 14 WHEN + 26 THEN 76 / - 96 END + + 33 * 28, + COUNT ( + ( + 35 ) ) ) ) ) THEN ( + CASE ( 15 ) WHEN 73 + - 90 * 62 THEN - 75 WHEN 33 THEN NULL END ) ELSE + 27 END )
----
12

query I rowsort
SELECT ALL 41 * 66 AS col0
----
2706

query I rowsort
SELECT ALL + - 91 * - 7
----
637

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL + NULLIF ( + 17, - COALESCE ( - 12, - 63 * - ( - + ( COUNT( * ) ) ), + 94 + 90 ) + - - 12 ) * + - 16 AS col1
----
-272

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + NULLIF ( + 17, - COALESCE ( - 12, - 63 * - ( - + ( COUNT ( * ) ) ), + 94 + 90 ) + - - 12 ) * + - 16 AS col1
----
-272

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-749
SELECT CAST( NULL AS SIGNED ) AS col2, ( - 41 )
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-749
SELECT CAST ( NULL AS INTEGER ) AS col2, ( - 41 )
----
NULL
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT + 37 + + MIN( + 59 ) * 20 * NULLIF ( + + 91, - + 6 / + COUNT( * ) + - 30 - + 11 - - 26 + + - COUNT( * ) - ( - 47 ) * + COUNT( * ) ) col1
----
107417

skipif mysql # not compatible
query I rowsort label-750
SELECT + 37 + + MIN ( + 59 ) * 20 * NULLIF ( + + 91, - + 6 / + COUNT ( * ) + - 30 - + 11 - - 26 + + - COUNT ( * ) - ( - 47 ) * + COUNT ( * ) ) col1
----
107417

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + 52 * + 29 + 37 + - + COUNT( + 73 ) AS col1
----
1544

skipif mysql # not compatible
query I rowsort label-752
SELECT + 52 * + 29 + 37 + - + COUNT ( + 73 ) AS col1
----
1544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT - NULLIF ( MIN( - - 32 ), CAST( NULL AS SIGNED ) ) * + 72 * - - ( - - MIN( ALL + 51 ) ) col0
----
-117504

skipif mysql # not compatible
query I rowsort label-753
SELECT - NULLIF ( MIN ( - - 32 ), CAST ( NULL AS INTEGER ) ) * + 72 * - - ( - - MIN ( ALL + 51 ) ) col0
----
-117504

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT 33 * 22 - - COUNT( * )
----
727

skipif mysql # not compatible
query I rowsort label-754
SELECT 33 * 22 - - COUNT ( * )
----
727

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT DISTINCT + 97 col1, NULLIF ( + 15, - 61 * COUNT( * ) ) + + 75 AS col2
----
97
90

skipif mysql # not compatible
query II rowsort label-756
SELECT DISTINCT + 97 col1, NULLIF ( + 15, - 61 * COUNT ( * ) ) + + 75 AS col2
----
97
90

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

query I rowsort
SELECT ALL 89 * + 36 * + 25 * + - 74
----
-5927400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-759
SELECT ALL 1 DIV - SUM( 90 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL 1 / - SUM ( 90 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT + ( + 41 ) * - COUNT( * ) * 36 * - 76 * + 26 * - 93 + ( + COALESCE ( + NULLIF ( + 87, - 13 ), + + 35 ) ) AS col1, 83 + + + 52 * 47 AS col1
----
-271241481
2527

skipif mysql # not compatible
query II rowsort label-760
SELECT + ( + 41 ) * - COUNT ( * ) * 36 * - 76 * + 26 * - 93 + ( + COALESCE ( + NULLIF ( + 87, - 13 ), + + 35 ) ) AS col1, 83 + + + 52 * 47 AS col1
----
-271241481
2527

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

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

query I rowsort
SELECT DISTINCT + 25 col0
----
25

query I rowsort
SELECT + 59 + + NULLIF ( + 51, + 57 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ( - 1 ) * + 70 + + 90 - - CASE - 96 WHEN COALESCE ( - - 83, 33 - + NULLIF ( MAX( DISTINCT + 89 ), COUNT( * ) + - + 6 ), - + 8 ) THEN NULL WHEN + COUNT( * ) * - 21 THEN 82 + + 48 WHEN 23 * 63 THEN - 27 END * 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-764
SELECT ( - 1 ) * + 70 + + 90 - - CASE - 96 WHEN COALESCE ( - - 83, 33 - + NULLIF ( MAX ( DISTINCT + 89 ), COUNT ( * ) + - + 6 ), - + 8 ) THEN NULL WHEN + COUNT ( * ) * - 21 THEN 82 + + 48 WHEN 23 * 63 THEN - 27 END * 39 AS col0
----
NULL

query I rowsort
SELECT ALL 30 * + - 19 AS col1
----
-570

query II rowsort
SELECT + 41 * 79 * + + 79 col2, - CASE - NULLIF ( + - 59, + 93 ) WHEN + + 95 + - COALESCE ( + 41, + 74 + 66 ) THEN - 8 + 55 END col2
----
255881
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT NULLIF ( - COUNT( ALL + 65 ), - AVG ( 79 ) - + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-768
SELECT NULLIF ( - COUNT ( ALL + 65 ), - AVG ( 79 ) - + 18 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-769
SELECT ALL - 64 * + NULLIF ( + + CAST( NULL AS SIGNED ), + MAX( - 58 ) * - + ( COUNT( * ) ) + - CAST( NULL AS DECIMAL ) ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - 64 * + NULLIF ( + + CAST ( NULL AS INTEGER ), + MAX ( - 58 ) * - + ( COUNT ( * ) ) + - CAST ( NULL AS REAL ) ) + + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-770
SELECT 71 * MAX( DISTINCT + + NULLIF ( + 94, + - CAST( - + 54 AS SIGNED ) * - + 87 * - 91 ) ) + ( + + 48 ) AS col1
----
6722

skipif mysql # not compatible
query I rowsort label-770
SELECT 71 * MAX ( DISTINCT + + NULLIF ( + 94, + - CAST ( - + 54 AS INTEGER ) * - + 87 * - 91 ) ) + ( + + 48 ) AS col1
----
6722

query I rowsort
SELECT ALL - 56 * - 92
----
5152

query I rowsort
SELECT DISTINCT - 98 + + + 12
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-773
SELECT ALL + 46, COUNT( * ) * 62 * + ( - + 12 ) * - CAST( + 95 AS SIGNED ) / + COUNT( * ) - + 1 + - 2 * CAST( NULL AS SIGNED ) / 39 AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-773
SELECT ALL + 46, COUNT ( * ) * 62 * + ( - + 12 ) * - CAST ( + 95 AS INTEGER ) / + COUNT ( * ) - + 1 + - 2 * CAST ( NULL AS INTEGER ) / 39 AS col2
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-774
SELECT 89 + 53 - + 62 * + 87 - COUNT( * ) + - 8 DIV - 41 + + 87 + + 3 * - - CAST( + - 41 AS SIGNED )
----
-5289

skipif mysql # not compatible
query I rowsort label-774
SELECT 89 + 53 - + 62 * + 87 - COUNT ( * ) + - 8 / - 41 + + 87 + + 3 * - - CAST ( + - 41 AS INTEGER )
----
-5289

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

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

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

query I rowsort
SELECT DISTINCT - ( - + 94 ) * + 21
----
1974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT CASE + 19 WHEN + - 96 * - COUNT( * ) * + ( - 57 ) THEN + 71 + + 85 ELSE 80 * + - 17 END + - 61 + - - ( + COUNT( * ) ) DIV 18
----
-1421

skipif mysql # not compatible
query I rowsort label-778
SELECT CASE + 19 WHEN + - 96 * - COUNT ( * ) * + ( - 57 ) THEN + 71 + + 85 ELSE 80 * + - 17 END + - 61 + - - ( + COUNT ( * ) ) / 18
----
-1421

query I rowsort
SELECT + 33 + - 26 * + 53
----
-1345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL + 49 - + 23 + CASE + 76 WHEN - 91 * + CAST( NULL AS SIGNED ) * COUNT( * ) * - CASE + - ( - - 74 ) WHEN CAST( NULL AS SIGNED ) THEN 70 ELSE - 73 * - COALESCE ( - 36, - CAST( NULL AS SIGNED ), - 43 ) + + 63 END * 40 THEN ( + 31 ) + COUNT( * ) / + 41 WHEN 52 + ( COUNT( * ) ) THEN NULL END + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL + 49 - + 23 + CASE + 76 WHEN - 91 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - CASE + - ( - - 74 ) WHEN CAST ( NULL AS INTEGER ) THEN 70 ELSE - 73 * - COALESCE ( - 36, - CAST ( NULL AS INTEGER ), - 43 ) + + 63 END * 40 THEN ( + 31 ) + COUNT ( * ) / + 41 WHEN 52 + ( COUNT ( * ) ) THEN NULL END + - 97
----
NULL

query II rowsort
SELECT - 32 AS col2, - 15
----
-32
-15

query I rowsort
SELECT DISTINCT + 80 * 35
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT SUM( ALL + ( + + 62 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT SUM ( ALL + ( + + 62 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT 68 * + - 57 + COUNT( * ) * ( - COUNT( - 56 ) ) AS col2
----
-3877

skipif mysql # not compatible
query I rowsort label-784
SELECT 68 * + - 57 + COUNT ( * ) * ( - COUNT ( - 56 ) ) AS col2
----
-3877

query I rowsort
SELECT DISTINCT - 46 * - + COALESCE ( - 59, - ( + 29 ), + 4 ) AS col0
----
-2714

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

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL 69 * + + ( - COUNT ( * ) ) - + 43 col2
----
-112

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT 17 - - + 20 + - MAX( ALL + 48 ) + - ( 57 ) * + + COUNT( * ) DIV - 70 + + 57
----
46

skipif mysql # not compatible
query I rowsort label-788
SELECT 17 - - + 20 + - MAX ( ALL + 48 ) + - ( 57 ) * + + COUNT ( * ) / - 70 + + 57
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT 61 DIV 91 * ( - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-789
SELECT 61 / 91 * ( - 29 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT COUNT( * ) * + - 93 + - - 33
----
-60

skipif mysql # not compatible
query I rowsort label-791
SELECT COUNT ( * ) * + - 93 + - - 33
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT 39 * + COUNT( + 41 ) DIV - COUNT( * ) - + + 73 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-792
SELECT 39 * + COUNT ( + 41 ) / - COUNT ( * ) - + + 73 AS col0
----
-112

query II rowsort
SELECT - 42 AS col0, + 43 - + 61 col2
----
-42
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-794
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-795
SELECT + 95 AS col0, CAST( - + 21 AS SIGNED )
----
95
-21

skipif mysql # not compatible
query II rowsort label-795
SELECT + 95 AS col0, CAST ( - + 21 AS INTEGER )
----
95
-21

query I rowsort
SELECT ALL - CASE + 55 WHEN - 50 THEN NULL ELSE + 8 END AS col0
----
-8

query II rowsort
SELECT DISTINCT - 97 col0, 53 * - 36
----
-97
-1908

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

query I rowsort
SELECT ALL - COALESCE ( - 94, 62 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-800
SELECT + CAST( - 78 AS SIGNED ) DIV + - CAST( - 44 AS SIGNED ) + + NULLIF ( - CAST( + + 15 AS SIGNED ), - 85 ) + - - 86 * 80
----
6864

skipif mysql # not compatible
query I rowsort label-800
SELECT + CAST ( - 78 AS INTEGER ) / + - CAST ( - 44 AS INTEGER ) + + NULLIF ( - CAST ( + + 15 AS INTEGER ), - 85 ) + - - 86 * 80
----
6864

query II rowsort
SELECT ALL - 84 * 77, - 25 AS col2
----
-6468
-25

query I rowsort
SELECT 83 * - 10
----
-830

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT ALL + 11 + 73 DIV + 38
----
12

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL + 11 + 73 / + 38
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-805
SELECT + 63 AS col2, 13 * COUNT( * ) AS col2
----
63
13

skipif mysql # not compatible
query II rowsort label-805
SELECT + 63 AS col2, 13 * COUNT ( * ) AS col2
----
63
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-806
SELECT 73 DIV 54 * + ( - 14 ) * + 97 + - 13, + COUNT( * ) AS col1, + CASE WHEN NULLIF ( - 55, + 17 + COUNT( ALL - 18 ) ) IS NOT NULL THEN - + COUNT( * ) WHEN 29 * - 3 + + 13 * COUNT( DISTINCT + 22 ) IS NOT NULL THEN NULL ELSE NULL END DIV 98 col1
----
-1371
1
0

skipif mysql # not compatible
query III rowsort label-806
SELECT 73 / 54 * + ( - 14 ) * + 97 + - 13, + COUNT ( * ) AS col1, + CASE WHEN NULLIF ( - 55, + 17 + COUNT ( ALL - 18 ) ) IS NOT NULL THEN - + COUNT ( * ) WHEN 29 * - 3 + + 13 * COUNT ( DISTINCT + 22 ) IS NOT NULL THEN NULL ELSE NULL END / 98 col1
----
-1371
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT 75 * COALESCE ( - + 43, 31 * + - COUNT( * ) ) + + COUNT( * )
----
-3224

skipif mysql # not compatible
query I rowsort label-807
SELECT 75 * COALESCE ( - + 43, 31 * + - COUNT ( * ) ) + + COUNT ( * )
----
-3224

query I rowsort
SELECT ALL - 39 + - + 7
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT - 16 DIV + 51 + - - 82
----
82

skipif mysql # not compatible
query I rowsort label-809
SELECT - 16 / + 51 + - - 82
----
82

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

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

query II rowsort
SELECT + 27 col0, CASE 94 WHEN - 31 THEN - NULLIF ( - AVG ( 10 ), 55 ) + 70 / - 58 END * + ( ( 54 ) ) AS col2
----
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT + 94 + CASE 69 WHEN 49 * 2 THEN 45 + - COUNT( * ) WHEN + 16 * + - 9 + + 71 / + 34 * + 8 THEN + 71 WHEN - 97 THEN NULL END / - NULLIF ( + 11, + 50 * - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT + 94 + CASE 69 WHEN 49 * 2 THEN 45 + - COUNT ( * ) WHEN + 16 * + - 9 + + 71 / + 34 * + 8 THEN + 71 WHEN - 97 THEN NULL END / - NULLIF ( + 11, + 50 * - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL - 39 + - - 94 + + + 89 * MIN( - 5 ) AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL - 39 + - - 94 + + + 89 * MIN ( - 5 ) AS col2
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-814
SELECT + - 58 AS col0, - SUM( 59 ) AS col2
----
-58
-59

skipif mysql # not compatible
query II rowsort label-814
SELECT + - 58 AS col0, - SUM ( 59 ) AS col2
----
-58
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT DISTINCT - - 54 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT - - 54 / 45
----
1

query I rowsort
SELECT + 7 - - 52 col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT 35 * - - 36 AS col2, + 56 * + + NULLIF ( - 41, 2 * + COALESCE ( + 14, 80 + 38, 92 * - - MAX( DISTINCT 31 ), - 54 ) * + - NULLIF ( + ( NULLIF ( - 16, - 95 / 35 ) ), - 88 ) ) + MIN( DISTINCT + 43 )
----
1260
-2253

skipif mysql # not compatible
query II rowsort label-817
SELECT 35 * - - 36 AS col2, + 56 * + + NULLIF ( - 41, 2 * + COALESCE ( + 14, 80 + 38, 92 * - - MAX ( DISTINCT 31 ), - 54 ) * + - NULLIF ( + ( NULLIF ( - 16, - 95 / 35 ) ), - 88 ) ) + MIN ( DISTINCT + 43 )
----
1260
-2253

query I rowsort
SELECT ALL 47 * - 54
----
-2538

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT - CASE COUNT( * ) WHEN - 2 THEN NULL ELSE 33 * COUNT( * ) - - 82 + - 48 + + ( + + 2 ) * + 47 END * COUNT( * ) AS col2, + 71 * 88
----
-161
6248

skipif mysql # not compatible
query II rowsort label-819
SELECT - CASE COUNT ( * ) WHEN - 2 THEN NULL ELSE 33 * COUNT ( * ) - - 82 + - 48 + + ( + + 2 ) * + 47 END * COUNT ( * ) AS col2, + 71 * 88
----
-161
6248

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT - COALESCE ( - 57, COUNT( * ), + 53 + + 70 - 28 * - + 5 * - - 26 * 97 )
----
57

skipif mysql # not compatible
query I rowsort label-820
SELECT - COALESCE ( - 57, COUNT ( * ), + 53 + + 70 - 28 * - + 5 * - - 26 * 97 )
----
57

query I rowsort
SELECT ALL 74 - - - ( - NULLIF ( - - 71, - 26 ) )
----
145

query II rowsort
SELECT - 49 AS col0, 90 AS col2
----
-49
90

query I rowsort
SELECT ALL - + 49 * - 85
----
4165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT DISTINCT - 50 * + - CAST( NULL AS SIGNED ) + 29 + - MIN( DISTINCT + + 36 ) - + 4 + 16 * - + ( + COUNT( DISTINCT + - 8 ) ) * + 27 * + + COUNT( * ) + - + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT - 50 * + - CAST ( NULL AS INTEGER ) + 29 + - MIN ( DISTINCT + + 36 ) - + 4 + 16 * - + ( + COUNT ( DISTINCT + - 8 ) ) * + 27 * + + COUNT ( * ) + - + 84 AS col0
----
NULL

query I rowsort
SELECT ALL + 92 - - 7 - + 52
----
47

query I rowsort
SELECT - COALESCE ( - 30, 10 ) AS col2
----
30

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

query I rowsort
SELECT 75 - - + 40 AS col1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT 6 * CAST( + - 12 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-829
SELECT 6 * CAST ( + - 12 AS INTEGER )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT DISTINCT + NULLIF ( + 72, - 75 - CAST( NULL AS SIGNED ) ) * 27
----
1944

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + NULLIF ( + 72, - 75 - CAST ( NULL AS INTEGER ) ) * 27
----
1944

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-831
SELECT - MIN( + ( + ( - + CAST( NULL AS DECIMAL ) ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT - MIN ( + ( + ( - + CAST ( NULL AS REAL ) ) ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT MAX( - 5 ) * 33 AS col2
----
-165

skipif mysql # not compatible
query I rowsort label-832
SELECT MAX ( - 5 ) * 33 AS col2
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-833
SELECT DISTINCT 25 + + + CASE - + 53 WHEN - 94 THEN + COUNT( * ) * - - ( + - 75 ) + COUNT( + 93 ) WHEN - + 37 * - COUNT( * ) + - + ( - COALESCE ( - + 95, - 61 + + CAST( - + CASE - 56 WHEN ( + 7 ) * - 78 + + COUNT( * ) THEN NULL WHEN - COUNT( * ) * COUNT( * ) THEN - 26 + CAST( NULL AS SIGNED ) / - SUM( 95 + 7 ) ELSE ( ( - 34 ) ) + + 6 END AS SIGNED ), + 89 / + 50 + ( 10 ), + 43 + 36 ) ) * 9 THEN NULL END * - 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT 25 + + + CASE - + 53 WHEN - 94 THEN + COUNT ( * ) * - - ( + - 75 ) + COUNT ( + 93 ) WHEN - + 37 * - COUNT ( * ) + - + ( - COALESCE ( - + 95, - 61 + + CAST ( - + CASE - 56 WHEN ( + 7 ) * - 78 + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * COUNT ( * ) THEN - 26 + CAST ( NULL AS INTEGER ) / - SUM ( 95 + 7 ) ELSE ( ( - 34 ) ) + + 6 END AS INTEGER ), + 89 / + 50 + ( 10 ), + 43 + 36 ) ) * 9 THEN NULL END * - 82 col1
----
NULL

query II rowsort
SELECT 77 + + 96 * + 20 AS col1, 72 - + + 82 * + 98 AS col1
----
1997
-7964

query I rowsort
SELECT 64 * - NULLIF ( 0, - 98 )
----
0

query I rowsort
SELECT 3 + ( + - 74 ) + + 7 * - 76 AS col0
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT + CASE + 27 WHEN MIN( - - 90 ) * - + 88 / - 37 THEN - 63 ELSE - ( - 5 ) END
----
5

skipif mysql # not compatible
query I rowsort label-837
SELECT + CASE + 27 WHEN MIN ( - - 90 ) * - + 88 / - 37 THEN - 63 ELSE - ( - 5 ) END
----
5

query I rowsort
SELECT NULLIF ( 54, - - 69 / 42 + - ( + 22 ) * + 18 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT DISTINCT - 35 * - + CASE - ( + MAX( DISTINCT - 82 ) ) WHEN + - 37 + + 63 / + + 83 - - 52 THEN 62 * - - ( 78 ) * COUNT( * ) WHEN - 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - 35 * - + CASE - ( + MAX ( DISTINCT - 82 ) ) WHEN + - 37 + + 63 / + + 83 - - 52 THEN 62 * - - ( 78 ) * COUNT ( * ) WHEN - 75 THEN NULL END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL 87 * 43 * 63 + - - COUNT( - + 34 ) * 41
----
235724

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL 87 * 43 * 63 + - - COUNT ( - + 34 ) * 41
----
235724

query I rowsort
SELECT DISTINCT - 35 * - 96 AS col0
----
3360

query I rowsort
SELECT - + 79 * + 90 + - + 2
----
-7112

query I rowsort
SELECT ALL - + 2 * 47 * + + 26
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT - 5 + - 97 * - 38 + COUNT( * )
----
3682

skipif mysql # not compatible
query I rowsort label-846
SELECT - 5 + - 97 * - 38 + COUNT ( * )
----
3682

query I rowsort
SELECT + ( - 92 ) + + - 1 * - 79 AS col2
----
-13

query I rowsort
SELECT DISTINCT + - 62
----
-62

query I rowsort
SELECT ALL - 13 * - 74 + - 60
----
902

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL + COALESCE ( MIN( ( - 75 ) ), - + 60 * - - 42 )
----
-75

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL + COALESCE ( MIN ( ( - 75 ) ), - + 60 * - - 42 )
----
-75

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

query I rowsort
SELECT + - 52 + - 1 AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT DISTINCT + + 84 DIV + 2 - + 85 col2
----
-43

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + + 84 / + 2 - + 85 col2
----
-43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-856
SELECT + COUNT( * ) + - COUNT( ALL + CAST( 93 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-856
SELECT + COUNT ( * ) + - COUNT ( ALL + CAST ( 93 AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-857
SELECT - - 75 DIV CASE + NULLIF ( MIN( - 5 ), 76 ) WHEN 16 + + - 65 THEN 54 WHEN - 71 * + + 11 * CASE 6 WHEN + - COUNT( * ) DIV - 81 * - 55 + + 58 * COUNT( * ) THEN 74 + - COALESCE ( - 92 + 56, + 6 - CAST( NULL AS SIGNED ) ) END * - COUNT( * ) + + CAST( NULL AS SIGNED ) THEN NULL ELSE MIN( DISTINCT 41 ) END * + COUNT( * ) + + 43 * 43
----
1850

skipif mysql # not compatible
query I rowsort label-857
SELECT - - 75 / CASE + NULLIF ( MIN ( - 5 ), 76 ) WHEN 16 + + - 65 THEN 54 WHEN - 71 * + + 11 * CASE 6 WHEN + - COUNT ( * ) / - 81 * - 55 + + 58 * COUNT ( * ) THEN 74 + - COALESCE ( - 92 + 56, + 6 - CAST ( NULL AS INTEGER ) ) END * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN NULL ELSE MIN ( DISTINCT 41 ) END * + COUNT ( * ) + + 43 * 43
----
1850

query I rowsort
SELECT + 18 + 70 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL + - 42 + COUNT( * ) + - + 50 * - 83
----
4109

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + - 42 + COUNT ( * ) + - + 50 * - 83
----
4109

query I rowsort
SELECT ALL 73 + + 47 * 7 AS col0
----
402

query II rowsort
SELECT 67, + 85 + + 47 AS col0
----
67
132

query I rowsort
SELECT DISTINCT 8 + 64
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT + CASE + 1 WHEN + + 99 THEN - 57 / CASE + - COUNT( * ) WHEN 51 + + ( + ( - SUM( DISTINCT 59 ) ) ) THEN - - MIN( 25 ) WHEN - + 64 + 95 THEN NULL ELSE NULL END WHEN - ( + - 37 ) * - 54 + - SUM( 19 ) * 5 THEN 82 / 15 END + - 50 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT + CASE + 1 WHEN + + 99 THEN - 57 / CASE + - COUNT ( * ) WHEN 51 + + ( + ( - SUM ( DISTINCT 59 ) ) ) THEN - - MIN ( 25 ) WHEN - + 64 + 95 THEN NULL ELSE NULL END WHEN - ( + - 37 ) * - 54 + - SUM ( 19 ) * 5 THEN 82 / 15 END + - 50 * - COUNT ( * )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-865
SELECT - 1 * - - COALESCE ( COUNT ( * ), - 38 + - + 3 )
----
-1

query I rowsort
SELECT DISTINCT 77 + + 44 * + + 18
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT 8 / - + 32 + + 61 + + - 25 + + 46 * CASE COUNT( * ) WHEN 16 / 44 * 13 - + MAX( ALL - 6 ) THEN + 50 WHEN + COALESCE ( + 41, - 37 * - 82, - 80 ) + 82 THEN + 10 WHEN 3 THEN NULL WHEN - 78 THEN + 62 - COUNT( * ) ELSE NULL END / 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT 8 / - + 32 + + 61 + + - 25 + + 46 * CASE COUNT ( * ) WHEN 16 / 44 * 13 - + MAX ( ALL - 6 ) THEN + 50 WHEN + COALESCE ( + 41, - 37 * - 82, - 80 ) + 82 THEN + 10 WHEN 3 THEN NULL WHEN - 78 THEN + 62 - COUNT ( * ) ELSE NULL END / 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT ALL + 63, - COUNT( + 15 ) * + 99 + - COALESCE ( - 25, - ( - COALESCE ( + - 4, - - COUNT( * ), - 23 ) ) ) AS col2
----
63
-74

skipif mysql # not compatible
query II rowsort label-868
SELECT ALL + 63, - COUNT ( + 15 ) * + 99 + - COALESCE ( - 25, - ( - COALESCE ( + - 4, - - COUNT ( * ), - 23 ) ) ) AS col2
----
63
-74

query I rowsort
SELECT 12 * 21 + 88 + + 96 AS col1
----
436

query I rowsort
SELECT ALL 71 * + 90
----
6390

query II rowsort
SELECT DISTINCT + 41, + 90 AS col0
----
41
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-872
SELECT ALL + 66 DIV + - 75 - 75 - 94 * + COUNT( * ) + - 40 * NULLIF ( + 65, - 1 )
----
-2769

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + 66 / + - 75 - 75 - 94 * + COUNT ( * ) + - 40 * NULLIF ( + 65, - 1 )
----
-2769

query II rowsort
SELECT ALL + 83 AS col2, 24 AS col0
----
83
24

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

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

query I rowsort
SELECT - 76 + 78 * + - 69 * + 81 * COALESCE ( - 76, + 34, + + 18 )
----
33131516

query I rowsort
SELECT - 35 * 37 * + 82 AS col0
----
-106190

query II rowsort
SELECT + 66 col1, 7 + - 46 col1
----
66
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL + SUM( + ( + + 75 ) ) * - 52 + - 76 + 30 + - - 35 + + + 23 * + 5 - + 39 AS col0
----
-3835

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + SUM ( + ( + + 75 ) ) * - 52 + - 76 + 30 + - - 35 + + + 23 * + 5 - + 39 AS col0
----
-3835

query II rowsort
SELECT 57 AS col1, + NULLIF ( - ( + 59 ), - 80 ) + 33
----
57
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - - 72 * + COUNT( - 68 ) - + 14 + 82
----
140

skipif mysql # not compatible
query I rowsort label-880
SELECT - - 72 * + COUNT ( - 68 ) - + 14 + 82
----
140

query I rowsort
SELECT ALL - 61 * + 24
----
-1464

query II rowsort
SELECT ALL + + 13 AS col2, COALESCE ( + + 25, + + 2 )
----
13
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT DISTINCT + NULLIF ( - 55, + - ( - CAST( NULL AS SIGNED ) ) - COUNT( * ) / - - 44 * 96 )
----
-55

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT + NULLIF ( - 55, + - ( - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) / - - 44 * 96 )
----
-55

query II rowsort
SELECT - 66 * 14 - - + 43 AS col1, - 89 + 88
----
-881
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-885
SELECT ALL + + 82 * COALESCE ( - + 90, - + 25 ), + 83 DIV 87 AS col1
----
-7380
0

skipif mysql # not compatible
query II rowsort label-885
SELECT ALL + + 82 * COALESCE ( - + 90, - + 25 ), + 83 / 87 AS col1
----
-7380
0

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

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

query I rowsort
SELECT 20 * + 62 * + - 90 + + + 27 + + 43
----
-111530

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

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

query I rowsort
SELECT + + NULLIF ( 10, + + 95 + 32 )
----
10

query I rowsort
SELECT - 32 * 33 + - 92
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + + 40 * + + MAX( ALL - 92 ) AS col1
----
-3680

skipif mysql # not compatible
query I rowsort label-891
SELECT + + 40 * + + MAX ( ALL - 92 ) AS col1
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT 57 * + - 85 + + - 83 + + MAX( - + 46 ) AS col2
----
-4974

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT 57 * + - 85 + + - 83 + + MAX ( - + 46 ) AS col2
----
-4974

query I rowsort
SELECT DISTINCT + 52 * - - 30 + + 35 * - - 29
----
2575

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

query I rowsort
SELECT ALL 67 + + + 46
----
113

query I rowsort
SELECT ALL + 25 + + 59 AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-897
SELECT - COUNT( * ) + + + 95 AS col1, + 17 DIV 70
----
94
0

skipif mysql # not compatible
query II rowsort label-897
SELECT - COUNT ( * ) + + + 95 AS col1, + 17 / 70
----
94
0

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT + 25 - + 82 * - COALESCE ( 48, + 95 * + 26 ) * 63 + - 82 DIV - ( + 29 )
----
247995

skipif mysql # not compatible
query I rowsort label-898
SELECT + 25 - + 82 * - COALESCE ( 48, + 95 * + 26 ) * 63 + - 82 / - ( + 29 )
----
247995

query I rowsort
SELECT ALL 31 * + 22 AS col0
----
682

query I rowsort
SELECT + 1 - + 58
----
-57

query I rowsort
SELECT DISTINCT + 62 * + + 11
----
682

query I rowsort
SELECT DISTINCT - 7 - 62 AS col1
----
-69

query I rowsort
SELECT ALL + 53 * 13 * + + ( + - 40 ) AS col0
----
-27560

query I rowsort
SELECT 2 + + 66 AS col1
----
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-906
SELECT SUM( DISTINCT + 57 ) + - + 4 * - 32, - CAST( NULL AS SIGNED ) / - MAX( - 77 ) AS col1
----
185
NULL

skipif mysql # not compatible
query II rowsort label-906
SELECT SUM ( DISTINCT + 57 ) + - + 4 * - 32, - CAST ( NULL AS INTEGER ) / - MAX ( - 77 ) AS col1
----
185
NULL

query I rowsort
SELECT 98 + - 87 AS col2
----
11

query I rowsort
SELECT - 53 * - 24 + 32
----
1304

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT NULLIF ( - 75, + COUNT( * ) ) * - 73 + + COUNT( DISTINCT + - 88 ) AS col1
----
5476

skipif mysql # not compatible
query I rowsort label-909
SELECT NULLIF ( - 75, + COUNT ( * ) ) * - 73 + + COUNT ( DISTINCT + - 88 ) AS col1
----
5476

query I rowsort
SELECT DISTINCT 36 * 41 + + + 72
----
1548

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT ALL 84 DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL 84 / - 58 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-914
SELECT DISTINCT + 63 * - 60 col2, - 68 * - MIN( + - 37 ) AS col2
----
-3780
-2516

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT + 63 * - 60 col2, - 68 * - MIN ( + - 37 ) AS col2
----
-3780
-2516

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT - 50 DIV 5 * + 32 AS col2
----
-320

skipif mysql # not compatible
query I rowsort label-915
SELECT - 50 / 5 * + 32 AS col2
----
-320

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + COUNT( * ) + 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-918
SELECT + COUNT ( * ) + 44 AS col2
----
45

query I rowsort
SELECT + 86 + + - 53 * + - 2 * 90 AS col0
----
9626

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

query I rowsort
SELECT ALL + 89 + + - 33 * 88 AS col0
----
-2815

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

skipif mysql # not compatible
query I rowsort label-922
SELECT + - COUNT ( * ) * + 1 * 40 + - + 92 AS col1
----
-132

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

query I rowsort
SELECT - 53 + ( 57 ) AS col2
----
4

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

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - + CAST ( + 48 AS INTEGER ) AS col0
----
-48

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

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT - 66 + - COUNT( * ) AS col1, ( + 70 )
----
-67
70

skipif mysql # not compatible
query II rowsort label-927
SELECT - 66 + - COUNT ( * ) AS col1, ( + 70 )
----
-67
70

query I rowsort
SELECT ALL 36 + ( + 19 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-929
SELECT - 33 AS col1, 99 * + COUNT( ALL + + 40 ) - ( - MIN( ALL 75 ) ) - 4 * - 68
----
-33
446

skipif mysql # not compatible
query II rowsort label-929
SELECT - 33 AS col1, 99 * + COUNT ( ALL + + 40 ) - ( - MIN ( ALL 75 ) ) - 4 * - 68
----
-33
446

query I rowsort
SELECT 93 + + 55 AS col0
----
148

query I rowsort
SELECT 67 * ( - - 51 )
----
3417

query I rowsort
SELECT - 82 * 19 * ( + ( + 70 ) ) * - 10 + + + 22 AS col2
----
1090622

query I rowsort
SELECT ALL + 20 * + 80 * - 7
----
-11200

query II rowsort
SELECT DISTINCT 43, 66 AS col0
----
43
66

query I rowsort
SELECT 12 + + 26 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT 93 * + + COALESCE ( - + COUNT( * ), - 98 ) * + 14 + - 52 * - ( + + 2 ) AS col0
----
-1198

skipif mysql # not compatible
query I rowsort label-936
SELECT 93 * + + COALESCE ( - + COUNT ( * ), - 98 ) * + 14 + - 52 * - ( + + 2 ) AS col0
----
-1198

query II rowsort
SELECT 99 + - + 82 - + - 3, 42 AS col1
----
20
42

query I rowsort
SELECT DISTINCT - 76 - - 95
----
19

query I rowsort
SELECT 18 * - 53 AS col0
----
-954

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT 8 DIV + ( - - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-940
SELECT 8 / + ( - - 31 )
----
0

query I rowsort
SELECT 43 + - 93
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( 13 AS SIGNED ) / - MAX( DISTINCT 92 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( 13 AS INTEGER ) / - MAX ( DISTINCT 92 ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT DISTINCT + CASE + 66 WHEN 74 THEN - COUNT( * ) * - COUNT( * ) + - 79 ELSE NULL END * CAST( - 63 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT + CASE + 66 WHEN 74 THEN - COUNT ( * ) * - COUNT ( * ) + - 79 ELSE NULL END * CAST ( - 63 AS INTEGER )
----
NULL

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

query I rowsort
SELECT 27 * + 16 + 93 AS col2
----
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-946
SELECT ALL + - 93 * COUNT( * ) + 71 * 30 DIV 1 + + 22 AS col1
----
2059

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + - 93 * COUNT ( * ) + 71 * 30 / 1 + + 22 AS col1
----
2059

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT - 44 + + COUNT( * ) + - 91 * COUNT( * ) * 2 / 33 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT - 44 + + COUNT ( * ) + - 91 * COUNT ( * ) * 2 / 33 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-951
SELECT COUNT ( * ) * + + 96 / - ( - + 84 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 51 + + 93 * + 89 col2
----
8328

query I rowsort
SELECT DISTINCT - 27 col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-954
SELECT ALL CASE - 37 WHEN SUM( DISTINCT - ( - 24 ) ) * - 11 THEN NULL WHEN + 32 THEN ( + SUM( CAST( - - ( + - 89 ) AS DECIMAL ) ) ) * - 59 * - 40 * + COUNT( * ) * 33 WHEN + - 16 THEN - + 83 ELSE NULL END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL CASE - 37 WHEN SUM ( DISTINCT - ( - 24 ) ) * - 11 THEN NULL WHEN + 32 THEN ( + SUM ( CAST ( - - ( + - 89 ) AS REAL ) ) ) * - 59 * - 40 * + COUNT ( * ) * 33 WHEN + - 16 THEN - + 83 ELSE NULL END + + 97
----
NULL

query I rowsort
SELECT - 24 * 83 * 35
----
-69720

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL + ( 45 ) + 38 + + - CASE - 77 WHEN + + 50 THEN + - ( + 61 ) / - + 98 WHEN - + 16 + - 60 THEN - 35 + 14 - + CASE COUNT( * ) WHEN - ( + 32 ) * + + 9 * - - COUNT( * ) + 78 THEN - 50 ELSE NULL END * 44 ELSE NULL END / + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL + ( 45 ) + 38 + + - CASE - 77 WHEN + + 50 THEN + - ( + 61 ) / - + 98 WHEN - + 16 + - 60 THEN - 35 + 14 - + CASE COUNT ( * ) WHEN - ( + 32 ) * + + 9 * - - COUNT ( * ) + 78 THEN - 50 ELSE NULL END * 44 ELSE NULL END / + 33
----
NULL

query I rowsort
SELECT ALL + 57 + 67 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT - ( COALESCE ( ( + 0 ), + - COUNT( * ), 19, - COUNT( * ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-958
SELECT - ( COALESCE ( ( + 0 ), + - COUNT ( * ), 19, - COUNT ( * ) ) ) AS col2
----
0

query I rowsort
SELECT - 54 col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT ALL - 32, - MAX( + + 45 ) * + - 75 - + COUNT( * ) + + + ( - 66 ) AS col2
----
-32
3308

skipif mysql # not compatible
query II rowsort label-960
SELECT ALL - 32, - MAX ( + + 45 ) * + - 75 - + COUNT ( * ) + + + ( - 66 ) AS col2
----
-32
3308

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

skipif mysql # not compatible
query I rowsort label-961
SELECT 61 * + 1 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT 3 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-962
SELECT 3 / + 25
----
0

query I rowsort
SELECT 74 * 49
----
3626

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT + MAX( + 37 ) - - 89 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-965
SELECT + MAX ( + 37 ) - - 89 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT + 66 - + 26 + - 62 + + 29 + + CASE 89 WHEN + - ( + MAX( - 83 ) ) THEN + COUNT( * ) ELSE NULL END / - 84 * + 98 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT + 66 - + 26 + - 62 + + 29 + + CASE 89 WHEN + - ( + MAX ( - 83 ) ) THEN + COUNT ( * ) ELSE NULL END / - 84 * + 98 col1
----
NULL

query I rowsort
SELECT ALL - ( - + 50 ) * + 90 AS col2
----
4500

query I rowsort
SELECT - 83 * + + 11 * + 37 AS col2
----
-33781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT + CASE 30 WHEN - ( - 85 ) + 33 THEN 70 END + + CAST( NULL AS SIGNED ) + + + 30 + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT + CASE 30 WHEN - ( - 85 ) + 33 THEN 70 END + + CAST ( NULL AS INTEGER ) + + + 30 + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + 30 + ( + 27 ) * + 89 - COUNT( * )
----
2432

skipif mysql # not compatible
query I rowsort label-970
SELECT + 30 + ( + 27 ) * + 89 - COUNT ( * )
----
2432

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT + 6 + 74 DIV + + CASE + 12 WHEN 91 DIV + 72 * AVG ( ALL + 17 ) + + 43 + - + 39 * - 13 * + - 83 THEN + 25 DIV AVG ( DISTINCT - 98 ) + 16 ELSE 57 * + - 60 END + - 32 * + + 18 AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-972
SELECT + 6 + 74 / + + CASE + 12 WHEN 91 / + 72 * AVG ( ALL + 17 ) + + 43 + - + 39 * - 13 * + - 83 THEN + 25 / AVG ( DISTINCT - 98 ) + 16 ELSE 57 * + - 60 END + - 32 * + + 18 AS col2
----
-570

query I rowsort
SELECT - 12 - - + 35 AS col0
----
23

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

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

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

query I rowsort
SELECT - 17 * 24
----
-408

query I rowsort
SELECT - 76 + - 48 + + 25
----
-99

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

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

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

skipif mysql # not compatible
query I rowsort label-979
SELECT - + 68 / - 38 / + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT ALL + + 88 + - 45
----
43

query II rowsort
SELECT 82, 3 col1
----
82
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT DISTINCT + + COUNT( 30 ) * - - 26 + - + 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + + COUNT ( 30 ) * - - 26 + - + 76 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT + 41 DIV + ( + 13 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-983
SELECT + 41 / + ( + 13 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-984
SELECT + 96 * + COUNT( * ) + + - ( + - NULLIF ( - CASE 65 WHEN - 11 + - ( - + COUNT( * ) ) THEN - 90 / - - SUM( - + ( CAST( NULL AS DECIMAL ) ) ) * - 61 END, + COALESCE ( - 48, + CAST( CASE COUNT( * ) WHEN + 1 THEN 25 * 77 - 14 WHEN 13 THEN 23 * 3 WHEN 9 THEN 90 * + 28 END AS SIGNED ) + 36 ) * + 73 + ( - CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT + 96 * + COUNT ( * ) + + - ( + - NULLIF ( - CASE 65 WHEN - 11 + - ( - + COUNT ( * ) ) THEN - 90 / - - SUM ( - + ( CAST ( NULL AS REAL ) ) ) * - 61 END, + COALESCE ( - 48, + CAST ( CASE COUNT ( * ) WHEN + 1 THEN 25 * 77 - 14 WHEN 13 THEN 23 * 3 WHEN 9 THEN 90 * + 28 END AS INTEGER ) + 36 ) * + 73 + ( - CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT + MAX( ALL - 92 ) * + + 81 AS col0
----
-7452

skipif mysql # not compatible
query I rowsort label-985
SELECT + MAX ( ALL - 92 ) * + + 81 AS col0
----
-7452

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-986
SELECT ALL 63 * + + CASE + 6 WHEN - 87 + + ( CAST( NULL AS DECIMAL ) ) * 59 THEN - 96 WHEN + 93 - - 16 THEN NULL ELSE + 86 END + - 84 - 60 + 48 * - - 55
----
7914

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL 63 * + + CASE + 6 WHEN - 87 + + ( CAST ( NULL AS REAL ) ) * 59 THEN - 96 WHEN + 93 - - 16 THEN NULL ELSE + 86 END + - 84 - 60 + 48 * - - 55
----
7914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT DISTINCT + + CAST( CASE - 8 WHEN + - 61 THEN NULL ELSE + 17 END AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT + + CAST ( CASE - 8 WHEN + - 61 THEN NULL ELSE + 17 END AS INTEGER ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT ALL + 53 * - - MIN( CAST( NULL AS SIGNED ) ) * - - 86 + - + CASE + 49 WHEN - 94 * COALESCE ( + 12, + 36 ) + + - 79 + + + ( + 17 ) + - + NULLIF ( - 74, + COALESCE ( + ( + 49 ), + - 12 * MAX( DISTINCT - + 69 ) + COALESCE ( - 77 + - 84, - 34 ) ) ) THEN NULL ELSE COALESCE ( MAX( DISTINCT 88 ), 99 + 27, - NULLIF ( - 70, ( + 71 ) ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + 53 * - - MIN ( CAST ( NULL AS INTEGER ) ) * - - 86 + - + CASE + 49 WHEN - 94 * COALESCE ( + 12, + 36 ) + + - 79 + + + ( + 17 ) + - + NULLIF ( - 74, + COALESCE ( + ( + 49 ), + - 12 * MAX ( DISTINCT - + 69 ) + COALESCE ( - 77 + - 84, - 34 ) ) ) THEN NULL ELSE COALESCE ( MAX ( DISTINCT 88 ), 99 + 27, - NULLIF ( - 70, ( + 71 ) ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-989
SELECT + - 11 / + + 64 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT + - 11 / + + 64 + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT - + 67 + + 37 + + 96 * 40 AS col1, - 33 + 0 AS col0
----
3810
-33

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

query I rowsort
SELECT ALL 83 * + 2 + - 28 AS col1
----
138

query I rowsort
SELECT - + ( + COALESCE ( - 67, ( 44 ) * 9 ) ) * + 63 + 52 AS col1
----
4273

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

skipif mysql # not compatible
query I rowsort label-994
SELECT - COUNT ( * ) + + 52 AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-995
SELECT - 91 * COUNT( * ) + + + COALESCE ( 48, + - 64 + - - 34 * + 27 DIV 93 * + - 24 ) + - - 48 + + 6 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-995
SELECT - 91 * COUNT ( * ) + + + COALESCE ( 48, + - 64 + - - 34 * + 27 / 93 * + - 24 ) + - - 48 + + 6 AS col1
----
11

query I rowsort
SELECT + 2 + - 15 + 27
----
14

query I rowsort
SELECT ALL 8 * + - 37 AS col1
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT 57 * - COALESCE ( + COUNT( * ), + 96, + 20 + - 79 * 72 + 25, - 5 ) * 34 + - - COUNT( - 15 ) AS col1
----
-1937

skipif mysql # not compatible
query I rowsort label-998
SELECT 57 * - COALESCE ( + COUNT ( * ), + 96, + 20 + - 79 * 72 + 25, - 5 ) * 34 + - - COUNT ( - 15 ) AS col1
----
-1937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT + CAST( - 73 AS SIGNED ) * 17 * - - 68 + - 15 - + 95 * 21 * - 38
----
-8593

skipif mysql # not compatible
query I rowsort label-999
SELECT + CAST ( - 73 AS INTEGER ) * 17 * - - 68 + - 15 - + 95 * 21 * - 38
----
-8593

query II rowsort
SELECT + 66 + - 73 AS col2, + 78 * - 61 + - 23 * 2
----
-7
-4804

query I rowsort
SELECT ALL 72 * + 4 AS col0
----
288

query I rowsort
SELECT + 42 + - 44 * 20 AS col2
----
-838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1003
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1005
SELECT + 36 + + - CAST( NULL AS SIGNED ), MIN( 13 ) AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-1005
SELECT + 36 + + - CAST ( NULL AS INTEGER ), MIN ( 13 ) AS col2
----
NULL
13

query I rowsort
SELECT + NULLIF ( + 89, - 87 ) * - 61
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT 31 * 50 + - - MAX( DISTINCT - 6 ) AS col2
----
1544

skipif mysql # not compatible
query I rowsort label-1007
SELECT 31 * 50 + - - MAX ( DISTINCT - 6 ) AS col2
----
1544

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + 24 * + CASE - CASE + 79 WHEN + 20 THEN - 53 ELSE NULL END WHEN - 66 * COUNT( DISTINCT 26 ) THEN - + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 24 * + CASE - CASE + 79 WHEN + 20 THEN - 53 ELSE NULL END WHEN - 66 * COUNT ( DISTINCT 26 ) THEN - + 98 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT DISTINCT 36 + - 28 + COUNT( * ) + 44 DIV 1 DIV + + COUNT( * ) col2
----
53

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT 36 + - 28 + COUNT ( * ) + 44 / 1 / + + COUNT ( * ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL CASE 21 WHEN 29 THEN - + 42 END / + MAX( DISTINCT 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL CASE 21 WHEN 29 THEN - + 42 END / + MAX ( DISTINCT 10 )
----
NULL

query II rowsort
SELECT + 94 + - 79 + 17, 47 col0
----
32
47

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

query I rowsort
SELECT + 47 - 30
----
17

query I rowsort
SELECT DISTINCT + - 10 + + - 90 AS col2
----
-100

query I rowsort
SELECT - - 57 + + 62 AS col1
----
119

query I rowsort
SELECT ALL - 51 + - 54 + - ( - 29 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL + 93 + - COUNT( * ) * + ( CASE - 20 WHEN - + 87 THEN NULL ELSE + + 94 END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + 93 + - COUNT ( * ) * + ( CASE - 20 WHEN - + 87 THEN NULL ELSE + + 94 END ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + + 21 / - 97 + - ( + CASE + 55 WHEN - 3 + 7 THEN + 59 END ) - 17 - - + 7 - 74 / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT + + 21 / - 97 + - ( + CASE + 55 WHEN - 3 + 7 THEN + 59 END ) - 17 - - + 7 - 74 / - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 36
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1020
SELECT ALL + COUNT( + + 12 ) DIV - 24 - - - MAX( ALL + + 62 ) - - ( + + 50 ) DIV NULLIF ( + 37, MAX( ALL - 89 ) + 50 ) * - ( - 35 ) + + 36 AS col0, 1 DIV - 82 * - + 40 * - - 88 - + ( - - 73 )
----
9
-73

skipif mysql # not compatible
query II rowsort label-1020
SELECT ALL + COUNT ( + + 12 ) / - 24 - - - MAX ( ALL + + 62 ) - - ( + + 50 ) / NULLIF ( + 37, MAX ( ALL - 89 ) + 50 ) * - ( - 35 ) + + 36 AS col0, 1 / - 82 * - + 40 * - - 88 - + ( - - 73 )
----
9
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL + + CASE + CASE + - 29 WHEN - 69 THEN + 96 * - 18 - + - CASE 62 WHEN - 48 * 60 + MAX( ALL 41 ) THEN - 18 ELSE NULL END * + 33 END WHEN - 85 THEN + 88 / + 80 + + - 7 + + + 80 WHEN + CASE - COUNT( * ) WHEN + - 8 * 40 THEN NULL WHEN + 28 THEN MIN( - ( - 58 ) ) ELSE NULL END * COUNT( * ) THEN NULL ELSE - MIN( DISTINCT - 49 ) END col1
----
49

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + + CASE + CASE + - 29 WHEN - 69 THEN + 96 * - 18 - + - CASE 62 WHEN - 48 * 60 + MAX ( ALL 41 ) THEN - 18 ELSE NULL END * + 33 END WHEN - 85 THEN + 88 / + 80 + + - 7 + + + 80 WHEN + CASE - COUNT ( * ) WHEN + - 8 * 40 THEN NULL WHEN + 28 THEN MIN ( - ( - 58 ) ) ELSE NULL END * COUNT ( * ) THEN NULL ELSE - MIN ( DISTINCT - 49 ) END col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT DISTINCT + - SUM( + CAST( NULL AS SIGNED ) ) / - - COALESCE ( - 93, + - COUNT( * ) * + + MAX( ALL - 98 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT + - SUM ( + CAST ( NULL AS INTEGER ) ) / - - COALESCE ( - 93, + - COUNT ( * ) * + + MAX ( ALL - 98 ) )
----
NULL

query II rowsort
SELECT + 63 * + + 78 AS col0, - 74
----
4914
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT - 33 * MAX( - 15 ) AS col0
----
495

skipif mysql # not compatible
query I rowsort label-1024
SELECT - 33 * MAX ( - 15 ) AS col0
----
495

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT ALL + 41 DIV + - 59 * + ( - + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL + 41 / + - 59 * + ( - + 86 )
----
0

query I rowsort
SELECT - + 30 + + + ( 30 ) AS col2
----
0

query I rowsort
SELECT + NULLIF ( - 54, + 40 + - 70 )
----
-54

query I rowsort
SELECT ALL - 50 - 71 * - 77
----
5417

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT COUNT( DISTINCT 10 ) * + 88 * - COUNT( * ) * - MAX( DISTINCT 97 )
----
8536

skipif mysql # not compatible
query I rowsort label-1029
SELECT COUNT ( DISTINCT 10 ) * + 88 * - COUNT ( * ) * - MAX ( DISTINCT 97 )
----
8536

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1031
SELECT ALL + + COUNT( ALL - COALESCE ( 73, - - 10 * + CAST( NULL AS SIGNED ), 73 ) ) * - COUNT( - 91 ) * 74 + 90 * 72
----
6406

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + + COUNT ( ALL - COALESCE ( 73, - - 10 * + CAST ( NULL AS INTEGER ), 73 ) ) * - COUNT ( - 91 ) * 74 + 90 * 72
----
6406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT CAST( NULL AS SIGNED ) / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT CAST ( NULL AS INTEGER ) / - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT ALL + CASE + COALESCE ( + 75, + 97 ) WHEN + COALESCE ( - ( 14 ), + 46 + + + 97 * + 19 ) THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 48 THEN + 31 + + - 11 END / + - 97 * + MAX( ALL + 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL + CASE + COALESCE ( + 75, + 97 ) WHEN + COALESCE ( - ( 14 ), + 46 + + + 97 * + 19 ) THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 48 THEN + 31 + + - 11 END / + - 97 * + MAX ( ALL + 38 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1035
SELECT DISTINCT + 80 * ( - + 0 ) * + CASE 64 WHEN + ( + 57 ) - + - 62 THEN + 97 END * 51 + - COUNT( * ) AS col0, - 97 + + COUNT( * )
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-1035
SELECT DISTINCT + 80 * ( - + 0 ) * + CASE 64 WHEN + ( + 57 ) - + - 62 THEN + 97 END * 51 + - COUNT ( * ) AS col0, - 97 + + COUNT ( * )
----
NULL
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-1036
SELECT ALL - 67 AS col2, 32 DIV - ( - 41 ) + - + 49
----
-67
-49

skipif mysql # not compatible
query II rowsort label-1036
SELECT ALL - 67 AS col2, 32 / - ( - 41 ) + - + 49
----
-67
-49

query II rowsort
SELECT + 87, 28 AS col1
----
87
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL - SUM( DISTINCT - - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - SUM ( DISTINCT - - 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT + COUNT( * ) * + 10 * + + 37 + - 51 AS col1, + NULLIF ( 47, - 44 ) * 5
----
319
235

skipif mysql # not compatible
query II rowsort label-1040
SELECT + COUNT ( * ) * + 10 * + + 37 + - 51 AS col1, + NULLIF ( 47, - 44 ) * 5
----
319
235

query II rowsort
SELECT 30, - 49 AS col0
----
30
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT ALL 95 + + + 61 + + 75 DIV - 78
----
156

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL 95 + + + 61 + + 75 / - 78
----
156

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

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

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

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

query I rowsort
SELECT DISTINCT + 54 + - 77 AS col2
----
-23

query I rowsort
SELECT DISTINCT NULLIF ( 92, - 45 ) * + 2
----
184

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

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

query I rowsort
SELECT ALL ( - - 2 ) * - + 28 * 21
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT MAX( ALL + + 37 ) + - 37
----
0

skipif mysql # not compatible
query I rowsort label-1049
SELECT MAX ( ALL + + 37 ) + - 37
----
0

query II rowsort
SELECT DISTINCT - 84 AS col0, 38
----
-84
38

query I rowsort
SELECT - 45 + + - 69 AS col0
----
-114

query I rowsort
SELECT 71 - - 26 - - 84 AS col0
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1053
SELECT ALL 42, + CAST( - 42 AS SIGNED ) + COUNT( * ) * + COUNT( * ) AS col2
----
42
-41

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL 42, + CAST ( - 42 AS INTEGER ) + COUNT ( * ) * + COUNT ( * ) AS col2
----
42
-41

query I rowsort
SELECT ALL + ( - + ( - - 83 ) ) + 14 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT 2 / + 9 - + - 47 - - 23 + + CASE + 37 WHEN 97 / + 1 * + + 92 THEN COUNT( * ) ELSE NULL END + - NULLIF ( 12, - + 93 ) * CASE 47 WHEN 50 + - 72 + 65 THEN - 92 WHEN + COALESCE ( - 98, ( + 54 ) ) THEN + 80 + + ( NULLIF ( 22, + 48 ) ) WHEN 82 THEN 18 END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT 2 / + 9 - + - 47 - - 23 + + CASE + 37 WHEN 97 / + 1 * + + 92 THEN COUNT ( * ) ELSE NULL END + - NULLIF ( 12, - + 93 ) * CASE 47 WHEN 50 + - 72 + 65 THEN - 92 WHEN + COALESCE ( - 98, ( + 54 ) ) THEN + 80 + + ( NULLIF ( 22, + 48 ) ) WHEN 82 THEN 18 END / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - 76 * - COALESCE ( + - MAX( - + 86 ), 20 * + 58 - 42 + + + 9 * 0 )
----
6536

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 76 * - COALESCE ( + - MAX ( - + 86 ), 20 * + 58 - 42 + + + 9 * 0 )
----
6536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1057
SELECT DISTINCT COUNT( * ) - - - 37 DIV 81 + + + 47 col0
----
48

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT COUNT ( * ) - - - 37 / 81 + + + 47 col0
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL + COALESCE ( + + 57, - - 92 + - COUNT( * ) * 35 * - 7 )
----
57

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + COALESCE ( + + 57, - - 92 + - COUNT ( * ) * 35 * - 7 )
----
57

query I rowsort
SELECT ALL 64 - 60
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1061
SELECT DISTINCT CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) * + + 56 * + MIN( - - 87 ) + 9
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1061
SELECT DISTINCT CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) * + + 56 * + MIN ( - - 87 ) + 9
----
NULL
NULL

query I rowsort
SELECT + 43 + - + 56 * 81 AS col0
----
-4493

query I rowsort
SELECT 20 * 91 AS col1
----
1820

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL MAX( 64 ) * + 7 + + 58
----
506

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL MAX ( 64 ) * + 7 + + 58
----
506

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

query I rowsort
SELECT ALL 76 * 14 * + 21
----
22344

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT 2 + - - 99 * + - 83 * COUNT( * ), - COALESCE ( - - 72, 93 + - 62 * 73, - 7 ) col1
----
-8215
-72

skipif mysql # not compatible
query II rowsort label-1069
SELECT 2 + - - 99 * + - 83 * COUNT ( * ), - COALESCE ( - - 72, 93 + - 62 * 73, - 7 ) col1
----
-8215
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT - 40 * - + 94 + + + MAX( DISTINCT - 76 ) * 59 - + 94
----
-818

skipif mysql # not compatible
query I rowsort label-1070
SELECT - 40 * - + 94 + + + MAX ( DISTINCT - 76 ) * 59 - + 94
----
-818

query I rowsort
SELECT + 65 * 64 + + 58 AS col0
----
4218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT MAX( DISTINCT + CAST( - - 15 AS SIGNED ) ) + + 25
----
40

skipif mysql # not compatible
query I rowsort label-1072
SELECT MAX ( DISTINCT + CAST ( - - 15 AS INTEGER ) ) + + 25
----
40

query I rowsort
SELECT 2 * - 57
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-1074
SELECT COUNT( * ) + - - 38, 31 col0
----
39
31

skipif mysql # not compatible
query II rowsort label-1074
SELECT COUNT ( * ) + - - 38, 31 col0
----
39
31

query I rowsort
SELECT ALL + 31 * 75 AS col2
----
2325

query I rowsort
SELECT 11 * - 58
----
-638

query I rowsort
SELECT ALL 89 + + 91
----
180

query I rowsort
SELECT - 21 * - 92 + - 5 AS col2
----
1927

onlyif mysql # aggregate syntax: 
query II rowsort label-1079
SELECT DISTINCT + 58 * 81 AS col0, + 90 + - + 87 + - 93 * COUNT( * ) AS col2
----
4698
-90

skipif mysql # not compatible
query II rowsort label-1079
SELECT DISTINCT + 58 * 81 AS col0, + 90 + - + 87 + - 93 * COUNT ( * ) AS col2
----
4698
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT 68 * - 95 + COUNT( * ) + - + 22 * 95 AS col2
----
-8549

skipif mysql # not compatible
query I rowsort label-1080
SELECT 68 * - 95 + COUNT ( * ) + - + 22 * 95 AS col2
----
-8549

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL - NULLIF ( - 49, - - 23 ) * + COUNT( * ) * 65 + 5
----
3190

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL - NULLIF ( - 49, - - 23 ) * + COUNT ( * ) * 65 + 5
----
3190

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT 37 + - 80 col2, + ( - COUNT( * ) ) + + ( + - 71 ) AS col0
----
-43
-72

skipif mysql # not compatible
query II rowsort label-1082
SELECT 37 + - 80 col2, + ( - COUNT ( * ) ) + + ( + - 71 ) AS col0
----
-43
-72

query II rowsort
SELECT ALL + 41 + 2 AS col2, - 67 + - 57 + + 57 + 87
----
43
20

query I rowsort
SELECT 27 * 6
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT DISTINCT + 23 + + 47 AS col0, - COUNT( * ) * + + 11
----
70
-11

skipif mysql # not compatible
query II rowsort label-1085
SELECT DISTINCT + 23 + + 47 AS col0, - COUNT ( * ) * + + 11
----
70
-11

query I rowsort
SELECT DISTINCT + 24 - - 73 * + - 71 AS col0
----
-5159

query I rowsort
SELECT + 74 + 29
----
103

query I rowsort
SELECT DISTINCT + 43 - ( 47 ) AS col0
----
-4

query I rowsort
SELECT ( 22 ) * - 50
----
-1100

query I rowsort
SELECT ALL + 74 * + + 7
----
518

query I rowsort
SELECT 99 - + ( - 64 ) AS col1
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT ALL COUNT( DISTINCT - 56 ) AS col1, ( 24 )
----
1
24

skipif mysql # not compatible
query II rowsort label-1092
SELECT ALL COUNT ( DISTINCT - 56 ) AS col1, ( 24 )
----
1
24

query I rowsort
SELECT DISTINCT + 41 * 18 * + 83 AS col1
----
61254

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1094
SELECT CAST( + ( - 17 ) AS SIGNED ) DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-1094
SELECT CAST ( + ( - 17 ) AS INTEGER ) / 66
----
0

query II rowsort
SELECT - 54 * - 19, 56 AS col1
----
1026
56

query I rowsort
SELECT + 24 + 57
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT MIN( + ( - + ( + 35 ) ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1097
SELECT MIN ( + ( - + ( + 35 ) ) ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT + CASE + SUM( ALL - + 58 ) WHEN - COUNT( * ) THEN 34 * + - SUM( + - CASE + - 31 WHEN - 10 THEN 73 + + - 21 + - + 50 ELSE NULL END ) + 86 * 44 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT + CASE + SUM ( ALL - + 58 ) WHEN - COUNT ( * ) THEN 34 * + - SUM ( + - CASE + - 31 WHEN - 10 THEN 73 + + - 21 + - + 50 ELSE NULL END ) + 86 * 44 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT + 81 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT + 81 / - 84 AS col2
----
0

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

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

query I rowsort
SELECT + 95 - - + 10 AS col2
----
105

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

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

query I rowsort
SELECT DISTINCT 39 * - 31
----
-1209

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1105
SELECT CASE + 17 WHEN - + 79 - - ( - ( + AVG ( - 95 ) ) ) / - 96 THEN ( - 12 ) * 49 + - + 95 WHEN 96 + + 9 - + CAST( NULL AS SIGNED ) - + - 50 + + 49 + 81 * + + 92 / + 69 * - MAX( DISTINCT 40 ) THEN + + ( - 31 ) * 20 + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT CASE + 17 WHEN - + 79 - - ( - ( + AVG ( - 95 ) ) ) / - 96 THEN ( - 12 ) * 49 + - + 95 WHEN 96 + + 9 - + CAST ( NULL AS INTEGER ) - + - 50 + + 49 + 81 * + + 92 / + 69 * - MAX ( DISTINCT 40 ) THEN + + ( - 31 ) * 20 + - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL 80 * - 41 * + 17 * - 74 + + - 26 AS col2
----
4126214

query I rowsort
SELECT + NULLIF ( + 90, - 46 )
----
90

query I rowsort
SELECT + 19 * 0 col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1110
SELECT ALL COALESCE ( + + 66, COALESCE ( + - 34, 47 DIV - - 40, - CAST( NULL AS SIGNED ) ) * 1 * ( - COUNT( * ) ) ) * - COALESCE ( + 9, 11 ) + - - 25
----
-569

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL COALESCE ( + + 66, COALESCE ( + - 34, 47 / - - 40, - CAST ( NULL AS INTEGER ) ) * 1 * ( - COUNT ( * ) ) ) * - COALESCE ( + 9, 11 ) + - - 25
----
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - MIN( - 45 ) * + COUNT( * ) + + + 54
----
99

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - MIN ( - 45 ) * + COUNT ( * ) + + + 54
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT + NULLIF ( - 59, - 36 / - COUNT( * ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1112
SELECT + NULLIF ( - 59, - 36 / - COUNT ( * ) ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1113
SELECT CASE + 45 WHEN 89 THEN - 22 WHEN 29 - 92 THEN NULL ELSE CAST( - + ( - 33 ) AS SIGNED ) * + NULLIF ( + CASE - 5 WHEN - 31 THEN NULL WHEN - 57 THEN - + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) * - 90 END, + - 71 ) + + 34 - - COUNT( * ) + - 15 - + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT CASE + 45 WHEN 89 THEN - 22 WHEN 29 - 92 THEN NULL ELSE CAST ( - + ( - 33 ) AS INTEGER ) * + NULLIF ( + CASE - 5 WHEN - 31 THEN NULL WHEN - 57 THEN - + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * - 90 END, + - 71 ) + + 34 - - COUNT ( * ) + - 15 - + 19 END
----
NULL

query I rowsort
SELECT DISTINCT - 53 * + - 57 + - 74 AS col1
----
2947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1115
SELECT ALL + MIN( DISTINCT 72 ) * - - 79 + MIN( + 60 ) - + ( - COALESCE ( - + 72, - 96 + - 81 + + + 46 ) ) + 55 * + NULLIF ( - 35, - 50 ) * - 0 + - CAST( + COUNT( * ) AS SIGNED ) DIV + 71
----
5676

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + MIN ( DISTINCT 72 ) * - - 79 + MIN ( + 60 ) - + ( - COALESCE ( - + 72, - 96 + - 81 + + + 46 ) ) + 55 * + NULLIF ( - 35, - 50 ) * - 0 + - CAST ( + COUNT ( * ) AS INTEGER ) / + 71
----
5676

query II rowsort
SELECT DISTINCT 42 * + 99 * - 38 col1, 64 + + 72
----
-158004
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL 85 * - 1 + - - COUNT( * ) * + 26 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL 85 * - 1 + - - COUNT ( * ) * + 26 AS col2
----
-59

query I rowsort
SELECT 73 * + - 6 + 19
----
-419

query I rowsort
SELECT - 23 * - 6 * - - 47 AS col0
----
6486

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

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

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

query II rowsort
SELECT - COALESCE ( - 14, + + 12 + - 17 ) * - 15 AS col0, ( + + 60 )
----
-210
60

query I rowsort
SELECT ALL 28 * + 59 - + 72 AS col2
----
1580

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT DISTINCT + NULLIF ( CASE + 44 WHEN + 35 THEN COUNT( * ) + - 26 - - ( 29 ) * + + 47 + 40 + + 13 * - 76 + - COUNT( * ) ELSE - 14 * - 44 END, - COUNT( * ) + - - 66 ) AS col2
----
616

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT + NULLIF ( CASE + 44 WHEN + 35 THEN COUNT ( * ) + - 26 - - ( 29 ) * + + 47 + 40 + + 13 * - 76 + - COUNT ( * ) ELSE - 14 * - 44 END, - COUNT ( * ) + - - 66 ) AS col2
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT DISTINCT - 44 * + - COUNT( * ) + - - COALESCE ( 58, + 4 ) * 76 - - 7 * + 67 AS col2
----
4921

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - 44 * + - COUNT ( * ) + - - COALESCE ( 58, + 4 ) * 76 - - 7 * + 67 AS col2
----
4921

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL - 64 * 7 + 94 + - CASE - 46 WHEN 82 THEN NULL WHEN - - MAX( DISTINCT + - 34 ) THEN NULL ELSE - MAX( DISTINCT - 14 ) END AS col0
----
-368

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - 64 * 7 + 94 + - CASE - 46 WHEN 82 THEN NULL WHEN - - MAX ( DISTINCT + - 34 ) THEN NULL ELSE - MAX ( DISTINCT - 14 ) END AS col0
----
-368

query I rowsort
SELECT ALL + - 54 * - 35 AS col1
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ALL - NULLIF ( + COUNT( ALL - 84 ), + + 79 * - ( - - 5 ) * - 81 * + 68 * - COUNT( * ) + - 88 + 25 - - + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL - NULLIF ( + COUNT ( ALL - 84 ), + + 79 * - ( - - 5 ) * - 81 * + 68 * - COUNT ( * ) + - 88 + 25 - - + 49 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT DISTINCT - - 74 * - 10 * 8 + - - CAST( NULL AS SIGNED ) + + - ( - 48 ) * - 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT - - 74 * - 10 * 8 + - - CAST ( NULL AS INTEGER ) + + - ( - 48 ) * - 99 col2
----
NULL

query I rowsort
SELECT - - 25 + 3
----
28

query I rowsort
SELECT ALL + - 62 * + 70 AS col0
----
-4340

query II rowsort
SELECT - + 39 + - - 16 + + 48 AS col2, 50 col2
----
25
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT - 85 * 81 DIV 74
----
-93

skipif mysql # not compatible
query I rowsort label-1134
SELECT - 85 * 81 / 74
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1135
SELECT DISTINCT - 70 col2, - 62 * + CASE COUNT( * ) WHEN + + 73 * - 8 THEN NULL WHEN + MAX( ALL - 47 ) THEN NULL ELSE + COUNT( * ) END + + + 46 + + COALESCE ( + + 0, - 39 * + 4 + + 34 + - COUNT( * ) * + COUNT( * ) + + 43 ) DIV + 15 * + + 47
----
-70
-16

skipif mysql # not compatible
query II rowsort label-1135
SELECT DISTINCT - 70 col2, - 62 * + CASE COUNT ( * ) WHEN + + 73 * - 8 THEN NULL WHEN + MAX ( ALL - 47 ) THEN NULL ELSE + COUNT ( * ) END + + + 46 + + COALESCE ( + + 0, - 39 * + 4 + + 34 + - COUNT ( * ) * + COUNT ( * ) + + 43 ) / + 15 * + + 47
----
-70
-16

query I rowsort
SELECT - - 65 + - - 9 col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT - MIN( DISTINCT ( 16 ) ) - - 13
----
-3

skipif mysql # not compatible
query I rowsort label-1137
SELECT - MIN ( DISTINCT ( 16 ) ) - - 13
----
-3

query I rowsort
SELECT + 13 - 36 + + 83 * 59
----
4874

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

query I rowsort
SELECT ALL COALESCE ( + - 3, 4 * + 80 * + + 74 + + 79 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1141
SELECT DISTINCT CAST( 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT CAST ( 16 AS INTEGER ) AS col1
----
16

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT - - ( - COUNT( * ) ) + - 63 * - 78 + - SUM( DISTINCT - + 80 ) AS col1, CASE - 88 WHEN 81 THEN - COUNT( * ) * - 10 - 72 * - + 21 END * + 43 + 23 - - 57 + - 90 + + 28 + - 53 * + + 34 * + 53
----
4993
NULL

skipif mysql # not compatible
query II rowsort label-1143
SELECT - - ( - COUNT ( * ) ) + - 63 * - 78 + - SUM ( DISTINCT - + 80 ) AS col1, CASE - 88 WHEN 81 THEN - COUNT ( * ) * - 10 - 72 * - + 21 END * + 43 + 23 - - 57 + - 90 + + 28 + - 53 * + + 34 * + 53
----
4993
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT DISTINCT 27 * - 35 * 41 + COALESCE ( - 15, + 74 * 54, + ( - + CAST( NULL AS SIGNED ) ) + - 57 ) * 76
----
-39885

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT 27 * - 35 * 41 + COALESCE ( - 15, + 74 * 54, + ( - + CAST ( NULL AS INTEGER ) ) + - 57 ) * 76
----
-39885

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

query I rowsort
SELECT ALL + 27 + + 78 * + - 94 AS col1
----
-7305

query I rowsort
SELECT - 41 + 87
----
46

query I rowsort
SELECT - 31 + + 91
----
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT - 32 * - COUNT( * ) * 80 * + 35 + - - 37 - + COUNT( * ) + + 29 DIV + + 82 * + MAX( DISTINCT 61 ) * + + 7 * + + 90 DIV + MIN( + - 78 ) col1
----
89636

skipif mysql # not compatible
query I rowsort label-1150
SELECT - 32 * - COUNT ( * ) * 80 * + 35 + - - 37 - + COUNT ( * ) + + 29 / + + 82 * + MAX ( DISTINCT 61 ) * + + 7 * + + 90 / + MIN ( + - 78 ) col1
----
89636

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT + 78 + + - COUNT( * ), 57 AS col2
----
77
57

skipif mysql # not compatible
query II rowsort label-1152
SELECT + 78 + + - COUNT ( * ), 57 AS col2
----
77
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1153
SELECT ALL + ( + + 89 ) / + 80 - - + 79 + - CASE ( - NULLIF ( - 68, - 30 ) ) WHEN 49 * - ( NULLIF ( + 5, + 96 ) ) THEN 43 * - 29 - - - 2 + + + 99 * COUNT( DISTINCT CAST( - 9 AS DECIMAL ) ) WHEN + 66 + - - COALESCE ( 75, + 73 ) THEN + 59 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + ( + + 89 ) / + 80 - - + 79 + - CASE ( - NULLIF ( - 68, - 30 ) ) WHEN 49 * - ( NULLIF ( + 5, + 96 ) ) THEN 43 * - 29 - - - 2 + + + 99 * COUNT ( DISTINCT CAST ( - 9 AS REAL ) ) WHEN + 66 + - - COALESCE ( 75, + 73 ) THEN + 59 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1154
SELECT + 54 + 99 * - - COALESCE ( - MIN( - 68 ), - - 59 ), + 69 + 16 + 14 DIV - 12 - - 31 + - ( - - 28 ) + 46 AS col1
----
6786
133

skipif mysql # not compatible
query II rowsort label-1154
SELECT + 54 + 99 * - - COALESCE ( - MIN ( - 68 ), - - 59 ), + 69 + 16 + 14 / - 12 - - 31 + - ( - - 28 ) + 46 AS col1
----
6786
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ALL NULLIF ( - - CASE MIN( DISTINCT - - 1 ) WHEN - MAX( DISTINCT + + 80 ) THEN - + 22 WHEN - 7 THEN NULL END, + ( + 69 ) ) / - ( + 19 ) + - - 79 * 54 + + 73 + - + 89 col1, - CASE + - 96 WHEN + COUNT( * ) * ( - + 86 ) + + 69 THEN 13 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL NULLIF ( - - CASE MIN ( DISTINCT - - 1 ) WHEN - MAX ( DISTINCT + + 80 ) THEN - + 22 WHEN - 7 THEN NULL END, + ( + 69 ) ) / - ( + 19 ) + - - 79 * 54 + + 73 + - + 89 col1, - CASE + - 96 WHEN + COUNT ( * ) * ( - + 86 ) + + 69 THEN 13 END AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT DISTINCT + 79 AS col1, - CASE 36 WHEN 24 THEN + 57 - ( - + 49 ) - + 3 END * COUNT( * ) AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1156
SELECT DISTINCT + 79 AS col1, - CASE 36 WHEN 24 THEN + 57 - ( - + 49 ) - + 3 END * COUNT ( * ) AS col0
----
79
NULL

query I rowsort
SELECT - 42 * 52
----
-2184

query I rowsort
SELECT 68 * - 36 + 28 + - + 84 * 88 + - + 15 - - 12
----
-9815

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

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

query II rowsort
SELECT ALL + 98, - 77 * - 10 * + 51 AS col1
----
98
39270

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

query I rowsort
SELECT + ( - + NULLIF ( 97, + 2 ) ) AS col0
----
-97

query I rowsort
SELECT + 0 + + 49 + - 28 AS col1
----
21

query II rowsort
SELECT + 11 * + - 67 AS col2, 14
----
-737
14

query I rowsort
SELECT DISTINCT 23 * + - 27 AS col0
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL + 47 * COUNT( * ) - 71 + + MAX( ALL + 18 ) - + 97 * NULLIF ( 66, + 74 ) * - 2 * 87 * 87 * - MAX( 0 ) * - 9 - - 63
----
57

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + 47 * COUNT ( * ) - 71 + + MAX ( ALL + 18 ) - + 97 * NULLIF ( 66, + 74 ) * - 2 * 87 * 87 * - MAX ( 0 ) * - 9 - - 63
----
57

query II rowsort
SELECT ALL + 77, + 90 col0
----
77
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1168
SELECT - CASE 14 WHEN - + COUNT( * ) THEN - ( - - CAST( NULL AS SIGNED ) ) + - + ( CASE 17 WHEN - ( + 0 ) THEN + 68 END ) * + 78 * 41 * ( - 49 ) WHEN + COUNT( * ) THEN NULL ELSE + 45 END DIV ( - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT - CASE 14 WHEN - + COUNT ( * ) THEN - ( - - CAST ( NULL AS INTEGER ) ) + - + ( CASE 17 WHEN - ( + 0 ) THEN + 68 END ) * + 78 * 41 * ( - 49 ) WHEN + COUNT ( * ) THEN NULL ELSE + 45 END / ( - 68 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + 89 * - 73 * - COUNT( * ) + + ( + 58 ) AS col0
----
6555

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 89 * - 73 * - COUNT ( * ) + + ( + 58 ) AS col0
----
6555

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

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

query II rowsort
SELECT ALL 18 AS col0, 84 * - 72 col1
----
18
-6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT - NULLIF ( - 60, CASE - 31 WHEN - + MIN( ALL + - 72 ) + - ( - - ( + ( + 29 ) ) ) THEN NULL WHEN 46 THEN + - 43 / + 94 END * - + 12 * - - COUNT( * ) + + CASE 34 WHEN CAST( + - 47 AS SIGNED ) THEN + + 9 + 71 WHEN + CASE - 98 WHEN - 62 THEN - - COUNT( * ) - - + 96 + + 68 WHEN + 97 + - 37 THEN COUNT( * ) * MIN( ALL - 43 ) ELSE + ( - 2 ) * AVG ( ALL 14 - - 72 ) END + 38 THEN NULL END + CAST( NULL AS SIGNED ) * - 4 )
----
60

skipif mysql # not compatible
query I rowsort label-1172
SELECT - NULLIF ( - 60, CASE - 31 WHEN - + MIN ( ALL + - 72 ) + - ( - - ( + ( + 29 ) ) ) THEN NULL WHEN 46 THEN + - 43 / + 94 END * - + 12 * - - COUNT ( * ) + + CASE 34 WHEN CAST ( + - 47 AS INTEGER ) THEN + + 9 + 71 WHEN + CASE - 98 WHEN - 62 THEN - - COUNT ( * ) - - + 96 + + 68 WHEN + 97 + - 37 THEN COUNT ( * ) * MIN ( ALL - 43 ) ELSE + ( - 2 ) * AVG ( ALL 14 - - 72 ) END + 38 THEN NULL END + CAST ( NULL AS INTEGER ) * - 4 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL + COUNT( DISTINCT ( 10 ) ) + + 48 + - 78 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + COUNT ( DISTINCT ( 10 ) ) + + 48 + - 78 AS col1
----
-29

query II rowsort
SELECT ALL + 61 AS col1, 27 AS col2
----
61
27

query I rowsort
SELECT - - 5 AS col2
----
5

query I rowsort
SELECT 36 + 1 AS col1
----
37

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - + ( - + 20 ), - - 47 ) AS col0
----
20

query I rowsort
SELECT ALL + 31 + - 7 AS col2
----
24

query II rowsort
SELECT - 52 AS col1, - 30
----
-52
-30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1182
SELECT DISTINCT + - COALESCE ( - + 74, 34 ) + COUNT( * ) + - + 77 + 4 - - 93 + + + SUM( + 77 ) * + NULLIF ( - 39, + + CAST( + COUNT( DISTINCT + COALESCE ( - + CAST( NULL AS SIGNED ), - - 60 + - + 85, + 39 ) ) AS DECIMAL ) ) AS col2
----
-2908

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + - COALESCE ( - + 74, 34 ) + COUNT ( * ) + - + 77 + 4 - - 93 + + + SUM ( + 77 ) * + NULLIF ( - 39, + + CAST ( + COUNT ( DISTINCT + COALESCE ( - + CAST ( NULL AS INTEGER ), - - 60 + - + 85, + 39 ) ) AS REAL ) ) AS col2
----
-2908

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1183
SELECT ALL + CAST( 86 AS SIGNED ) + + + 30 AS col0, + 30 * - - 28
----
116
840

skipif mysql # not compatible
query II rowsort label-1183
SELECT ALL + CAST ( 86 AS INTEGER ) + + + 30 AS col0, + 30 * - - 28
----
116
840

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT 27 * + 94 AS col2, NULLIF ( + MIN( DISTINCT 82 ), - + 62 ) AS col0
----
2538
82

skipif mysql # not compatible
query II rowsort label-1184
SELECT 27 * + 94 AS col2, NULLIF ( + MIN ( DISTINCT 82 ), - + 62 ) AS col0
----
2538
82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL + CASE + + 17 WHEN + - COUNT( * ) THEN 89 + CASE 44 WHEN COUNT( * ) THEN - 86 - 70 + NULLIF ( - + 47, + - 13 ) + 72 * + 23 * - + COUNT( * ) / 63 END + + 33 * + 92 + 64 * + 99 * ( - 83 ) - SUM( DISTINCT - + 58 ) * + 17 WHEN + ( + COALESCE ( + 98, CAST( + COUNT( * ) AS SIGNED ) * - 14, - 93 ) ) * 84 THEN - 10 * + COALESCE ( + COUNT( * ), - 15, - COUNT( * ) ) + 11 * 86 WHEN 83 THEN NULL END + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + CASE + + 17 WHEN + - COUNT ( * ) THEN 89 + CASE 44 WHEN COUNT ( * ) THEN - 86 - 70 + NULLIF ( - + 47, + - 13 ) + 72 * + 23 * - + COUNT ( * ) / 63 END + + 33 * + 92 + 64 * + 99 * ( - 83 ) - SUM ( DISTINCT - + 58 ) * + 17 WHEN + ( + COALESCE ( + 98, CAST ( + COUNT ( * ) AS INTEGER ) * - 14, - 93 ) ) * 84 THEN - 10 * + COALESCE ( + COUNT ( * ), - 15, - COUNT ( * ) ) + 11 * 86 WHEN 83 THEN NULL END + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1187
SELECT ALL - COUNT( * ) * + MAX( DISTINCT - 56 ) DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - COUNT ( * ) * + MAX ( DISTINCT - 56 ) / + 46
----
1

query I rowsort
SELECT 53 * 94 AS col1
----
4982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT DISTINCT + COALESCE ( - 75, + 74 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT + COALESCE ( - 75, + 74 ) * + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL - COUNT ( * ) - + 56 AS col1
----
-57

query I rowsort
SELECT ALL + 82 * + ( + 44 ) AS col2
----
3608

query I rowsort
SELECT 52 - - 66 * - 37 AS col2
----
-2390

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

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

query I rowsort
SELECT ALL - ( - NULLIF ( - 35, + 66 ) ) col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT ALL 76 DIV 25 col1
----
3

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL 76 / 25 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT - SUM( ALL + 44 ) + - - 26 + - - SUM( 84 ) * + 43 * + + 29 - + - COALESCE ( - 89, + 63, - 65 ) + + ( 14 ) AS col2
----
104655

skipif mysql # not compatible
query I rowsort label-1196
SELECT - SUM ( ALL + 44 ) + - - 26 + - - SUM ( 84 ) * + 43 * + + 29 - + - COALESCE ( - 89, + 63, - 65 ) + + ( 14 ) AS col2
----
104655

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT COUNT( * ) * 11 + + 14 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1197
SELECT COUNT ( * ) * 11 + + 14 AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1198
SELECT 4 + 75 + 18 DIV - 99 + 65 DIV - + 98 DIV + - COUNT( * ) + + 25 DIV - - ( + - ( + + 82 ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1198
SELECT 4 + 75 + 18 / - 99 + 65 / - + 98 / + - COUNT ( * ) + + 25 / - - ( + - ( + + 82 ) ) AS col2
----
79

query I rowsort
SELECT + 86 * - 8 + - - 75 - + + 76 + + 2 + ( CASE 93 WHEN - - 92 + 29 THEN - 99 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT CAST( - ( + + 40 ) AS SIGNED ) * 48 AS col0
----
-1920

skipif mysql # not compatible
query I rowsort label-1200
SELECT CAST ( - ( + + 40 ) AS INTEGER ) * 48 AS col0
----
-1920

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT ALL + 62 + - + CAST( NULL AS SIGNED ) + + 40 * + CASE + + 44 WHEN 90 THEN NULL WHEN - - CAST( NULL AS SIGNED ) * - NULLIF ( + - 38, 26 * - 48 ) * + 83 * - CASE 84 WHEN - - CAST( - - COUNT( * ) AS SIGNED ) + + - 48 + - - 55 THEN NULL ELSE + + 86 + + + ( + - 59 ) + + - 92 END THEN NULL WHEN AVG ( DISTINCT - 93 ) * - COALESCE ( 87, + CAST( NULL AS SIGNED ) ) - COUNT( * ) THEN CAST( NULL AS SIGNED ) * ( + 96 ) END + 39 / - 79 / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + 62 + - + CAST ( NULL AS INTEGER ) + + 40 * + CASE + + 44 WHEN 90 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) * - NULLIF ( + - 38, 26 * - 48 ) * + 83 * - CASE 84 WHEN - - CAST ( - - COUNT ( * ) AS INTEGER ) + + - 48 + - - 55 THEN NULL ELSE + + 86 + + + ( + - 59 ) + + - 92 END THEN NULL WHEN AVG ( DISTINCT - 93 ) * - COALESCE ( 87, + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * ( + 96 ) END + 39 / - 79 / - 15
----
NULL

query I rowsort
SELECT DISTINCT - 93 + 41 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT DISTINCT + 18 * COUNT( * ) AS col0, 66 AS col1
----
18
66

skipif mysql # not compatible
query II rowsort label-1206
SELECT DISTINCT + 18 * COUNT ( * ) AS col0, 66 AS col1
----
18
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL 31 + + SUM( - 57 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL 31 + + SUM ( - 57 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT 99 + COUNT( * ) - + 18 - 27 col0
----
55

skipif mysql # not compatible
query I rowsort label-1208
SELECT 99 + COUNT ( * ) - + 18 - 27 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT - MAX( - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-1209
SELECT - MAX ( - 6 )
----
6

query II rowsort
SELECT - 27 + + - 46, - ( + 22 ) AS col1
----
-73
-22

query I rowsort
SELECT 89 - - + 33 * + ( + 40 ) AS col0
----
1409

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT ALL - 35 DIV 99 + + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - 35 / 99 + + 58 AS col1
----
58

query I rowsort
SELECT - ( ( - 79 ) ) col1
----
79

query I rowsort
SELECT 18 - - 71
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1215
SELECT CAST( NULL AS SIGNED ) * - + SUM( DISTINCT + - 13 ) AS col2
----
NULL

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

query I rowsort
SELECT ALL - 13 * 0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1219
SELECT 46 * 71 DIV 47 * + COUNT( * ) AS col0
----
69

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT CAST( NULL AS SIGNED ) + + 19 / - - 72 * + 21 / + COUNT( DISTINCT - 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT CAST ( NULL AS INTEGER ) + + 19 / - - 72 * + 21 / + COUNT ( DISTINCT - 7 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 14 * - 42
----
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT NULLIF ( - CAST( NULL AS SIGNED ), 44 ) + + MAX( DISTINCT 11 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), 44 ) + + MAX ( DISTINCT 11 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1223
SELECT - 48 AS col2, - 7 DIV - + COALESCE ( - 87, - COUNT( * ) ) * COALESCE ( + + 19, + - 84, - 69 + - ( 52 ) ) + - COUNT( * ) + + 60 + - + 94 AS col2
----
-48
-35

skipif mysql # not compatible
query II rowsort label-1223
SELECT - 48 AS col2, - 7 / - + COALESCE ( - 87, - COUNT ( * ) ) * COALESCE ( + + 19, + - 84, - 69 + - ( 52 ) ) + - COUNT ( * ) + + 60 + - + 94 AS col2
----
-48
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1224
SELECT COUNT( * ) * - - 67 + + + CASE + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) / + ( + CAST( - ( ( 32 ) ) AS SIGNED ) ) THEN NULL WHEN 61 + - 97 THEN NULL ELSE - 5 END AS col0, 18
----
62
18

skipif mysql # not compatible
query II rowsort label-1224
SELECT COUNT ( * ) * - - 67 + + + CASE + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / + ( + CAST ( - ( ( 32 ) ) AS INTEGER ) ) THEN NULL WHEN 61 + - 97 THEN NULL ELSE - 5 END AS col0, 18
----
62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT NULLIF ( + ( - MAX( DISTINCT - - 82 ) ), - + 0 + + 94 + + + 79 / + ( 99 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1225
SELECT NULLIF ( + ( - MAX ( DISTINCT - - 82 ) ), - + 0 + + 94 + + + 79 / + ( 99 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT MAX( ALL - 33 ) * + 45
----
-1485

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT MAX ( ALL - 33 ) * + 45
----
-1485

query I rowsort
SELECT 46 * + - 17
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL - COALESCE ( - COUNT( * ), - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - COALESCE ( - COUNT ( * ), - 78 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1230
SELECT DISTINCT - NULLIF ( + 58, 46 ), MIN( 60 ) * 90 + + - 89 AS col0
----
-58
5311

skipif mysql # not compatible
query II rowsort label-1230
SELECT DISTINCT - NULLIF ( + 58, 46 ), MIN ( 60 ) * 90 + + - 89 AS col0
----
-58
5311

query II rowsort
SELECT ALL - 33 AS col1, - ( + - 86 ) + 52 AS col1
----
-33
138

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT 71 + - 78 + + 52 - - 84 DIV + 2
----
87

skipif mysql # not compatible
query I rowsort label-1232
SELECT 71 + - 78 + + 52 - - 84 / + 2
----
87

query I rowsort
SELECT ALL - NULLIF ( 18, - + ( 60 ) ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT 78 DIV - - 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1234
SELECT 78 / - - 30 AS col2
----
2

query I rowsort
SELECT 51 * + 89 + + 55 * 49
----
7234

query II rowsort
SELECT + 25 AS col2, - 61 * - 68
----
25
4148

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT COUNT( * ) * + 79 + 77
----
156

skipif mysql # not compatible
query I rowsort label-1237
SELECT COUNT ( * ) * + 79 + 77
----
156

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT ALL - 38 * CAST( + 40 AS SIGNED ) * + 46 * SUM( ALL - 47 ) * - 49 + - - COUNT( * ) + CASE 85 WHEN + 23 + + 29 THEN ( - + 97 ) * 52 * ( 6 ) ELSE - 84 END * - CAST( NULL AS SIGNED ) + + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - 38 * CAST ( + 40 AS INTEGER ) * + 46 * SUM ( ALL - 47 ) * - 49 + - - COUNT ( * ) + CASE 85 WHEN + 23 + + 29 THEN ( - + 97 ) * 52 * ( 6 ) ELSE - 84 END * - CAST ( NULL AS INTEGER ) + + 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL + NULLIF ( - + 66, + 49 + + 67 + - 23 - 38 + + - 2 / - - 47 * 63 ) * + 28 - 48 + - MAX( ALL + 7 ) * - + 1
----
-1889

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + NULLIF ( - + 66, + 49 + + 67 + - 23 - 38 + + - 2 / - - 47 * 63 ) * + 28 - 48 + - MAX ( ALL + 7 ) * - + 1
----
-1889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT 75 * - + ( CAST( 9 AS SIGNED ) ) + - 18
----
-693

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT 75 * - + ( CAST ( 9 AS INTEGER ) ) + - 18
----
-693

query I rowsort
SELECT DISTINCT + - ( 59 ) + + - 8
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1244
SELECT + 45 DIV NULLIF ( 91, 20 ) + - ( + COUNT( * ) ), - 58 AS col0
----
-1
-58

skipif mysql # not compatible
query II rowsort label-1244
SELECT + 45 / NULLIF ( 91, 20 ) + - ( + COUNT ( * ) ), - 58 AS col0
----
-1
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT ALL - + 63 + + 6 + 37 AS col1, 39 * COUNT( * )
----
-20
39

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL - + 63 + + 6 + 37 AS col1, 39 * COUNT ( * )
----
-20
39

query I rowsort
SELECT - + 25 * - - 99 AS col0
----
-2475

query II rowsort
SELECT 77 AS col0, 25 AS col2
----
77
25

query II rowsort
SELECT - 48 AS col1, 89
----
-48
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT - 6 * - NULLIF ( 69, + + 68 ) * + ( - - ( + MIN( ALL ( - 40 ) ) ) ) * + 10 * + + SUM( DISTINCT - 73 )
----
12088800

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT - 6 * - NULLIF ( 69, + + 68 ) * + ( - - ( + MIN ( ALL ( - 40 ) ) ) ) * + 10 * + + SUM ( DISTINCT - 73 )
----
12088800

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

query II rowsort
SELECT DISTINCT - 57 * ( + 35 ) AS col0, - 72 AS col0
----
-1995
-72

query II rowsort
SELECT ALL - 24 col0, 31 * + 81 + 13 * - 83
----
-24
1432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT + 78 + 16 + - + CAST( - 7 AS SIGNED )
----
101

skipif mysql # not compatible
query I rowsort label-1254
SELECT + 78 + 16 + - + CAST ( - 7 AS INTEGER )
----
101

query I rowsort
SELECT DISTINCT 84 - + 99 + - + NULLIF ( + 5, - 22 ) * + + 61 col0
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT + 1 + CASE + 81 WHEN COUNT( * ) + - 12 THEN COUNT( * ) ELSE NULL END - + 72 * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1256
SELECT + 1 + CASE + 81 WHEN COUNT ( * ) + - 12 THEN COUNT ( * ) ELSE NULL END - + 72 * 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1257
SELECT - CASE + 33 WHEN + 11 * - 99 * COUNT( * ) + - - 46 + - 65 + - + 89 * - 4 + - COALESCE ( - - 39, - - 94 + - 14, - 11 ) THEN NULL WHEN - COUNT( * ) THEN NULL WHEN AVG ( - 72 ) DIV 55 THEN NULL WHEN - - 35 * + + 92 THEN NULL ELSE + COUNT( * ) * + COALESCE ( + 79, + 25 DIV + 16, - 43 * + ( 5 ) ) - - + 99 - SUM( ALL + 83 ) + + 95 DIV 27 END
----
-98

skipif mysql # not compatible
query I rowsort label-1257
SELECT - CASE + 33 WHEN + 11 * - 99 * COUNT ( * ) + - - 46 + - 65 + - + 89 * - 4 + - COALESCE ( - - 39, - - 94 + - 14, - 11 ) THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN AVG ( - 72 ) / 55 THEN NULL WHEN - - 35 * + + 92 THEN NULL ELSE + COUNT ( * ) * + COALESCE ( + 79, + 25 / + 16, - 43 * + ( 5 ) ) - - + 99 - SUM ( ALL + 83 ) + + 95 / 27 END
----
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT ALL 65 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL 65 / - 29
----
-2

query I rowsort
SELECT + 71 * 33 * 10
----
23430

query I rowsort
SELECT ALL 1 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT DISTINCT MAX( + 62 ) AS col0, SUM( + + 73 ) * + - 50 * + - COUNT( * ) + + + COUNT( * ) - + COUNT( * ) * + 47 AS col2
----
62
3604

skipif mysql # not compatible
query II rowsort label-1262
SELECT DISTINCT MAX ( + 62 ) AS col0, SUM ( + + 73 ) * + - 50 * + - COUNT ( * ) + + + COUNT ( * ) - + COUNT ( * ) * + 47 AS col2
----
62
3604

query I rowsort
SELECT ALL + 83 * + - 76
----
-6308

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

query I rowsort
SELECT - 41 * + - 94
----
3854

query I rowsort
SELECT + 53 - + - 64
----
117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - NULLIF ( - 59, 46 ) * - - 32 + + COUNT( * ) AS col0
----
1889

skipif mysql # not compatible
query I rowsort label-1268
SELECT - NULLIF ( - 59, 46 ) * - - 32 + + COUNT ( * ) AS col0
----
1889

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

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

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

query I rowsort
SELECT ( - 54 )
----
-54

query I rowsort
SELECT + 80 * + 61 * - - 66
----
322080

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT ALL 3 * + 18 + - - 58 DIV + 43 + 45 + + 95
----
195

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL 3 * + 18 + - - 58 / + 43 + 45 + + 95
----
195

query I rowsort
SELECT + - 65 col0
----
-65

query I rowsort
SELECT ALL + 84 * + ( 63 ) AS col2
----
5292

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

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

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

query I rowsort
SELECT - ( - - ( - 88 ) ) * + 53 + + - 76 * - + 84 col0
----
11048

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT + + 76 * 77 * - + 12 * + - MIN( - - 38 ) + + 93
----
2668605

skipif mysql # not compatible
query I rowsort label-1279
SELECT + + 76 * 77 * - + 12 * + - MIN ( - - 38 ) + + 93
----
2668605

query I rowsort
SELECT - 66 - 55 col1
----
-121

query I rowsort
SELECT - 10 + - + 21 AS col0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1282
SELECT ALL + 54 * 52 - - 94 - - + 75 * - 40 * 12 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + 54 * 52 - - 94 - - + 75 * - 40 * 12 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 19 * - 42 AS col2
----
798

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1286
SELECT - - NULLIF ( - - COUNT( * ), COUNT( * ) - + + 95 ) * - + CAST( + + 21 AS SIGNED ) + + 49, 63 AS col0
----
28
63

skipif mysql # not compatible
query II rowsort label-1286
SELECT - - NULLIF ( - - COUNT ( * ), COUNT ( * ) - + + 95 ) * - + CAST ( + + 21 AS INTEGER ) + + 49, 63 AS col0
----
28
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1288
SELECT - 43 + - CASE - - 79 WHEN + 11 + + MAX( - 51 ) THEN NULL WHEN CAST( + + COUNT( * ) AS SIGNED ) + - - 54 THEN - - ( COUNT( * ) ) WHEN + 33 THEN NULL ELSE 49 END AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1288
SELECT - 43 + - CASE - - 79 WHEN + 11 + + MAX ( - 51 ) THEN NULL WHEN CAST ( + + COUNT ( * ) AS INTEGER ) + - - 54 THEN - - ( COUNT ( * ) ) WHEN + 33 THEN NULL ELSE 49 END AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1289
SELECT ALL - 50 DIV - 64 * - CAST( - - 80 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - 50 / - 64 * - CAST ( - - 80 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 85 col2
----
85

query I rowsort
SELECT + ( - + 9 ) + - - ( ( - 74 ) )
----
-83

query I rowsort
SELECT ALL 7 * + 6 AS col0
----
42

query I rowsort
SELECT + 89 - - 89 * - + 66 AS col1
----
-5785

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

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

query I rowsort
SELECT - 53 + + 33
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT 81 * + COALESCE ( + 98, COUNT( * ) )
----
7938

skipif mysql # not compatible
query I rowsort label-1296
SELECT 81 * + COALESCE ( + 98, COUNT ( * ) )
----
7938

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL 23 + + MIN( ALL - ( - 53 ) ) + - ( + COUNT( * ) ) col0
----
75

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL 23 + + MIN ( ALL - ( - 53 ) ) + - ( + COUNT ( * ) ) col0
----
75

query I rowsort
SELECT 52 + + 30 AS col2
----
82

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

query I rowsort
SELECT ALL 17 + + - 86 * - 67 + - 73 + + 2 * - 81 * + 38 AS col2
----
-450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT 71 DIV + MAX( - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT 71 / + MAX ( - 97 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1302
SELECT CAST( + 57 AS SIGNED ) * - + 29 - 53 + - ( - + ( - - 6 ) ) + + COUNT( * ) DIV + COUNT( * ) col1
----
-1699

skipif mysql # not compatible
query I rowsort label-1302
SELECT CAST ( + 57 AS INTEGER ) * - + 29 - 53 + - ( - + ( - - 6 ) ) + + COUNT ( * ) / + COUNT ( * ) col1
----
-1699

query I rowsort
SELECT + - 49 col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1304
SELECT ALL 70 + 19 - 47 + - 71 DIV COUNT( - - 59 ) + - CAST( - - 16 AS SIGNED ) + COUNT( * ) * - 47 + + 86 * - 23
----
-2070

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 70 + 19 - 47 + - 71 / COUNT ( - - 59 ) + - CAST ( - - 16 AS INTEGER ) + COUNT ( * ) * - 47 + + 86 * - 23
----
-2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT DISTINCT CASE - 39 WHEN 45 THEN NULL WHEN + COUNT( * ) / - 79 THEN + + 83 END * + - 61 + NULLIF ( - + 36, + - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT CASE - 39 WHEN 45 THEN NULL WHEN + COUNT ( * ) / - 79 THEN + + 83 END * + - 61 + NULLIF ( - + 36, + - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 97 * + 67 - 16, 0 AS col2
----
6483
0

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

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

query I rowsort
SELECT DISTINCT + 81 - - ( + ( - - 37 ) )
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-1309
SELECT ALL - NULLIF ( - 86, COUNT( * ) * + 63 * - + 58 + + 18 ), - 86 AS col0
----
86
-86

skipif mysql # not compatible
query II rowsort label-1309
SELECT ALL - NULLIF ( - 86, COUNT ( * ) * + 63 * - + 58 + + 18 ), - 86 AS col0
----
86
-86

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

query I rowsort
SELECT + - NULLIF ( - - 97, - 27 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT + 16 * + + COUNT( * ) * MIN( + 39 )
----
624

skipif mysql # not compatible
query I rowsort label-1312
SELECT + 16 * + + COUNT ( * ) * MIN ( + 39 )
----
624

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1316
SELECT NULLIF ( + 44, + COUNT( - + 80 ) * - 57 + - NULLIF ( + COUNT( * ), - - 99 - + CAST( - 14 AS SIGNED ) ) * - - 61 + 96 + 77 ) * + 52 * - SUM( 91 ) - + 85 DIV - 28
----
-208205

skipif mysql # not compatible
query I rowsort label-1316
SELECT NULLIF ( + 44, + COUNT ( - + 80 ) * - 57 + - NULLIF ( + COUNT ( * ), - - 99 - + CAST ( - 14 AS INTEGER ) ) * - - 61 + 96 + 77 ) * + 52 * - SUM ( 91 ) - + 85 / - 28
----
-208205

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT COUNT( DISTINCT 29 ) + 70 * 86 AS col0
----
6021

skipif mysql # not compatible
query I rowsort label-1317
SELECT COUNT ( DISTINCT 29 ) + 70 * 86 AS col0
----
6021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1318
SELECT CAST( NULL AS SIGNED ) - - 6 AS col2, CASE - 38 WHEN - COUNT( * ) THEN - 14 END * + 67 + - + 93
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1318
SELECT CAST ( NULL AS INTEGER ) - - 6 AS col2, CASE - 38 WHEN - COUNT ( * ) THEN - 14 END * + 67 + - + 93
----
NULL
NULL

query II rowsort
SELECT - 76 AS col1, - 58 AS col2
----
-76
-58

query I rowsort
SELECT DISTINCT - ( - - 17 ) * - + 21 AS col0
----
357

query II rowsort
SELECT - 31 col1, + 40 AS col2
----
-31
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1322
SELECT ALL - 55 * + + CAST( + 78 AS SIGNED )
----
-4290

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

query I rowsort
SELECT 37 * - 68
----
-2516

query II rowsort
SELECT ALL 1 * + + 59 AS col2, - 69 AS col2
----
59
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1325
SELECT ALL 86, COUNT( * ) * - - 59 / + + CAST( NULL AS SIGNED ) + + CASE + 12 WHEN + - COUNT( * ) THEN NULL WHEN 12 THEN - 42 ELSE NULL END AS col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL 86, COUNT ( * ) * - - 59 / + + CAST ( NULL AS INTEGER ) + + CASE + 12 WHEN + - COUNT ( * ) THEN NULL WHEN 12 THEN - 42 ELSE NULL END AS col1
----
86
NULL

query II rowsort
SELECT ALL 89, - ( + + 20 ) AS col0
----
89
-20

query I rowsort
SELECT 52 + - 14 + 32 * 29 AS col0
----
966

query II rowsort
SELECT DISTINCT 91 AS col0, + 33 - - 39 AS col1
----
91
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT DISTINCT 77 DIV 49 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT 77 / 49 / - 18
----
0

query I rowsort
SELECT 52 * 5
----
260

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

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

query I rowsort
SELECT 61 * 97
----
5917

query I rowsort
SELECT 97 + + 35
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT ALL - 47 + - NULLIF ( - COUNT( * ), 1 ) DIV 18
----
-47

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - 47 + - NULLIF ( - COUNT ( * ), 1 ) / 18
----
-47

query I rowsort
SELECT ALL + 20 + 94 AS col2
----
114

query I rowsort
SELECT 40 col1
----
40

query I rowsort
SELECT 87 * + 66 * - 38
----
-218196

query I rowsort
SELECT ALL - 48 + - + 53
----
-101

query I rowsort
SELECT - - 94 AS col0
----
94

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

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - MAX ( ALL - - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1342
SELECT DISTINCT - + 63 AS col1, - COUNT( * ) DIV + 16 + CAST( + 72 AS SIGNED ) AS col0
----
-63
72

skipif mysql # not compatible
query II rowsort label-1342
SELECT DISTINCT - + 63 AS col1, - COUNT ( * ) / + 16 + CAST ( + 72 AS INTEGER ) AS col0
----
-63
72

query II rowsort
SELECT - 37 - + 56 + - 65 + - - 19 AS col0, + 9
----
-139
9

query I rowsort
SELECT 71 * 4
----
284

query II rowsort
SELECT 28 AS col1, 63
----
28
63

query II rowsort
SELECT + + 20 AS col2, + 89
----
20
89

query I rowsort
SELECT ALL + 52 - - 97
----
149

query I rowsort
SELECT ( - 54 ) * - 41 AS col2
----
2214

query II rowsort
SELECT ALL - + 48 AS col1, 58 AS col2
----
-48
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1350
SELECT CAST( NULL AS SIGNED ) AS col2, 77 AS col2, - 84 * - COUNT( * ) AS col2
----
NULL
77
84

skipif mysql # not compatible
query III rowsort label-1350
SELECT CAST ( NULL AS INTEGER ) AS col2, 77 AS col2, - 84 * - COUNT ( * ) AS col2
----
NULL
77
84

query I rowsort
SELECT 43 - + 57 AS col1
----
-14

query II rowsort
SELECT + 17 AS col2, - 92 * - 62 AS col0
----
17
5704

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

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

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

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

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

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

query I rowsort
SELECT ALL 11 * + 52
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT CASE 11 WHEN - + 24 THEN - 81 WHEN + 7 THEN NULL END * - - 51 * + 38 + 25 + - COUNT( * ) * + 44 + - 29 * ( + 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT CASE 11 WHEN - + 24 THEN - 81 WHEN + 7 THEN NULL END * - - 51 * + 38 + 25 + - COUNT ( * ) * + 44 + - 29 * ( + 10 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1358
SELECT + CAST( COALESCE ( - + 65, + + 34, + COUNT( * ) + + 9 * + + ( - - ( + CASE - - 12 WHEN + CAST( - + 86 AS DECIMAL ) THEN NULL WHEN - + 49 * 65 + - - 45 * + 3 * + - ( 0 ) * + 85 * - 63 THEN - ( + - NULLIF ( 85, - - 21 ) ) - 77 * + 19 END ) ) ) AS SIGNED ) * 21 AS col2
----
-1365

skipif mysql # not compatible
query I rowsort label-1358
SELECT + CAST ( COALESCE ( - + 65, + + 34, + COUNT ( * ) + + 9 * + + ( - - ( + CASE - - 12 WHEN + CAST ( - + 86 AS REAL ) THEN NULL WHEN - + 49 * 65 + - - 45 * + 3 * + - ( 0 ) * + 85 * - 63 THEN - ( + - NULLIF ( 85, - - 21 ) ) - 77 * + 19 END ) ) ) AS INTEGER ) * 21 AS col2
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT - CAST( CAST( 16 AS SIGNED ) AS SIGNED ) * + CAST( + + 35 AS SIGNED ) + + ( - 47 ) * - 83 col1
----
3341

skipif mysql # not compatible
query I rowsort label-1359
SELECT - CAST ( CAST ( 16 AS INTEGER ) AS INTEGER ) * + CAST ( + + 35 AS INTEGER ) + + ( - 47 ) * - 83 col1
----
3341

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1361
SELECT ALL + 96 + + + 67 AS col1, MAX( ALL - CAST( NULL AS SIGNED ) )
----
163
NULL

skipif mysql # not compatible
query II rowsort label-1361
SELECT ALL + 96 + + + 67 AS col1, MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
163
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1362
SELECT CAST( CAST( + SUM( ALL ( - 3 ) ) AS DECIMAL ) AS SIGNED ) + + - 74 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1362
SELECT CAST ( CAST ( + SUM ( ALL ( - 3 ) ) AS REAL ) AS INTEGER ) + + - 74 AS col1
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT 65 + - 50 + + + 98 - + MAX( DISTINCT 35 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1364
SELECT 65 + - 50 + + + 98 - + MAX ( DISTINCT 35 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT ALL - 24 * - NULLIF ( + 78, + CAST( NULL AS SIGNED ) ) col2
----
1872

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL - 24 * - NULLIF ( + 78, + CAST ( NULL AS INTEGER ) ) col2
----
1872

query I rowsort
SELECT 72 * - ( 15 ) AS col0
----
-1080

query II rowsort
SELECT ALL 48 + 95, 72 AS col0
----
143
72

query I rowsort
SELECT + 88 * + 81
----
7128

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT - 71 + - COALESCE ( 81, 19 ) DIV + 64 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1369
SELECT - 71 + - COALESCE ( 81, 19 ) / + 64 AS col1
----
-72

query I rowsort
SELECT DISTINCT + 6 * + + 47
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT DISTINCT 47 + COUNT( * )
----
48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT ALL CASE AVG ( ALL + ( - 29 ) ) WHEN + + 40 THEN + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL CASE AVG ( ALL + ( - 29 ) ) WHEN + + 40 THEN + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 16 + + + 49 * - - 51
----
2515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT - + 42 + - 47 + - - CAST( 8 AS SIGNED ) * + 77 AS col0
----
527

skipif mysql # not compatible
query I rowsort label-1375
SELECT - + 42 + - 47 + - - CAST ( 8 AS INTEGER ) * + 77 AS col0
----
527

query II rowsort
SELECT - - 67 + - 11 AS col0, - 45 * + 16
----
56
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1377
SELECT - - 61 - - 68 AS col0, - 70 DIV - + COUNT( ALL CAST( + + 56 AS SIGNED ) )
----
129
70

skipif mysql # not compatible
query II rowsort label-1377
SELECT - - 61 - - 68 AS col0, - 70 / - + COUNT ( ALL CAST ( + + 56 AS INTEGER ) )
----
129
70

query I rowsort
SELECT + + 3 * - 42
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - + CASE + + 86 WHEN 97 - + 13 * + - 17 * COUNT( 11 ) * + MIN( 88 ) * - + ( - - 77 ) + + 74 THEN - COALESCE ( - - 85, - 58 * + 91 * 89, 30, + 34 * + 44 * - - 2 ) END + + 53 / - - COALESCE ( + COUNT( * ), CASE + 34 WHEN 53 * 15 THEN 58 END / 12 - COUNT( * ) ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT - + CASE + + 86 WHEN 97 - + 13 * + - 17 * COUNT ( 11 ) * + MIN ( 88 ) * - + ( - - 77 ) + + 74 THEN - COALESCE ( - - 85, - 58 * + 91 * 89, 30, + 34 * + 44 * - - 2 ) END + + 53 / - - COALESCE ( + COUNT ( * ), CASE + 34 WHEN 53 * 15 THEN 58 END / 12 - COUNT ( * ) ) * 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT + + 87 - - + CASE + + 8 WHEN + COUNT( * ) * - - 53 * - ( + 39 ) * + 26 + - COALESCE ( - COUNT( * ), - 63 ) + - + 9 THEN + + CAST( NULL AS SIGNED ) WHEN + 65 + - - 50 THEN - + 36 END + + 99 * 54 + - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT + + 87 - - + CASE + + 8 WHEN + COUNT ( * ) * - - 53 * - ( + 39 ) * + 26 + - COALESCE ( - COUNT ( * ), - 63 ) + - + 9 THEN + + CAST ( NULL AS INTEGER ) WHEN + 65 + - - 50 THEN - + 36 END + + 99 * 54 + - 94 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT - 58 DIV + - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 58 / + - 87 col1
----
0

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

query I rowsort
SELECT ALL + - 55
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL + + COUNT( * ) * CASE + 55 WHEN 44 THEN + 24 WHEN SUM( ALL + + 34 ) THEN - 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + + COUNT ( * ) * CASE + 55 WHEN 44 THEN + 24 WHEN SUM ( ALL + + 34 ) THEN - 96 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( - 6, + 49 * - 51 )
----
-6

query II rowsort
SELECT + ( - 61 ), 23 AS col2
----
-61
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + - 34 * - COUNT( * ) + + + COUNT( * ) + 75 * + - 31
----
-2290

skipif mysql # not compatible
query I rowsort label-1387
SELECT + - 34 * - COUNT ( * ) + + + COUNT ( * ) + 75 * + - 31
----
-2290

query I rowsort
SELECT - 74 * - 56
----
4144

query I rowsort
SELECT + + 10 + - 7 + + + 11 + + - 4 * - 33 * + ( - - 55 ) col0
----
7274

query I rowsort
SELECT COALESCE ( 81, + - 79 ) AS col1
----
81

query I rowsort
SELECT + + 41 * + - 8
----
-328

onlyif mysql # aggregate syntax: 
query II rowsort label-1392
SELECT + MIN( DISTINCT ( + + 20 ) ) AS col1, 30
----
20
30

skipif mysql # not compatible
query II rowsort label-1392
SELECT + MIN ( DISTINCT ( + + 20 ) ) AS col1, 30
----
20
30

query II rowsort
SELECT ALL 53 * - - 87 + - + 61 AS col0, 85 * + 66 AS col1
----
4550
5610

query II rowsort
SELECT ALL + 91 AS col2, - 5
----
91
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1395
SELECT ALL 59 * - CAST( - + 95 AS SIGNED ) + 60 + + 83
----
5748

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL 59 * - CAST ( - + 95 AS INTEGER ) + 60 + + 83
----
5748

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

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

query I rowsort
SELECT + 30 * - ( + 82 ) AS col2
----
-2460

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1400
SELECT DISTINCT 6 * - COUNT( * ) DIV - 34 col0, 18
----
0
18

skipif mysql # not compatible
query II rowsort label-1400
SELECT DISTINCT 6 * - COUNT ( * ) / - 34 col0, 18
----
0
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1401
SELECT + 76 + - 44 + CAST( + - SUM( 78 ) AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 76 + - 44 + CAST ( + - SUM ( 78 ) AS INTEGER )
----
-46

query I rowsort
SELECT + COALESCE ( + - 67, - 94, - 52 * 82 * - 86 ) - + - 64 - ( 81 ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1403
SELECT DISTINCT 13, + MIN( CAST( + 28 AS SIGNED ) ) AS col2
----
13
28

skipif mysql # not compatible
query II rowsort label-1403
SELECT DISTINCT 13, + MIN ( CAST ( + 28 AS INTEGER ) ) AS col2
----
13
28

query I rowsort
SELECT + ( 62 ) * + - 64 * - 43
----
170624

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - 5 * ( + MAX( 97 ) ) col2
----
-485

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 5 * ( + MAX ( 97 ) ) col2
----
-485

query I rowsort
SELECT - 89 + + 4 * + 40
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT + ( - 30 ) * CAST( NULL AS SIGNED ) * + + 83 / + 81 / 14 + - 94 + CASE + 19 WHEN 27 THEN + 28 WHEN - 43 * 53 THEN - MAX( DISTINCT 37 ) / - 95 ELSE NULL END * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT + ( - 30 ) * CAST ( NULL AS INTEGER ) * + + 83 / + 81 / 14 + - 94 + CASE + 19 WHEN 27 THEN + 28 WHEN - 43 * 53 THEN - MAX ( DISTINCT 37 ) / - 95 ELSE NULL END * - 38
----
NULL

query I rowsort
SELECT - 3 + + 25
----
22

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

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

query I rowsort
SELECT DISTINCT - 24 * - + 67 * - 88 - + 96
----
-141600

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT ALL + COUNT( * ) col0, + 98
----
1
98

skipif mysql # not compatible
query II rowsort label-1411
SELECT ALL + COUNT ( * ) col0, + 98
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT SUM( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1412
SELECT SUM ( DISTINCT 81 )
----
81

query I rowsort
SELECT ALL 43 * - 94 AS col1
----
-4042

query I rowsort
SELECT - - 80 * + 20
----
1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1415
SELECT - - 31 / CAST( NULL AS SIGNED ) + + CAST( ( - + 11 ) AS SIGNED ) + - + COUNT( * ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT - - 31 / CAST ( NULL AS INTEGER ) + + CAST ( ( - + 11 ) AS INTEGER ) + - + COUNT ( * ) + - 7
----
NULL

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

query II rowsort
SELECT + - 52 AS col0, + 61 AS col0
----
-52
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - CASE - 44 WHEN + 56 THEN + 56 WHEN + ( + 52 ) + - - COUNT( * ) THEN NULL END / AVG ( - - 79 ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT - CASE - 44 WHEN + 56 THEN + 56 WHEN + ( + 52 ) + - - COUNT ( * ) THEN NULL END / AVG ( - - 79 ) * 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1420
SELECT ALL - 8 DIV 14 + ( - + 0 ) * - - 80 + 48 AS col0, + 25 + COALESCE ( + 81, 12 ) * - NULLIF ( + - 94, - 91 * ( - 10 ) + + - CAST( NULL AS SIGNED ) )
----
48
7639

skipif mysql # not compatible
query II rowsort label-1420
SELECT ALL - 8 / 14 + ( - + 0 ) * - - 80 + 48 AS col0, + 25 + COALESCE ( + 81, 12 ) * - NULLIF ( + - 94, - 91 * ( - 10 ) + + - CAST ( NULL AS INTEGER ) )
----
48
7639

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

query I rowsort
SELECT ALL 60 * + 27
----
1620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT DISTINCT + 81 / + CAST( NULL AS SIGNED ) + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + 81 / + CAST ( NULL AS INTEGER ) + + 7
----
NULL

query I rowsort
SELECT 46 + + 74 + - + 23
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1425
SELECT 91 - 49 DIV 27 DIV 84 AS col0, 64 DIV COUNT( * ) AS col1
----
91
64

skipif mysql # not compatible
query II rowsort label-1425
SELECT 91 - 49 / 27 / 84 AS col0, 64 / COUNT ( * ) AS col1
----
91
64

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

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

query I rowsort
SELECT ALL 53 - - 4 + - 25
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL - COALESCE ( - - COUNT( * ), - 99 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL - COALESCE ( - - COUNT ( * ), - 99 ) col0
----
-1

query I rowsort
SELECT + 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT 90 + + NULLIF ( - + COUNT( * ), + 58 - ( - COUNT( * ) ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1430
SELECT 90 + + NULLIF ( - + COUNT ( * ), + 58 - ( - COUNT ( * ) ) ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT ALL - 89 DIV COUNT( * ) AS col2
----
-89

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

query II rowsort
SELECT 16 * - 60 AS col2, 63 * + - 19 AS col1
----
-960
-1197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1433
SELECT ( + CASE - CAST( + 71 AS SIGNED ) WHEN 69 THEN + 72 * 19 * 60 WHEN - 37 THEN NULL WHEN - - COUNT( * ) + + 51 * 61 / + 38 + 56 / + 41 THEN - COUNT( * ) END ) * + - 15 * + 15 * + 61 + - + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT ( + CASE - CAST ( + 71 AS INTEGER ) WHEN 69 THEN + 72 * 19 * 60 WHEN - 37 THEN NULL WHEN - - COUNT ( * ) + + 51 * 61 / + 38 + 56 / + 41 THEN - COUNT ( * ) END ) * + - 15 * + 15 * + 61 + - + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1434
SELECT - COUNT( * ) DIV + - COUNT( + - 99 ) + - + COUNT( * ) AS col1, 85 DIV + 28 - - 80
----
0
83

skipif mysql # not compatible
query II rowsort label-1434
SELECT - COUNT ( * ) / + - COUNT ( + - 99 ) + - + COUNT ( * ) AS col1, 85 / + 28 - - 80
----
0
83

query I rowsort
SELECT ALL - CASE 94 WHEN - - 62 + - 50 THEN NULL ELSE - 90 END AS col1
----
90

query I rowsort
SELECT + 40 - 50
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL - 95 * - - COUNT( * ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - 95 * - - COUNT ( * ) col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT ALL CAST( MAX( ALL 96 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL CAST ( MAX ( ALL 96 ) AS INTEGER )
----
96

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

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

query I rowsort
SELECT - 6 + - - 97 * - 96 AS col0
----
-9318

query I rowsort
SELECT - 80 * + 44 col2
----
-3520

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT 28 + + 97 - - COUNT( * ) + + - MAX( ALL 82 ) * + - MAX( 82 ) * - NULLIF ( - - 91, + 34 ) + - 34 + COUNT( * ) AS col2, - 88 * + - 66
----
-611791
5808

skipif mysql # not compatible
query II rowsort label-1442
SELECT 28 + + 97 - - COUNT ( * ) + + - MAX ( ALL 82 ) * + - MAX ( 82 ) * - NULLIF ( - - 91, + 34 ) + - 34 + COUNT ( * ) AS col2, - 88 * + - 66
----
-611791
5808

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT - CASE - 92 WHEN - - 34 * 79 + + NULLIF ( - COUNT( * ), 37 ) THEN - 34 * + 24 * 65 + + - 27 ELSE NULL END - - 50 / 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT - CASE - 92 WHEN - - 34 * 79 + + NULLIF ( - COUNT ( * ), 37 ) THEN - 34 * + 24 * 65 + + - 27 ELSE NULL END - - 50 / 5 AS col1
----
NULL

query I rowsort
SELECT - 33 + + 14
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT 18 - - COUNT( DISTINCT 71 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1445
SELECT 18 - - COUNT ( DISTINCT 71 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL SUM( ALL + 44 ) * + 87
----
3828

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL SUM ( ALL + 44 ) * + 87
----
3828

query I rowsort
SELECT - - 66 col2
----
66

query I rowsort
SELECT ALL + 88 + 76 * + 40 AS col1
----
3128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL 66 + COUNT( DISTINCT - 80 )
----
67

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL 66 + COUNT ( DISTINCT - 80 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT 46 * MIN( + - 90 )
----
-4140

skipif mysql # not compatible
query I rowsort label-1452
SELECT 46 * MIN ( + - 90 )
----
-4140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT + ( + - ( COUNT( * ) ) ) * - 4 * - 16 + 61 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1454
SELECT + ( + - ( COUNT ( * ) ) ) * - 4 * - 16 + 61 AS col1
----
-3

query I rowsort
SELECT DISTINCT + 20 - - - 15
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1456
SELECT 71 * - - 5 * - - CAST( - 56 AS SIGNED ) AS col2
----
-19880

skipif mysql # not compatible
query I rowsort label-1456
SELECT 71 * - - 5 * - - CAST ( - 56 AS INTEGER ) AS col2
----
-19880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1457
SELECT 81 * + - 58 DIV COUNT( * ) AS col0, COUNT( * ) AS col2
----
-4698
1

skipif mysql # not compatible
query II rowsort label-1457
SELECT 81 * + - 58 / COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-4698
1

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

query I rowsort
SELECT + COALESCE ( - ( + - 44 ), 89 ) * + - 77 + - + 22
----
-3410

query I rowsort
SELECT 71 * - 93 AS col0
----
-6603

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

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

query I rowsort
SELECT + 25 * - + 90 - 93
----
-2343

query I rowsort
SELECT 90 - 77
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT 96 * - - MAX( ALL 74 )
----
7104

skipif mysql # not compatible
query I rowsort label-1464
SELECT 96 * - - MAX ( ALL 74 )
----
7104

onlyif mysql # DIV for integer division: 
query I rowsort label-1465
SELECT 31 + + 9 + - - ( 59 ) DIV - - 75
----
40

skipif mysql # not compatible
query I rowsort label-1465
SELECT 31 + + 9 + - - ( 59 ) / - - 75
----
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1467
SELECT DISTINCT - 85 * 73 * - + 30, + COUNT( * ) * - NULLIF ( - 49, - 76 ) AS col2
----
186150
49

skipif mysql # not compatible
query II rowsort label-1467
SELECT DISTINCT - 85 * 73 * - + 30, + COUNT ( * ) * - NULLIF ( - 49, - 76 ) AS col2
----
186150
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT - 38 + - 34 - + 14 DIV 26 DIV + 73 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1468
SELECT - 38 + - 34 - + 14 / 26 / + 73 AS col2
----
-72

query I rowsort
SELECT - 38 * 40 + + ( + CASE + 63 WHEN - 16 THEN + - 40 ELSE NULL END ) / - 96 * - ( - + ( + + 59 ) ) * - 13 + + 35 - - 72 + - 3 * - 0 / 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL - - 42 DIV + 26
----
1

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - - 42 / + 26
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT - 65 / - + CAST( NULL AS SIGNED ) * - - ( NULLIF ( + 13, - 22 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT - 65 / - + CAST ( NULL AS INTEGER ) * - - ( NULLIF ( + 13, - 22 ) )
----
NULL

query I rowsort
SELECT + 4 * - + 41 AS col2
----
-164

query I rowsort
SELECT ALL COALESCE ( + 64, 72 ) + - - COALESCE ( 82, 19 )
----
146

query I rowsort
SELECT 32 + + NULLIF ( 6, - 97 * + 80 * + 68 + - 77 + - 77 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1475
SELECT DISTINCT + + 0 * + COALESCE ( + - COUNT( * ), - COUNT( * ) - CAST( NULL AS SIGNED ) + - COALESCE ( - MIN( DISTINCT + + 48 ), + 17 ) * - 2, + COUNT( * ) ) * + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + + 0 * + COALESCE ( + - COUNT ( * ), - COUNT ( * ) - CAST ( NULL AS INTEGER ) + - COALESCE ( - MIN ( DISTINCT + + 48 ), + 17 ) * - 2, + COUNT ( * ) ) * + 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT DISTINCT - SUM( ALL - 10 ) + - 87 + - 83 col0
----
-160

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - SUM ( ALL - 10 ) + - 87 + - 83 col0
----
-160

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

query I rowsort
SELECT ALL 50 + + ( ( - - ( 5 ) ) )
----
55

query I rowsort
SELECT + 20 - 48 + + ( + - 79 ) AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - - COUNT( * ) * + + CASE - COUNT( * ) WHEN - + 16 THEN + ( - - 8 ) ELSE + 30 END - + 10 * + - COALESCE ( + 25, + 33 ) col2
----
280

skipif mysql # not compatible
query I rowsort label-1480
SELECT - - COUNT ( * ) * + + CASE - COUNT ( * ) WHEN - + 16 THEN + ( - - 8 ) ELSE + 30 END - + 10 * + - COALESCE ( + 25, + 33 ) col2
----
280

query II rowsort
SELECT ALL + 17, 39 + + 63 AS col2
----
17
102

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT ALL + 20 AS col0, 85 + + 62 + + COUNT( * ) * - 48
----
20
99

skipif mysql # not compatible
query II rowsort label-1482
SELECT ALL + 20 AS col0, 85 + + 62 + + COUNT ( * ) * - 48
----
20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT CASE + + CASE 63 WHEN + 57 * - 43 + + - COUNT( * ) * + 76 + - 10 - 41 THEN NULL WHEN 45 THEN + 62 * SUM( DISTINCT 41 ) END WHEN - + 15 THEN + 66 * + + 98 * + ( + - 91 ) WHEN + COUNT( - 24 ) * + - 85 - 29 * 49 + - - ( 68 ) THEN NULL END * - - 98 - + 44 + 85 + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT CASE + + CASE 63 WHEN + 57 * - 43 + + - COUNT ( * ) * + 76 + - 10 - 41 THEN NULL WHEN 45 THEN + 62 * SUM ( DISTINCT 41 ) END WHEN - + 15 THEN + 66 * + + 98 * + ( + - 91 ) WHEN + COUNT ( - 24 ) * + - 85 - 29 * 49 + - - ( 68 ) THEN NULL END * - - 98 - + 44 + 85 + + 22
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL 90 * + 59 * + - CAST( NULL AS SIGNED ) * + 29 * - 65 - 50 * - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL 90 * + 59 * + - CAST ( NULL AS INTEGER ) * + 29 * - 65 - 50 * - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT + MAX( 98 ) - - 63 * - 56 * - COUNT( * )
----
3626

skipif mysql # not compatible
query I rowsort label-1486
SELECT + MAX ( 98 ) - - 63 * - 56 * - COUNT ( * )
----
3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT DISTINCT 83 * + CAST( + 29 AS SIGNED ) AS col1
----
2407

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT 83 * + CAST ( + 29 AS INTEGER ) AS col1
----
2407

query I rowsort
SELECT COALESCE ( 15, 31 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1489
SELECT 7 * + 98 + + COUNT( * ) * + + ( COUNT( * ) ) * + + 71 + 19, + 78 AS col0
----
776
78

skipif mysql # not compatible
query II rowsort label-1489
SELECT 7 * + 98 + + COUNT ( * ) * + + ( COUNT ( * ) ) * + + 71 + 19, + 78 AS col0
----
776
78

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT + COUNT ( * ) / + 48 col0
----
0

query I rowsort
SELECT - 29 * + - 88 AS col0
----
2552

query I rowsort
SELECT - 6 * + 19 AS col2
----
-114

query II rowsort
SELECT ALL + 51, 21 * 61 * + 89 AS col1
----
51
114009

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + 58 * - 32 * + - COUNT( * ) + - + COUNT( * ) col2
----
1855

skipif mysql # not compatible
query I rowsort label-1494
SELECT + 58 * - 32 * + - COUNT ( * ) + - + COUNT ( * ) col2
----
1855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT - 82 - CASE - 23 WHEN - 13 THEN - 46 + - 93 WHEN 57 * - NULLIF ( 96, + 7 + + 26 ) + + NULLIF ( COUNT( * ), 92 + + 3 * COUNT( * ) - - 19 + - - COUNT( * ) - CAST( NULL AS SIGNED ) + 58 * COUNT( * ) ) THEN 2 ELSE NULL END * + COUNT( * ) * 72 * - - ( ( + 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT - 82 - CASE - 23 WHEN - 13 THEN - 46 + - 93 WHEN 57 * - NULLIF ( 96, + 7 + + 26 ) + + NULLIF ( COUNT ( * ), 92 + + 3 * COUNT ( * ) - - 19 + - - COUNT ( * ) - CAST ( NULL AS INTEGER ) + 58 * COUNT ( * ) ) THEN 2 ELSE NULL END * + COUNT ( * ) * 72 * - - ( ( + 11 ) )
----
NULL

query I rowsort
SELECT - 99 * - - 49 AS col1
----
-4851

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1498
SELECT ALL + COUNT( * ) * + ( + COUNT( * ) ) * - - 91 + - - SUM( DISTINCT + 65 ) * + CAST( NULL AS SIGNED ) * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL + COUNT ( * ) * + ( + COUNT ( * ) ) * - - 91 + - - SUM ( DISTINCT + 65 ) * + CAST ( NULL AS INTEGER ) * + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1499
SELECT DISTINCT + - COUNT( * ) * - CASE + 78 WHEN + CAST( NULL AS SIGNED ) THEN ( + 9 ) / + 94 + - + 88 END + ( - AVG ( ALL - 61 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + - COUNT ( * ) * - CASE + 78 WHEN + CAST ( NULL AS INTEGER ) THEN ( + 9 ) / + 94 + - + 88 END + ( - AVG ( ALL - 61 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 4 + - - 56 - 14 * - 7 * - 77
----
-7486

query II rowsort
SELECT 44, + 95 + - 85 AS col1
----
44
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT - 47 AS col2, - COUNT( * ) - + 90 AS col1
----
-47
-91

skipif mysql # not compatible
query II rowsort label-1502
SELECT - 47 AS col2, - COUNT ( * ) - + 90 AS col1
----
-47
-91

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

query I rowsort
SELECT ALL - 13 * - 84 AS col0
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - - 7 + - + SUM( + 22 ) * - + 37 + - 98
----
723

skipif mysql # not compatible
query I rowsort label-1505
SELECT - - 7 + - + SUM ( + 22 ) * - + 37 + - 98
----
723

query I rowsort
SELECT - 72 * 51
----
-3672

query I rowsort
SELECT ALL + - 77 + - - 9 - + 80
----
-148

query II rowsort
SELECT ALL - 60 AS col0, - 63
----
-60
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL - CASE - 8 WHEN - - COALESCE ( + - 31, - + 96, - 35 ) * 64 + - + 95 THEN + - MAX( DISTINCT - - 23 ) * + COALESCE ( 84, 52, - 59 * + 61 ) * - 35 * - 58 + + + 1 + + + 47 + ( + ( + COUNT( * ) ) ) WHEN - - 52 THEN NULL END * + 98 * 47 * 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - CASE - 8 WHEN - - COALESCE ( + - 31, - + 96, - 35 ) * 64 + - + 95 THEN + - MAX ( DISTINCT - - 23 ) * + COALESCE ( 84, 52, - 59 * + 61 ) * - 35 * - 58 + + + 1 + + + 47 + ( + ( + COUNT ( * ) ) ) WHEN - - 52 THEN NULL END * + 98 * 47 * 51 AS col2
----
NULL

query I rowsort
SELECT - 38 + 56 * 93 * - - 2
----
10378

query I rowsort
SELECT ALL - 61 + + - 82 - - - 96
----
-239

query I rowsort
SELECT + + 91 + 70 AS col0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT DISTINCT + - MIN( ALL + 67 ) DIV + 63 - - 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT + - MIN ( ALL + 67 ) / + 63 - - 99 AS col0
----
98

query I rowsort
SELECT - - 5 + + 89
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT + + 42 * + COUNT( ALL + - 86 ) * 98 AS col0
----
4116

skipif mysql # not compatible
query I rowsort label-1515
SELECT + + 42 * + COUNT ( ALL + - 86 ) * 98 AS col0
----
4116

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

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

query I rowsort
SELECT - + 31 + + 95
----
64

query I rowsort
SELECT + + 25 + - + 76 + CASE + - 16 WHEN + 74 * - ( + 40 ) THEN CASE ( - 25 ) WHEN + 23 THEN NULL ELSE + 21 END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL 78 - 37 + + - CASE - - 70 WHEN - 72 THEN COUNT( * ) WHEN 83 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL 78 - 37 + + - CASE - - 70 WHEN - 72 THEN COUNT ( * ) WHEN 83 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT + 84 * - MAX( - ( + - 65 ) ) AS col1
----
-5460

skipif mysql # not compatible
query I rowsort label-1520
SELECT + 84 * - MAX ( - ( + - 65 ) ) AS col1
----
-5460

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT + 36 DIV + 63 + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1521
SELECT + 36 / + 63 + 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + COUNT( * ) + + 61 - COALESCE ( - - 42, 73 ) - + - MIN( - 36 ) + + MAX( + - 82 )
----
-98

skipif mysql # not compatible
query I rowsort label-1522
SELECT + COUNT ( * ) + + 61 - COALESCE ( - - 42, 73 ) - + - MIN ( - 36 ) + + MAX ( + - 82 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT ALL 55 DIV - 16 - 43 - - - 79 + 15 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL 55 / - 16 - 43 - - - 79 + 15 AS col1
----
-110

query I rowsort
SELECT + 12 + - + 96 * + 85 - + 58
----
-8206

query I rowsort
SELECT + COALESCE ( 17, 56, - - 39 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT 30 * 33 + - SUM( DISTINCT - 75 )
----
1065

skipif mysql # not compatible
query I rowsort label-1526
SELECT 30 * 33 + - SUM ( DISTINCT - 75 )
----
1065

query I rowsort
SELECT ( - 19 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL MAX( - - 39 ) * - 54
----
-2106

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL MAX ( - - 39 ) * - 54
----
-2106

query I rowsort
SELECT ( 40 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT 31 * - + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) + + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT 31 * - + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + + 78 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1531
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - 60 * MAX( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 60 * MAX ( 89 )
----
NULL

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

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

query I rowsort
SELECT - 78 * - + 81 + + 62 + 30 - + - 1 AS col0
----
6411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT ALL - 85 * - + CAST( NULL AS SIGNED ) * + - 66 + + 0 + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - 85 * - + CAST ( NULL AS INTEGER ) * + - 66 + + 0 + - 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT - COUNT( DISTINCT 69 ) * - 90 - + 31
----
59

skipif mysql # not compatible
query I rowsort label-1535
SELECT - COUNT ( DISTINCT 69 ) * - 90 - + 31
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1536
SELECT + - CASE NULLIF ( + 28, + - 48 * - 48 ) WHEN 57 + 24 * + SUM( + - 10 ) * 95 - - 60 THEN + - 19 WHEN CASE - + 64 WHEN - - 55 THEN 69 / - COUNT( * ) / COUNT( * ) WHEN AVG ( + 50 ) THEN NULL WHEN 40 / + COUNT( * ) + + COUNT( * ) + ( + 5 ) THEN 50 END + COUNT( * ) * 98 - + 89 + CAST( 22 AS SIGNED ) + + 59 / + 93 * + - 53 THEN - + 61 * - NULLIF ( - NULLIF ( 63, CAST( COUNT( 29 ) AS DECIMAL ) ), - COUNT( * ) ) * 54 ELSE 85 + 61 * + 65 END
----
-4050

skipif mysql # not compatible
query I rowsort label-1536
SELECT + - CASE NULLIF ( + 28, + - 48 * - 48 ) WHEN 57 + 24 * + SUM ( + - 10 ) * 95 - - 60 THEN + - 19 WHEN CASE - + 64 WHEN - - 55 THEN 69 / - COUNT ( * ) / COUNT ( * ) WHEN AVG ( + 50 ) THEN NULL WHEN 40 / + COUNT ( * ) + + COUNT ( * ) + ( + 5 ) THEN 50 END + COUNT ( * ) * 98 - + 89 + CAST ( 22 AS INTEGER ) + + 59 / + 93 * + - 53 THEN - + 61 * - NULLIF ( - NULLIF ( 63, CAST ( COUNT ( 29 ) AS REAL ) ), - COUNT ( * ) ) * 54 ELSE 85 + 61 * + 65 END
----
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1537
SELECT + ( + 64 ) DIV COUNT( DISTINCT 51 )
----
64

skipif mysql # not compatible
query I rowsort label-1537
SELECT + ( + 64 ) / COUNT ( DISTINCT 51 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT ALL + - SUM( ALL 75 ) DIV + 5
----
-15

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + - SUM ( ALL 75 ) / + 5
----
-15

query I rowsort
SELECT ALL - 1 * + - 37
----
37

query I rowsort
SELECT - + NULLIF ( 50, + 76 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - + COUNT( DISTINCT - 3 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1541
SELECT - + COUNT ( DISTINCT - 3 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT - MIN( ALL - 68 ) AS col2, 79 + - 45 * + 18
----
68
-731

skipif mysql # not compatible
query II rowsort label-1542
SELECT - MIN ( ALL - 68 ) AS col2, 79 + - 45 * + 18
----
68
-731

query I rowsort
SELECT ALL + + 70 * - - 66
----
4620

query I rowsort
SELECT 72 + - - ( 4 ) AS col0
----
76

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

query II rowsort
SELECT DISTINCT + 7 * 51 AS col2, 68 AS col2
----
357
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT ALL - + 58 - - 74 DIV - + ( + 24 )
----
-61

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - + 58 - - 74 / - + ( + 24 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1548
SELECT ALL + + CAST( - 89 AS SIGNED ) * SUM( - NULLIF ( CASE + 56 WHEN 96 / 85 THEN - ( + ( + 64 ) ) - + + 42 END, - 79 ) ), + 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1548
SELECT ALL + + CAST ( - 89 AS INTEGER ) * SUM ( - NULLIF ( CASE + 56 WHEN 96 / 85 THEN - ( + ( + 64 ) ) - + + 42 END, - 79 ) ), + 0 AS col0
----
NULL
0

query I rowsort
SELECT 51 * ( 78 ) + + 3
----
3981

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT ALL NULLIF ( + 32, + 36 ) DIV 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL NULLIF ( + 32, + 36 ) / 62 AS col2
----
0

query I rowsort
SELECT 64 + + 49 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT 71 - - COUNT( * ) - 31 + - 89 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1552
SELECT 71 - - COUNT ( * ) - 31 + - 89 AS col2
----
-48

query II rowsort
SELECT ALL - 61 AS col0, + 67 * + 91 AS col2
----
-61
6097

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

query I rowsort
SELECT DISTINCT - 98 + 80
----
-18

query I rowsort
SELECT ALL - 44 + - - 32
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-1557
SELECT + 2, 13 DIV + - 74 AS col0
----
2
0

skipif mysql # not compatible
query II rowsort label-1557
SELECT + 2, 13 / + - 74 AS col0
----
2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1558
SELECT ALL 17 + - 76 * 75 * + 1 + + + CAST( NULL AS SIGNED ) + - 75 / + MIN( DISTINCT - - 17 ) AS col0, SUM( ALL + 93 ) col0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL 17 + - 76 * 75 * + 1 + + + CAST ( NULL AS INTEGER ) + - 75 / + MIN ( DISTINCT - - 17 ) AS col0, SUM ( ALL + 93 ) col0
----
NULL
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT 44 * + - 37 - - 67 + 19 DIV + 98 + + - 72 + + 65
----
-1568

skipif mysql # not compatible
query I rowsort label-1559
SELECT 44 * + - 37 - - 67 + 19 / + 98 + + - 72 + + 65
----
-1568

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT ALL - 8 + - 49 DIV 70 * - 31
----
-8

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL - 8 + - 49 / 70 * - 31
----
-8

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT 18 + ( + - 8 ) + + 28 * - - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1563
SELECT 18 + ( + - 8 ) + + 28 * - - COUNT ( * ) AS col0
----
38

query I rowsort
SELECT 7 - + 18 AS col1
----
-11

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT + - 41 AS col1, + 62 + + CASE - + MAX( ALL 0 ) WHEN + 34 THEN - + 51 * + COUNT( * ) / 48 END * + 61 + 94 + 71 + 27 AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-1567
SELECT + - 41 AS col1, + 62 + + CASE - + MAX ( ALL 0 ) WHEN + 34 THEN - + 51 * + COUNT ( * ) / 48 END * + 61 + 94 + 71 + 27 AS col1
----
-41
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT ALL COUNT( * ) col1, 72 + - 41
----
1
31

skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL COUNT ( * ) col1, 72 + - 41
----
1
31

query I rowsort
SELECT 66 * + - 36 AS col1
----
-2376

query I rowsort
SELECT 10 * + 15 AS col1
----
150

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - COUNT( * ) + - 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1572
SELECT - COUNT ( * ) + - 75 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1573
SELECT ALL - 78 - - CASE WHEN 65 IS NULL THEN - + 2 END + + COUNT( * ), + ( - 99 ) AS col2
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-1573
SELECT ALL - 78 - - CASE WHEN 65 IS NULL THEN - + 2 END + + COUNT ( * ), + ( - 99 ) AS col2
----
NULL
-99

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

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

query II rowsort
SELECT DISTINCT 67, + 70 AS col0
----
67
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT DISTINCT - - NULLIF ( - 70, 30 ) DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - - NULLIF ( - 70, 30 ) / - 94
----
0

query I rowsort
SELECT 66 + - 72 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT + COUNT( * ) DIV + 23 * - 84 * + - 19 * + COUNT( * ) * 89
----
0

skipif mysql # not compatible
query I rowsort label-1578
SELECT + COUNT ( * ) / + 23 * - 84 * + - 19 * + COUNT ( * ) * 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT ALL - COUNT( * ) * + 96 * + 82 * CAST( NULL AS SIGNED ) * 30 * + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - COUNT ( * ) * + 96 * + 82 * CAST ( NULL AS INTEGER ) * 30 * + 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ( COUNT( + 32 ) ) * - 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1580
SELECT ( COUNT ( + 32 ) ) * - 66 AS col2
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT 9 + - 40 - - 46 * - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1582
SELECT 9 + - 40 - - 46 * - COUNT ( * ) AS col2
----
-77

query I rowsort
SELECT ALL - NULLIF ( + 28, 23 ) + + 83 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT 16 + MIN( 66 )
----
82

skipif mysql # not compatible
query I rowsort label-1584
SELECT 16 + MIN ( 66 )
----
82

query I rowsort
SELECT 19 * + 40 * + - 26
----
-19760

query I rowsort
SELECT 90 * - 86 AS col0
----
-7740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL + COALESCE ( + + 1, - CAST( - 70 AS SIGNED ) + + 97 ) * - 26 + - + 37
----
-63

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + COALESCE ( + + 1, - CAST ( - 70 AS INTEGER ) + + 97 ) * - 26 + - + 37
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT DISTINCT COUNT( * ) + - NULLIF ( - 84, - - 18 ) * 98 * - 70 col2
----
-576239

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT COUNT ( * ) + - NULLIF ( - 84, - - 18 ) * 98 * - 70 col2
----
-576239

query I rowsort
SELECT ALL 59 + NULLIF ( - + ( - 95 ), + + 54 )
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1590
SELECT DISTINCT COUNT( * ) + 10 AS col2, - 92 DIV 61
----
11
-1

skipif mysql # not compatible
query II rowsort label-1590
SELECT DISTINCT COUNT ( * ) + 10 AS col2, - 92 / 61
----
11
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1591
SELECT ALL - 69 * CAST( + + COUNT( * ) AS SIGNED ) * + 27 + 31 + - 80 DIV 28
----
-1834

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - 69 * CAST ( + + COUNT ( * ) AS INTEGER ) * + 27 + 31 + - 80 / 28
----
-1834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1592
SELECT 76 DIV + 61 + + 52 * + - CAST( + - NULLIF ( + + 94, - 67 - MIN( - + 88 ) ) AS SIGNED ) AS col1, + 21 - - COUNT( * ) col0
----
4889
22

skipif mysql # not compatible
query II rowsort label-1592
SELECT 76 / + 61 + + 52 * + - CAST ( + - NULLIF ( + + 94, - 67 - MIN ( - + 88 ) ) AS INTEGER ) AS col1, + 21 - - COUNT ( * ) col0
----
4889
22

query I rowsort
SELECT 25 + - 46
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT DISTINCT - COUNT( DISTINCT 85 ) * - - 9 * + NULLIF ( 60, - + 56 ) - - 95 + - 39
----
-484

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - COUNT ( DISTINCT 85 ) * - - 9 * + NULLIF ( 60, - + 56 ) - - 95 + - 39
----
-484

query I rowsort
SELECT 5 * ( - 13 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1596
SELECT - 70 DIV - COUNT( * ) + 59 - 34 * 61 col2, 50 AS col1
----
-1945
50

skipif mysql # not compatible
query II rowsort label-1596
SELECT - 70 / - COUNT ( * ) + 59 - 34 * 61 col2, 50 AS col1
----
-1945
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1597
SELECT 24 DIV + 38 col2, 75 * - COUNT( * )
----
0
-75

skipif mysql # not compatible
query II rowsort label-1597
SELECT 24 / + 38 col2, 75 * - COUNT ( * )
----
0
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL - 25 * + - MAX( DISTINCT 21 ) AS col1
----
525

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - 25 * + - MAX ( DISTINCT 21 ) AS col1
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT SUM( + 76 ) * MAX( DISTINCT + 93 ) - - 98 + - 92 + - 56 + - 82 - 1 - + 24 * ( - + 6 ) - 56 + + 33
----
7056

skipif mysql # not compatible
query I rowsort label-1599
SELECT SUM ( + 76 ) * MAX ( DISTINCT + 93 ) - - 98 + - 92 + - 56 + - 82 - 1 - + 24 * ( - + 6 ) - 56 + + 33
----
7056

onlyif mysql # DIV for integer division: 
query II rowsort label-1600
SELECT ALL - 14 DIV - 96 AS col1, + 62 AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-1600
SELECT ALL - 14 / - 96 AS col1, + 62 AS col0
----
0
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT ALL - 12 * - CAST( 17 AS SIGNED ) - + - 59
----
263

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - 12 * - CAST ( 17 AS INTEGER ) - + - 59
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL 8 * 99 - - + CASE 0 WHEN - 93 THEN NULL WHEN + 68 THEN NULL WHEN 98 THEN 47 + ( - 55 ) END + MAX( ALL 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 8 * 99 - - + CASE 0 WHEN - 93 THEN NULL WHEN + 68 THEN NULL WHEN 98 THEN 47 + ( - 55 ) END + MAX ( ALL 44 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1603
SELECT - - CASE + + 92 WHEN + 40 * 97 + + 24 THEN - 38 ELSE + COUNT( * ) END DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-1603
SELECT - - CASE + + 92 WHEN + 40 * 97 + + 24 THEN - 38 ELSE + COUNT ( * ) END / + 23
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1604
SELECT ALL - ( - CASE - 27 WHEN CAST( NULL AS SIGNED ) * + COUNT( * ) / - CAST( 33 AS SIGNED ) THEN NULL WHEN - 61 THEN + 57 WHEN + 80 THEN NULL END ) * - - CASE + NULLIF ( 47, - 74 ) WHEN - COALESCE ( + - AVG ( - - 33 ), - 18, + ( + - 98 ) + - 77 + - + COUNT( 34 ) ) THEN - 76 ELSE NULL END AS col2, + 8 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL - ( - CASE - 27 WHEN CAST ( NULL AS INTEGER ) * + COUNT ( * ) / - CAST ( 33 AS INTEGER ) THEN NULL WHEN - 61 THEN + 57 WHEN + 80 THEN NULL END ) * - - CASE + NULLIF ( 47, - 74 ) WHEN - COALESCE ( + - AVG ( - - 33 ), - 18, + ( + - 98 ) + - 77 + - + COUNT ( 34 ) ) THEN - 76 ELSE NULL END AS col2, + 8 AS col1
----
NULL
8

query I rowsort
SELECT DISTINCT + - 29 * - - 87
----
-2523

query I rowsort
SELECT + + 95 * + 9
----
855

query I rowsort
SELECT DISTINCT + + 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1608
SELECT - SUM( - + CAST( NULL AS SIGNED ) ) AS col0, ( - 97 ) + - 63
----
NULL
-160

skipif mysql # not compatible
query II rowsort label-1608
SELECT - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0, ( - 97 ) + - 63
----
NULL
-160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1609
SELECT - + 54 * - 27 - - + ( + 23 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT - + 54 * - 27 - - + ( + 23 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT + + COUNT( * ) + CASE - 22 WHEN + ( CAST( - CASE + - 68 WHEN + 42 THEN - 36 + - COUNT( * ) + + CAST( NULL AS SIGNED ) + + SUM( ALL + + 92 ) * + + COUNT( * ) / + - 44 / + + NULLIF ( + - ( - COUNT( * ) ), + 68 ) END AS SIGNED ) ) THEN - + 52 ELSE NULL END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT + + COUNT ( * ) + CASE - 22 WHEN + ( CAST ( - CASE + - 68 WHEN + 42 THEN - 36 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + SUM ( ALL + + 92 ) * + + COUNT ( * ) / + - 44 / + + NULLIF ( + - ( - COUNT ( * ) ), + 68 ) END AS INTEGER ) ) THEN - + 52 ELSE NULL END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1611
SELECT + + MIN( ALL + - 16 ), - 21 + ( - 54 ) - COUNT( * ) * - 78 + - NULLIF ( + CAST( NULL AS SIGNED ), 72 ) * + 60 * - ( - + 13 ) / + - ( + 17 ) * - 77 * 96 AS col2
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-1611
SELECT + + MIN ( ALL + - 16 ), - 21 + ( - 54 ) - COUNT ( * ) * - 78 + - NULLIF ( + CAST ( NULL AS INTEGER ), 72 ) * + 60 * - ( - + 13 ) / + - ( + 17 ) * - 77 * 96 AS col2
----
-16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL - NULLIF ( - COUNT( * ), 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - NULLIF ( - COUNT ( * ), 29 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1613
SELECT + - 68 * + 73 * 36 + - 25 - 4 + 18 + - 24 * + MIN( ALL + 43 ) * - CASE + 45 WHEN - 58 THEN + CASE + + 15 WHEN + 79 THEN NULL WHEN + 89 THEN NULL ELSE - - 31 * - - 67 - + 72 END * - 65 * 0 * + CAST( + 44 AS DECIMAL ) + + 60 END * - + 0 * - COUNT( * ) + 88 col0, - 97 * - 16
----
NULL
1552

skipif mysql # not compatible
query II rowsort label-1613
SELECT + - 68 * + 73 * 36 + - 25 - 4 + 18 + - 24 * + MIN ( ALL + 43 ) * - CASE + 45 WHEN - 58 THEN + CASE + + 15 WHEN + 79 THEN NULL WHEN + 89 THEN NULL ELSE - - 31 * - - 67 - + 72 END * - 65 * 0 * + CAST ( + 44 AS REAL ) + + 60 END * - + 0 * - COUNT ( * ) + 88 col0, - 97 * - 16
----
NULL
1552

query I rowsort
SELECT ALL ( + 70 ) * + 66
----
4620

query II rowsort
SELECT DISTINCT ( - 73 ) AS col2, + ( - + 95 ) * - - 69 - - 31 AS col0
----
-73
-6524

query I rowsort
SELECT - CASE - - 90 WHEN + + ( - 78 ) THEN - 34 * + 49 WHEN + 64 THEN NULL WHEN + 5 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT - 7 DIV 30 * + COUNT( 93 )
----
0

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 7 / 30 * + COUNT ( 93 )
----
0

query I rowsort
SELECT + 13 * - 27 AS col2
----
-351

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT - COUNT( 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-1620
SELECT - COUNT ( 3 )
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1622
SELECT + COUNT( ALL + 21 ) * + CAST( + + 86 AS SIGNED ) * + COUNT( + CASE + ( 81 ) WHEN - - 7 THEN NULL ELSE + 86 END ) - 60 + - COUNT( - 88 ) * 83
----
-57

skipif mysql # not compatible
query I rowsort label-1622
SELECT + COUNT ( ALL + 21 ) * + CAST ( + + 86 AS INTEGER ) * + COUNT ( + CASE + ( 81 ) WHEN - - 7 THEN NULL ELSE + 86 END ) - 60 + - COUNT ( - 88 ) * 83
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1623
SELECT - 83 * + 84 * + 67 AS col2, 87 * - 76 * - ( + ( + + COUNT( * ) ) )
----
-467124
6612

skipif mysql # not compatible
query II rowsort label-1623
SELECT - 83 * + 84 * + 67 AS col2, 87 * - 76 * - ( + ( + + COUNT ( * ) ) )
----
-467124
6612

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

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + - 30 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 18 + - 87
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT DISTINCT 90, MAX( - + 59 ) AS col0
----
90
-59

skipif mysql # not compatible
query II rowsort label-1626
SELECT DISTINCT 90, MAX ( - + 59 ) AS col0
----
90
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT ALL 53 DIV - 47 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL 53 / - 47 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT - COALESCE ( COUNT( * ), - 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1628
SELECT - COALESCE ( COUNT ( * ), - 92 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT + 11 + - - CAST( 92 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-1629
SELECT + 11 + - - CAST ( 92 AS INTEGER ) AS col1
----
103

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1631
SELECT ( + + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT ( + + CAST ( NULL AS REAL ) ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT - 40 + + 4 * + + COUNT( * ) DIV + + 43 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1633
SELECT - 40 + + 4 * + + COUNT ( * ) / + + 43 AS col1
----
-40

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

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

query I rowsort
SELECT ALL 36 * - + 68 AS col1
----
-2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1636
SELECT - 79 - - 5 * - 97 + + 88 DIV - ( COUNT( DISTINCT - 43 ) ) AS col0
----
-652

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 79 - - 5 * - 97 + + 88 / - ( COUNT ( DISTINCT - 43 ) ) AS col0
----
-652

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

skipif mysql # not compatible
query II rowsort label-1637
SELECT + COUNT ( * ) col1, 29
----
1
29

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

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

query I rowsort
SELECT - + 8 * - 6 + + 86
----
134

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1641
SELECT - + 58 DIV - - 90 * + 40, 36 AS col2
----
0
36

skipif mysql # not compatible
query II rowsort label-1641
SELECT - + 58 / - - 90 * + 40, 36 AS col2
----
0
36

query I rowsort
SELECT + 38 * - 15 * - + 20 + - - NULLIF ( + - 63, 26 * + 90 )
----
11337

query I rowsort
SELECT + - 83 - + 25 AS col0
----
-108

query I rowsort
SELECT ALL - - 51 * - 98 AS col2
----
-4998

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT DISTINCT + COALESCE ( NULLIF ( - 67, - + ( - NULLIF ( - - 43, - 97 * ( - 8 ) * COUNT( * ) ) ) ), + + 60 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT + COALESCE ( NULLIF ( - 67, - + ( - NULLIF ( - - 43, - 97 * ( - 8 ) * COUNT ( * ) ) ) ), + + 60 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT DISTINCT + MIN( ALL 82 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + MIN ( ALL 82 ) col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1647
SELECT ALL + 77 * - 40 + + - 39 + - + 71 + - 25 * - COUNT( * ) * + + 58 * + COALESCE ( - COALESCE ( + - 16, 24 + + CAST( - + 97 AS SIGNED ) * - + 89 ), + COUNT( + ( + 15 ) ) + + 60 * + 14, COUNT( * ), - - 90 ) - + - SUM( - 29 ) AS col0
----
19981

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + 77 * - 40 + + - 39 + - + 71 + - 25 * - COUNT ( * ) * + + 58 * + COALESCE ( - COALESCE ( + - 16, 24 + + CAST ( - + 97 AS INTEGER ) * - + 89 ), + COUNT ( + ( + 15 ) ) + + 60 * + 14, COUNT ( * ), - - 90 ) - + - SUM ( - 29 ) AS col0
----
19981

onlyif mysql # aggregate syntax: 
query II rowsort label-1648
SELECT - COUNT( * ) AS col2, - COALESCE ( + 3, - - COUNT( * ) * - 27 * 12 * + 66 ) AS col1
----
-1
-3

skipif mysql # not compatible
query II rowsort label-1648
SELECT - COUNT ( * ) AS col2, - COALESCE ( + 3, - - COUNT ( * ) * - 27 * 12 * + 66 ) AS col1
----
-1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + - COUNT( * ) / - 29 * - AVG ( DISTINCT - 44 ) * - COUNT( * ) * MAX( DISTINCT - - 39 ) / 27 * - + 67 * - 35 + - 65 / + CASE + 17 WHEN - + ( COUNT( + 97 ) ) * - 98 / + CASE + 49 WHEN - COUNT( * ) THEN NULL WHEN 87 THEN NULL ELSE - ( COUNT( ALL - 85 ) ) END THEN - - 47 * + COUNT( * ) * 91 * - COUNT( * ) + 83 WHEN - 47 + COUNT( * ) THEN NULL ELSE NULL END / - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT + - COUNT ( * ) / - 29 * - AVG ( DISTINCT - 44 ) * - COUNT ( * ) * MAX ( DISTINCT - - 39 ) / 27 * - + 67 * - 35 + - 65 / + CASE + 17 WHEN - + ( COUNT ( + 97 ) ) * - 98 / + CASE + 49 WHEN - COUNT ( * ) THEN NULL WHEN 87 THEN NULL ELSE - ( COUNT ( ALL - 85 ) ) END THEN - - 47 * + COUNT ( * ) * 91 * - COUNT ( * ) + 83 WHEN - 47 + COUNT ( * ) THEN NULL ELSE NULL END / - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT - + NULLIF ( - 76, - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-1650
SELECT - + NULLIF ( - 76, - COUNT ( * ) )
----
76

query I rowsort
SELECT - 1 + 96
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT SUM( + 72 ) col1
----
72

skipif mysql # not compatible
query I rowsort label-1652
SELECT SUM ( + 72 ) col1
----
72

query I rowsort
SELECT - ( + + 21 ) + + + 77 AS col2
----
56

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT - COUNT( - - 62 ) + CASE CAST( NULL AS SIGNED ) WHEN - AVG ( + COALESCE ( - - 41, + ( - 9 ) * + + 75 ) ) + + 24 + MAX( ALL + 77 ) / + + 23 THEN - 31 ELSE COALESCE ( + + COUNT( * ), - 22 ) * + 30 END * 33 * + COUNT( * ) * - + 95
----
-94051

skipif mysql # not compatible
query I rowsort label-1656
SELECT - COUNT ( - - 62 ) + CASE CAST ( NULL AS INTEGER ) WHEN - AVG ( + COALESCE ( - - 41, + ( - 9 ) * + + 75 ) ) + + 24 + MAX ( ALL + 77 ) / + + 23 THEN - 31 ELSE COALESCE ( + + COUNT ( * ), - 22 ) * + 30 END * 33 * + COUNT ( * ) * - + 95
----
-94051

query I rowsort
SELECT ALL 65 + - 40
----
25

query I rowsort
SELECT + 71 + 56
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1659
SELECT DISTINCT CAST( NULL AS SIGNED ), CASE 52 WHEN - 17 + - 48 THEN - 67 * 25 * - - COUNT( * ) + - + 11 WHEN + 6 THEN NULL END + - 68
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1659
SELECT DISTINCT CAST ( NULL AS INTEGER ), CASE 52 WHEN - 17 + - 48 THEN - 67 * 25 * - - COUNT ( * ) + - + 11 WHEN + 6 THEN NULL END + - 68
----
NULL
NULL

query I rowsort
SELECT + 47 + + 93 AS col2
----
140

query I rowsort
SELECT ALL - 21 * 27 AS col0
----
-567

query II rowsort
SELECT DISTINCT 91 AS col2, 67 * + 92 + + 19 * - 35
----
91
5499

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + COUNT( * ) + + 34 * + 38 AS col2
----
1293

skipif mysql # not compatible
query I rowsort label-1664
SELECT + COUNT ( * ) + + 34 * + 38 AS col2
----
1293

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT 81 AS col2, - 31 + - COUNT( * )
----
81
-32

skipif mysql # not compatible
query II rowsort label-1665
SELECT 81 AS col2, - 31 + - COUNT ( * )
----
81
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1667
SELECT + 88 DIV - ( COUNT( + + CAST( - + ( + - 72 ) AS SIGNED ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 88 / - ( COUNT ( + + CAST ( - + ( + - 72 ) AS INTEGER ) ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT + 94 + + + ( + COUNT( * ) ) + + 80 + + + 42
----
217

skipif mysql # not compatible
query I rowsort label-1668
SELECT + 94 + + + ( + COUNT ( * ) ) + + 80 + + + 42
----
217

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT + 58 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 58 / 52
----
1

query II rowsort
SELECT + 50 AS col0, 31 AS col0
----
50
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT 26 DIV - 4
----
-6

skipif mysql # not compatible
query I rowsort label-1673
SELECT 26 / - 4
----
-6

query I rowsort
SELECT + 86 * + 64 AS col1
----
5504

query II rowsort
SELECT + 50 col1, + 95 AS col0
----
50
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT CAST( NULL AS SIGNED ) * COALESCE ( - ( - 18 ), + - 87, - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( - ( - 18 ), + - 87, - 64 )
----
NULL

query I rowsort
SELECT DISTINCT - - 61 * - + 45 AS col1
----
-2745

query II rowsort
SELECT DISTINCT - 23, - 95 AS col0
----
-23
-95

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - 90 + - - COUNT ( * ) AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL - - NULLIF ( - CASE + 42 WHEN - CASE WHEN 84 IS NOT NULL THEN + 2 END * + COUNT( - - ( + - CAST( NULL AS SIGNED ) ) ) THEN - + 63 * 72 + MAX( - - 89 ) - 28 ELSE + CAST( NULL AS SIGNED ) * 55 / + CAST( NULL AS SIGNED ) + + 52 - - - 23 / 28 * + 10 END, + 91 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - - NULLIF ( - CASE + 42 WHEN - CASE WHEN 84 IS NOT NULL THEN + 2 END * + COUNT ( - - ( + - CAST ( NULL AS INTEGER ) ) ) THEN - + 63 * 72 + MAX ( - - 89 ) - 28 ELSE + CAST ( NULL AS INTEGER ) * 55 / + CAST ( NULL AS INTEGER ) + + 52 - - - 23 / 28 * + 10 END, + 91 ) col2
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1684
SELECT DISTINCT + NULLIF ( 12, + + 95 ) + - + CASE NULLIF ( 1, - 50 ) WHEN - - NULLIF ( - - MAX( - + 20 ), - 15 + - 62 ) * + - 17 * + 31 THEN NULL WHEN + 89 THEN NULL ELSE + COUNT( * ) END, + 52 * - CASE - - MIN( 24 ) WHEN + + COUNT( * ) THEN NULL ELSE + + 95 END * 83 + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-1684
SELECT DISTINCT + NULLIF ( 12, + + 95 ) + - + CASE NULLIF ( 1, - 50 ) WHEN - - NULLIF ( - - MAX ( - + 20 ), - 15 + - 62 ) * + - 17 * + 31 THEN NULL WHEN + 89 THEN NULL ELSE + COUNT ( * ) END, + 52 * - CASE - - MIN ( 24 ) WHEN + + COUNT ( * ) THEN NULL ELSE + + 95 END * 83 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1
----
11
NULL

query II rowsort
SELECT 85 AS col1, + 56 + - + 76 AS col2
----
85
-20

query I rowsort
SELECT ALL + 97 + - + 87 * + - 20 * 23
----
40117

query I rowsort
SELECT + + 67 col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT CASE - - ( + 96 ) WHEN - 44 - + - 93 THEN NULL WHEN - COUNT( * ) * - + 80 * - + 66 - - + 25 THEN - - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT CASE - - ( + 96 ) WHEN - 44 - + - 93 THEN NULL WHEN - COUNT ( * ) * - + 80 * - + 66 - - + 25 THEN - - 47 END
----
NULL

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

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

query I rowsort
SELECT ( - - 71 ) - - 15 * - + 19 AS col0
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT ALL + CASE + COUNT( * ) WHEN + - CAST( - + 23 AS SIGNED ) THEN + COUNT( * ) * 87 WHEN - 71 THEN - - 37 * - - 63 * - 93 END + 34 + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + CASE + COUNT ( * ) WHEN + - CAST ( - + 23 AS INTEGER ) THEN + COUNT ( * ) * 87 WHEN - 71 THEN - - 37 * - - 63 * - 93 END + 34 + 52 AS col2
----
NULL

query I rowsort
SELECT 6 * - 22
----
-132

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

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

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

skipif mysql # not compatible
query II rowsort label-1694
SELECT DISTINCT - COUNT ( * ) * 6 col2, + CAST ( NULL AS INTEGER ) col0
----
-6
NULL

query II rowsort
SELECT ALL + 81 - - 78 col2, - 83 * 22 * 53
----
159
-96778

query I rowsort
SELECT + 2 * 77 - + 40
----
114

query I rowsort
SELECT 5 - - 62
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT MIN( - 96 ) * + 35 * - - 22 AS col1
----
-73920

skipif mysql # not compatible
query I rowsort label-1698
SELECT MIN ( - 96 ) * + 35 * - - 22 AS col1
----
-73920

onlyif mysql # aggregate syntax: 
query II rowsort label-1699
SELECT 31 * - 73 AS col1, 95 - CASE - 84 WHEN - 47 / + + 84 + + + 88 - - 95 * + - MIN( DISTINCT + + 51 ) + 57 + 60 THEN NULL WHEN - 16 / - 11 THEN 16 END
----
-2263
NULL

skipif mysql # not compatible
query II rowsort label-1699
SELECT 31 * - 73 AS col1, 95 - CASE - 84 WHEN - 47 / + + 84 + + + 88 - - 95 * + - MIN ( DISTINCT + + 51 ) + 57 + 60 THEN NULL WHEN - 16 / - 11 THEN 16 END
----
-2263
NULL

query II rowsort
SELECT 40 - + 20 * + - COALESCE ( - + 5, - 67 ) * + ( 79 ) * 88 * - - ( - 84 ) + + 26 + - 8, + 91 * - 65 col2
----
58396858
-5915

query I rowsort
SELECT ALL 46 * 54 * + 8 * 13 AS col1
----
258336

onlyif mysql # aggregate syntax: 
query II rowsort label-1702
SELECT DISTINCT + CASE - 25 WHEN - 44 * 37 + - - 23 + + 46 - - 88 + - 99 THEN + + COALESCE ( - 54, 0 ) * + - 17 + - 49 END * + - 26 * - COUNT( * ), + COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1702
SELECT DISTINCT + CASE - 25 WHEN - 44 * 37 + - - 23 + + 46 - - 88 + - 99 THEN + + COALESCE ( - 54, 0 ) * + - 17 + - 49 END * + - 26 * - COUNT ( * ), + COUNT ( * ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT + + 22 * - COUNT( * ) - + 29 + - 66
----
-117

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + + 22 * - COUNT ( * ) - + 29 + - 66
----
-117

query I rowsort
SELECT ( - 53 ) + 0 AS col1
----
-53

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

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

query I rowsort
SELECT 41 + + - 78
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL 54 * + + COUNT( * ) * + - 75 AS col2
----
-4050

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL 54 * + + COUNT ( * ) * + - 75 AS col2
----
-4050

onlyif mysql # aggregate syntax: 
query II rowsort label-1708
SELECT 30 - - 31, + COUNT( * ) AS col0
----
61
1

skipif mysql # not compatible
query II rowsort label-1708
SELECT 30 - - 31, + COUNT ( * ) AS col0
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + + MIN( - 34 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-1709
SELECT + + MIN ( - 34 ) col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1710
SELECT ALL + - 80 + + CASE + 29 WHEN + 73 - + + 46 THEN + CAST( - + ( - 1 ) AS SIGNED ) ELSE NULL END AS col2, 51 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-1710
SELECT ALL + - 80 + + CASE + 29 WHEN + 73 - + + 46 THEN + CAST ( - + ( - 1 ) AS INTEGER ) ELSE NULL END AS col2, 51 AS col1
----
NULL
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT DISTINCT 99 DIV 14 * - ( - 76 ) DIV 25 col2
----
21

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT 99 / 14 * - ( - 76 ) / 25 col2
----
21

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

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

query I rowsort
SELECT ALL - 1 + 31 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT - COUNT( * ) * - 45 AS col0, - SUM( DISTINCT - 33 )
----
45
33

skipif mysql # not compatible
query II rowsort label-1714
SELECT - COUNT ( * ) * - 45 AS col0, - SUM ( DISTINCT - 33 )
----
45
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1715
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * 54 * + 47 THEN 5 ELSE NULL END * - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * 54 * + 47 THEN 5 ELSE NULL END * - 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1716
SELECT DISTINCT + 18 + COUNT( * ) - 0 DIV + + COUNT( 60 ) col2, - 93 col0
----
19
-93

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT + 18 + COUNT ( * ) - 0 / + + COUNT ( 60 ) col2, - 93 col0
----
19
-93

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

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

query I rowsort
SELECT ALL - 35 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL + 94 + - + 49 + - - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL + 94 + - + 49 + - - COUNT ( * ) AS col0
----
46

query II rowsort
SELECT 93 AS col1, - 78 * 54
----
93
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL COUNT( * ) * - 80 col2
----
-80

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL COUNT ( * ) * - 80 col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT DISTINCT - 48 AS col2, + 30 * - COUNT( * )
----
-48
-30

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT - 48 AS col2, + 30 * - COUNT ( * )
----
-48
-30

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

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL - COUNT ( DISTINCT 68 ) AS col1
----
-1

query I rowsort
SELECT ( + + 25 ) * 99 + - 78 * - 72 AS col1
----
8091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1725
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) * + 1 * - CASE + 17 WHEN + 81 THEN - - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * + 1 * - CASE + 17 WHEN + 81 THEN - - 47 END
----
NULL

query I rowsort
SELECT 24 + 65
----
89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT DISTINCT ( - 15 ) DIV + 14 + - 96 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT ( - 15 ) / + 14 + - 96 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT ALL 49 AS col2, - COUNT( * ) + + - 99 AS col2
----
49
-100

skipif mysql # not compatible
query II rowsort label-1729
SELECT ALL 49 AS col2, - COUNT ( * ) + + - 99 AS col2
----
49
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT - 17 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT - 17 / + - 94
----
0

query I rowsort
SELECT ALL - 59 * - 36 * + - 8 AS col0
----
-16992

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1732
SELECT ALL CASE COALESCE ( - 27, + 38, 20 - 61, COUNT( * ) * 1 + - COUNT( DISTINCT - CAST( ( + - 17 ) AS DECIMAL ) ) ) WHEN + 4 + - SUM( ALL - 94 ) + + + 92 * + MIN( ALL + 71 ) THEN - 57 WHEN + + 94 THEN CAST( - 13 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL CASE COALESCE ( - 27, + 38, 20 - 61, COUNT ( * ) * 1 + - COUNT ( DISTINCT - CAST ( ( + - 17 ) AS REAL ) ) ) WHEN + 4 + - SUM ( ALL - 94 ) + + + 92 * + MIN ( ALL + 71 ) THEN - 57 WHEN + + 94 THEN CAST ( - 13 AS REAL ) END
----
NULL

query I rowsort
SELECT ALL + 87 * 46 col2
----
4002

query I rowsort
SELECT - 87 + - NULLIF ( + 61, AVG ( - 96 ) ) AS col0
----
-148

query II rowsort
SELECT - 96 AS col1, 82
----
-96
82

query I rowsort
SELECT - 73 * + - 51 * 2 * - 82 AS col0
----
-610572

query I rowsort
SELECT ALL + 57 + + 23 * - 31 + 61
----
-595

query I rowsort
SELECT DISTINCT + + 19 + + 2 AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT ALL + 89 AS col0, CASE 35 WHEN - 9 + - 16 / + SUM( DISTINCT - - ( + 87 ) ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + 54 END AS col0
----
89
54

skipif mysql # not compatible
query II rowsort label-1739
SELECT ALL + 89 AS col0, CASE 35 WHEN - 9 + - 16 / + SUM ( DISTINCT - - ( + 87 ) ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 54 END AS col0
----
89
54

query I rowsort
SELECT + NULLIF ( 42, + 72 )
----
42

query I rowsort
SELECT DISTINCT - 54 + - 99 AS col1
----
-153

query I rowsort
SELECT ALL + 96 + - 34 * + + 88 * - + 76
----
227488

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

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + COUNT ( - 83 ) AS col1
----
1

query II rowsort
SELECT ALL + - 32, + 55 AS col0
----
-32
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1745
SELECT - + 41 * + CAST( NULL AS SIGNED ) + - 61 / 13 * 57 + + - 42 AS col1, + COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1745
SELECT - + 41 * + CAST ( NULL AS INTEGER ) + - 61 / 13 * 57 + + - 42 AS col1, + COUNT ( * ) col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1746
SELECT ALL 77 * - 42 * - 37 * - COUNT( * ) + COUNT( * ) + + COUNT( * ) * + - NULLIF ( COUNT( * ), - + 20 ) - + CASE 86 WHEN - - COUNT( * ) + - + CASE - - 4 WHEN 84 THEN - 27 * + CASE + - COUNT( * ) WHEN + + COUNT( * ) THEN + + 12 + + 84 + + 38 WHEN - + 65 THEN NULL ELSE NULL END WHEN - + 14 * - - 38 + - 46 THEN NULL WHEN - - 24 THEN + 51 END DIV - 43 THEN NULL WHEN 97 THEN 77 + - + 94 + 97 DIV CASE + - 2 WHEN - 29 THEN - - 72 ELSE + CAST( + + COUNT( * ) AS SIGNED ) + 71 + + 35 + + 22 - - 9 END ELSE - 88 END col1
----
-119570

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL 77 * - 42 * - 37 * - COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) * + - NULLIF ( COUNT ( * ), - + 20 ) - + CASE 86 WHEN - - COUNT ( * ) + - + CASE - - 4 WHEN 84 THEN - 27 * + CASE + - COUNT ( * ) WHEN + + COUNT ( * ) THEN + + 12 + + 84 + + 38 WHEN - + 65 THEN NULL ELSE NULL END WHEN - + 14 * - - 38 + - 46 THEN NULL WHEN - - 24 THEN + 51 END / - 43 THEN NULL WHEN 97 THEN 77 + - + 94 + 97 / CASE + - 2 WHEN - 29 THEN - - 72 ELSE + CAST ( + + COUNT ( * ) AS INTEGER ) + 71 + + 35 + + 22 - - 9 END ELSE - 88 END col1
----
-119570

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT + + SUM( - 88 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT + + SUM ( - 88 ) col2
----
-88

query I rowsort
SELECT ALL + 13 * - 89 * - - 8
----
-9256

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT CASE - + 95 WHEN + 33 * + COUNT( * ) * + 46 + + + 33 THEN - 21 - + AVG ( + + 70 ) + + - 96 + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CASE - + 95 WHEN + 33 * + COUNT ( * ) * + 46 + + + 33 THEN - 21 - + AVG ( + + 70 ) + + - 96 + - COUNT ( * ) END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT ALL - 35 * COUNT( * ) + + - 54 + - COUNT( * ) + ( - 21 ) DIV + 86 * - 43 - - - ( 43 ) DIV - COUNT( * ) + + + 64
----
17

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - 35 * COUNT ( * ) + + - 54 + - COUNT ( * ) + ( - 21 ) / + 86 * - 43 - - - ( 43 ) / - COUNT ( * ) + + + 64
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT - 32 * ( - 38 ) + + + 93 + COUNT( * ) * 41 - + - 20 AS col0
----
1370

skipif mysql # not compatible
query I rowsort label-1755
SELECT - 32 * ( - 38 ) + + + 93 + COUNT ( * ) * 41 - + - 20 AS col0
----
1370

query I rowsort
SELECT ALL + 38 * + 97 - 24 * + 25 AS col0
----
3086

query I rowsort
SELECT - 95 * 82
----
-7790

query I rowsort
SELECT + 1 * - - 83
----
83

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL 7 / + + COUNT ( * )
----
7

query I rowsort
SELECT + 71 * - - 33 * 94 AS col2
----
220242

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1761
SELECT + CASE + - 56 WHEN CASE - CAST( - 71 AS DECIMAL ) WHEN + + 98 * - + 66 THEN NULL ELSE - 82 END THEN - ( + + ( - + COALESCE ( ( - 53 ), + - 54, + + 94 + + 20 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT + CASE + - 56 WHEN CASE - CAST ( - 71 AS REAL ) WHEN + + 98 * - + 66 THEN NULL ELSE - 82 END THEN - ( + + ( - + COALESCE ( ( - 53 ), + - 54, + + 94 + + 20 ) ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT DISTINCT - CAST( + 90 AS SIGNED ) * COUNT( DISTINCT 75 ) - - 28
----
-62

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT - CAST ( + 90 AS INTEGER ) * COUNT ( DISTINCT 75 ) - - 28
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL ( - 60 ) * SUM( ( - 79 ) ) AS col0
----
4740

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL ( - 60 ) * SUM ( ( - 79 ) ) AS col0
----
4740

onlyif mysql # DIV for integer division: 
query II rowsort label-1764
SELECT - ( + + 39 ) col1, - 75 DIV - 29 + - 79 + ( - - 54 ) * - 46 AS col2
----
-39
-2561

skipif mysql # not compatible
query II rowsort label-1764
SELECT - ( + + 39 ) col1, - 75 / - 29 + - 79 + ( - - 54 ) * - 46 AS col2
----
-39
-2561

query I rowsort
SELECT ALL NULLIF ( - 44, - 3 ) AS col2
----
-44

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

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

query I rowsort
SELECT ALL 99 * - 71 * + + 4 col2
----
-28116

query I rowsort
SELECT - 11 * - 57 col0
----
627

query I rowsort
SELECT + 23 - - 73
----
96

query I rowsort
SELECT ALL 93 + 32 * + 14 AS col0
----
541

query I rowsort
SELECT + 99 - + 37 * + 31
----
-1048

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL - 28 + - - ( - CASE + 87 WHEN - - 23 THEN + MAX( + - ( + + ( + 19 ) ) ) ELSE NULL END ) * - + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL - 28 + - - ( - CASE + 87 WHEN - - 23 THEN + MAX ( + - ( + + ( + 19 ) ) ) ELSE NULL END ) * - + 80 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT ALL - 69 DIV 4 DIV 86 + - + 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - 69 / 4 / 86 + - + 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT DISTINCT - + 55 * + 11 AS col0, MAX( 56 ) col2
----
-605
56

skipif mysql # not compatible
query II rowsort label-1774
SELECT DISTINCT - + 55 * + 11 AS col0, MAX ( 56 ) col2
----
-605
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT - + 31 DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT - + 31 / - 46 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT DISTINCT - CAST( 58 AS SIGNED ) + + 8
----
-50

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT - CAST ( 58 AS INTEGER ) + + 8
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT DISTINCT - 3 * COALESCE ( - CAST( NULL AS SIGNED ), ( + + 44 ) ) + - 84 col1
----
-216

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT - 3 * COALESCE ( - CAST ( NULL AS INTEGER ), ( + + 44 ) ) + - 84 col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL + + COUNT( * ) + 25 * 84 AS col0
----
2101

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL + + COUNT ( * ) + 25 * 84 AS col0
----
2101

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - ( 89 ) - SUM( - + 81 )
----
-8

skipif mysql # not compatible
query I rowsort label-1779
SELECT - ( 89 ) - SUM ( - + 81 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1780
SELECT DISTINCT - 75 * + - COUNT( * ) - - ( - - 28 ) * 69 DIV - 9
----
-139

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - 75 * + - COUNT ( * ) - - ( - - 28 ) * 69 / - 9
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1781
SELECT + 90 + + CASE - 12 WHEN - 82 * - - CAST( NULL AS SIGNED ) THEN NULL ELSE + 60 END - - SUM( - 91 ) * + 1, CASE - 99 WHEN - 76 + + 70 THEN NULL ELSE + 93 END AS col1
----
59
93

skipif mysql # not compatible
query II rowsort label-1781
SELECT + 90 + + CASE - 12 WHEN - 82 * - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 60 END - - SUM ( - 91 ) * + 1, CASE - 99 WHEN - 76 + + 70 THEN NULL ELSE + 93 END AS col1
----
59
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT + - 53 * + 65 * + COUNT( * ) + + 0 AS col2, + 91
----
-3445
91

skipif mysql # not compatible
query II rowsort label-1782
SELECT + - 53 * + 65 * + COUNT ( * ) + + 0 AS col2, + 91
----
-3445
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1783
SELECT DISTINCT ( - 57 ), - 5 + + 39 - 23 + + + 92 + - CAST( NULL AS SIGNED ) / ( - CAST( NULL AS SIGNED ) ) * 54 + COALESCE ( ( - 2 ), + 51 / 5 * - + 55 * + 21 * 19, + 0 ) * - 51 / 63 * + - COUNT( * ) AS col0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-1783
SELECT DISTINCT ( - 57 ), - 5 + + 39 - 23 + + + 92 + - CAST ( NULL AS INTEGER ) / ( - CAST ( NULL AS INTEGER ) ) * 54 + COALESCE ( ( - 2 ), + 51 / 5 * - + 55 * + 21 * 19, + 0 ) * - 51 / 63 * + - COUNT ( * ) AS col0
----
-57
NULL

query II rowsort
SELECT - + 79 + + 16 AS col0, 12 AS col2
----
-63
12

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT - - 4 + + - COALESCE ( + 96, + CAST( - + SUM( - + CASE + + 41 WHEN - + 99 THEN 16 END ) AS SIGNED ) ) + - 24 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-1786
SELECT - - 4 + + - COALESCE ( + 96, + CAST ( - + SUM ( - + CASE + + 41 WHEN - + 99 THEN 16 END ) AS INTEGER ) ) + - 24 AS col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT - + ( + CASE COUNT( * ) WHEN + 68 + - 91 - CAST( - 98 AS SIGNED ) THEN NULL ELSE + 65 END ) - - CAST( - 80 AS SIGNED )
----
-145

skipif mysql # not compatible
query I rowsort label-1787
SELECT - + ( + CASE COUNT ( * ) WHEN + 68 + - 91 - CAST ( - 98 AS INTEGER ) THEN NULL ELSE + 65 END ) - - CAST ( - 80 AS INTEGER )
----
-145

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT - 45 DIV - COUNT( * ) - + 78 DIV + 21
----
42

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - 45 / - COUNT ( * ) - + 78 / + 21
----
42

query I rowsort
SELECT ALL 6 * + + 12 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1791
SELECT ( + - 20 ) * - - COALESCE ( + + COUNT( * ), - 84 ) + + 45 DIV + 68 + + 5 + COUNT( * ) + + 93 + 82 * + 76 AS col0, 43
----
6311
43

skipif mysql # not compatible
query II rowsort label-1791
SELECT ( + - 20 ) * - - COALESCE ( + + COUNT ( * ), - 84 ) + + 45 / + 68 + + 5 + COUNT ( * ) + + 93 + 82 * + 76 AS col0, 43
----
6311
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1792
SELECT CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT CAST ( NULL AS REAL ) col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT - 71 DIV 6
----
-11

skipif mysql # not compatible
query I rowsort label-1794
SELECT - 71 / 6
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT + 77 * + + CAST( + - 79 AS SIGNED )
----
-6083

skipif mysql # not compatible
query I rowsort label-1795
SELECT + 77 * + + CAST ( + - 79 AS INTEGER )
----
-6083

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT DISTINCT - SUM( DISTINCT + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - SUM ( DISTINCT + 51 ) AS col1
----
-51

query I rowsort
SELECT ( - 86 ) - - 20 AS col2
----
-66

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

skipif mysql # not compatible
query I rowsort label-1803
SELECT 24 / ( + COUNT ( * ) ) AS col1
----
24

query I rowsort
SELECT 30 + - 10 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1805
SELECT DISTINCT 34 / 70 / - 13 * + CAST( NULL AS SIGNED ) / 13, 78 AS col1
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1805
SELECT DISTINCT 34 / 70 / - 13 * + CAST ( NULL AS INTEGER ) / 13, 78 AS col1
----
NULL
78

query I rowsort
SELECT 75 - + 26
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1807
SELECT COUNT( * ) + + + 55 * - 13 / + + NULLIF ( CAST( NULL AS DECIMAL ), 19 / - 23 ) + + ( 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT COUNT ( * ) + + + 55 * - 13 / + + NULLIF ( CAST ( NULL AS REAL ), 19 / - 23 ) + + ( 70 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1808
SELECT + 8 * - CAST( - - CAST( + 42 AS DECIMAL ) AS SIGNED ) * - - NULLIF ( - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), 7 ) + 96 * - 99 - + + COUNT( * ) AS col1, + ( - - CASE 89 WHEN - ( + 47 ) THEN COUNT( * ) ELSE - 78 END ) AS col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-1808
SELECT + 8 * - CAST ( - - CAST ( + 42 AS REAL ) AS INTEGER ) * - - NULLIF ( - CAST ( CAST ( NULL AS REAL ) AS INTEGER ), 7 ) + 96 * - 99 - + + COUNT ( * ) AS col1, + ( - - CASE 89 WHEN - ( + 47 ) THEN COUNT ( * ) ELSE - 78 END ) AS col2
----
NULL
-78

query I rowsort
SELECT ALL 87 * - - 41 AS col2
----
3567

query I rowsort
SELECT ALL 46 * 37
----
1702

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

query I rowsort
SELECT DISTINCT + 7 * - 1 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1813
SELECT DISTINCT + MAX( - - 19 ) + + 17 * + 66 - + 65, ( - COUNT( * ) ) AS col1
----
1076
-1

skipif mysql # not compatible
query II rowsort label-1813
SELECT DISTINCT + MAX ( - - 19 ) + + 17 * + 66 - + 65, ( - COUNT ( * ) ) AS col1
----
1076
-1

query I rowsort
SELECT + 30 + - 99 * - + 38 + + + 15
----
3807

onlyif mysql # DIV for integer division: 
query I rowsort label-1815
SELECT + 44 + COALESCE ( + 35, 52 * + ( + 52 ) + 51 DIV - 26 DIV + - 88 ) - - ( + - 12 ) + + 26 * - ( 25 ) AS col2
----
-583

skipif mysql # not compatible
query I rowsort label-1815
SELECT + 44 + COALESCE ( + 35, 52 * + ( + 52 ) + 51 / - 26 / + - 88 ) - - ( + - 12 ) + + 26 * - ( 25 ) AS col2
----
-583

query I rowsort
SELECT ALL - 13 + + 93 AS col0
----
80

query I rowsort
SELECT + 97 * - 38
----
-3686

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

query I rowsort
SELECT - 80 + 33 AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1820
SELECT ALL - CASE + COUNT( * ) WHEN - - CASE + 87 WHEN - 7 / MAX( DISTINCT + 50 ) + + 95 / CAST( - 12 AS SIGNED ) THEN + 5 * - 22 + - MIN( + 18 ) - 74 WHEN 48 THEN - + 87 WHEN - - 11 THEN + - COUNT( * ) * 33 ELSE NULL END THEN + 66 WHEN + 92 * - 4 THEN NULL ELSE NULL END / - + COALESCE ( - 48, + 1 + CAST( NULL AS DECIMAL ) * - CASE + 60 WHEN SUM( DISTINCT + 47 ) * 67 + NULLIF ( + NULLIF ( + 51, + 70 * 20 ), + 99 ) THEN + 37 WHEN + 73 THEN NULL END * SUM( - 71 ), 99 ), 71 * + - 76 AS col2
----
NULL
-5396

skipif mysql # not compatible
query II rowsort label-1820
SELECT ALL - CASE + COUNT ( * ) WHEN - - CASE + 87 WHEN - 7 / MAX ( DISTINCT + 50 ) + + 95 / CAST ( - 12 AS INTEGER ) THEN + 5 * - 22 + - MIN ( + 18 ) - 74 WHEN 48 THEN - + 87 WHEN - - 11 THEN + - COUNT ( * ) * 33 ELSE NULL END THEN + 66 WHEN + 92 * - 4 THEN NULL ELSE NULL END / - + COALESCE ( - 48, + 1 + CAST ( NULL AS REAL ) * - CASE + 60 WHEN SUM ( DISTINCT + 47 ) * 67 + NULLIF ( + NULLIF ( + 51, + 70 * 20 ), + 99 ) THEN + 37 WHEN + 73 THEN NULL END * SUM ( - 71 ), 99 ), 71 * + - 76 AS col2
----
NULL
-5396

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT MAX( - ( + + 50 ) ) * - - 83
----
-4150

skipif mysql # not compatible
query I rowsort label-1821
SELECT MAX ( - ( + + 50 ) ) * - - 83
----
-4150

query II rowsort
SELECT - 5 AS col1, + 31 * - - 49 AS col2
----
-5
1519

query I rowsort
SELECT 44 * + 38 col1
----
1672

query I rowsort
SELECT + 69 * - + 18 * + + 94 AS col2
----
-116748

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1826
SELECT - CAST( - - 73 AS SIGNED ) DIV 87 + COUNT( * ) + - 26 DIV + 98 - + + 20 * - MAX( ALL + + ( + + 27 ) )
----
541

skipif mysql # not compatible
query I rowsort label-1826
SELECT - CAST ( - - 73 AS INTEGER ) / 87 + COUNT ( * ) + - 26 / + 98 - + + 20 * - MAX ( ALL + + ( + + 27 ) )
----
541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1827
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 61 + COUNT( ALL - 42 ) + + - CAST( NULL AS SIGNED ) * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 61 + COUNT ( ALL - 42 ) + + - CAST ( NULL AS INTEGER ) * 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT DISTINCT - CASE + + 51 WHEN ( 69 ) THEN 98 + 60 - + 41 WHEN 91 THEN - + 29 WHEN + CAST( NULL AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - CASE + + 51 WHEN ( 69 ) THEN 98 + 60 - + 41 WHEN 91 THEN - + 29 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT 25 * - 97
----
-2425

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

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL - MAX ( - - 76 )
----
-76

query II rowsort
SELECT DISTINCT - 2 AS col1, 53 AS col0
----
-2
53

query I rowsort
SELECT 91 * - 55 + + 42 + 26
----
-4937

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

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

query II rowsort
SELECT 3 AS col1, + 19 * + 2 AS col2
----
3
38

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

query I rowsort
SELECT 40 * + 47 AS col0
----
1880

query I rowsort
SELECT DISTINCT + 19 * 88
----
1672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT 85 + 84 DIV - + MIN( + 15 ) - + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1839
SELECT 85 + 84 / - + MIN ( + 15 ) - + COUNT ( * ) AS col1
----
79

query II rowsort
SELECT ALL - NULLIF ( + 29, COALESCE ( + 40, - 62 * + 5 ) ) AS col1, - 55 + CASE + 10 WHEN + + 45 * 23 THEN + 53 ELSE NULL END
----
-29
NULL

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - 74 + + CAST ( NULL AS REAL ) col2
----
NULL

query II rowsort
SELECT DISTINCT 61, + 39 AS col2
----
61
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL 40 + COUNT( * ) col2
----
41

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL 40 + COUNT ( * ) col2
----
41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT ( + 58 ) DIV 37 - - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1845
SELECT ( + 58 ) / 37 - - 0 AS col1
----
1

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

query II rowsort
SELECT 90 AS col1, + 3 + - - 86 - 55
----
90
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL ( + 8 ) / 39 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL ( + 8 ) / 39 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 10 - + - 40 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT COUNT( * ) * + 10 * - + 47 * COUNT( * )
----
-470

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT COUNT ( * ) * + 10 * - + 47 * COUNT ( * )
----
-470

query I rowsort
SELECT 0 * + 24 + - 7 + - 16 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL COUNT( * ) * + CASE + COUNT( * ) WHEN - - 79 + + 2 * + + AVG ( DISTINCT + 29 ) * + COUNT( * ) THEN NULL WHEN + 40 THEN 98 END * + - ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL COUNT ( * ) * + CASE + COUNT ( * ) WHEN - - 79 + + 2 * + + AVG ( DISTINCT + 29 ) * + COUNT ( * ) THEN NULL WHEN + 40 THEN 98 END * + - ( 71 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT - + COUNT( * ), CASE - NULLIF ( - + 12, + 83 * - + 82 + + 86 ) WHEN + 50 THEN + - COUNT( * ) ELSE - + 78 END AS col1
----
-1
-78

skipif mysql # not compatible
query II rowsort label-1854
SELECT - + COUNT ( * ), CASE - NULLIF ( - + 12, + 83 * - + 82 + + 86 ) WHEN + 50 THEN + - COUNT ( * ) ELSE - + 78 END AS col1
----
-1
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL + 1 * - - 94 + + + MAX( ALL COALESCE ( + 27, + + 11 ) )
----
121

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL + 1 * - - 94 + + + MAX ( ALL COALESCE ( + 27, + + 11 ) )
----
121

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

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

query I rowsort
SELECT ALL - 90 * - + 10 + - 17 AS col1
----
883

query I rowsort
SELECT + 44 - + 25 AS col2
----
19

query I rowsort
SELECT DISTINCT + 57 * + 73 + - 14 + - + 18 + 91 AS col0
----
4220

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

skipif mysql # not compatible
query I rowsort label-1861
SELECT ( + 30 ) + COUNT ( * ) AS col1
----
31

query I rowsort
SELECT - 11 + - 79 * + 83
----
-6568

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT 26 AS col1, ( + + COUNT( * ) ) * COUNT( * ) + + - 96 + - 35 AS col2
----
26
-130

skipif mysql # not compatible
query II rowsort label-1863
SELECT 26 AS col1, ( + + COUNT ( * ) ) * COUNT ( * ) + + - 96 + - 35 AS col2
----
26
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT + COUNT( * ) * 59 DIV + 66 - - 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1864
SELECT + COUNT ( * ) * 59 / + 66 - - 28 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT ALL ( + - 74 ) DIV - 30 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL ( + - 74 ) / - 30 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1866
SELECT + 66 * + - 85, 67 - 21 * 33 * + CAST( + - 36 AS SIGNED ) + 46 col1
----
-5610
25061

skipif mysql # not compatible
query II rowsort label-1866
SELECT + 66 * + - 85, 67 - 21 * 33 * + CAST ( + - 36 AS INTEGER ) + 46 col1
----
-5610
25061

query I rowsort
SELECT DISTINCT + 74 * + 3 + + + 73
----
295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1868
SELECT + NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) * - 73 - 14 ), + 32 col1
----
1
32

skipif mysql # not compatible
query II rowsort label-1868
SELECT + NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 73 - 14 ), + 32 col1
----
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL MAX( 5 ) * - - 93 + 50 + + 67 AS col0
----
582

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL MAX ( 5 ) * - - 93 + 50 + + 67 AS col0
----
582

query I rowsort
SELECT ALL 57 * - 26 + - 94 + - + 13 + - 88 * 95 * - 39
----
324451

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT CASE - - 57 WHEN + - MAX( + - 4 ) THEN - - 92 ELSE - 19 END
----
-19

skipif mysql # not compatible
query I rowsort label-1871
SELECT CASE - - 57 WHEN + - MAX ( + - 4 ) THEN - - 92 ELSE - 19 END
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT ALL ( + 93 ) DIV - 35 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL ( + 93 ) / - 35 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT DISTINCT + 30 * - + 39 + - 98 * - - MIN( ALL - 80 ) * - 42 + + 69 + + 68 + + + NULLIF ( + - 81, + + 10 * - + COALESCE ( CAST( - - NULLIF ( + 43, + - 39 ) AS SIGNED ), 22 * ( - 87 ), + - 94 * + 22 ) ) AS col1
----
-330394

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + 30 * - + 39 + - 98 * - - MIN ( ALL - 80 ) * - 42 + + 69 + + 68 + + + NULLIF ( + - 81, + + 10 * - + COALESCE ( CAST ( - - NULLIF ( + 43, + - 39 ) AS INTEGER ), 22 * ( - 87 ), + - 94 * + 22 ) ) AS col1
----
-330394

query II rowsort
SELECT CASE 1 WHEN + - 68 THEN + 77 ELSE + 89 END AS col1, - 64 col0
----
89
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - 44 / 84 * 51 * - 58 + 19 + - 18 / - NULLIF ( - - COUNT( * ), COUNT( * ) ) / 12 * + COUNT( * ) + - 39 / + + 39 + + 57 * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 44 / 84 * 51 * - 58 + 19 + - 18 / - NULLIF ( - - COUNT ( * ), COUNT ( * ) ) / 12 * + COUNT ( * ) + - 39 / + + 39 + + 57 * + 99 AS col0
----
NULL

query I rowsort
SELECT ALL + ( + + 65 ) * - + 41 + - 63 AS col2
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL MAX( ALL + 6 ) * - - 45 + 93 * + 21 + + 51
----
2274

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL MAX ( ALL + 6 ) * - - 45 + 93 * + 21 + + 51
----
2274

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL COUNT( + + 70 ) * 74 + + - 12 * + COUNT( * ) + + 0 + + 20 + + 88 + - - 79 * + + 52
----
4278

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL COUNT ( + + 70 ) * 74 + + - 12 * + COUNT ( * ) + + 0 + + 20 + + 88 + - - 79 * + + 52
----
4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT DISTINCT + COALESCE ( + - 64, + 85 * - - CASE - 12 WHEN + 49 + - 21 * 35 THEN CAST( NULL AS SIGNED ) END ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT + COALESCE ( + - 64, + 85 * - - CASE - 12 WHEN + 49 + - 21 * 35 THEN CAST ( NULL AS INTEGER ) END ) AS col0
----
-64

query I rowsort
SELECT DISTINCT + + ( - 85 ) AS col1
----
-85

query I rowsort
SELECT + 10 * - 92 + + - 96
----
-1016

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - + 60 - CASE 71 WHEN - 68 THEN NULL WHEN - 98 * + 37 * + 79 * - 14 + COUNT( * ) * + 37 / - + 70 + + NULLIF ( 12, + 56 ) THEN - 53 END + ( + - 40 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT - + 60 - CASE 71 WHEN - 68 THEN NULL WHEN - 98 * + 37 * + 79 * - 14 + COUNT ( * ) * + 37 / - + 70 + + NULLIF ( 12, + 56 ) THEN - 53 END + ( + - 40 ) col2
----
NULL

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

query I rowsort
SELECT ALL + 97 * 64 col0
----
6208

query I rowsort
SELECT - 79 + - + NULLIF ( 63, COALESCE ( + - 10, - 9 ) ) AS col0
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1886
SELECT - - 34 * COUNT( * ) + 88 DIV - + 24 + - 12 + + - 5 - - 55 DIV - - 52
----
15

skipif mysql # not compatible
query I rowsort label-1886
SELECT - - 34 * COUNT ( * ) + 88 / - + 24 + - 12 + + - 5 - - 55 / - - 52
----
15

query I rowsort
SELECT - + ( - 64 ) + 55 AS col1
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1888
SELECT ALL + CAST( 45 AS SIGNED ) AS col0, + ( - ( - 52 ) ) DIV + COUNT( * ) + - 60 AS col1
----
45
-8

skipif mysql # not compatible
query II rowsort label-1888
SELECT ALL + CAST ( 45 AS INTEGER ) AS col0, + ( - ( - 52 ) ) / + COUNT ( * ) + - 60 AS col1
----
45
-8

query I rowsort
SELECT - - 42 * + + 23
----
966

query I rowsort
SELECT - + 25 + - 9
----
-34

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, + 57 ) AS col0
----
-71

query I rowsort
SELECT + 42 + + 2 * 98
----
238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT CAST( - 14 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT CAST ( - 14 AS INTEGER ) AS col1
----
-14

query I rowsort
SELECT - - 73 col2
----
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL NULLIF ( + MIN( DISTINCT 76 ), - - 73 - + + 21 ) + + + 59 col0
----
135

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL NULLIF ( + MIN ( DISTINCT 76 ), - - 73 - + + 21 ) + + + 59 col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - 8 * - 78 + 12 * + ( + ( 34 ) ) * - - NULLIF ( + COUNT( * ), - 66 ) AS col0
----
1032

skipif mysql # not compatible
query I rowsort label-1897
SELECT - 8 * - 78 + 12 * + ( + ( 34 ) ) * - - NULLIF ( + COUNT ( * ), - 66 ) AS col0
----
1032

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT ALL - + 59 DIV COALESCE ( 65, + 16, + - ( - 98 ) + + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL - + 59 / COALESCE ( 65, + 16, + - ( - 98 ) + + 64 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT - - 98 DIV 34 + 62
----
64

skipif mysql # not compatible
query I rowsort label-1899
SELECT - - 98 / 34 + 62
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1902
SELECT ALL 13 + + 2 * - - 17 * - 99 DIV - + COUNT( * ) AS col0
----
3379

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL 13 + + 2 * - - 17 * - 99 / - + COUNT ( * ) AS col0
----
3379

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

query I rowsort
SELECT DISTINCT 42 + 38 * + 80 + 85
----
3167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1905
SELECT + 40 DIV - CASE - 96 WHEN - 37 + - CAST( NULL AS SIGNED ) THEN + - CASE 38 WHEN 4 - - COUNT( * ) THEN + 79 * - 1 ELSE NULL END * - 54 + + CASE - COUNT( + ( - CAST( NULL AS SIGNED ) ) ) WHEN + + 88 DIV - COUNT( * ) - 34 * 99 DIV - ( - 31 ) + 0 + + 67 THEN + + 76 END ELSE + 74 END * 70 * + ( + 3 ) + 88 + + 46 * + - 34
----
-1476

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 40 / - CASE - 96 WHEN - 37 + - CAST ( NULL AS INTEGER ) THEN + - CASE 38 WHEN 4 - - COUNT ( * ) THEN + 79 * - 1 ELSE NULL END * - 54 + + CASE - COUNT ( + ( - CAST ( NULL AS INTEGER ) ) ) WHEN + + 88 / - COUNT ( * ) - 34 * 99 / - ( - 31 ) + 0 + + 67 THEN + + 76 END ELSE + 74 END * 70 * + ( + 3 ) + 88 + + 46 * + - 34
----
-1476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1906
SELECT ALL + 19 DIV - 4 + + 0 + + 92 * COUNT( * ) + + + 8 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL + 19 / - 4 + + 0 + + 92 * COUNT ( * ) + + + 8 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1907
SELECT + CAST( CAST( + 48 AS SIGNED ) AS SIGNED ) AS col2, + COUNT( * ) + + 72 * + ( 75 ) * ( + ( - 0 ) ) + + 99 + + 42
----
48
142

skipif mysql # not compatible
query II rowsort label-1907
SELECT + CAST ( CAST ( + 48 AS INTEGER ) AS INTEGER ) AS col2, + COUNT ( * ) + + 72 * + ( 75 ) * ( + ( - 0 ) ) + + 99 + + 42
----
48
142

query II rowsort
SELECT ALL + 14 AS col0, + 21 col0
----
14
21

query I rowsort
SELECT + 35 - 47
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT ALL - COALESCE ( + + 75, - COUNT( * ) + + + 60 ) DIV + - COUNT( * ) + + ( + 16 )
----
91

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL - COALESCE ( + + 75, - COUNT ( * ) + + + 60 ) / + - COUNT ( * ) + + ( + 16 )
----
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1912
SELECT DISTINCT 8 DIV - + COUNT( * ) + - + 45 + 61 + - - 94 + + - 27 * - 91 * + 36 AS col1, + 31 + + - 92 - - 5 * - 81 * - 53 - 30 + - + COUNT( * ) AS col2
----
88554
21373

skipif mysql # not compatible
query II rowsort label-1912
SELECT DISTINCT 8 / - + COUNT ( * ) + - + 45 + 61 + - - 94 + + - 27 * - 91 * + 36 AS col1, + 31 + + - 92 - - 5 * - 81 * - 53 - 30 + - + COUNT ( * ) AS col2
----
88554
21373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL COUNT( * ) * + CASE - 98 WHEN + + CAST( 94 AS SIGNED ) + - + 88 * + + ( - 64 ) * - 30 - 37 * - 2 * - - 17 + 30 THEN - 60 * 92 WHEN + AVG ( + 4 ) * - 28 + 72 + - + CASE - + 52 WHEN ( - + ( - + 71 ) ) * - 70 * + 57 + 67 + 49 THEN - + 18 / - MAX( + 65 ) - - - ( - 61 ) END THEN NULL ELSE 65 + + CASE 20 WHEN + NULLIF ( - 8, + 52 ) THEN NULL WHEN - + COALESCE ( + 41, + + 92 ) THEN NULL WHEN + - CAST( MAX( + - 35 ) AS SIGNED ) THEN - 4 WHEN CAST( NULL AS SIGNED ) * + + ( - COUNT( * ) ) THEN NULL ELSE MAX( + 99 ) + - 43 * + 43 END + ( + COUNT( * ) ) END * 21
----
-35364

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL COUNT ( * ) * + CASE - 98 WHEN + + CAST ( 94 AS INTEGER ) + - + 88 * + + ( - 64 ) * - 30 - 37 * - 2 * - - 17 + 30 THEN - 60 * 92 WHEN + AVG ( + 4 ) * - 28 + 72 + - + CASE - + 52 WHEN ( - + ( - + 71 ) ) * - 70 * + 57 + 67 + 49 THEN - + 18 / - MAX ( + 65 ) - - - ( - 61 ) END THEN NULL ELSE 65 + + CASE 20 WHEN + NULLIF ( - 8, + 52 ) THEN NULL WHEN - + COALESCE ( + 41, + + 92 ) THEN NULL WHEN + - CAST ( MAX ( + - 35 ) AS INTEGER ) THEN - 4 WHEN CAST ( NULL AS INTEGER ) * + + ( - COUNT ( * ) ) THEN NULL ELSE MAX ( + 99 ) + - 43 * + 43 END + ( + COUNT ( * ) ) END * 21
----
-35364

query I rowsort
SELECT + ( - ( - - 13 ) ) * + 42 AS col2
----
-546

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT DISTINCT 69 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 69 / + 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT DISTINCT 45 * - NULLIF ( - CAST( NULL AS SIGNED ), - NULLIF ( 48, - 75 * + 33 + - 23 ) ) * 19 - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT 45 * - NULLIF ( - CAST ( NULL AS INTEGER ), - NULLIF ( 48, - 75 * + 33 + - 23 ) ) * 19 - 30
----
NULL

query I rowsort
SELECT + 93 * + 64 AS col0
----
5952

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT + 10 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT + 10 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT - - 90 + + + 29 + 26 + - + NULLIF ( - 2, MAX( - 41 ) * - + 63 ) + + - 86 * - COUNT( * ) * - 13 AS col1
----
-971

skipif mysql # not compatible
query I rowsort label-1920
SELECT - - 90 + + + 29 + 26 + - + NULLIF ( - 2, MAX ( - 41 ) * - + 63 ) + + - 86 * - COUNT ( * ) * - 13 AS col1
----
-971

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT - + 15 + 64 DIV 58 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1923
SELECT - + 15 + 64 / 58 AS col2
----
-14

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

query I rowsort
SELECT ALL + - 16
----
-16

query II rowsort
SELECT - - 96 * + 79 * ( 38 ), - ( ( - 87 ) ) * + 31 - 48 AS col2
----
288192
2649

query II rowsort
SELECT - 79, 65 AS col2
----
-79
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1928
SELECT + - ( COUNT( * ) ) - + 76, NULLIF ( NULLIF ( + - 65, + 95 ), 30 * 70 ) + + 5 AS col1
----
-77
-60

skipif mysql # not compatible
query II rowsort label-1928
SELECT + - ( COUNT ( * ) ) - + 76, NULLIF ( NULLIF ( + - 65, + 95 ), 30 * 70 ) + + 5 AS col1
----
-77
-60

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

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

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

skipif mysql # not compatible
query II rowsort label-1930
SELECT - + COUNT ( * ) - - 14 + + COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) / - COUNT ( * ) - - - 58
----
14
NULL

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

query I rowsort
SELECT 88 + - - 19 * + + 30
----
658

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - 38 + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - 38 + - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1934
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( + 77 ) col0, + COALESCE ( + COUNT( * ), - - 35 + + 14 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1934
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + 77 ) col0, + COALESCE ( + COUNT ( * ), - - 35 + + 14 ) AS col0
----
NULL
1

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

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

query I rowsort
SELECT 44 - 43
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT ALL 89 + + CAST( + 90 AS SIGNED )
----
179

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 89 + + CAST ( + 90 AS INTEGER )
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT 53 - - 32 * COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1938
SELECT 53 - - 32 * COUNT ( * ) AS col2
----
85

query I rowsort
SELECT 27 + + ( - + 57 ) AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT SUM( ALL 15 ) + + 89 DIV - 90 + + 68
----
83

skipif mysql # not compatible
query I rowsort label-1940
SELECT SUM ( ALL 15 ) + + 89 / - 90 + + 68
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT DISTINCT - 86 DIV - 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - 86 / - 32 AS col0
----
2

query I rowsort
SELECT 79 * - 82 * + - 5
----
32390

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT ALL - 69 DIV + - 92
----
0

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL - 69 / + - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT MAX( DISTINCT + + 6 ) + + 21
----
27

skipif mysql # not compatible
query I rowsort label-1944
SELECT MAX ( DISTINCT + + 6 ) + + 21
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1945
SELECT ALL + COUNT( * ) + + COUNT( * ) DIV - 34 * 19 * + COALESCE ( + 93, 51 ) + ( - 54 ) AS col0, + 72 + - CASE 61 WHEN + 70 DIV - - 57 THEN + 90 WHEN - + ( + - CAST( + 30 AS SIGNED ) ) THEN NULL ELSE - 49 DIV + - 3 END
----
-53
56

skipif mysql # not compatible
query II rowsort label-1945
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / - 34 * 19 * + COALESCE ( + 93, 51 ) + ( - 54 ) AS col0, + 72 + - CASE 61 WHEN + 70 / - - 57 THEN + 90 WHEN - + ( + - CAST ( + 30 AS INTEGER ) ) THEN NULL ELSE - 49 / + - 3 END
----
-53
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT DISTINCT - 87 DIV - + MAX( ALL - - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - 87 / - + MAX ( ALL - - 54 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL 23 - - + ( - - 89 ) + - + COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 23 - - + ( - - 89 ) + - + COUNT ( * )
----
111

query I rowsort
SELECT 69 * 0 * ( + 9 ) AS col0
----
0

query I rowsort
SELECT CASE + 83 WHEN ( 4 ) * + 37 * + 86 THEN 54 END * - 18 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 97 * + + 52 col2
----
-5044

query I rowsort
SELECT ALL 63 - - + 88 * - 19 + - - 74
----
-1535

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

skipif mysql # not compatible
query I rowsort label-1952
SELECT 68 * - COUNT ( * )
----
-68

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

query I rowsort
SELECT 8 * + 0 * - 3 + - 10 - 70 AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT ALL 0 DIV + + 14 * - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL 0 / + + 14 * - 55 AS col0
----
0

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

query I rowsort
SELECT DISTINCT - 47 * 36 * - - 83
----
-140436

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL - COALESCE ( 61, - + COUNT( * ) + 25 ) * 77 AS col2
----
-4697

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - COALESCE ( 61, - + COUNT ( * ) + 25 ) * 77 AS col2
----
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL - - MIN( DISTINCT 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - - MIN ( DISTINCT 30 ) AS col0
----
30

query I rowsort
SELECT + + 67 * 84 + - 73
----
5555

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT 23 DIV + 59 + + + 30 + + 55 DIV - 61
----
30

skipif mysql # not compatible
query I rowsort label-1961
SELECT 23 / + 59 + + + 30 + + 55 / - 61
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT 54 - - - SUM( ALL - - 64 )
----
-10

skipif mysql # not compatible
query I rowsort label-1962
SELECT 54 - - - SUM ( ALL - - 64 )
----
-10

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

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

query I rowsort
SELECT ALL + 79 + 64 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT 56 + COUNT( * ) * - 85 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1965
SELECT 56 + COUNT ( * ) * - 85 AS col0
----
-29

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

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

query I rowsort
SELECT DISTINCT ( 94 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT DISTINCT - 60 + - 21 + 1 DIV - 79 * - 27 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 60 + - 21 + 1 / - 79 * - 27 AS col2
----
-81

query I rowsort
SELECT ALL + + 9 + + + 88
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT COUNT( * ) + 52 + + + 44
----
97

skipif mysql # not compatible
query I rowsort label-1970
SELECT COUNT ( * ) + 52 + + + 44
----
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL - 0 * - NULLIF ( - COUNT( ALL + 71 ), - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL - 0 * - NULLIF ( - COUNT ( ALL + 71 ), - 83 )
----
0

query II rowsort
SELECT 97 AS col0, - ( + 81 ) AS col1
----
97
-81

query I rowsort
SELECT 50 + + 33 AS col2
----
83

query I rowsort
SELECT DISTINCT + 28 - 96 AS col2
----
-68

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT DISTINCT + 28 - + 27 DIV - 84 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT + 28 - + 27 / - 84 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT 68 DIV - - 24
----
2

skipif mysql # not compatible
query I rowsort label-1980
SELECT 68 / - - 24
----
2

query I rowsort
SELECT 4 * + - CASE - 49 WHEN ( + 60 ) THEN + + 86 ELSE NULL END / - 61 AS col2
----
NULL

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

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

query I rowsort
SELECT 78 - + 4
----
74

query I rowsort
SELECT 13 * - 34 * - 3 AS col2
----
1326

query I rowsort
SELECT ALL + 11 * 67 AS col1
----
737

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT 94 DIV 21 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1986
SELECT 94 / 21 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT ALL + 39 DIV 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + 39 / 15 AS col2
----
2

query I rowsort
SELECT ALL 10 * 79 AS col2
----
790

query I rowsort
SELECT 3 * 84
----
252

query I rowsort
SELECT ALL - 79 * 20 + + 18 * + 47 AS col0
----
-734

query I rowsort
SELECT ALL - COALESCE ( 66, + 40, - 36 ) * - 17 AS col2
----
1122

query I rowsort
SELECT 93 * - 2
----
-186

query I rowsort
SELECT 28 * + 46 AS col0
----
1288

query I rowsort
SELECT ALL ( + 53 ) + - 79
----
-26

query I rowsort
SELECT DISTINCT 26 + + 82
----
108

query I rowsort
SELECT + 49 * - 61
----
-2989

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT + SUM( 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT + SUM ( 60 ) AS col0
----
60

query I rowsort
SELECT ALL + 76 + 52
----
128

query I rowsort
SELECT DISTINCT 96 * - 19 AS col1
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL 14 + 69 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL 14 + 69 * COUNT ( * )
----
83

query I rowsort
SELECT + 19 * ( 38 ) col1
----
722

query I rowsort
SELECT - 90 + 67 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - COALESCE ( COUNT( * ), 36 + 75 * - 21 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2003
SELECT - COALESCE ( COUNT ( * ), 36 + 75 * - 21 ) AS col2
----
-1

query I rowsort
SELECT ALL 1 + + 3 * - 84 AS col2
----
-251

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

query I rowsort
SELECT + 83 - - CASE WHEN 85 IS NOT NULL THEN - 29 WHEN ( NULL ) IS NOT NULL THEN NULL ELSE 98 * - 59 END AS col1
----
54

query I rowsort
SELECT + CASE 78 WHEN + 74 THEN 83 * - 48 ELSE NULL END * + 90 col1
----
NULL

query I rowsort
SELECT DISTINCT 95 * - 3 AS col2
----
-285

query I rowsort
SELECT ALL 54 * 30
----
1620

query I rowsort
SELECT + 60 + ( 37 + 3 ) col1
----
100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT DISTINCT CAST( 52 AS SIGNED ) * - 33
----
-1716

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT CAST ( 52 AS INTEGER ) * - 33
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL 18 * COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL 18 * COUNT ( * ) AS col0
----
18

query I rowsort
SELECT + 29 * ( - 84 * - 31 )
----
75516

query I rowsort
SELECT + 76 + + 77 * - 16
----
-1156

query I rowsort
SELECT + 94 * 76 col1
----
7144

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

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

query I rowsort
SELECT ALL - 52 * 37
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT + COUNT( * ) + 24
----
25

skipif mysql # not compatible
query I rowsort label-2019
SELECT + COUNT ( * ) + 24
----
25

query I rowsort
SELECT + 22 + - 14
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT + ( - NULLIF ( COUNT( * ), 92 * COUNT( * ) + + ( 50 ) ) ) * - 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT + ( - NULLIF ( COUNT ( * ), 92 * COUNT ( * ) + + ( 50 ) ) ) * - 93 AS col2
----
93

query I rowsort
SELECT ALL 4 * - 4 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL + + 28 * - 38 + - SUM( DISTINCT - NULLIF ( 6, - 14 ) - + 48 ) AS col1
----
-1010

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + + 28 * - 38 + - SUM ( DISTINCT - NULLIF ( 6, - 14 ) - + 48 ) AS col1
----
-1010

query I rowsort
SELECT 72 * - COALESCE ( - 20, 89 + + 42, 53 ) + 78 col1
----
1518

query I rowsort
SELECT - + 45 * 26 + 88 AS col0
----
-1082

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL + NULLIF ( - 54, - 15 / + COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + NULLIF ( - 54, - 15 / + COUNT ( * ) ) col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2027
SELECT - 79 DIV - ( + 77 * - 52 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2027
SELECT - 79 / - ( + 77 * - 52 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2028
SELECT ALL + CAST( NULL AS DECIMAL ) * 20 + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL + CAST ( NULL AS REAL ) * 20 + - 89 AS col2
----
NULL

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

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

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

query I rowsort
SELECT ALL + - 44 * 39 + 14 AS col0
----
-1702

query I rowsort
SELECT 57 * 73 + - COALESCE ( - ( - 33 ) + - ( - 56 ), - 44 ) col0
----
4072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT DISTINCT + COALESCE ( 85, CAST( - 67 AS SIGNED ) ) * - 50 + NULLIF ( 78, + COUNT( * ) ) * - 45
----
-7760

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + COALESCE ( 85, CAST ( - 67 AS INTEGER ) ) * - 50 + NULLIF ( 78, + COUNT ( * ) ) * - 45
----
-7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT - + ( 84 ) * - CAST( 8 * + 77 AS SIGNED ) AS col1
----
51744

skipif mysql # not compatible
query I rowsort label-2034
SELECT - + ( 84 ) * - CAST ( 8 * + 77 AS INTEGER ) AS col1
----
51744

query I rowsort
SELECT ALL - 15 * 40 + + 88 AS col1
----
-512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT - COALESCE ( - 69, NULLIF ( + 57, - 48 + + 23 ) ) * ( 23 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT - COALESCE ( - 69, NULLIF ( + 57, - 48 + + 23 ) ) * ( 23 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 25 * 10 + - 81 AS col2
----
-331

query I rowsort
SELECT ALL - + 38 * + 92
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT - CASE 9 WHEN + ( - 27 ) THEN NULL ELSE - 28 END + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2039
SELECT - CASE 9 WHEN + ( - 27 ) THEN NULL ELSE - 28 END + COUNT ( * ) AS col0
----
29

query I rowsort
SELECT - 34 * - 18 AS col1
----
612

query I rowsort
SELECT + - 65
----
-65

query I rowsort
SELECT + 17 * 38 + 75 AS col0
----
721

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT + - 65 * COALESCE ( + ( 15 ), + 10, 17 DIV + COUNT( * ) ) - COUNT( + 78 ) AS col2
----
-976

skipif mysql # not compatible
query I rowsort label-2044
SELECT + - 65 * COALESCE ( + ( 15 ), + 10, 17 / + COUNT ( * ) ) - COUNT ( + 78 ) AS col2
----
-976

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

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

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

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

query I rowsort
SELECT DISTINCT 43 * 19 - 18 * - 0 AS col0
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT MAX( DISTINCT + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2048
SELECT MAX ( DISTINCT + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT + 6 + - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2049
SELECT + 6 + - - COUNT ( * )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT ALL 71 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL 71 / + - 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2051
SELECT - CASE - + 42 WHEN + CAST( NULL AS DECIMAL ) * + 12 + 4 THEN NULL ELSE 17 * 63 END * - COUNT( * ) col1
----
1071

skipif mysql # not compatible
query I rowsort label-2051
SELECT - CASE - + 42 WHEN + CAST ( NULL AS REAL ) * + 12 + 4 THEN NULL ELSE 17 * 63 END * - COUNT ( * ) col1
----
1071

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2052
SELECT + CAST( - CAST( NULLIF ( - 97, + 62 ) AS DECIMAL ) AS SIGNED ) + 58 * + 55 AS col2
----
3287

skipif mysql # not compatible
query I rowsort label-2052
SELECT + CAST ( - CAST ( NULLIF ( - 97, + 62 ) AS REAL ) AS INTEGER ) + 58 * + 55 AS col2
----
3287

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT - COALESCE ( - COALESCE ( CAST( 39 AS SIGNED ), + 75 * - COUNT( * ) - 3 ), 12, - CAST( 80 AS SIGNED ) * - 84 ) col2
----
39

skipif mysql # not compatible
query I rowsort label-2055
SELECT - COALESCE ( - COALESCE ( CAST ( 39 AS INTEGER ), + 75 * - COUNT ( * ) - 3 ), 12, - CAST ( 80 AS INTEGER ) * - 84 ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + 35 * - + 24 * NULLIF ( 49, 93 * - ( COUNT( * ) ) + + 83 )
----
-41160

skipif mysql # not compatible
query I rowsort label-2056
SELECT + 35 * - + 24 * NULLIF ( 49, 93 * - ( COUNT ( * ) ) + + 83 )
----
-41160

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

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

query I rowsort
SELECT DISTINCT 70 + - 65 * + 70 AS col0
----
-4480

query I rowsort
SELECT + NULLIF ( - 24, - 13 ) * 72
----
-1728

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT + 99 DIV + + ( 11 )
----
9

skipif mysql # not compatible
query I rowsort label-2060
SELECT + 99 / + + ( 11 )
----
9

query I rowsort
SELECT ALL 4 + + - 65 - - 2 col2
----
-59

query I rowsort
SELECT DISTINCT 63 * - + ( 6 ) * 89
----
-33642

query I rowsort
SELECT ALL - 75 + 9 + - NULLIF ( 20, 51 - - 13 ) AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT DISTINCT 57 + + 31 DIV 8 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT 57 + + 31 / 8 AS col1
----
60

query I rowsort
SELECT - 63 + 52
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT COUNT( 0 )
----
1

skipif mysql # not compatible
query I rowsort label-2066
SELECT COUNT ( 0 )
----
1

query I rowsort
SELECT 32 - + - ( 85 )
----
117

query I rowsort
SELECT ALL + 55 + - 77
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL + + ( + - COUNT( DISTINCT + NULLIF ( 2, - 73 ) ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + + ( + - COUNT ( DISTINCT + NULLIF ( 2, - 73 ) ) ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL + CAST( + 82 AS SIGNED ) + 63 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + CAST ( + 82 AS INTEGER ) + 63 AS col1
----
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT + + 15 - + + 33 + MIN( ALL + 3 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + + 15 - + + 33 + MIN ( ALL + 3 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT 1 * - 13 * COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2073
SELECT 1 * - 13 * COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT ALL 40 * ( - 90 ) col0
----
-3600

query I rowsort
SELECT NULLIF ( + CASE - 94 WHEN 37 THEN NULL WHEN - 38 THEN 32 / 95 END, ( - 63 ) ) AS col0
----
NULL

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

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

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

query I rowsort
SELECT 80 * 75 AS col1
----
6000

query I rowsort
SELECT + 6 * - + 23 + 63
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT + - NULLIF ( COUNT( * ), - 87 + + 70 * - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-2081
SELECT + - NULLIF ( COUNT ( * ), - 87 + + 70 * - 66 )
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT DISTINCT - + MIN( + + 20 ) DIV 8
----
-2

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT - + MIN ( + + 20 ) / 8
----
-2

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

query I rowsort
SELECT ALL - 23 * + 54
----
-1242

query I rowsort
SELECT 62 * - 42
----
-2604

query I rowsort
SELECT ALL - 14 * - 44
----
616

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT DISTINCT - 42 DIV + 51 * + - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - 42 / + 51 * + - 90 AS col0
----
0

query I rowsort
SELECT ALL + 51 * 50
----
2550

query II rowsort
SELECT DISTINCT 21, + 12 AS col0
----
21
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL - 24 * CAST( NULL AS SIGNED ) * + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - 24 * CAST ( NULL AS INTEGER ) * + + 34 AS col1
----
NULL

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

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

query I rowsort
SELECT 62 * - - 57
----
3534

query I rowsort
SELECT ALL + 51 * + 60 AS col0
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT 68 - + + 65 + + COUNT( * ) + - COUNT( * ) col2
----
3

skipif mysql # not compatible
query I rowsort label-2095
SELECT 68 - + + 65 + + COUNT ( * ) + - COUNT ( * ) col2
----
3

query II rowsort
SELECT - 83, + 68 AS col2
----
-83
68

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

query I rowsort
SELECT ALL NULLIF ( - CASE + 73 WHEN + 43 THEN NULL ELSE 97 + ( - 71 ) END, 47 * + 12 ) + 52
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT MAX( DISTINCT + 96 ) + + 0 + + 39 * + 83
----
3333

skipif mysql # not compatible
query I rowsort label-2099
SELECT MAX ( DISTINCT + 96 ) + + 0 + + 39 * + 83
----
3333

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT ALL + 52 + + 13 DIV + 41 col2
----
52

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL + 52 + + 13 / + 41 col2
----
52

query I rowsort
SELECT DISTINCT 44 col2
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL COUNT( * ) + 81 + - 83 + + 96
----
95

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL COUNT ( * ) + 81 + - 83 + + 96
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL 87 + - - CAST( + 27 AS SIGNED )
----
114

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL 87 + - - CAST ( + 27 AS INTEGER )
----
114

query I rowsort
SELECT 13 - - - 78 * 9
----
-689

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT 19 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT 19 / 73
----
0

query II rowsort
SELECT 37 col0, 13 AS col2
----
37
13

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

skipif mysql # not compatible
query II rowsort label-2108
SELECT - 60, - CAST ( NULL AS INTEGER ) AS col0
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT + 91 + + 92 + - - COUNT( * ) + 43 * 87
----
3925

skipif mysql # not compatible
query I rowsort label-2109
SELECT + 91 + + 92 + - - COUNT ( * ) + 43 * 87
----
3925

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

skipif mysql # not compatible
query I rowsort label-2110
SELECT - - SUM ( ALL 5 )
----
5

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 5, 18 * + 68 ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT ALL - CAST( NULL AS SIGNED ) + + 89 - + - 99 - - CAST( - 82 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - CAST ( NULL AS INTEGER ) + + 89 - + - 99 - - CAST ( - 82 AS INTEGER )
----
NULL

query I rowsort
SELECT 77 * 19
----
1463

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL CAST( - - 87 AS SIGNED ) - 4
----
83

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL CAST ( - - 87 AS INTEGER ) - 4
----
83

query I rowsort
SELECT ALL 11 * 24
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL 85 - + + 57 * NULLIF ( COUNT( * ), 28 )
----
28

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL 85 - + + 57 * NULLIF ( COUNT ( * ), 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT MAX( - CAST( NULL AS SIGNED ) ) col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL - + COALESCE ( + 62, - 27 - + SUM( DISTINCT ( 2 ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - + COALESCE ( + 62, - 27 - + SUM ( DISTINCT ( 2 ) ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT COUNT( - 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT COUNT ( - 2 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT + CASE WHEN NOT + 17 BETWEEN - 51 + + 65 * 83 AND + 17 * NULLIF ( CASE 92 WHEN + 45 * 46 + + 71 THEN 2 WHEN 12 * + 26 THEN NULL ELSE NULL END, - 33 * 23 + ( + NULLIF ( + CASE + NULLIF ( 25, ( + 76 ) ) WHEN - 19 THEN - 49 ELSE - MIN( + 0 ) + + 38 END, + 79 * 81 + + ( 54 + 56 ) ) + + 62 * 49 ) ) THEN 38 ELSE - 86 END
----
38

skipif mysql # not compatible
query I rowsort label-2123
SELECT + CASE WHEN NOT + 17 BETWEEN - 51 + + 65 * 83 AND + 17 * NULLIF ( CASE 92 WHEN + 45 * 46 + + 71 THEN 2 WHEN 12 * + 26 THEN NULL ELSE NULL END, - 33 * 23 + ( + NULLIF ( + CASE + NULLIF ( 25, ( + 76 ) ) WHEN - 19 THEN - 49 ELSE - MIN ( + 0 ) + + 38 END, + 79 * 81 + + ( 54 + 56 ) ) + + 62 * 49 ) ) THEN 38 ELSE - 86 END
----
38

query I rowsort
SELECT ALL + ( + 8 ) * + - 60 - - 46 * + 16
----
256

query II rowsort
SELECT + 17 AS col2, + 63
----
17
63

query II rowsort
SELECT ALL - - 97, + 69 * - 74 AS col2
----
97
-5106

query I rowsort
SELECT 72 * + + ( 72 )
----
5184

query I rowsort
SELECT 78 + - + 54 + + ( + + ( - 87 ) ) AS col1
----
-63

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL - 20 + + - COUNT( * ) - - - ( - 30 ) + 23 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - 20 + + - COUNT ( * ) - - - ( - 30 ) + 23 AS col2
----
32

query I rowsort
SELECT DISTINCT - NULLIF ( 85, - 78 * + + 95 * 22 )
----
-85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2135
SELECT ALL MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col1, + 44 + 33
----
NULL
77

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1, + 44 + 33
----
NULL
77

query I rowsort
SELECT ALL - 93 + - - ( - - 30 ) AS col2
----
-63

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

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

query I rowsort
SELECT ALL 29 + 81 AS col1
----
110

query I rowsort
SELECT 97 * + - 28 * 46
----
-124936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT 3 + - - 76 - + - 64 + + + CAST( NULL AS SIGNED ) * 61 * + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT 3 + - - 76 - + - 64 + + + CAST ( NULL AS INTEGER ) * 61 * + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - MAX( - 71 ) + - - 86 * + 33 - + CASE 76 WHEN + 55 + COUNT( * ) THEN CASE - 5 WHEN - 3 + ( ( - 28 ) ) THEN 26 WHEN COUNT( * ) THEN NULL END * 61 ELSE NULL END * - NULLIF ( - 28, 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - MAX ( - 71 ) + - - 86 * + 33 - + CASE 76 WHEN + 55 + COUNT ( * ) THEN CASE - 5 WHEN - 3 + ( ( - 28 ) ) THEN 26 WHEN COUNT ( * ) THEN NULL END * 61 ELSE NULL END * - NULLIF ( - 28, 11 )
----
NULL

query I rowsort
SELECT 87 * + 97 AS col2
----
8439

query I rowsort
SELECT 22 + - + 95 * 84 * ( 74 ) * 35 AS col0
----
-20668178

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT ALL - COALESCE ( 77, + - 30, + + 58 + ( 52 ) ) + + 19 DIV + 6
----
-74

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - COALESCE ( 77, + - 30, + + 58 + ( 52 ) ) + + 19 / + 6
----
-74

query I rowsort
SELECT DISTINCT - 3 * + - 39 AS col1
----
117

query II rowsort
SELECT - 89 * 64, 68 AS col0
----
-5696
68

query I rowsort
SELECT ALL 56 - - 5
----
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2149
SELECT + ( - - COUNT( * ) ), - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2149
SELECT + ( - - COUNT ( * ) ), - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL - - 31 - + - 58 + + COUNT( * ) + + 84 col0
----
174

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - - 31 - + - 58 + + COUNT ( * ) + + 84 col0
----
174

query I rowsort
SELECT - + ( 42 ) * 7 AS col0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT + NULLIF ( - 28, - CASE WHEN - ( + 62 ) < ( 10 ) THEN + 62 WHEN - 98 / + COUNT( * ) = NULL THEN + 83 * + 84 END ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2152
SELECT + NULLIF ( - 28, - CASE WHEN - ( + 62 ) < ( 10 ) THEN + 62 WHEN - 98 / + COUNT ( * ) = NULL THEN + 83 * + 84 END ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2153
SELECT + CAST( SUM( + - 90 ) AS SIGNED ) + - + 20 DIV COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-2153
SELECT + CAST ( SUM ( + - 90 ) AS INTEGER ) + - + 20 / COUNT ( * )
----
-110

query I rowsort
SELECT + 28 * - ( 26 ) * 74 AS col1
----
-53872

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

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

query I rowsort
SELECT DISTINCT + + 89 * 98 AS col0
----
8722

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

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

query I rowsort
SELECT - 77 * 68
----
-5236

query I rowsort
SELECT + COALESCE ( - 72, 23 ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL NULLIF ( + 59, 20 * 47 - 1 ) * CASE + 63 WHEN + 21 THEN 82 END + COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL NULLIF ( + 59, 20 * 47 - 1 ) * CASE + 63 WHEN + 21 THEN 82 END + COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 95 - 86
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + SUM( DISTINCT - - 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2163
SELECT + SUM ( DISTINCT - - 46 ) AS col0
----
46

query II rowsort
SELECT DISTINCT + 39 AS col0, + 7 AS col1
----
39
7

query I rowsort
SELECT ALL 18 * - 25 + - 34 - + - 70 AS col0
----
-414

query I rowsort
SELECT + 47 * - 21 AS col1
----
-987

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2167
SELECT ALL 42 * - CAST( NULL AS DECIMAL ) + 69 * - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL 42 * - CAST ( NULL AS REAL ) + 69 * - - 30
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL - COUNT( * ) * + - 49 + 73 * 42 col1
----
3115

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL - COUNT ( * ) * + - 49 + 73 * 42 col1
----
3115

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT + 17 - + 33 * + - 51 AS col2, - 27 * COUNT( * ) AS col0
----
1700
-27

skipif mysql # not compatible
query II rowsort label-2171
SELECT + 17 - + 33 * + - 51 AS col2, - 27 * COUNT ( * ) AS col0
----
1700
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT 29 * 37 + ( 37 ) + + SUM( DISTINCT - ( - 66 ) )
----
1176

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT 29 * 37 + ( 37 ) + + SUM ( DISTINCT - ( - 66 ) )
----
1176

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT - 69 DIV 9
----
-7

skipif mysql # not compatible
query I rowsort label-2174
SELECT - 69 / 9
----
-7

query I rowsort
SELECT ALL 75 + - - 79 col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2176
SELECT + CASE 97 WHEN - CAST( NULL AS SIGNED ) * ( COUNT( * ) ) THEN 17 WHEN 2 + - 58 * - 68 THEN NULL END * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT + CASE 97 WHEN - CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) THEN 17 WHEN 2 + - 58 * - 68 THEN NULL END * - 50
----
NULL

query I rowsort
SELECT + 57 + - 62 + + + ( 2 ) * 33 * + 79 AS col2
----
5209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2178
SELECT ALL CASE + 42 WHEN + CAST( - 92 AS SIGNED ) * - CASE + 23 WHEN 78 THEN ( 20 ) + + 12 * + 20 WHEN 85 * NULLIF ( COUNT( * ) * - 99, - 62 ) THEN 73 + CAST( 19 + + 84 * 92 AS SIGNED ) END + - 90 THEN NULL ELSE - COALESCE ( - MAX( DISTINCT - 72 ), + 71 ) DIV 9 END AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL CASE + 42 WHEN + CAST ( - 92 AS INTEGER ) * - CASE + 23 WHEN 78 THEN ( 20 ) + + 12 * + 20 WHEN 85 * NULLIF ( COUNT ( * ) * - 99, - 62 ) THEN 73 + CAST ( 19 + + 84 * 92 AS INTEGER ) END + - 90 THEN NULL ELSE - COALESCE ( - MAX ( DISTINCT - 72 ), + 71 ) / 9 END AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT + 33 + - COUNT( * ) + + - 77 * 73 AS col2
----
-5589

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 33 + - COUNT ( * ) + + - 77 * 73 AS col2
----
-5589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT + 51 * NULLIF ( 55, 20 * - ( - CASE COUNT( * ) WHEN 47 THEN NULL WHEN + 1 + + 23 THEN NULL WHEN 12 * - NULLIF ( 2 * + 35, + 4 ) THEN NULL ELSE 18 END ) + COUNT( ALL - CAST( 21 AS SIGNED ) ) ) * 32
----
89760

skipif mysql # not compatible
query I rowsort label-2180
SELECT + 51 * NULLIF ( 55, 20 * - ( - CASE COUNT ( * ) WHEN 47 THEN NULL WHEN + 1 + + 23 THEN NULL WHEN 12 * - NULLIF ( 2 * + 35, + 4 ) THEN NULL ELSE 18 END ) + COUNT ( ALL - CAST ( 21 AS INTEGER ) ) ) * 32
----
89760

query I rowsort
SELECT + 10 + - ( - 81 ) - + + 93 + - 99 * 8 AS col2
----
-794

query II rowsort
SELECT ALL - + 71 - + + 55 * 27 AS col0, 52 + - 88 * - 47 col2
----
-1556
4188

query I rowsort
SELECT ALL + 87 * + 64 AS col1
----
5568

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2184
SELECT DISTINCT + - ( + - 48 ) DIV + - 55 - + + ( CAST( - 88 AS SIGNED ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT + - ( + - 48 ) / + - 55 - + + ( CAST ( - 88 AS INTEGER ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - - 49 + CASE - 40 WHEN - 53 THEN + 54 WHEN - COUNT( * ) THEN NULL END + + NULLIF ( + 33, 42 * 84 + 43 ) / - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT - - 49 + CASE - 40 WHEN - 53 THEN + 54 WHEN - COUNT ( * ) THEN NULL END + + NULLIF ( + 33, 42 * 84 + 43 ) / - 23 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT ALL + 43 * - + 60 + 73 DIV + 88 * 43
----
-2580

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + 43 * - + 60 + 73 / + 88 * 43
----
-2580

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT + 76 DIV + 60 - 30 + 38 * + NULLIF ( + 19, + 69 ) col0
----
693

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 76 / + 60 - 30 + 38 * + NULLIF ( + 19, + 69 ) col0
----
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + 73 - - - 13
----
61

skipif mysql # not compatible
query I rowsort label-2188
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + 73 - - - 13
----
61

query I rowsort
SELECT - 59 * + 82
----
-4838

query I rowsort
SELECT ALL - 52 * + + 13 AS col2
----
-676

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT - COUNT( * ) * - 22 col0
----
22

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - COUNT ( * ) * - 22 col0
----
22

query I rowsort
SELECT ALL 56 col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT DISTINCT 74 DIV + - CASE + MIN( + 2 ) WHEN + 11 * 49 THEN 78 * - 68 + - COUNT( * ) ELSE 31 END + 18
----
16

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT 74 / + - CASE + MIN ( + 2 ) WHEN + 11 * 49 THEN 78 * - 68 + - COUNT ( * ) ELSE 31 END + 18
----
16

query I rowsort
SELECT + 62 * 2 * - + ( - 73 ) AS col1
----
9052

query I rowsort
SELECT DISTINCT + 10 * - - 25 AS col0
----
250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2196
SELECT CAST( - + 79 AS SIGNED ) AS col0, 93 AS col0
----
-79
93

skipif mysql # not compatible
query II rowsort label-2196
SELECT CAST ( - + 79 AS INTEGER ) AS col0, 93 AS col0
----
-79
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL COUNT( * ) / + - 40 + 1 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL COUNT ( * ) / + - 40 + 1 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT ALL 70 DIV + COALESCE ( - 63, - 97 * - - 39 ) + 15 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL 70 / + COALESCE ( - 63, - 97 * - - 39 ) + 15 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT 93 * - + 81 + 11 * - COUNT( * )
----
-7544

skipif mysql # not compatible
query I rowsort label-2199
SELECT 93 * - + 81 + 11 * - COUNT ( * )
----
-7544

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT ALL + 62 AS col2, + NULLIF ( - - 15, 89 * + - COUNT( * ) + + - CASE - COUNT( ALL - 59 ) WHEN 56 + 91 * MAX( 69 * 97 + 1 ) THEN NULL WHEN 88 * + 84 THEN - COUNT( * ) * 3 END ) * 93
----
62
1395

skipif mysql # not compatible
query II rowsort label-2200
SELECT ALL + 62 AS col2, + NULLIF ( - - 15, 89 * + - COUNT ( * ) + + - CASE - COUNT ( ALL - 59 ) WHEN 56 + 91 * MAX ( 69 * 97 + 1 ) THEN NULL WHEN 88 * + 84 THEN - COUNT ( * ) * 3 END ) * 93
----
62
1395

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

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

query I rowsort
SELECT - 7 * - 36 + + 17 AS col2
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL 25 * - 89 + + 13 * - - ( + 81 ) + + MIN( ALL 95 ) * 47 AS col0
----
3293

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL 25 * - 89 + + 13 * - - ( + 81 ) + + MIN ( ALL 95 ) * 47 AS col0
----
3293

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

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

query I rowsort
SELECT + 70 + - 41 AS col0
----
29

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

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

query I rowsort
SELECT 30 * 20 + - + 21 + + 57 * + 24 col1
----
1947

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

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

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

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

query II rowsort
SELECT - 78, + 56 * - 15 + + 80 AS col1
----
-78
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL 77 * 7 + - - SUM( - 87 ) AS col0
----
452

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL 77 * 7 + - - SUM ( - 87 ) AS col0
----
452

query I rowsort
SELECT 62 * 81 AS col0
----
5022

query I rowsort
SELECT - 16 * 65 * - ( 67 ) col1
----
69680

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT + 12 AS col1, COALESCE ( + + SUM( ALL - ( - 20 ) ), + - COUNT( * ) + + 40 )
----
12
20

skipif mysql # not compatible
query II rowsort label-2215
SELECT + 12 AS col1, COALESCE ( + + SUM ( ALL - ( - 20 ) ), + - COUNT ( * ) + + 40 )
----
12
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT - 34 * COUNT( * ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-2216
SELECT - 34 * COUNT ( * ) / 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT - CASE - - CASE 6 WHEN - COALESCE ( 22, + - 7, COUNT( * ) - 12 ) THEN + 28 * + 50 END WHEN - 15 + 38 * 16 THEN NULL ELSE - ( 75 ) END
----
75

skipif mysql # not compatible
query I rowsort label-2217
SELECT - CASE - - CASE 6 WHEN - COALESCE ( 22, + - 7, COUNT ( * ) - 12 ) THEN + 28 * + 50 END WHEN - 15 + 38 * 16 THEN NULL ELSE - ( 75 ) END
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT + CAST( - 44 AS SIGNED ) + - ( + - 0 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2218
SELECT + CAST ( - 44 AS INTEGER ) + - ( + - 0 ) AS col1
----
-44

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

query II rowsort
SELECT + 1 * - 60 AS col1, - 5
----
-60
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT ALL + - 63 DIV - + 30 col0
----
2

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + - 63 / - + 30 col0
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL - COUNT( + 39 ) + - 33
----
-34

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - COUNT ( + 39 ) + - 33
----
-34

query II rowsort
SELECT - + 24, + 93 AS col2
----
-24
93

query I rowsort
SELECT ALL - - 51 + + 83 + - - 80 AS col2
----
214

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

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

query I rowsort
SELECT DISTINCT + 29 + + 3 + + ( - 20 )
----
12

query I rowsort
SELECT ALL 7 * + 98
----
686

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

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

query I rowsort
SELECT - + 3 col0
----
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT ALL + + 59 + - 21 DIV + 36 + + COALESCE ( 81, + 22 * 15 ) + 80 DIV 61 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + + 59 + - 21 / + 36 + + COALESCE ( 81, + 22 * 15 ) + 80 / 61 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + SUM( ALL + 87 ) * 35 AS col0
----
3045

skipif mysql # not compatible
query I rowsort label-2233
SELECT + SUM ( ALL + 87 ) * 35 AS col0
----
3045

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

query II rowsort
SELECT 81 + + - 83 AS col0, 80
----
-2
80

query I rowsort
SELECT ALL 12 * 62 * - - 31 AS col0
----
23064

query I rowsort
SELECT ALL + 88 + - ( - 49 ) AS col1
----
137

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

query I rowsort
SELECT 13 * - + 91 col0
----
-1183

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + 89 - - - 70 + - + COALESCE ( - MIN( DISTINCT 47 ), - COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + 89 - - - 70 + - + COALESCE ( - MIN ( DISTINCT 47 ), - COUNT ( * ) )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT 93 - - 57 + - 61 DIV - 14 + + ( MIN( DISTINCT + + 60 ) ) + + 97
----
311

skipif mysql # not compatible
query I rowsort label-2241
SELECT 93 - - 57 + - 61 / - 14 + + ( MIN ( DISTINCT + + 60 ) ) + + 97
----
311

query I rowsort
SELECT 97 * 70 AS col2
----
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL + SUM( - 57 ) * 28 AS col2
----
-1596

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + SUM ( - 57 ) * 28 AS col2
----
-1596

query I rowsort
SELECT COALESCE ( + - 89, 22 ) * + 40
----
-3560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2245
SELECT DISTINCT + ( - NULLIF ( 31, 88 ) ) * - MIN( ALL CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT + ( - NULLIF ( 31, 88 ) ) * - MIN ( ALL CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT + CASE - + 2 WHEN COUNT( * ) / + - 36 + 52 - 46 + + 88 THEN 75 WHEN COUNT( * ) THEN NULL ELSE NULL END / ( + 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + CASE - + 2 WHEN COUNT ( * ) / + - 36 + 52 - 46 + + 88 THEN 75 WHEN COUNT ( * ) THEN NULL ELSE NULL END / ( + 8 ) AS col0
----
NULL

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

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

query I rowsort
SELECT 99 * 84 + + 88
----
8404

query I rowsort
SELECT ALL - CASE + 11 WHEN + 37 THEN NULL WHEN - + 91 + - 3 THEN + + 71 + + 0 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT + 31 DIV + 48 - - + 82
----
82

skipif mysql # not compatible
query I rowsort label-2250
SELECT + 31 / + 48 - - + 82
----
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) / 12 + - - 84 - - + CAST( - + 86 AS SIGNED ) * - 73 + + 78 * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / 12 + - - 84 - - + CAST ( - + 86 AS INTEGER ) * - 73 + + 78 * - 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2253
SELECT + 58 + + - 4 - - COUNT( * ) + 72 * + 70 DIV + 35 + - 81 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-2253
SELECT + 58 + + - 4 - - COUNT ( * ) + 72 * + 70 / + 35 + - 81 AS col1
----
118

query I rowsort
SELECT DISTINCT - NULLIF ( - 48, 34 * + - 32 + + 29 + - 28 + COALESCE ( + 83, - 83 ) / + ( + 37 ) ) col2
----
48

query I rowsort
SELECT DISTINCT - 2 * - - 76
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT DISTINCT + 44 + - 91 DIV + 95 + 51 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT + 44 + - 91 / + 95 + 51 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL + 50 + - 54 * COUNT( * ) + - COUNT( * ) * + NULLIF ( 39, + + 46 + - COALESCE ( COUNT( * ) + - 76, 64 + 0, + 8 ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 50 + - 54 * COUNT ( * ) + - COUNT ( * ) * + NULLIF ( 39, + + 46 + - COALESCE ( COUNT ( * ) + - 76, 64 + 0, + 8 ) ) AS col0
----
-43

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

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

query II rowsort
SELECT ALL 62 AS col0, - 13
----
62
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-2260
SELECT - 62 DIV + ( 16 ) - + 10, 99 AS col2
----
-13
99

skipif mysql # not compatible
query II rowsort label-2260
SELECT - 62 / + ( 16 ) - + 10, 99 AS col2
----
-13
99

query I rowsort
SELECT DISTINCT 74 * 18 - 99
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ( - + 4 ) * COUNT( * ) + 10 - - - SUM( DISTINCT - - 57 ) + 93 + ( + 40 ) * + 77
----
3122

skipif mysql # not compatible
query I rowsort label-2262
SELECT ( - + 4 ) * COUNT ( * ) + 10 - - - SUM ( DISTINCT - - 57 ) + 93 + ( + 40 ) * + 77
----
3122

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2265
SELECT + COUNT ( DISTINCT - 84 ) AS col1
----
1

query II rowsort
SELECT COALESCE ( + + 26, - 83 ) AS col0, 66 AS col1
----
26
66

query I rowsort
SELECT + 41 * 89
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - 47 * + + ( + COALESCE ( + COUNT( * ), + 42 ) ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-2268
SELECT - 47 * + + ( + COALESCE ( + COUNT ( * ), + 42 ) ) col0
----
-47

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

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

query I rowsort
SELECT + 58 + 4
----
62

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

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

query I rowsort
SELECT ALL - 78 * 54 - + 51 + - 19
----
-4282

query I rowsort
SELECT 67 * - 75 + - 74 AS col0
----
-5099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT ALL + CASE + 9 WHEN - 33 THEN CASE + COALESCE ( + AVG ( + 53 ), + 69 * + CAST( 5 AS SIGNED ), + 51 ) WHEN - ( 81 ) THEN NULL ELSE + COALESCE ( - 89, 56 + - 75 * - 94, + AVG ( 83 ) ) END WHEN 17 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + CASE + 9 WHEN - 33 THEN CASE + COALESCE ( + AVG ( + 53 ), + 69 * + CAST ( 5 AS INTEGER ), + 51 ) WHEN - ( 81 ) THEN NULL ELSE + COALESCE ( - 89, 56 + - 75 * - 94, + AVG ( 83 ) ) END WHEN 17 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 80 + 35
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT MIN( + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2276
SELECT MIN ( + 97 ) AS col1
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2277
SELECT - 51 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT - 51 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - 57 + - COUNT( * ) * - 72 * - 52 + 94
----
-3707

skipif mysql # not compatible
query I rowsort label-2278
SELECT - 57 + - COUNT ( * ) * - 72 * - 52 + 94
----
-3707

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL SUM( 88 ) * + 37 + + ( + 66 ) - + 9 + + COUNT( * ) + ( + 17 ) * 82
----
4708

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL SUM ( 88 ) * + 37 + + ( + 66 ) - + 9 + + COUNT ( * ) + ( + 17 ) * 82
----
4708

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

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

query I rowsort
SELECT ALL - 64 * + - 1 AS col0
----
64

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

query I rowsort
SELECT - - 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL + - MIN( - 99 ) + - 20 col0
----
79

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + - MIN ( - 99 ) + - 20 col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2285
SELECT - 83 DIV ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-2285
SELECT - 83 / ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
-83

query I rowsort
SELECT ALL - - 80 * + + 19
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - - CASE 79 WHEN 83 * 38 + 6 * COUNT( * ) * - COUNT( * ) THEN - - 39 ELSE CASE 38 WHEN ( 12 ) THEN MIN( + 49 ) * + 53 END * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT - - CASE 79 WHEN 83 * 38 + 6 * COUNT ( * ) * - COUNT ( * ) THEN - - 39 ELSE CASE 38 WHEN ( 12 ) THEN MIN ( + 49 ) * + 53 END * 19 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT + CASE - 71 WHEN + - 83 THEN + 99 WHEN + + CASE AVG ( DISTINCT ( ( 42 ) ) ) WHEN CAST( - MAX( 48 ) AS SIGNED ) THEN - 86 * 59 END + + 25 THEN + 23 * + 59 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT + CASE - 71 WHEN + - 83 THEN + 99 WHEN + + CASE AVG ( DISTINCT ( ( 42 ) ) ) WHEN CAST ( - MAX ( 48 ) AS INTEGER ) THEN - 86 * 59 END + + 25 THEN + 23 * + 59 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2289
SELECT - + 49 * + - CAST( NULL AS SIGNED ) * + - MAX( ALL + 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT - + 49 * + - CAST ( NULL AS INTEGER ) * + - MAX ( ALL + 33 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2290
SELECT ALL - 79 + + - CAST( NULL AS DECIMAL ) + - + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - 79 + + - CAST ( NULL AS REAL ) + - + 95 AS col1
----
NULL

query I rowsort
SELECT - 72 - + - 95 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT - COALESCE ( + 9, + 57 * - + 75 + + 18 - - 93 * + + ( 40 ) DIV + 38 * + NULLIF ( 5 - 71, 66 ) ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-2292
SELECT - COALESCE ( + 9, + 57 * - + 75 + + 18 - - 93 * + + ( 40 ) / + 38 * + NULLIF ( 5 - 71, 66 ) ) col1
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL 12 * + COUNT( * ) * - - 43 * - 48
----
-24768

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL 12 * + COUNT ( * ) * - - 43 * - 48
----
-24768

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2295
SELECT + 94 + ( - - 78 ) * - - 52 * + NULLIF ( 33, + - 83 ) + CAST( NULL AS DECIMAL ) + - 61 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT + 94 + ( - - 78 ) * - - 52 * + NULLIF ( 33, + - 83 ) + CAST ( NULL AS REAL ) + - 61 * 92
----
NULL

query I rowsort
SELECT + 53 * - 50 AS col0
----
-2650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT - 65 * - 49 / CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 65 * - 49 / CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 71 + - 49 col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT ALL 76 * - COALESCE ( - CAST( + 8 AS SIGNED ), 6 - - - 3 )
----
608

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL 76 * - COALESCE ( - CAST ( + 8 AS INTEGER ), 6 - - - 3 )
----
608

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT - COUNT( - 47 ) AS col2, + 99 AS col2
----
-1
99

skipif mysql # not compatible
query II rowsort label-2300
SELECT - COUNT ( - 47 ) AS col2, + 99 AS col2
----
-1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT 7 DIV 92 + 52 + 40 * - + 89
----
-3508

skipif mysql # not compatible
query I rowsort label-2301
SELECT 7 / 92 + 52 + 40 * - + 89
----
-3508

query I rowsort
SELECT + 23 * - 54 * 33 * 14 AS col0
----
-573804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT + NULLIF ( + 53, + + 28 / - 64 * 39 + - CAST( COUNT( * ) AS SIGNED ) + + 20 )
----
53

skipif mysql # not compatible
query I rowsort label-2303
SELECT + NULLIF ( + 53, + + 28 / - 64 * 39 + - CAST ( COUNT ( * ) AS INTEGER ) + + 20 )
----
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT + 87 DIV + ( 40 )
----
2

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 87 / + ( 40 )
----
2

query I rowsort
SELECT ALL - 99 * - + 62
----
6138

query II rowsort
SELECT ( - + 62 ) AS col2, + 34
----
-62
34

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

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT COUNT ( * ) / 39 AS col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2310
SELECT + CAST( + 51 AS SIGNED ) AS col2, 65 col1
----
51
65

skipif mysql # not compatible
query II rowsort label-2310
SELECT + CAST ( + 51 AS INTEGER ) AS col2, 65 col1
----
51
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT + 51 DIV + 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 51 / + 45 AS col1
----
1

query I rowsort
SELECT ALL + 57 * - - ( - 27 ) + - 37 + - - 52 * + - 20
----
-2616

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT - 33 * - - 0 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 33 * - - 0 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT 0 * 51 - - COUNT( ALL + 23 ) + - 46 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2315
SELECT 0 * 51 - - COUNT ( ALL + 23 ) + - 46 AS col0
----
-45

query I rowsort
SELECT - 54 * 94 AS col0
----
-5076

onlyif mysql # aggregate syntax: 
query II rowsort label-2317
SELECT ALL - 24 * - 51 - - - COUNT( * ) + MIN( DISTINCT - 53 ) AS col2, - 42
----
1170
-42

skipif mysql # not compatible
query II rowsort label-2317
SELECT ALL - 24 * - 51 - - - COUNT ( * ) + MIN ( DISTINCT - 53 ) AS col2, - 42
----
1170
-42

query I rowsort
SELECT - - 38 - 87 AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT + ( - 72 ) * 2 - - NULLIF ( - - 83, 57 ) + + 45 DIV + + 67 + COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2319
SELECT + ( - 72 ) * 2 - - NULLIF ( - - 83, 57 ) + + 45 / + + 67 + COUNT ( * ) AS col1
----
-60

query I rowsort
SELECT + + 94 + 67 AS col0
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL + CASE - + 92 WHEN 38 THEN NULL WHEN + 74 THEN + 60 WHEN + 15 / - - 46 - - 23 THEN CAST( NULL AS SIGNED ) ELSE + COALESCE ( - 79, - 62 + + 47 ) - COUNT( 98 + - 56 ) END * + MAX( + ( + 82 ) ) + - 77
----
-6637

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + CASE - + 92 WHEN 38 THEN NULL WHEN + 74 THEN + 60 WHEN + 15 / - - 46 - - 23 THEN CAST ( NULL AS INTEGER ) ELSE + COALESCE ( - 79, - 62 + + 47 ) - COUNT ( 98 + - 56 ) END * + MAX ( + ( + 82 ) ) + - 77
----
-6637

query I rowsort
SELECT - 10 col1
----
-10

query I rowsort
SELECT - 70 + 80 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT - CASE + 57 WHEN - ( - SUM( - ( - 95 ) ) ) THEN NULL WHEN AVG ( ALL 10 ) * 82 THEN - CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) + ( + 20 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT - CASE + 57 WHEN - ( - SUM ( - ( - 95 ) ) ) THEN NULL WHEN AVG ( ALL 10 ) * 82 THEN - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) + ( + 20 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - MIN( ALL - 3 ) + - 36 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2325
SELECT - MIN ( ALL - 3 ) + - 36 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT ALL - + 85 * + + 37 * COUNT( * ) * 43 AS col2, 62 + + + 84
----
-135235
146

skipif mysql # not compatible
query II rowsort label-2326
SELECT ALL - + 85 * + + 37 * COUNT ( * ) * 43 AS col2, 62 + + + 84
----
-135235
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT - - CAST( NULL AS SIGNED ) * - 47 * + 47 * - 19 * - CASE - - 48 WHEN - + 53 * 84 / MIN( - CAST( + 90 AS SIGNED ) ) + 31 THEN 73 + - 77 WHEN - ( - MAX( DISTINCT 96 ) ) * - 84 THEN 96 ELSE NULL END + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT - - CAST ( NULL AS INTEGER ) * - 47 * + 47 * - 19 * - CASE - - 48 WHEN - + 53 * 84 / MIN ( - CAST ( + 90 AS INTEGER ) ) + 31 THEN 73 + - 77 WHEN - ( - MAX ( DISTINCT 96 ) ) * - 84 THEN 96 ELSE NULL END + 93
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2329
SELECT - + 62 + - 85 + COUNT ( * ) AS col1
----
-146

query I rowsort
SELECT ALL - + CASE + 82 WHEN 99 THEN + - 14 ELSE NULL END * 33 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT 16 + - + COUNT( * ) - - 92 - + 53 * - 13 col1, 96 * 62
----
796
5952

skipif mysql # not compatible
query II rowsort label-2332
SELECT 16 + - + COUNT ( * ) - - 92 - + 53 * - 13 col1, 96 * 62
----
796
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT 87 * - 9 * + ( COUNT( * ) ) * ( - - 51 ) + 12 + + 15 * - + 28
----
-40341

skipif mysql # not compatible
query I rowsort label-2333
SELECT 87 * - 9 * + ( COUNT ( * ) ) * ( - - 51 ) + 12 + + 15 * - + 28
----
-40341

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

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

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

query I rowsort
SELECT 97 * - 35 AS col1
----
-3395

query I rowsort
SELECT 3 + - 85
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2338
SELECT ALL NULLIF ( + CAST( - - 74 AS SIGNED ), - 78 * 1 + + + 55 * + 43 ) DIV + + COALESCE ( 67, + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL NULLIF ( + CAST ( - - 74 AS INTEGER ), - 78 * 1 + + + 55 * + 43 ) / + + COALESCE ( 67, + 85 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2339
SELECT 13 * - 70 * - 49 AS col1, CAST( NULL AS SIGNED )
----
44590
NULL

skipif mysql # not compatible
query II rowsort label-2339
SELECT 13 * - 70 * - 49 AS col1, CAST ( NULL AS INTEGER )
----
44590
NULL

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

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

query I rowsort
SELECT ALL 23 * 83
----
1909

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2343
SELECT - 15 DIV - 4 * ( + ( - - NULLIF ( + COUNT( - + 22 ), + 40 ) ) ) - - + 80 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2343
SELECT - 15 / - 4 * ( + ( - - NULLIF ( + COUNT ( - + 22 ), + 40 ) ) ) - - + 80 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT 4 * - 53 * COUNT( * ) * + 50 + 49
----
-10551

skipif mysql # not compatible
query I rowsort label-2344
SELECT 4 * - 53 * COUNT ( * ) * + 50 + 49
----
-10551

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT 47 + - 17 + + 21 * - 45 + + + NULLIF ( + 87, + 40 * - + 49 * + - 17 - - - COUNT( * ) ) + + 15 * + 2 AS col1
----
-798

skipif mysql # not compatible
query I rowsort label-2345
SELECT 47 + - 17 + + 21 * - 45 + + + NULLIF ( + 87, + 40 * - + 49 * + - 17 - - - COUNT ( * ) ) + + 15 * + 2 AS col1
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT MAX( CASE + 89 WHEN + + 53 * - 4 THEN - 61 * - 65 ELSE NULL END ) / + 0 * 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT MAX ( CASE + 89 WHEN + + 53 * - 4 THEN - 61 * - 65 ELSE NULL END ) / + 0 * 78 AS col1
----
NULL

query I rowsort
SELECT 37 + + 47
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + 70 * + - 37 * - 14 - MIN( + 98 )
----
36162

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 70 * + - 37 * - 14 - MIN ( + 98 )
----
36162

query I rowsort
SELECT DISTINCT - 8 col2
----
-8

query I rowsort
SELECT ALL - 68 + 77
----
9

query I rowsort
SELECT + 21 * + + 53 + + 85
----
1198

query I rowsort
SELECT 52 * 38 + 60
----
2036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2353
SELECT + COUNT( * ) * 31 DIV + ( - 92 ) * 24 - - - 96 + + 20 + - CASE + ( - ( 89 ) ) WHEN 38 + 39 THEN + COUNT( * ) * + 84 ELSE + 82 END * + 30
----
-2536

skipif mysql # not compatible
query I rowsort label-2353
SELECT + COUNT ( * ) * 31 / + ( - 92 ) * 24 - - - 96 + + 20 + - CASE + ( - ( 89 ) ) WHEN 38 + 39 THEN + COUNT ( * ) * + 84 ELSE + 82 END * + 30
----
-2536

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT 31 * - MIN( - - 19 )
----
-589

skipif mysql # not compatible
query I rowsort label-2354
SELECT 31 * - MIN ( - - 19 )
----
-589

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

query I rowsort
SELECT ALL 57 - 81 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT 24 DIV - 14
----
-1

skipif mysql # not compatible
query I rowsort label-2357
SELECT 24 / - 14
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2358
SELECT ALL - COALESCE ( - NULLIF ( - 32, - COUNT( ALL - 25 ) * - 47 ), - + 60 DIV 89, + + 24 )
----
-32

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL - COALESCE ( - NULLIF ( - 32, - COUNT ( ALL - 25 ) * - 47 ), - + 60 / 89, + + 24 )
----
-32

query I rowsort
SELECT ALL + 52 - + 27
----
25

query I rowsort
SELECT ALL + - 37 - + 33 * - - 62
----
-2083

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT - 66, 47 - - MAX( - + 68 ) AS col1
----
-66
-21

skipif mysql # not compatible
query II rowsort label-2361
SELECT - 66, 47 - - MAX ( - + 68 ) AS col1
----
-66
-21

query I rowsort
SELECT 93 * + 19 + 33
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-2363
SELECT DISTINCT SUM( DISTINCT + ( - 29 ) ), - 56 AS col2
----
-29
-56

skipif mysql # not compatible
query II rowsort label-2363
SELECT DISTINCT SUM ( DISTINCT + ( - 29 ) ), - 56 AS col2
----
-29
-56

query I rowsort
SELECT 32 * 97
----
3104

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT 6 - + MIN( DISTINCT + 47 )
----
-41

skipif mysql # not compatible
query I rowsort label-2365
SELECT 6 - + MIN ( DISTINCT + 47 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 30 / + + CAST( - 60 AS SIGNED ) * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 30 / + + CAST ( - 60 AS INTEGER ) * - 46 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT 22 * 55 DIV + 35 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2367
SELECT 22 * 55 / + 35 AS col0
----
34

query I rowsort
SELECT DISTINCT + 99 + - - 77 AS col2
----
176

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT 38 + + 4 + 84 * - COUNT( * ) * 89
----
-7434

skipif mysql # not compatible
query I rowsort label-2371
SELECT 38 + + 4 + 84 * - COUNT ( * ) * 89
----
-7434

query II rowsort
SELECT - 80, - 19 AS col1
----
-80
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT 12 DIV + 76 * 46
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT 12 / + 76 * 46
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT ALL + CAST( 66 AS SIGNED ) + + 5
----
71

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + CAST ( 66 AS INTEGER ) + + 5
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2376
SELECT ALL + 81 + 24, COALESCE ( + - 43, + - 7 ) + + - 89 * 46 + - 81 - - - ( + ( + COUNT( * ) ) ) - COALESCE ( SUM( 6 ), - MIN( CAST( NULL AS SIGNED ) ) ) DIV + 73 AS col2
----
105
-4219

skipif mysql # not compatible
query II rowsort label-2376
SELECT ALL + 81 + 24, COALESCE ( + - 43, + - 7 ) + + - 89 * 46 + - 81 - - - ( + ( + COUNT ( * ) ) ) - COALESCE ( SUM ( 6 ), - MIN ( CAST ( NULL AS INTEGER ) ) ) / + 73 AS col2
----
105
-4219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT CASE 68 WHEN + MAX( ALL + 97 ) * + 21 THEN + 70 * - 64 WHEN - CAST( NULL AS SIGNED ) THEN + 88 * 48 + + - 40 + + 63 / - 51 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT CASE 68 WHEN + MAX ( ALL + 97 ) * + 21 THEN + 70 * - 64 WHEN - CAST ( NULL AS INTEGER ) THEN + 88 * 48 + + - 40 + + 63 / - 51 END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 5, + 3 )
----
-5

query I rowsort
SELECT 47 * - 22 * - - 31 AS col1
----
-32054

query I rowsort
SELECT ALL 22 * + + 20 + + - ( + 10 ) AS col1
----
430

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT 67 * + 82 - - MAX( ALL + + NULLIF ( + 21, 31 ) ) * - + 70 AS col1, - 82
----
4024
-82

skipif mysql # not compatible
query II rowsort label-2381
SELECT 67 * + 82 - - MAX ( ALL + + NULLIF ( + 21, 31 ) ) * - + 70 AS col1, - 82
----
4024
-82

query I rowsort
SELECT DISTINCT + - 36 * - 97 AS col1
----
3492

query I rowsort
SELECT ALL - 94 * - 71 - 13 * - - 9 - - 71 col0
----
6628

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT COUNT( * ) - - 2 col0
----
3

skipif mysql # not compatible
query I rowsort label-2385
SELECT COUNT ( * ) - - 2 col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT 51 * + SUM( ALL + ( - - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 51 * + SUM ( ALL + ( - - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2387
SELECT + 38, COUNT( * ) DIV + + 94 * - COUNT( * ) AS col2
----
38
0

skipif mysql # not compatible
query II rowsort label-2387
SELECT + 38, COUNT ( * ) / + + 94 * - COUNT ( * ) AS col2
----
38
0

query I rowsort
SELECT ALL + 81 * + 92
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - CASE + 69 WHEN + 10 THEN CASE + 71 WHEN COUNT( * ) THEN - COALESCE ( COUNT( * ), + AVG ( DISTINCT + 23 ) ) + - 95 ELSE 97 + + 54 * - 5 END + ( 31 + + 64 * 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - CASE + 69 WHEN + 10 THEN CASE + 71 WHEN COUNT ( * ) THEN - COALESCE ( COUNT ( * ), + AVG ( DISTINCT + 23 ) ) + - 95 ELSE 97 + + 54 * - 5 END + ( 31 + + 64 * 22 ) END
----
NULL

query II rowsort
SELECT ALL - - 91, 25 AS col1
----
91
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2391
SELECT - 22, - CAST( 89 AS SIGNED ) - - 69 AS col2
----
-22
-20

skipif mysql # not compatible
query II rowsort label-2391
SELECT - 22, - CAST ( 89 AS INTEGER ) - - 69 AS col2
----
-22
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2392
SELECT ALL - 59, CAST( NULL AS SIGNED ) * 80 + + 45 - - NULLIF ( - + CASE 23 WHEN + 88 THEN NULL WHEN + 95 * - 90 THEN NULL ELSE - + ( + ( 6 ) ) + + 81 END, - 34 ) * 34 AS col2
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-2392
SELECT ALL - 59, CAST ( NULL AS INTEGER ) * 80 + + 45 - - NULLIF ( - + CASE 23 WHEN + 88 THEN NULL WHEN + 95 * - 90 THEN NULL ELSE - + ( + ( 6 ) ) + + 81 END, - 34 ) * 34 AS col2
----
-59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT + CASE + COALESCE ( 23, - - COUNT( * ), - 21 ) WHEN COUNT( ALL - ( + - 36 ) ) * 94 + - - 37 + + - 48 THEN NULL WHEN + 51 THEN NULL ELSE - 37 + 59 END - - ( + 54 + + 11 ) DIV - 4
----
6

skipif mysql # not compatible
query I rowsort label-2393
SELECT + CASE + COALESCE ( 23, - - COUNT ( * ), - 21 ) WHEN COUNT ( ALL - ( + - 36 ) ) * 94 + - - 37 + + - 48 THEN NULL WHEN + 51 THEN NULL ELSE - 37 + 59 END - - ( + 54 + + 11 ) / - 4
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2394
SELECT - + 9 * - CASE + - 78 WHEN + - COUNT( * ) / 34 + 20 THEN + + CASE COUNT( * ) WHEN 31 + + COUNT( * ) THEN 43 ELSE + 27 END * CAST( + 17 AS SIGNED ) + - 16 WHEN 64 THEN NULL WHEN 30 / - 19 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT - + 9 * - CASE + - 78 WHEN + - COUNT ( * ) / 34 + 20 THEN + + CASE COUNT ( * ) WHEN 31 + + COUNT ( * ) THEN 43 ELSE + 27 END * CAST ( + 17 AS INTEGER ) + - 16 WHEN 64 THEN NULL WHEN 30 / - 19 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT + 18 + - - NULLIF ( + + CAST( NULL AS SIGNED ), + 21 / - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + 18 + - - NULLIF ( + + CAST ( NULL AS INTEGER ), + 21 / - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT 45 * + 91 - - 28 * - + 57
----
2499

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

query I rowsort
SELECT + + 71 * 3 AS col1
----
213

query I rowsort
SELECT + + 60 + - 15 AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT + - 54 DIV 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-2400
SELECT + - 54 / 58 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL 80 * COUNT( - 97 ) - + CASE + 72 WHEN - + 31 THEN 1 + + - 56 / ( - SUM( ALL - ( + 5 ) ) ) + - 86 * 56 WHEN - 24 THEN NULL END + 11 * - ( 90 + + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL 80 * COUNT ( - 97 ) - + CASE + 72 WHEN - + 31 THEN 1 + + - 56 / ( - SUM ( ALL - ( + 5 ) ) ) + - 86 * 56 WHEN - 24 THEN NULL END + 11 * - ( 90 + + 17 ) AS col2
----
NULL

query II rowsort
SELECT + 36 * + 30 AS col0, 10 col2
----
1080
10

query I rowsort
SELECT ALL 0 * 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT MIN( ALL 91 ) * - COALESCE ( + COUNT( * ), - 12 ) - + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT MIN ( ALL 91 ) * - COALESCE ( + COUNT ( * ), - 12 ) - + - 46
----
-45

query I rowsort
SELECT ALL 18 + - 17 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL COUNT( ALL - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL COUNT ( ALL - 29 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT ALL CASE AVG ( ALL - 29 ) WHEN - 52 * 0 + + CAST( NULL AS SIGNED ) THEN - + ( COALESCE ( - - 59, + + 81 ) ) / - COUNT( * ) - - + COUNT( * ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL CASE AVG ( ALL - 29 ) WHEN - 52 * 0 + + CAST ( NULL AS INTEGER ) THEN - + ( COALESCE ( - - 59, + + 81 ) ) / - COUNT ( * ) - - + COUNT ( * ) END * COUNT ( * )
----
NULL

query I rowsort
SELECT - 64 + + 22 AS col1
----
-42

query II rowsort
SELECT DISTINCT 88 + - 3 * + 19 * + 56 * + ( + ( + 12 ) ) AS col0, - 61 AS col1
----
-38216
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT - CASE - + 78 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - + 16 * 54 + + 11 + ( - 33 ) + - + 20 + - 89 END AS col0
----
995

skipif mysql # not compatible
query I rowsort label-2410
SELECT - CASE - + 78 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 16 * 54 + + 11 + ( - 33 ) + - + 20 + - 89 END AS col0
----
995

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

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

query I rowsort
SELECT - NULLIF ( + 26, - 11 ) + - - 21 col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2413
SELECT DISTINCT + 68 + - ( - 15 ) AS col1, + MAX( ALL 58 ) + - 22 * + 62
----
83
-1306

skipif mysql # not compatible
query II rowsort label-2413
SELECT DISTINCT + 68 + - ( - 15 ) AS col1, + MAX ( ALL 58 ) + - 22 * + 62
----
83
-1306

query II rowsort
SELECT ALL - 50 * - 53 AS col0, + 32 AS col0
----
2650
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL - 78 * + 97 * - - CASE - 25 WHEN - 93 / 63 / - + COALESCE ( 27, + 8 ) THEN NULL WHEN 25 * + - CAST( - 88 AS SIGNED ) * - ( - 72 ) + NULLIF ( COALESCE ( + 44, COUNT( * ) * + 23 ) + - NULLIF ( + 78, 30 / + 20 ), ( COUNT( * ) ) - - 55 ) * + COALESCE ( - COALESCE ( - NULLIF ( 52, 0 ), - 60 ), 70 - + 9 * + 1, + COUNT( * ) ) THEN 36 WHEN SUM( ALL - 94 ) * COUNT( * ) THEN 1 * + COUNT( * ) ELSE + 54 END AS col0
----
-408564

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL - 78 * + 97 * - - CASE - 25 WHEN - 93 / 63 / - + COALESCE ( 27, + 8 ) THEN NULL WHEN 25 * + - CAST ( - 88 AS INTEGER ) * - ( - 72 ) + NULLIF ( COALESCE ( + 44, COUNT ( * ) * + 23 ) + - NULLIF ( + 78, 30 / + 20 ), ( COUNT ( * ) ) - - 55 ) * + COALESCE ( - COALESCE ( - NULLIF ( 52, 0 ), - 60 ), 70 - + 9 * + 1, + COUNT ( * ) ) THEN 36 WHEN SUM ( ALL - 94 ) * COUNT ( * ) THEN 1 * + COUNT ( * ) ELSE + 54 END AS col0
----
-408564

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ( + 83 ) / + + 36 * CASE MIN( - - 89 ) WHEN + 58 + - - 85 THEN + - 52 WHEN 2 + - 64 THEN - - 81 ELSE NULL END - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT ( + 83 ) / + + 36 * CASE MIN ( - - 89 ) WHEN + 58 + - - 85 THEN + - 52 WHEN 2 + - 64 THEN - - 81 ELSE NULL END - - 3
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT - - MIN( DISTINCT + ( 59 ) ) + + 31 + + - 46 - - + COUNT( * ) DIV - COALESCE ( - - 49, - 55 + - - 74 + + 69 * - + COALESCE ( - 56, 26 - 37 * + 55 ) ) * - 92 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2419
SELECT - - MIN ( DISTINCT + ( 59 ) ) + + 31 + + - 46 - - + COUNT ( * ) / - COALESCE ( - - 49, - 55 + - - 74 + + 69 * - + COALESCE ( - 56, 26 - 37 * + 55 ) ) * - 92 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL 33 * + 41 * + + 68 + - - 11 - + 46 + + NULLIF ( - COUNT( * ), + 35 ) * 33
----
91936

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL 33 * + 41 * + + 68 + - - 11 - + 46 + + NULLIF ( - COUNT ( * ), + 35 ) * 33
----
91936

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT - + CAST( - + ( - - 94 ) AS SIGNED ) * - 62
----
-5828

skipif mysql # not compatible
query I rowsort label-2422
SELECT - + CAST ( - + ( - - 94 ) AS INTEGER ) * - 62
----
-5828

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT + ( + 57 ), - ( + 71 ) - - 32 + 83 + + COALESCE ( + - SUM( ALL + 94 ), - + 80 + + 45 * - COUNT( DISTINCT - 40 ) * + 5 ) col2
----
57
-50

skipif mysql # not compatible
query II rowsort label-2423
SELECT + ( + 57 ), - ( + 71 ) - - 32 + 83 + + COALESCE ( + - SUM ( ALL + 94 ), - + 80 + + 45 * - COUNT ( DISTINCT - 40 ) * + 5 ) col2
----
57
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2424
SELECT - ( + 10 ) DIV - 31 + + 13 + COALESCE ( CAST( NULL AS SIGNED ), - 84 ) * + ( - - ( - COUNT( * ) ) ) + - - 54 col1
----
151

skipif mysql # not compatible
query I rowsort label-2424
SELECT - ( + 10 ) / - 31 + + 13 + COALESCE ( CAST ( NULL AS INTEGER ), - 84 ) * + ( - - ( - COUNT ( * ) ) ) + - - 54 col1
----
151

query I rowsort
SELECT - 9 + 26 + - 40 * - 63 AS col0
----
2537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT ALL ( + 79 ) * 97 * 18 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL ( + 79 ) * 97 * 18 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2427
SELECT - 62 * + CAST( NULL AS SIGNED ) * + CAST( 53 AS DECIMAL ) + + NULLIF ( + 43, - COUNT( * ) / - ( + 98 ) + + 76 ) * - 74 + - 37 / 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT - 62 * + CAST ( NULL AS INTEGER ) * + CAST ( 53 AS REAL ) + + NULLIF ( + 43, - COUNT ( * ) / - ( + 98 ) + + 76 ) * - 74 + - 37 / 5 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2428
SELECT ALL - - 31 * - COUNT( * ) - + - 43 * + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - - 31 * - COUNT ( * ) - + - 43 * + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT DISTINCT - 94 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT - 94 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 82 * 1 * 25 + - 52 AS col1
----
-2102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2431
SELECT DISTINCT - ( - 13 ) * - 41 + - + 59 + - + CAST( + 57 AS SIGNED ) * + 87 * + 61 * + + COUNT( * ) AS col2
----
-303091

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT - ( - 13 ) * - 41 + - + 59 + - + CAST ( + 57 AS INTEGER ) * + 87 * + 61 * + + COUNT ( * ) AS col2
----
-303091

query I rowsort
SELECT DISTINCT + - 24
----
-24

query I rowsort
SELECT + 81 * - 51 - - 65 AS col0
----
-4066

query I rowsort
SELECT 0 * + 63 + - + 59 + - + 41 AS col2
----
-100

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

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + - CAST ( - ( - 11 ) AS INTEGER ) AS col2
----
-11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT DISTINCT - CAST( - 41 AS SIGNED ) * + 90 + 78 * - 34 AS col1
----
1038

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - CAST ( - 41 AS INTEGER ) * + 90 + 78 * - 34 AS col1
----
1038

query II rowsort
SELECT ALL 58 AS col1, 40 * + + 25
----
58
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT MIN( - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2439
SELECT MIN ( - 44 ) AS col1
----
-44

query I rowsort
SELECT - 59 - + + 62
----
-121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + SUM( - 89 ) + ( - - 8 )
----
-81

skipif mysql # not compatible
query I rowsort label-2442
SELECT + SUM ( - 89 ) + ( - - 8 )
----
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL 47 + + - 2 - - 15 DIV - 13 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL 47 + + - 2 - - 15 / - 13 AS col2
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - CASE COUNT( * ) WHEN - 67 THEN NULL ELSE + 33 * + SUM( - - COALESCE ( 76, + 20 ) ) + ( COUNT( * ) ) + - 68 + 27 END
----
-2468

skipif mysql # not compatible
query I rowsort label-2446
SELECT - CASE COUNT ( * ) WHEN - 67 THEN NULL ELSE + 33 * + SUM ( - - COALESCE ( 76, + 20 ) ) + ( COUNT ( * ) ) + - 68 + 27 END
----
-2468

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2447
SELECT + COUNT( * ) * - 32 * - - 22 AS col2, 65 * SUM( 10 ) DIV + 39
----
-704
16

skipif mysql # not compatible
query II rowsort label-2447
SELECT + COUNT ( * ) * - 32 * - - 22 AS col2, 65 * SUM ( 10 ) / + 39
----
-704
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT ALL 11 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL 11 / - 34
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT + CASE 10 WHEN 84 * 17 + + + 82 + + - COALESCE ( + 82, - - COUNT( * ) * + 83, - - MIN( + CAST( NULL AS SIGNED ) ) * + - ( + + 14 ) - 14 - 40 * 18 ) + - 97 THEN CAST( NULL AS SIGNED ) WHEN 38 THEN 17 END - - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT + CASE 10 WHEN 84 * 17 + + + 82 + + - COALESCE ( + 82, - - COUNT ( * ) * + 83, - - MIN ( + CAST ( NULL AS INTEGER ) ) * + - ( + + 14 ) - 14 - 40 * 18 ) + - 97 THEN CAST ( NULL AS INTEGER ) WHEN 38 THEN 17 END - - 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL 93 * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL 93 * - COUNT ( * ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( - 99 ) / - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( - 99 ) / - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT ALL MIN( - 2 ) - - 26 - - 68 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL MIN ( - 2 ) - - 26 - - 68 AS col1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2455
SELECT - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL NULLIF ( COUNT( * ), - - 42 * + + 38 * 40 + - - MAX( 69 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL NULLIF ( COUNT ( * ), - - 42 * + + 38 * 40 + - - MAX ( 69 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + SUM( ALL + 34 ) + + - 68 * 5 - + 2 * - ( - 98 ) col2
----
-502

skipif mysql # not compatible
query I rowsort label-2457
SELECT + SUM ( ALL + 34 ) + + - 68 * 5 - + 2 * - ( - 98 ) col2
----
-502

query I rowsort
SELECT + 68 + + + 57
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT - COALESCE ( - 39, - 25, - 97 DIV 79 ) - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-2459
SELECT - COALESCE ( - 39, - 25, - 97 / 79 ) - COUNT ( * )
----
38

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

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

query I rowsort
SELECT + 50 col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2462
SELECT - MAX( - 42 ) * - COALESCE ( - + 23, + ( + SUM( ALL + 95 ) ) + - 42 ) AS col2, 9
----
966
9

skipif mysql # not compatible
query II rowsort label-2462
SELECT - MAX ( - 42 ) * - COALESCE ( - + 23, + ( + SUM ( ALL + 95 ) ) + - 42 ) AS col2, 9
----
966
9

query II rowsort
SELECT ALL 89 AS col0, 40 + - ( + - ( 15 ) )
----
89
55

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

query I rowsort
SELECT DISTINCT + + 72 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL + + NULLIF ( + 34, - SUM( + + 55 ) / 14 * - + AVG ( 34 ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + + NULLIF ( + 34, - SUM ( + + 55 ) / 14 * - + AVG ( 34 ) ) AS col0
----
34

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

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

query I rowsort
SELECT - - 70 * 3 * + + 29 - - - NULLIF ( 11, - 37 + + 10 ) AS col1
----
6079

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + - MAX( ALL + + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2470
SELECT + - MAX ( ALL + + 93 ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT + + 78 DIV + + 6 + + 80 + 7
----
100

skipif mysql # not compatible
query I rowsort label-2471
SELECT + + 78 / + + 6 + + 80 + 7
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT + - CAST( CASE + 96 WHEN + 2 * 63 + + + 25 * - 10 * NULLIF ( + + 87, 57 ) - + 62 * 15 + + 13 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 33 END AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2472
SELECT + - CAST ( CASE + 96 WHEN + 2 * 63 + + + 25 * - 10 * NULLIF ( + + 87, 57 ) - + 62 * 15 + + 13 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 33 END AS INTEGER ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2473
SELECT + 87 * NULLIF ( - + NULLIF ( + ( - ( + + CASE - 7 WHEN - - 85 * + 54 THEN - CASE - ( 91 ) WHEN + - MIN( + 78 ) * - COUNT( * ) THEN 99 WHEN 1 THEN + 28 END DIV 99 ELSE COALESCE ( - 26, COUNT( - 95 ) ) END ) ), - 7 + - 58 ), 88 * 12 + + COALESCE ( 9 + - 61 * + 82, + 36 * 18, + CAST( NULL AS SIGNED ) + 76 ) ) * - 48 AS col2
----
108576

skipif mysql # not compatible
query I rowsort label-2473
SELECT + 87 * NULLIF ( - + NULLIF ( + ( - ( + + CASE - 7 WHEN - - 85 * + 54 THEN - CASE - ( 91 ) WHEN + - MIN ( + 78 ) * - COUNT ( * ) THEN 99 WHEN 1 THEN + 28 END / 99 ELSE COALESCE ( - 26, COUNT ( - 95 ) ) END ) ), - 7 + - 58 ), 88 * 12 + + COALESCE ( 9 + - 61 * + 82, + 36 * 18, + CAST ( NULL AS INTEGER ) + 76 ) ) * - 48 AS col2
----
108576

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

query I rowsort
SELECT 78 - 1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT 37 / + SUM( 98 ) * + CASE 6 WHEN + 5 * - COUNT( * ) THEN - 56 - + 3 - - + 82 ELSE NULL END * + - 2 * 24 * + COUNT( * ) + - 44 * NULLIF ( + 73, 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT 37 / + SUM ( 98 ) * + CASE 6 WHEN + 5 * - COUNT ( * ) THEN - 56 - + 3 - - + 82 ELSE NULL END * + - 2 * 24 * + COUNT ( * ) + - 44 * NULLIF ( + 73, 68 )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 41, - 90 * - 22 + 70 + - 43 * - 6 ) + + - 55 AS col0
----
-96

query I rowsort
SELECT DISTINCT - 21 + + 71 + 36
----
86

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

query I rowsort
SELECT DISTINCT - 30 + - - 99 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT 85 * - 57 + + - COALESCE ( + 87, - 98 ) - + COALESCE ( - COUNT( * ), + - 29 )
----
-4931

skipif mysql # not compatible
query I rowsort label-2481
SELECT 85 * - 57 + + - COALESCE ( + 87, - 98 ) - + COALESCE ( - COUNT ( * ), + - 29 )
----
-4931

query I rowsort
SELECT DISTINCT - 95 * - + 92 * 67
----
585580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2483
SELECT 60 * + 58 * + 23 * 87 * + - NULLIF ( - + CAST( NULL AS SIGNED ), - 6 / + 96 + + ( - - COALESCE ( 79, - + 86 ) ) ) AS col1, 31 * - 41 * - 5 - NULLIF ( + 53, 92 ) AS col1
----
NULL
6302

skipif mysql # not compatible
query II rowsort label-2483
SELECT 60 * + 58 * + 23 * 87 * + - NULLIF ( - + CAST ( NULL AS INTEGER ), - 6 / + 96 + + ( - - COALESCE ( 79, - + 86 ) ) ) AS col1, 31 * - 41 * - 5 - NULLIF ( + 53, 92 ) AS col1
----
NULL
6302

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT 31 + - 57 + 12 + - + 51 DIV + - 32 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-2484
SELECT 31 + - 57 + 12 + - + 51 / + - 32 AS col2
----
-13

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - 77 * - 50 * + COUNT( * )
----
3850

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - 77 * - 50 * + COUNT ( * )
----
3850

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT 37 + 94 DIV + - 96
----
37

skipif mysql # not compatible
query I rowsort label-2488
SELECT 37 + 94 / + - 96
----
37

query I rowsort
SELECT DISTINCT + 5 - - - 85 * + 94 col0
----
-7985

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

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

query I rowsort
SELECT DISTINCT + 38 * - ( + 26 )
----
-988

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

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + COUNT ( * ) / 21 / + 48 AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2494
SELECT + COALESCE ( - 51, - ( + 52 ), + CASE - + CASE + - 50 WHEN + 41 THEN + 10 * + SUM( DISTINCT - 7 ) ELSE 39 * + CAST( + 68 AS SIGNED ) + 39 + - 25 * + 0 END WHEN + 62 * + 47 THEN + 6 ELSE 19 + 6 END ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT + COALESCE ( - 51, - ( + 52 ), + CASE - + CASE + - 50 WHEN + 41 THEN + 10 * + SUM ( DISTINCT - 7 ) ELSE 39 * + CAST ( + 68 AS INTEGER ) + 39 + - 25 * + 0 END WHEN + 62 * + 47 THEN + 6 ELSE 19 + 6 END ) / + 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT ALL + 93 * + 71 - - - CASE - 65 WHEN + + 52 / 14 THEN NULL WHEN + 84 THEN + - 58 / - - 25 + 57 + - + 14 * - 31 END, SUM( + - 71 ) * COUNT( ALL 89 * - CASE 11 WHEN - 12 + - 7 * - 44 THEN 56 * 45 END ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2495
SELECT ALL + 93 * + 71 - - - CASE - 65 WHEN + + 52 / 14 THEN NULL WHEN + 84 THEN + - 58 / - - 25 + 57 + - + 14 * - 31 END, SUM ( + - 71 ) * COUNT ( ALL 89 * - CASE 11 WHEN - 12 + - 7 * - 44 THEN 56 * 45 END ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT + COUNT( * ) * - 6 * + COUNT( * ) * - 3 * - SUM( ALL 77 )
----
-1386

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + COUNT ( * ) * - 6 * + COUNT ( * ) * - 3 * - SUM ( ALL 77 )
----
-1386

query I rowsort
SELECT + 18 * 24 AS col0
----
432

query I rowsort
SELECT 24 + - NULLIF ( + - 21, + 87 ) + + 25 col1
----
70

query I rowsort
SELECT - 27 + + - ( 77 ) AS col0
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT - 85 * - CAST( 61 AS SIGNED )
----
5185

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 85 * - CAST ( 61 AS INTEGER )
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL 24 + - - 84 * - + SUM( ALL + 84 )
----
-7032

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL 24 + - - 84 * - + SUM ( ALL + 84 )
----
-7032

query I rowsort
SELECT 93 + - 84
----
9

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

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

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

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT MIN ( ALL - 63 ) + 43 AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL + CAST( + 9 AS SIGNED ) + + + 91
----
100

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + CAST ( + 9 AS INTEGER ) + + + 91
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT - 87 DIV 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 87 / 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT 41 + ( - 5 ) + + COUNT( * ) * 15 AS col1, + 18 * + 70 col2
----
51
1260

skipif mysql # not compatible
query II rowsort label-2507
SELECT 41 + ( - 5 ) + + COUNT ( * ) * 15 AS col1, + 18 * + 70 col2
----
51
1260

query I rowsort
SELECT 51 + 81 AS col1
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT + 32 * + COUNT( * ) + - - 61 DIV 76 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2509
SELECT + 32 * + COUNT ( * ) + - - 61 / 76 AS col2
----
32

query I rowsort
SELECT ALL + 54 - + + 23
----
31

query II rowsort
SELECT ( 36 ) * 85 AS col1, - 91
----
3060
-91

query I rowsort
SELECT 67 * + 90 AS col2
----
6030

query I rowsort
SELECT ALL 94 * 23 AS col2
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT 41 * 23 * + MIN( 6 )
----
5658

skipif mysql # not compatible
query I rowsort label-2514
SELECT 41 * 23 * + MIN ( 6 )
----
5658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2515
SELECT ALL ( - 92 ) - - CAST( + ( 4 ) AS SIGNED ) col2, 18 + COUNT( * ) AS col1
----
-88
19

skipif mysql # not compatible
query II rowsort label-2515
SELECT ALL ( - 92 ) - - CAST ( + ( 4 ) AS INTEGER ) col2, 18 + COUNT ( * ) AS col1
----
-88
19

query I rowsort
SELECT 57 * + 69 * - 35 col2
----
-137655

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT DISTINCT + 9 * 44 DIV + 38
----
10

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + 9 * 44 / + 38
----
10

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

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT + 36 - + COUNT ( * ) * - ( + - 5 ) / + - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 33, + 96 AS col2
----
33
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT 56 * MIN( DISTINCT + - 19 ) AS col1
----
-1064

skipif mysql # not compatible
query I rowsort label-2521
SELECT 56 * MIN ( DISTINCT + - 19 ) AS col1
----
-1064

query I rowsort
SELECT 92 * 28
----
2576

query I rowsort
SELECT ALL - 46 * + - 3
----
138

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2525
SELECT ALL + + NULLIF ( + + 60, - COUNT( DISTINCT - 77 ) ) * COUNT( * ) + 7 - + - 3 + + 0 * - 94 * + 5, 42 AS col1
----
70
42

skipif mysql # not compatible
query II rowsort label-2525
SELECT ALL + + NULLIF ( + + 60, - COUNT ( DISTINCT - 77 ) ) * COUNT ( * ) + 7 - + - 3 + + 0 * - 94 * + 5, 42 AS col1
----
70
42

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + CAST ( + - 78 AS INTEGER ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT MAX( ALL - + 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT MAX ( ALL - + 77 ) col0
----
-77

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - - NULLIF ( + 13, COUNT( * ) ) + 46
----
59

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - - NULLIF ( + 13, COUNT ( * ) ) + 46
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT + + 87 DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2531
SELECT + + 87 / + 37 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - 82 + + CASE + - COUNT( + 6 ) WHEN + 43 THEN - 94 WHEN - 68 + 46 + 65 * + 75 * - 94 / - 73 + - 67 * + 80 * - - 69 - 94 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - 82 + + CASE + - COUNT ( + 6 ) WHEN + 43 THEN - 94 WHEN - 68 + 46 + 65 * + 75 * - 94 / - 73 + - 67 * + 80 * - - 69 - 94 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - - 76 * + 95 AS col0
----
7220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2534
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) ) AS col1, - 34
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-2534
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) ) AS col1, - 34
----
NULL
-34

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

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + + COUNT ( * ) + 80 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL - 32 * - 8 + + CASE + 58 WHEN - - SUM( 99 ) THEN + ( + 10 ) ELSE - + 70 * - COALESCE ( + 90, - - COUNT( * ), 12 * 28 ) + - 28 + 86 + 39 * - 7 END AS col0
----
6341

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - 32 * - 8 + + CASE + 58 WHEN - - SUM ( 99 ) THEN + ( + 10 ) ELSE - + 70 * - COALESCE ( + 90, - - COUNT ( * ), 12 * 28 ) + - 28 + 86 + 39 * - 7 END AS col0
----
6341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2537
SELECT + - 27 DIV + 40 * - - 25 + + 75 + - SUM( DISTINCT - 71 ) + + 17
----
163

skipif mysql # not compatible
query I rowsort label-2537
SELECT + - 27 / + 40 * - - 25 + + 75 + - SUM ( DISTINCT - 71 ) + + 17
----
163

query II rowsort
SELECT ALL - - 62 * 22 + - + 42 AS col1, - 18 * + 74 * - + 61
----
1322
81252

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT COUNT( * ) AS col1, 3 - - 94
----
1
97

skipif mysql # not compatible
query II rowsort label-2539
SELECT COUNT ( * ) AS col1, 3 - - 94
----
1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2540
SELECT - + COALESCE ( - 74, - ( - COUNT( * ) ) * + COUNT( * ) + 82 ) / NULLIF ( CAST( NULL AS SIGNED ), - 69 ) + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT - + COALESCE ( - 74, - ( - COUNT ( * ) ) * + COUNT ( * ) + 82 ) / NULLIF ( CAST ( NULL AS INTEGER ), - 69 ) + 69 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + COUNT( ALL - 52 ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-2542
SELECT + COUNT ( ALL - 52 ) + 65
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT ALL - ( 1 ) * COUNT( * ) * - + 93 - - + SUM( 20 ) - - + 73 - ( + 45 ) + + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - ( 1 ) * COUNT ( * ) * - + 93 - - + SUM ( 20 ) - - + 73 - ( + 45 ) + + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + ( 44 ) col2, 53 * + + 71 AS col0
----
44
3763

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT CASE - 56 WHEN - 0 THEN NULL ELSE COUNT( * ) + + 46 END AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2545
SELECT CASE - 56 WHEN - 0 THEN NULL ELSE COUNT ( * ) + + 46 END AS col2
----
47

query II rowsort
SELECT ALL + 70 col0, - 46 col1
----
70
-46

query II rowsort
SELECT DISTINCT + 73 AS col0, 22
----
73
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT + COUNT( * ) * CASE + 83 WHEN 52 THEN - + ( + 26 ) + + + 69 * + 37 + + + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT + COUNT ( * ) * CASE + 83 WHEN 52 THEN - + ( + 26 ) + + + 69 * + 37 + + + 75 END
----
NULL

query II rowsort
SELECT DISTINCT + 83, + 3 AS col2
----
83
3

query I rowsort
SELECT ALL + 23 * 98 * 65 col2
----
146510

query I rowsort
SELECT ALL 81 * + - ( + 75 )
----
-6075

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

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

query I rowsort
SELECT - 52 - + 51 AS col0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2554
SELECT DISTINCT + 18 col1, 1 * CASE - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * CAST( NULL AS DECIMAL ) THEN + 80 ELSE + 31 * - COALESCE ( 29, - 89 ) + - 27 END * + 6
----
18
-5556

skipif mysql # not compatible
query II rowsort label-2554
SELECT DISTINCT + 18 col1, 1 * CASE - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * CAST ( NULL AS REAL ) THEN + 80 ELSE + 31 * - COALESCE ( 29, - 89 ) + - 27 END * + 6
----
18
-5556

query I rowsort
SELECT ALL 34 * 85 AS col0
----
2890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2556
SELECT - CAST( NULL AS SIGNED ) * - 51 / - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT - CAST ( NULL AS INTEGER ) * - 51 / - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT - COUNT( * ) + - 38 * + 88
----
-3345

skipif mysql # not compatible
query I rowsort label-2557
SELECT - COUNT ( * ) + - 38 * + 88
----
-3345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT + 16 + CASE + 2 WHEN + 85 THEN NULL WHEN + 26 * + 95 * + 71 - + 31 - 34 + - 50 THEN NULL ELSE - ( + - 16 ) - - CAST( + + 46 AS SIGNED ) * + ( + + 2 ) END
----
124

skipif mysql # not compatible
query I rowsort label-2558
SELECT + 16 + CASE + 2 WHEN + 85 THEN NULL WHEN + 26 * + 95 * + 71 - + 31 - 34 + - 50 THEN NULL ELSE - ( + - 16 ) - - CAST ( + + 46 AS INTEGER ) * + ( + + 2 ) END
----
124

query I rowsort
SELECT - 22 * + COALESCE ( + + 11, + + 26 ) AS col2
----
-242

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT DISTINCT 80 * - COUNT( * ) AS col2, + COUNT( * ) + - 33 AS col1
----
-80
-32

skipif mysql # not compatible
query II rowsort label-2560
SELECT DISTINCT 80 * - COUNT ( * ) AS col2, + COUNT ( * ) + - 33 AS col1
----
-80
-32

query I rowsort
SELECT DISTINCT 39 * - + 81 col0
----
-3159

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL MAX( DISTINCT - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL MAX ( DISTINCT - 42 )
----
-42

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

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

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

query II rowsort
SELECT 39, 37 col2
----
39
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2568
SELECT ALL - 77 DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - 77 / 56
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT - SUM( + - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-2570
SELECT - SUM ( + - 23 )
----
23

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

query I rowsort
SELECT - - 91 * + 66 * - + 96
----
-576576

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2573
SELECT ALL + CAST( + CAST( - + 91 AS SIGNED ) AS SIGNED ) + + - 70 col1, + 73
----
-161
73

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL + CAST ( + CAST ( - + 91 AS INTEGER ) AS INTEGER ) + + - 70 col1, + 73
----
-161
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL - 27 + - MIN( ALL - + 78 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - 27 + - MIN ( ALL - + 78 ) AS col0
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2576
SELECT - ( + CAST( + 8 AS SIGNED ) ) + + - NULLIF ( + COALESCE ( + 79, - COUNT( * ) + COUNT( * ) + + 75 DIV CASE 41 WHEN 43 THEN - - COUNT( * ) WHEN 60 THEN NULL WHEN + 0 THEN NULL ELSE NULL END ), - 11 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2576
SELECT - ( + CAST ( + 8 AS INTEGER ) ) + + - NULLIF ( + COALESCE ( + 79, - COUNT ( * ) + COUNT ( * ) + + 75 / CASE 41 WHEN 43 THEN - - COUNT ( * ) WHEN 60 THEN NULL WHEN + 0 THEN NULL ELSE NULL END ), - 11 ) AS col2
----
-87

query II rowsort
SELECT 82 col1, 36 * - - 80
----
82
2880

query I rowsort
SELECT DISTINCT - 83 + + - 17
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL + COUNT( * ) + + + 24 + - 62 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + COUNT ( * ) + + + 24 + - 62 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT ALL - 32, COUNT( ALL - ( 70 ) ) + + - 8 + + 3 * - COUNT( ALL + + 79 ) AS col2
----
-32
-10

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL - 32, COUNT ( ALL - ( 70 ) ) + + - 8 + + 3 * - COUNT ( ALL + + 79 ) AS col2
----
-32
-10

query I rowsort
SELECT ALL + 92 + 67 AS col2
----
159

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

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

query II rowsort
SELECT - + 64 + - + 62 + + + 91 * 79 * + 68 * 20, - 99 * + ( - - 54 ) * - + 44 + 82 + + ( + ( - 15 ) ) + + + 52 AS col1
----
9776914
235343

query I rowsort
SELECT - - 90 + - + ( - 18 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL - 64 / - 34 + 12 / - 76 + + 24 * - 95 + + CASE - COUNT( * ) WHEN - + 80 + + 94 THEN + 20 WHEN + 16 THEN COUNT( * ) WHEN + + 32 * + 45 THEN NULL END - - 86 / 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - 64 / - 34 + 12 / - 76 + + 24 * - 95 + + CASE - COUNT ( * ) WHEN - + 80 + + 94 THEN + 20 WHEN + 16 THEN COUNT ( * ) WHEN + + 32 * + 45 THEN NULL END - - 86 / 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - 31 * - COUNT( * ) + 8
----
39

skipif mysql # not compatible
query I rowsort label-2586
SELECT - 31 * - COUNT ( * ) + 8
----
39

query II rowsort
SELECT 75 AS col1, - 18 + - + 3 AS col1
----
75
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2588
SELECT + + 14 DIV - 96 + + ( + COALESCE ( - 78, - 58 ) ) + - + 41 + + MIN( DISTINCT 52 )
----
-67

skipif mysql # not compatible
query I rowsort label-2588
SELECT + + 14 / - 96 + + ( + COALESCE ( - 78, - 58 ) ) + - + 41 + + MIN ( DISTINCT 52 )
----
-67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT ALL - 94 DIV + 84 - - 78 * + - 45 AS col0
----
-3511

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 94 / + 84 - - 78 * + - 45 AS col0
----
-3511

query I rowsort
SELECT ALL 76 * - - 37 * - 26 AS col0
----
-73112

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

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

query I rowsort
SELECT DISTINCT + ( NULLIF ( + 38, + ( - 53 ) * - 39 * + 35 ) )
----
38

query I rowsort
SELECT ALL 40 * - - 60 AS col0
----
2400

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2597
SELECT + CAST( NULL AS DECIMAL ) * + + CAST( NULL AS DECIMAL ) / MIN( 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT + CAST ( NULL AS REAL ) * + + CAST ( NULL AS REAL ) / MIN ( 84 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2598
SELECT + CASE + - COUNT( * ) WHEN ( COUNT( * ) ) THEN NULL ELSE - - 70 END, 32 + + 57 AS col1
----
70
89

skipif mysql # not compatible
query II rowsort label-2598
SELECT + CASE + - COUNT ( * ) WHEN ( COUNT ( * ) ) THEN NULL ELSE - - 70 END, 32 + + 57 AS col1
----
70
89

query I rowsort
SELECT DISTINCT 61 * 71 + 57
----
4388

query I rowsort
SELECT ALL 92 + 42 col0
----
134

query I rowsort
SELECT + 15 + 73 - - 28 * + + 27 * + CASE 79 WHEN AVG ( - 81 ) + + - 90 + + 48 * + 29 * + - CASE + CASE + - 97 WHEN + + 45 THEN 23 WHEN COALESCE ( + ( - 18 ), + 70 * + 0 + 39 / 29 ) THEN NULL END WHEN 15 THEN - 56 END THEN AVG ( - 85 ) * 52 END + + 16 * - 1 AS col0
----
NULL

query II rowsort
SELECT 88 * - + 16 * + 77 AS col2, - 74 col2
----
-108416
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2603
SELECT + COALESCE ( - MIN( NULLIF ( - + 55, + 78 * + - 23 + + 6 ) ), + 69 * + + 98 * + - CAST( - - 1 AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-2603
SELECT + COALESCE ( - MIN ( NULLIF ( - + 55, + 78 * + - 23 + + 6 ) ), + 69 * + + 98 * + - CAST ( - - 1 AS INTEGER ) )
----
55

query I rowsort
SELECT - 76 * - 7 + 33 + - 91 AS col2
----
474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT DISTINCT CASE - 10 WHEN 15 + - 24 THEN COUNT( * ) - - + COUNT( - 7 ) WHEN + 4 THEN + COALESCE ( - 94, - CASE NULLIF ( + 18, - 0 - + 13 ) WHEN + - CAST( NULL AS SIGNED ) + + - 1 + + CAST( NULL AS SIGNED ) * COALESCE ( COUNT( * ), + 93, - 40 ) THEN + COUNT( * ) * - COUNT( * ) + ( 87 ) END ) END + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT CASE - 10 WHEN 15 + - 24 THEN COUNT ( * ) - - + COUNT ( - 7 ) WHEN + 4 THEN + COALESCE ( - 94, - CASE NULLIF ( + 18, - 0 - + 13 ) WHEN + - CAST ( NULL AS INTEGER ) + + - 1 + + CAST ( NULL AS INTEGER ) * COALESCE ( COUNT ( * ), + 93, - 40 ) THEN + COUNT ( * ) * - COUNT ( * ) + ( 87 ) END ) END + + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL + CASE - COUNT( * ) WHEN + - 70 - + 97 THEN - 40 ELSE NULL END + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL + CASE - COUNT ( * ) WHEN + - 70 - + 97 THEN - 40 ELSE NULL END + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT DISTINCT - ( + 5 ) * 98 + - - COALESCE ( 44, + + 80 - - - 94 ) DIV - ( - COUNT( * ) )
----
-446

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - ( + 5 ) * 98 + - - COALESCE ( 44, + + 80 - - - 94 ) / - ( - COUNT ( * ) )
----
-446

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT 68 - + + SUM( DISTINCT - 19 ) * 43 AS col0
----
885

skipif mysql # not compatible
query I rowsort label-2608
SELECT 68 - + + SUM ( DISTINCT - 19 ) * 43 AS col0
----
885

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

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

query I rowsort
SELECT ALL + 54 + 92 AS col0
----
146

query I rowsort
SELECT ALL 34 * - 53 AS col2
----
-1802

query I rowsort
SELECT ALL + - 79 - - 78 * + 81 * - ( + 62 )
----
-391795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT + CAST( + - COALESCE ( + 12, CAST( NULL AS SIGNED ) * + 94 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) + 18 + - + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT + CAST ( + - COALESCE ( + 12, CAST ( NULL AS INTEGER ) * + 94 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 18 + - + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT ALL + SUM( 31 ) AS col0, + ( + - 77 ) * + 32 + - 38
----
31
-2502

skipif mysql # not compatible
query II rowsort label-2614
SELECT ALL + SUM ( 31 ) AS col0, + ( + - 77 ) * + 32 + - 38
----
31
-2502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT ALL + - 87 - + CAST( - ( - + 18 ) AS SIGNED )
----
-105

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + - 87 - + CAST ( - ( - + 18 ) AS INTEGER )
----
-105

query I rowsort
SELECT NULLIF ( + 38, + 46 + - NULLIF ( 70, 7 ) ) AS col2
----
38

query I rowsort
SELECT - 39 col0
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT DISTINCT - MIN( - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT - MIN ( - 89 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT - 50 * 52 DIV 7 * - 71
----
26341

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT - 50 * 52 / 7 * - 71
----
26341

query II rowsort
SELECT 32 col0, - 74
----
32
-74

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2623
SELECT 47 DIV + 71 * - + 62 AS col0, + 8 AS col1
----
0
8

skipif mysql # not compatible
query II rowsort label-2623
SELECT 47 / + 71 * - + 62 AS col0, + 8 AS col1
----
0
8

query II rowsort
SELECT 50 + + 7 + - + 90 * 61 col2, 67
----
-5433
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT 59 DIV + + COALESCE ( + COUNT( * ), 48 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2625
SELECT 59 / + + COALESCE ( + COUNT ( * ), 48 ) AS col0
----
59

query I rowsort
SELECT 95 * + 43 col1
----
4085

query I rowsort
SELECT 60 * 15 + - 12 + + ( 26 ) + + 46 AS col2
----
960

onlyif mysql # aggregate syntax: 
query II rowsort label-2628
SELECT ALL - 87 * + COALESCE ( + 6, - - 62 ), SUM( + - 66 ) AS col2
----
-522
-66

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL - 87 * + COALESCE ( + 6, - - 62 ), SUM ( + - 66 ) AS col2
----
-522
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2629
SELECT ALL MAX( - CASE NULLIF ( + + 69, + - 67 - - - 19 * + 77 ) WHEN - 42 THEN 54 - + - 52 ELSE + CAST( NULL AS DECIMAL ) + 62 * - 74 END ) + - ( - 90 ) / ( + 13 ) - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL MAX ( - CASE NULLIF ( + + 69, + - 67 - - - 19 * + 77 ) WHEN - 42 THEN 54 - + - 52 ELSE + CAST ( NULL AS REAL ) + 62 * - 74 END ) + - ( - 90 ) / ( + 13 ) - + 55
----
NULL

query I rowsort
SELECT ALL + 60 + NULLIF ( 72, - 81 ) AS col1
----
132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL 80 + - ( - + 84 ) + - ( - COUNT( * ) ) * - 83 * + - 14 + - 11 AS col0
----
1315

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL 80 + - ( - + 84 ) + - ( - COUNT ( * ) ) * - 83 * + - 14 + - 11 AS col0
----
1315

query I rowsort
SELECT ALL - 88 * ( - 28 ) AS col1
----
2464

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2635
SELECT + 97 col0, - 39 * - COUNT( * ) AS col0
----
97
39

skipif mysql # not compatible
query II rowsort label-2635
SELECT + 97 col0, - 39 * - COUNT ( * ) AS col0
----
97
39

query I rowsort
SELECT 75 + + - 74 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2637
SELECT 97 * - NULLIF ( - MIN( DISTINCT - 65 ), ( - CAST( + 86 AS DECIMAL ) ) * + - 14 ) * - + 32 - 28
----
201732

skipif mysql # not compatible
query I rowsort label-2637
SELECT 97 * - NULLIF ( - MIN ( DISTINCT - 65 ), ( - CAST ( + 86 AS REAL ) ) * + - 14 ) * - + 32 - 28
----
201732

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2638
SELECT 91 * - - 96 + 46 * + + 57 * - 32 * 7 + + 36 / + - COUNT( * ) + - ( - 43 ) + - 64 - + COUNT( * ) * - 71 * - 6 / + COUNT( * ) * + - CAST( NULL AS DECIMAL ) * 3 / + - 69 / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT 91 * - - 96 + 46 * + + 57 * - 32 * 7 + + 36 / + - COUNT ( * ) + - ( - 43 ) + - 64 - + COUNT ( * ) * - 71 * - 6 / + COUNT ( * ) * + - CAST ( NULL AS REAL ) * 3 / + - 69 / + 84
----
NULL

query II rowsort
SELECT - 53 AS col1, - 45 AS col0
----
-53
-45

query II rowsort
SELECT - 64, 11 AS col1
----
-64
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL CASE - + 14 WHEN 86 - - ( - - COUNT( * ) ) * + 24 THEN NULL ELSE - 92 + 69 + - COUNT( * ) END
----
-24

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL CASE - + 14 WHEN 86 - - ( - - COUNT ( * ) ) * + 24 THEN NULL ELSE - 92 + 69 + - COUNT ( * ) END
----
-24

query I rowsort
SELECT DISTINCT - + 23 + + 45
----
22

query I rowsort
SELECT DISTINCT + 83 + + 19
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL - - 73 + + SUM( - 62 ) col0
----
11

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL - - 73 + + SUM ( - 62 ) col0
----
11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2646
SELECT DISTINCT 97 - - + CAST( - - 59 AS SIGNED ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT 97 - - + CAST ( - - 59 AS INTEGER ) AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL - NULLIF ( + - 8, - + CASE - 95 WHEN + 35 THEN - 13 WHEN + COUNT( * ) THEN - MAX( 62 ) END - + 73 * 14 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - NULLIF ( + - 8, - + CASE - 95 WHEN + 35 THEN - 13 WHEN + COUNT ( * ) THEN - MAX ( 62 ) END - + 73 * 14 ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT DISTINCT CASE - CASE - 80 WHEN + 41 THEN NULL WHEN + 35 * 1 THEN NULL ELSE + COUNT( * ) * + CAST( NULL AS SIGNED ) / + 96 * + + COUNT( * ) - 91 END WHEN + - 90 THEN NULL ELSE - 8 END AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT CASE - CASE - 80 WHEN + 41 THEN NULL WHEN + 35 * 1 THEN NULL ELSE + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + 96 * + + COUNT ( * ) - 91 END WHEN + - 90 THEN NULL ELSE - 8 END AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT + 85 * + CAST( + + MAX( + - 98 ) AS SIGNED ) + 91 AS col2
----
-8239

skipif mysql # not compatible
query I rowsort label-2649
SELECT + 85 * + CAST ( + + MAX ( + - 98 ) AS INTEGER ) + 91 AS col2
----
-8239

query I rowsort
SELECT 93 + + 49 AS col1
----
142

query I rowsort
SELECT ( - 78 )
----
-78

query I rowsort
SELECT DISTINCT 63 - - 18 + - 26 col2
----
55

query I rowsort
SELECT ALL 49 col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2654
SELECT - 51 * - 75 * + - 90 * - 68 * MAX( DISTINCT + 0 ) DIV - 42 + - - 10 + + 2 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2654
SELECT - 51 * - 75 * + - 90 * - 68 * MAX ( DISTINCT + 0 ) / - 42 + - - 10 + + 2 AS col1
----
12

query I rowsort
SELECT - 21 * + 5
----
-105

query I rowsort
SELECT ALL - ( + 70 ) * 47
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2657
SELECT + 60 + + 28 + - 55 * + COUNT( DISTINCT - 9 ) * CAST( + COUNT( * ) AS SIGNED ) + - + 15 + 98 - COUNT( * ) + - + 46 DIV + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-2657
SELECT + 60 + + 28 + - 55 * + COUNT ( DISTINCT - 9 ) * CAST ( + COUNT ( * ) AS INTEGER ) + - + 15 + 98 - COUNT ( * ) + - + 46 / + COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT + 82 * - 26 AS col1
----
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL - 49 * - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - 49 * - COUNT ( * ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT ALL + + 72 DIV + 16
----
4

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL + + 72 / + 16
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-2661
SELECT 66 + - 44 + + - 62 DIV - - 71, + 74 * + + 0 AS col0
----
22
0

skipif mysql # not compatible
query II rowsort label-2661
SELECT 66 + - 44 + + - 62 / - - 71, + 74 * + + 0 AS col0
----
22
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT 70 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2662
SELECT 70 / 62 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT 76 + + COUNT( * ) col0
----
77

skipif mysql # not compatible
query I rowsort label-2663
SELECT 76 + + COUNT ( * ) col0
----
77

query I rowsort
SELECT 50 * - 75 AS col2
----
-3750

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2665
SELECT + 40 / - + NULLIF ( - 13, 49 * AVG ( 66 ) * - - 98 ) + + 89 + + + CAST( NULL AS DECIMAL ) * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 40 / - + NULLIF ( - 13, 49 * AVG ( 66 ) * - - 98 ) + + 89 + + + CAST ( NULL AS REAL ) * - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT CASE - 60 WHEN - 77 THEN + 3 * + + COUNT( * ) * + - 78 + 50 WHEN 55 + + + 35 + - 43 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT CASE - 60 WHEN - 77 THEN + 3 * + + COUNT ( * ) * + - 78 + 50 WHEN 55 + + + 35 + - 43 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 59 * 87 + + + 77 - 87 AS col2
----
5123

query I rowsort
SELECT 75 * + 45 AS col0
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL 84 * - COUNT( * ) + + 22
----
-62

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL 84 * - COUNT ( * ) + + 22
----
-62

query I rowsort
SELECT DISTINCT 21 * - 21 + - 87
----
-528

query I rowsort
SELECT ALL + 25 * + CASE - + 74 WHEN - + 85 THEN ( - 8 ) WHEN - 44 THEN - 25 - - 83 ELSE NULL END + - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT + MIN( DISTINCT + 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT + MIN ( DISTINCT + 64 ) AS col2
----
64

query I rowsort
SELECT ALL 96 * + 24 + + 17 AS col1
----
2321

query I rowsort
SELECT + 57 * - 24 * + 99
----
-135432

query I rowsort
SELECT 29 * 7 + - 83
----
120

query I rowsort
SELECT - 39 + - 78
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL 39 * 93 + + COUNT( ALL + + 36 ) * 10
----
3637

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL 39 * 93 + + COUNT ( ALL + + 36 ) * 10
----
3637

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

query I rowsort
SELECT - NULLIF ( 31, - - 69 ) * + 91 + 62 AS col1
----
-2759

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT ALL + 57 DIV - ( + 18 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + 57 / - ( + 18 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + - COUNT( * ) * + 17 - - - 64
----
-81

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + - COUNT ( * ) * + 17 - - - 64
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL + COALESCE ( - 37, - CAST( - 82 AS SIGNED ) )
----
-37

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + COALESCE ( - 37, - CAST ( - 82 AS INTEGER ) )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT - - 60 DIV COUNT( * ) * + 41 * - + COALESCE ( + 1, + 69 + - - COUNT( * ) * MAX( ALL - 29 ) ) * - 52 AS col1
----
127920

skipif mysql # not compatible
query I rowsort label-2683
SELECT - - 60 / COUNT ( * ) * + 41 * - + COALESCE ( + 1, + 69 + - - COUNT ( * ) * MAX ( ALL - 29 ) ) * - 52 AS col1
----
127920

query I rowsort
SELECT ALL + 54 - - ( + 36 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL + 49 * - ( - + ( - - 14 ) ) * - + ( - SUM( - 61 ) ) AS col0
----
-41846

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + 49 * - ( - + ( - - 14 ) ) * - + ( - SUM ( - 61 ) ) AS col0
----
-41846

onlyif mysql # aggregate syntax: 
query II rowsort label-2686
SELECT - COUNT( * ) * COUNT( * ) * - + ( + 81 ) AS col2, 54
----
81
54

skipif mysql # not compatible
query II rowsort label-2686
SELECT - COUNT ( * ) * COUNT ( * ) * - + ( + 81 ) AS col2, 54
----
81
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT ALL + - 8 DIV + - 76 * 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + - 8 / + - 76 * 1 AS col0
----
0

query I rowsort
SELECT ALL ( - + 56 ) - - ( + 19 ) + + 26 * - - 36 + + - 37
----
862

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT ALL + 4 * + - 95 * ( + 72 ) * 32 * - 30 + - - 60 DIV + MAX( 11 )
----
26265605

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + 4 * + - 95 * ( + 72 ) * 32 * - 30 + - - 60 / + MAX ( 11 )
----
26265605

query I rowsort
SELECT - 99 + - - 19 * 6 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2692
SELECT + COUNT( + 55 ) DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2692
SELECT + COUNT ( + 55 ) / 44 AS col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2695
SELECT - MIN( - - 76 ) AS col1, + 58 AS col0
----
-76
58

skipif mysql # not compatible
query II rowsort label-2695
SELECT - MIN ( - - 76 ) AS col1, + 58 AS col0
----
-76
58

query II rowsort
SELECT - - 58 - 43, - 21 col2
----
15
-21

query II rowsort
SELECT ALL - ( 11 ), - 20 AS col2
----
-11
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2698
SELECT ALL COUNT( * ) * + - 75 * + - 18 * + + CASE + CAST( NULL AS SIGNED ) WHEN ( + 45 ) + - 10 DIV - 62 * + CAST( NULL AS SIGNED ) * + 35 + 11 THEN NULL WHEN - - 42 THEN NULL ELSE - + 18 DIV - 92 END * + + 58
----
0

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL COUNT ( * ) * + - 75 * + - 18 * + + CASE + CAST ( NULL AS INTEGER ) WHEN ( + 45 ) + - 10 / - 62 * + CAST ( NULL AS INTEGER ) * + 35 + 11 THEN NULL WHEN - - 42 THEN NULL ELSE - + 18 / - 92 END * + + 58
----
0

query I rowsort
SELECT + 85 * + 20
----
1700

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT - COALESCE ( ( 44 ), - - COUNT( * ) + MIN( ALL - COALESCE ( 22, + 75 ) ), - 84 * + 78 + - + MIN( DISTINCT - 55 ) + + 79 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2702
SELECT - COALESCE ( ( 44 ), - - COUNT ( * ) + MIN ( ALL - COALESCE ( 22, + 75 ) ), - 84 * + 78 + - + MIN ( DISTINCT - 55 ) + + 79 ) AS col0
----
-44

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

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

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

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

query I rowsort
SELECT ALL 11 + + 68
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2706
SELECT - COALESCE ( - ( - + 12 ), + NULLIF ( + - ( 10 ), + - 89 * + 56 + + 73 / + 31 - CASE - - 33 WHEN + COALESCE ( - 30, - COUNT( * ) * COUNT( * ) / + 4 / - 83 * + - 77 ) * 46 + + 52 THEN 53 + + CAST( NULL AS SIGNED ) ELSE + ( + 31 ) END ), + 70 * 76 )
----
-12

skipif mysql # not compatible
query I rowsort label-2706
SELECT - COALESCE ( - ( - + 12 ), + NULLIF ( + - ( 10 ), + - 89 * + 56 + + 73 / + 31 - CASE - - 33 WHEN + COALESCE ( - 30, - COUNT ( * ) * COUNT ( * ) / + 4 / - 83 * + - 77 ) * 46 + + 52 THEN 53 + + CAST ( NULL AS INTEGER ) ELSE + ( + 31 ) END ), + 70 * 76 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL 23 + - - MIN( ALL - - 52 )
----
75

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL 23 + - - MIN ( ALL - - 52 )
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + CASE + COUNT( * ) WHEN + 87 + - 63 + + 97 / - + 9 THEN NULL WHEN - 3 THEN - 66 END * + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT + CASE + COUNT ( * ) WHEN + 87 + - 63 + + 97 / - + 9 THEN NULL WHEN - 3 THEN - 66 END * + + 40
----
NULL

query I rowsort
SELECT DISTINCT 17 * - 45
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2711
SELECT ALL 17 DIV - - 2 + MAX( + CAST( ( - 48 ) AS SIGNED ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL 17 / - - 2 + MAX ( + CAST ( ( - 48 ) AS INTEGER ) ) AS col2
----
-40

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

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

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

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

query I rowsort
SELECT + 34 + + 80
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT - 39 * COUNT( ALL + - 77 ) * CAST( NULL AS SIGNED ) + - COUNT( + 75 ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT - 39 * COUNT ( ALL + - 77 ) * CAST ( NULL AS INTEGER ) + - COUNT ( + 75 ) + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL CASE + - ( + + 14 ) WHEN + - 20 * + 70 + - 23 + + + COUNT( * ) + - CASE + + 8 WHEN - - 53 THEN + + NULLIF ( - 85, 64 / 16 ) WHEN - 37 THEN NULL END THEN NULL WHEN + COUNT( * ) THEN + 36 END / 29 + + - AVG ( DISTINCT + - 86 ) + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL CASE + - ( + + 14 ) WHEN + - 20 * + 70 + - 23 + + + COUNT ( * ) + - CASE + + 8 WHEN - - 53 THEN + + NULLIF ( - 85, 64 / 16 ) WHEN - 37 THEN NULL END THEN NULL WHEN + COUNT ( * ) THEN + 36 END / 29 + + - AVG ( DISTINCT + - 86 ) + + 96 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT + 48 * + 32 + + 80 + + NULLIF ( + 88, - CAST( + 63 AS SIGNED ) ) * + + COUNT( * ) AS col2
----
1704

skipif mysql # not compatible
query I rowsort label-2719
SELECT + 48 * + 32 + + 80 + + NULLIF ( + 88, - CAST ( + 63 AS INTEGER ) ) * + + COUNT ( * ) AS col2
----
1704

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2720
SELECT + CAST( NULL AS DECIMAL ) + - - MIN( ALL + ( 91 ) ) + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT + CAST ( NULL AS REAL ) + - - MIN ( ALL + ( 91 ) ) + + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2721
SELECT DISTINCT + CASE + + 45 WHEN - 18 + - 0 THEN CASE + 62 WHEN - 84 THEN - 28 + + - 10 WHEN + MAX( - + 79 ) THEN + 70 / + - 73 ELSE - 64 / 71 END WHEN + 66 THEN - 55 * COALESCE ( 15, - 16 * CAST( - CAST( + ( 6 ) AS DECIMAL ) AS SIGNED ) ) * + 57 + + 22 WHEN ( 16 ) THEN - ( 3 ) ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT + CASE + + 45 WHEN - 18 + - 0 THEN CASE + 62 WHEN - 84 THEN - 28 + + - 10 WHEN + MAX ( - + 79 ) THEN + 70 / + - 73 ELSE - 64 / 71 END WHEN + 66 THEN - 55 * COALESCE ( 15, - 16 * CAST ( - CAST ( + ( 6 ) AS REAL ) AS INTEGER ) ) * + 57 + + 22 WHEN ( 16 ) THEN - ( 3 ) ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL - ( + + 16 ) * - 73 + 27 AS col1
----
1195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT 34 * - CAST( NULL AS SIGNED ) * 88 * COALESCE ( - 93, + - 34 ) + COALESCE ( 41, + 40 / + - 59 * + 18 * - 21 + - - ( 90 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT 34 * - CAST ( NULL AS INTEGER ) * 88 * COALESCE ( - 93, + - 34 ) + COALESCE ( 41, + 40 / + - 59 * + 18 * - 21 + - - ( 90 ) ) AS col1
----
NULL

query I rowsort
SELECT - 2 * - - 66 + - 71
----
-203

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + + MAX( DISTINCT 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2726
SELECT + + MAX ( DISTINCT 10 ) AS col2
----
10

query I rowsort
SELECT - 31 + - 23 AS col0
----
-54

query I rowsort
SELECT ALL 0 * + 28
----
0

query I rowsort
SELECT DISTINCT + CASE WHEN NULL IS NOT NULL THEN 22 END
----
NULL

query I rowsort
SELECT + 10 * - 75 + - - 2
----
-748

query I rowsort
SELECT - 53 + + - NULLIF ( 38, + - 72 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT + + 30 AS col2, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-2732
SELECT + + 30 AS col2, COUNT ( * )
----
30
1

query I rowsort
SELECT - + 76 * - 56 + - 68
----
4188

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + + 37 * + - 41 + + - COUNT( * ) AS col1
----
-1518

skipif mysql # not compatible
query I rowsort label-2734
SELECT + + 37 * + - 41 + + - COUNT ( * ) AS col1
----
-1518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2735
SELECT - + 31 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT - + 31 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT ALL + - ( - 5 ) DIV + + ( + COUNT( DISTINCT 28 ) ) - - - ( - COUNT( * ) ) + - 39 * - 38
----
1488

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + - ( - 5 ) / + + ( + COUNT ( DISTINCT 28 ) ) - - - ( - COUNT ( * ) ) + - 39 * - 38
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT 12 * + 54 + - + 61 + - 81 * - 84 * + MAX( 76 ) + 44
----
517735

skipif mysql # not compatible
query I rowsort label-2737
SELECT 12 * + 54 + - + 61 + - 81 * - 84 * + MAX ( 76 ) + 44
----
517735

onlyif mysql # DIV for integer division: 
query II rowsort label-2738
SELECT DISTINCT + + 64 DIV + ( - 77 ) + 92 * + ( 69 ) * + 54 * + NULLIF ( 2, - - 89 + 59 ), - 94 AS col2
----
685584
-94

skipif mysql # not compatible
query II rowsort label-2738
SELECT DISTINCT + + 64 / + ( - 77 ) + 92 * + ( 69 ) * + 54 * + NULLIF ( 2, - - 89 + 59 ), - 94 AS col2
----
685584
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL + - 39 DIV + 29 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + - 39 / + 29 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2740
SELECT - - 10 + ( COUNT( * ) ) AS col0, 19 * 12 * + COUNT( * ) AS col0
----
11
228

skipif mysql # not compatible
query II rowsort label-2740
SELECT - - 10 + ( COUNT ( * ) ) AS col0, 19 * 12 * + COUNT ( * ) AS col0
----
11
228

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT - - 4 - - - 6 DIV - 86 - - - 49
----
-45

skipif mysql # not compatible
query I rowsort label-2741
SELECT - - 4 - - - 6 / - 86 - - - 49
----
-45

query I rowsort
SELECT DISTINCT + 18 + + 29
----
47

query I rowsort
SELECT ALL - 64 + + + 91 AS col0
----
27

query I rowsort
SELECT - 41 + - - 81
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT 29 AS col2, + 21 + - MAX( + + 3 ) col1
----
29
18

skipif mysql # not compatible
query II rowsort label-2745
SELECT 29 AS col2, + 21 + - MAX ( + + 3 ) col1
----
29
18

query I rowsort
SELECT - ( + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT ALL 12 + 83 AS col2, 66 - COUNT( * )
----
95
65

skipif mysql # not compatible
query II rowsort label-2747
SELECT ALL 12 + 83 AS col2, 66 - COUNT ( * )
----
95
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2748
SELECT - COUNT( * ) + + 72 col0, 97 AS col2
----
71
97

skipif mysql # not compatible
query II rowsort label-2748
SELECT - COUNT ( * ) + + 72 col0, 97 AS col2
----
71
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL + 28 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + 28 + - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT + 19 * + 99 * + SUM( 3 ) * - + 17 + + + 50 * + 44 AS col2
----
-93731

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT + 19 * + 99 * + SUM ( 3 ) * - + 17 + + + 50 * + 44 AS col2
----
-93731

query I rowsort
SELECT ALL 5 + + + 52 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT SUM( - CASE 13 WHEN + - 50 THEN NULL WHEN 15 + 2 + 1 / + 62 * 17 THEN + - 79 ELSE NULL END ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT SUM ( - CASE 13 WHEN + - 50 THEN NULL WHEN 15 + 2 + 1 / + 62 * 17 THEN + - 79 ELSE NULL END ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2753
SELECT DISTINCT - 47 + + 0 + - - 56 + - + 42 / + 69 + + 79 + + 5 * - CASE 4 WHEN 98 THEN + CASE + COUNT( * ) WHEN - + 76 THEN NULL WHEN - 18 + 85 THEN ( + + 45 ) ELSE - 58 * + COUNT( * ) + - CAST( NULL AS DECIMAL ) END WHEN COUNT( + 59 ) - COUNT( * ) THEN + ( 48 ) * CASE CAST( NULL AS DECIMAL ) WHEN + SUM( ALL 7 ) * 14 THEN NULL WHEN - 14 THEN NULL WHEN - 37 THEN NULL ELSE 79 + + 26 END + 18 * + 65 WHEN - 89 / 68 THEN 3 ELSE NULL END * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - 47 + + 0 + - - 56 + - + 42 / + 69 + + 79 + + 5 * - CASE 4 WHEN 98 THEN + CASE + COUNT ( * ) WHEN - + 76 THEN NULL WHEN - 18 + 85 THEN ( + + 45 ) ELSE - 58 * + COUNT ( * ) + - CAST ( NULL AS REAL ) END WHEN COUNT ( + 59 ) - COUNT ( * ) THEN + ( 48 ) * CASE CAST ( NULL AS REAL ) WHEN + SUM ( ALL 7 ) * 14 THEN NULL WHEN - 14 THEN NULL WHEN - 37 THEN NULL ELSE 79 + + 26 END + 18 * + 65 WHEN - 89 / 68 THEN 3 ELSE NULL END * - 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2754
SELECT 29, + 1 + + CAST( NULL AS SIGNED ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2754
SELECT 29, + 1 + + CAST ( NULL AS INTEGER ) AS col1
----
29
NULL

query I rowsort
SELECT 1 + + 62 * 41 + - 13 + - 68 + + - 94 AS col1
----
2368

query II rowsort
SELECT + 33 AS col2, - 38 AS col2
----
33
-38

query II rowsort
SELECT 38 * + - 48 * + - ( + + 34 ) * - 29 + - 6 AS col1, ( + + 21 ) col0
----
-1798470
21

query I rowsort
SELECT ALL 22 - + 36 col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL ( COUNT( * ) ) * - ( - - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL ( COUNT ( * ) ) * - ( - - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT COUNT( DISTINCT - - 32 ) - 77
----
-76

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT COUNT ( DISTINCT - - 32 ) - 77
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT + 57 * - + CAST( - 13 AS SIGNED )
----
741

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + 57 * - + CAST ( - 13 AS INTEGER )
----
741

query II rowsort
SELECT ALL - 81 AS col1, 95 AS col2
----
-81
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL - MIN( + + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - MIN ( + + 73 )
----
-73

query I rowsort
SELECT 19 * + 43
----
817

query II rowsort
SELECT ALL - 55 AS col2, 43 * + - 54 * + 33 col1
----
-55
-76626

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT DISTINCT 89 - - ( - COUNT( * ) ) + + - 90 - + + 87
----
-89

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT 89 - - ( - COUNT ( * ) ) + + - 90 - + + 87
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT + - COUNT( * ), CASE WHEN NULL IS NOT NULL THEN - 72 ELSE NULL END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2767
SELECT + - COUNT ( * ), CASE WHEN NULL IS NOT NULL THEN - 72 ELSE NULL END AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL - CASE 63 WHEN - 10 THEN + 90 - 94 + - + 2 WHEN + COUNT( * ) / - - COUNT( * ) * - COUNT( * ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - CASE 63 WHEN - 10 THEN + 90 - 94 + - + 2 WHEN + COUNT ( * ) / - - COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT + 81 * + 93 * NULLIF ( + 49, + 21 * - ( + COALESCE ( NULLIF ( 46, + - COUNT( * ) / 58 * + 51 / + - 81 ), + 21 * + MIN( DISTINCT + + 52 ) * - 40 / + - 15 - - CAST( + 44 AS SIGNED ) * + 38 - + ( COUNT( * ) ) ) ) )
----
369117

skipif mysql # not compatible
query I rowsort label-2769
SELECT + 81 * + 93 * NULLIF ( + 49, + 21 * - ( + COALESCE ( NULLIF ( 46, + - COUNT ( * ) / 58 * + 51 / + - 81 ), + 21 * + MIN ( DISTINCT + + 52 ) * - 40 / + - 15 - - CAST ( + 44 AS INTEGER ) * + 38 - + ( COUNT ( * ) ) ) ) )
----
369117

query II rowsort
SELECT 80, ( 24 ) AS col0
----
80
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2771
SELECT 88 DIV + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-2771
SELECT 88 / + - COUNT ( * )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT DISTINCT 30 DIV - - 18 + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT 30 / - - 18 + 37 AS col1
----
38

query I rowsort
SELECT DISTINCT + 64 * + 29 col1
----
1856

onlyif mysql # aggregate syntax: 
query II rowsort label-2774
SELECT + 57 * SUM( + 70 ) + 60 + 55 * 48 col0, - 91 * - 4
----
6690
364

skipif mysql # not compatible
query II rowsort label-2774
SELECT + 57 * SUM ( + 70 ) + 60 + 55 * 48 col0, - 91 * - 4
----
6690
364

query I rowsort
SELECT DISTINCT + 94 + - COALESCE ( + + 79, - 23 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT + 40 * CAST( NULL AS SIGNED ) * + - 35 * + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT + 40 * CAST ( NULL AS INTEGER ) * + - 35 * + - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - 19 + + 41 + + SUM( + 88 ) * 6 AS col1
----
550

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - 19 + + 41 + + SUM ( + 88 ) * 6 AS col1
----
550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 97 + + - 50
----
47

query I rowsort
SELECT ALL - 70 * - 22
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT - ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT - ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2782
SELECT ALL - 79 + - 19 + - ( + 95 ) * - - ( + CAST( - + 4 AS SIGNED ) ) * - + COUNT( * ) + - + 81 + + + 48 * SUM( DISTINCT + - 97 ) AS col1, + 57 + - 96 AS col0
----
-5215
-39

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL - 79 + - 19 + - ( + 95 ) * - - ( + CAST ( - + 4 AS INTEGER ) ) * - + COUNT ( * ) + - + 81 + + + 48 * SUM ( DISTINCT + - 97 ) AS col1, + 57 + - 96 AS col0
----
-5215
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL + 20 + + + 36 + + COUNT( * ) * 67 * - + 70
----
-4634

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL + 20 + + + 36 + + COUNT ( * ) * 67 * - + 70
----
-4634

query II rowsort
SELECT - 36 AS col0, 49 * - 93
----
-36
-4557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT 66 * CAST( 78 AS SIGNED )
----
5148

skipif mysql # not compatible
query I rowsort label-2785
SELECT 66 * CAST ( 78 AS INTEGER )
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT 69 - COUNT( * ) * 5
----
64

skipif mysql # not compatible
query I rowsort label-2786
SELECT 69 - COUNT ( * ) * 5
----
64

query I rowsort
SELECT ALL 0 + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL - COUNT( * ) * 69
----
-69

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL - COUNT ( * ) * 69
----
-69

query I rowsort
SELECT ALL - COALESCE ( + 42, + 30, + - 94 ) + + 14 - - ( + - 47 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT DISTINCT - 60 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - 60 / + 94 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT 1 * - COUNT( * ) DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT 1 * - COUNT ( * ) / 78 AS col1
----
0

query I rowsort
SELECT DISTINCT + 97 - - 87
----
184

query I rowsort
SELECT ALL - 42 * + 74 col2
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT + MIN( DISTINCT - 60 ) * 61 + - + 16
----
-3676

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT + MIN ( DISTINCT - 60 ) * 61 + - + 16
----
-3676

query I rowsort
SELECT ALL + 70 * 17 AS col0
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT 91 - + MIN( - 81 ) + 6
----
178

skipif mysql # not compatible
query I rowsort label-2796
SELECT 91 - + MIN ( - 81 ) + 6
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT ALL - 43 * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - 43 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2798
SELECT DISTINCT SUM( DISTINCT + 92 ) AS col1, + 65 DIV + - 67 + ( + + 21 ) AS col1
----
92
21

skipif mysql # not compatible
query II rowsort label-2798
SELECT DISTINCT SUM ( DISTINCT + 92 ) AS col1, + 65 / + - 67 + ( + + 21 ) AS col1
----
92
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL + 80 * ( + COUNT( * ) ) col2
----
80

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + 80 * ( + COUNT ( * ) ) col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2800
SELECT COUNT( * ) * + - COUNT( * ) DIV + 15 * + CASE - 17 WHEN - 98 DIV 52 THEN 35 WHEN + 77 + - 89 + + + 17 THEN - 95 ELSE 47 + - 66 END DIV + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2800
SELECT COUNT ( * ) * + - COUNT ( * ) / + 15 * + CASE - 17 WHEN - 98 / 52 THEN 35 WHEN + 77 + - 89 + + + 17 THEN - 95 ELSE 47 + - 66 END / + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL - SUM( + COALESCE ( + + 67, + 38 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - SUM ( + COALESCE ( + + 67, + 38 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL - COUNT( ALL - 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL - COUNT ( ALL - 33 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT 7 DIV - 81 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2803
SELECT 7 / - 81 + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 81 * + 56 - - - 29
----
4507

query I rowsort
SELECT - 61 * - + 14
----
854

query I rowsort
SELECT + CASE - + 89 WHEN - 59 THEN NULL WHEN + 43 THEN + 12 * 26 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - + 14 AS col2
----
-14

query II rowsort
SELECT ALL 19 * COALESCE ( - 68, + 73 * 15 + + 98, + 42 ) AS col0, - 74 AS col2
----
-1292
-74

query I rowsort
SELECT - 88 + 75 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + - MIN( + + 18 ) + + + 64 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + - MIN ( + + 18 ) + + + 64 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2811
SELECT DISTINCT - CASE 31 WHEN + 48 - - + COALESCE ( + + 32, - 27 ) * + + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( ALL - 98 ) ) + - 21 THEN + - 33 * 4 WHEN + + 17 THEN - 61 * + 89 WHEN - 12 THEN - CAST( + + 83 AS DECIMAL ) / - + CAST( 57 AS SIGNED ) * 38 - 32 * + 3 - + 51 ELSE NULL END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT - CASE 31 WHEN + 48 - - + COALESCE ( + + 32, - 27 ) * + + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( ALL - 98 ) ) + - 21 THEN + - 33 * 4 WHEN + + 17 THEN - 61 * + 89 WHEN - 12 THEN - CAST ( + + 83 AS REAL ) / - + CAST ( 57 AS INTEGER ) * 38 - 32 * + 3 - + 51 ELSE NULL END * 13
----
NULL

query I rowsort
SELECT ALL 46 + + 46 * - 53 * + 26 AS col1
----
-63342

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT 71 DIV - + 31 + - - 97 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2813
SELECT 71 / - + 31 + - - 97 AS col1
----
95

query I rowsort
SELECT + - ( + 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2815
SELECT + CAST( NULL AS DECIMAL ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT + CAST ( NULL AS REAL ) + + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL - ( - + 27 ) + - CAST( + - 78 AS SIGNED ) + - 54 * - ( - 34 ) * - 71
----
130461

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - ( - + 27 ) + - CAST ( + - 78 AS INTEGER ) + - 54 * - ( - 34 ) * - 71
----
130461

query I rowsort
SELECT + ( + - 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT 16 * + - COUNT( * ) * CAST( NULL AS SIGNED ) * - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT 16 * + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT 75 + - + 53 + - 25 * - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-2819
SELECT 75 + - + 53 + - 25 * - COUNT ( * )
----
47

query I rowsort
SELECT ALL - - 21 AS col2
----
21

query I rowsort
SELECT + 91 col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT 5 DIV + 72 * - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT 5 / + 72 * - 44 AS col1
----
0

query I rowsort
SELECT DISTINCT - 82 + 92 AS col1
----
10

query I rowsort
SELECT DISTINCT - 13 col0
----
-13

query I rowsort
SELECT + 31 * + ( 70 ) AS col2
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL + ( COUNT( * ) ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL + ( COUNT ( * ) ) * COUNT ( * )
----
1

query I rowsort
SELECT ALL 0 + + 30
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT ALL 59 - COALESCE ( 4, + 6 DIV - + 59 * - + 66 + 37 + - 48 )
----
55

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL 59 - COALESCE ( 4, + 6 / - + 59 * - + 66 + 37 + - 48 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL - 47 - COUNT( * ) - ( COALESCE ( 52, + + 28 ) ) * + + 47
----
-2492

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - 47 - COUNT ( * ) - ( COALESCE ( 52, + + 28 ) ) * + + 47
----
-2492

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL 52 * - ( - COUNT( DISTINCT - 32 ) ) * - + 15 AS col1
----
-780

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 52 * - ( - COUNT ( DISTINCT - 32 ) ) * - + 15 AS col1
----
-780

query I rowsort
SELECT + 58 + - 36
----
22

query I rowsort
SELECT - 64 - 89 + - 70 AS col0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - SUM( + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2833
SELECT - SUM ( + 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - 99 + - 90 + 7 + - 37 * + 81 * - COUNT( * ) AS col0
----
2815

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 99 + - 90 + 7 + - 37 * + 81 * - COUNT ( * ) AS col0
----
2815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT + 11 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + 11 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT DISTINCT SUM( COALESCE ( - - 44, CAST( NULL AS SIGNED ), 19 ) ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT SUM ( COALESCE ( - - 44, CAST ( NULL AS INTEGER ), 19 ) ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2837
SELECT ALL - COALESCE ( + 60, + - 95 ) DIV + 97 * + - 51 + MAX( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - COALESCE ( + 60, + - 95 ) / + 97 * + - 51 + MAX ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - 81 + + 32 * MIN( ALL - - 50 ) + - 91
----
1428

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 81 + + 32 * MIN ( ALL - - 50 ) + - 91
----
1428

query II rowsort
SELECT DISTINCT 85, ( + + 19 ) + - COALESCE ( - - 75, 92, - 24 * + 91 + + + 74 + - 58 - 97 * - ( - 14 ) * 89 * + 96 ) AS col1
----
85
-56

query I rowsort
SELECT - 57 + + + 84 AS col0
----
27

query I rowsort
SELECT + 45 * - + 71 AS col0
----
-3195

query I rowsort
SELECT - 50 + - + 41
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL SUM( 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL SUM ( 36 ) col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT DISTINCT - ( - + 64 ) + - - 58 AS col0, MAX( DISTINCT + 98 )
----
122
98

skipif mysql # not compatible
query II rowsort label-2844
SELECT DISTINCT - ( - + 64 ) + - - 58 AS col0, MAX ( DISTINCT + 98 )
----
122
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL - COUNT( * ) * + - 33
----
33

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - COUNT ( * ) * + - 33
----
33

query II rowsort
SELECT + 40 AS col2, - 3 col2
----
40
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT + 7 * ( - + 1 ) * - - 9 * 37 + + COUNT( * ) * - 20 * 90 DIV - + ( - 54 ) + 9 DIV 19 + + + 9 * + 85 AS col1
----
-1599

skipif mysql # not compatible
query I rowsort label-2847
SELECT + 7 * ( - + 1 ) * - - 9 * 37 + + COUNT ( * ) * - 20 * 90 / - + ( - 54 ) + 9 / 19 + + + 9 * + 85 AS col1
----
-1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT ALL - NULLIF ( - CASE + COUNT( * ) WHEN - 50 THEN + 67 + + - 83 * - 28 * - ( 36 ) - + 34 WHEN COUNT( * ) THEN - 64 * + COUNT( * ) - ( + + 6 ) + 61 WHEN ( - - 56 ) * - 62 THEN - MIN( ALL - + 78 ) * 79 - 31 ELSE + 94 DIV 71 END, 80 ) * 18 + 33 DIV - 54 AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - NULLIF ( - CASE + COUNT ( * ) WHEN - 50 THEN + 67 + + - 83 * - 28 * - ( 36 ) - + 34 WHEN COUNT ( * ) THEN - 64 * + COUNT ( * ) - ( + + 6 ) + 61 WHEN ( - - 56 ) * - 62 THEN - MIN ( ALL - + 78 ) * 79 - 31 ELSE + 94 / 71 END, 80 ) * 18 + 33 / - 54 AS col1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT DISTINCT - - COUNT( DISTINCT 43 ) * 57 + - 72
----
-15

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT - - COUNT ( DISTINCT 43 ) * 57 + - 72
----
-15

query I rowsort
SELECT ALL + ( 54 )
----
54

query I rowsort
SELECT - - 25 * 88
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL - - 31 * COUNT( * ) * - 93 * - 24 + + NULLIF ( - 51, + 41 ) AS col2
----
69141

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - - 31 * COUNT ( * ) * - 93 * - 24 + + NULLIF ( - 51, + 41 ) AS col2
----
69141

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + ( SUM( ALL - 77 ) ) * + + 51
----
-3927

skipif mysql # not compatible
query I rowsort label-2853
SELECT + ( SUM ( ALL - 77 ) ) * + + 51
----
-3927

query I rowsort
SELECT ALL 19 * 85 + + 89
----
1704

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT + 98 AS col0, MIN( ALL - 2 )
----
98
-2

skipif mysql # not compatible
query II rowsort label-2855
SELECT + 98 AS col0, MIN ( ALL - 2 )
----
98
-2

query I rowsort
SELECT ALL - 19 * - 45 + 28 AS col0
----
883

query I rowsort
SELECT + NULLIF ( + - 8, 7 / - + AVG ( DISTINCT 36 ) - + + 40 )
----
-8

query I rowsort
SELECT ALL + ( - + 86 ) AS col1
----
-86

query I rowsort
SELECT DISTINCT + + 59
----
59

query I rowsort
SELECT DISTINCT + ( + 3 ) * - 79 - - 72 AS col0
----
-165

query I rowsort
SELECT ALL - 21 * - 9 - - 12
----
201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2862
SELECT + 64 + - 2 * - CASE - MIN( DISTINCT 83 ) WHEN - COUNT( * ) * COUNT( * ) / + 11 THEN + + COUNT( * ) * COUNT( * ) + 48 WHEN - - COALESCE ( + 72, - - NULLIF ( 79, + + 44 ) ) + - 78 / 98 THEN NULL ELSE NULL END + 25 * 28 + + + 48 + - - COUNT( ALL + CAST( NULL AS SIGNED ) ) * + 7 + CASE 29 + - 14 WHEN - 39 * - 29 THEN CAST( 19 AS DECIMAL ) + + 52 ELSE NULL END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 64 + - 2 * - CASE - MIN ( DISTINCT 83 ) WHEN - COUNT ( * ) * COUNT ( * ) / + 11 THEN + + COUNT ( * ) * COUNT ( * ) + 48 WHEN - - COALESCE ( + 72, - - NULLIF ( 79, + + 44 ) ) + - 78 / 98 THEN NULL ELSE NULL END + 25 * 28 + + + 48 + - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * + 7 + CASE 29 + - 14 WHEN - 39 * - 29 THEN CAST ( 19 AS REAL ) + + 52 ELSE NULL END * 76
----
NULL

query I rowsort
SELECT 6 * - - 92 + + - 93 + 54 col0
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT SUM( + 48 ) col0
----
48

skipif mysql # not compatible
query I rowsort label-2864
SELECT SUM ( + 48 ) col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2865
SELECT ALL COUNT( * ) DIV + CASE - NULLIF ( - - 54, - 3 - - COUNT( * ) + - + 88 ) WHEN + + AVG ( - 15 ) + + 45 THEN NULL WHEN - 28 THEN NULL ELSE 81 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL COUNT ( * ) / + CASE - NULLIF ( - - 54, - 3 - - COUNT ( * ) + - + 88 ) WHEN + + AVG ( - 15 ) + + 45 THEN NULL WHEN - 28 THEN NULL ELSE 81 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + COALESCE ( COUNT( * ), + - 27 + + 67 ) * - MIN( DISTINCT ( 44 ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2866
SELECT + COALESCE ( COUNT ( * ), + - 27 + + 67 ) * - MIN ( DISTINCT ( 44 ) ) AS col2
----
-44

query I rowsort
SELECT + 17 * - 7
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT SUM( ALL - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-2868
SELECT SUM ( ALL - 86 )
----
-86

query I rowsort
SELECT + 87 * + 43 AS col1
----
3741

query I rowsort
SELECT + 63 + 90 * 58
----
5283

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL SUM( DISTINCT - 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL SUM ( DISTINCT - 62 ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT DISTINCT 34 * + CAST( NULL AS SIGNED ) * + CAST( 89 AS SIGNED ) / 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT 34 * + CAST ( NULL AS INTEGER ) * + CAST ( 89 AS INTEGER ) / 34 AS col1
----
NULL

query I rowsort
SELECT + 57 * - - 16
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL - ( - ( + 34 ) ) * - 6 + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - ( - ( + 34 ) ) * - 6 + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 80 * 68
----
5440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT - CAST( + COALESCE ( + - 75, + ( + + 63 ) * - - 64 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2876
SELECT - CAST ( + COALESCE ( + - 75, + ( + + 63 ) * - - 64 ) AS INTEGER )
----
75

query I rowsort
SELECT - 27 * + CASE - - 61 WHEN - 1 THEN - 10 ELSE + 30 END
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL COUNT( * ) + - 67 + 17 * + 78 + 62
----
1322

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL COUNT ( * ) + - 67 + 17 * + 78 + 62
----
1322

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL COUNT( DISTINCT + COALESCE ( + 81, - 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL COUNT ( DISTINCT + COALESCE ( + 81, - 70 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT ALL + + 72 + COUNT( * ) - + - 37 * + - 58 + 28 + + 81 * NULLIF ( 32, 36 ) * NULLIF ( + ( 4 ), + - CASE + CASE + NULLIF ( - - 60, COALESCE ( + 55, + 93 ) ) WHEN + COUNT( * ) THEN NULL WHEN 23 THEN - 24 ELSE + NULLIF ( + 27, 99 DIV 67 ) * 39 END WHEN - ( - 79 ) * - 84 THEN + 38 WHEN COUNT( * ) THEN NULL END + + 79 ) + + 53 DIV 44 * 52
----
8375

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + + 72 + COUNT ( * ) - + - 37 * + - 58 + 28 + + 81 * NULLIF ( 32, 36 ) * NULLIF ( + ( 4 ), + - CASE + CASE + NULLIF ( - - 60, COALESCE ( + 55, + 93 ) ) WHEN + COUNT ( * ) THEN NULL WHEN 23 THEN - 24 ELSE + NULLIF ( + 27, 99 / 67 ) * 39 END WHEN - ( - 79 ) * - 84 THEN + 38 WHEN COUNT ( * ) THEN NULL END + + 79 ) + + 53 / 44 * 52
----
8375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT NULLIF ( - 26, - NULLIF ( + ( + + CASE - 19 WHEN - CAST( NULL AS SIGNED ) THEN + 79 * - 29 * + 89 WHEN - ( + 97 ) + + CAST( - 54 AS SIGNED ) THEN + 22 ELSE NULL END ), + + 60 ) / + ( 93 ) * + 74 + 28 )
----
-26

skipif mysql # not compatible
query I rowsort label-2881
SELECT NULLIF ( - 26, - NULLIF ( + ( + + CASE - 19 WHEN - CAST ( NULL AS INTEGER ) THEN + 79 * - 29 * + 89 WHEN - ( + 97 ) + + CAST ( - 54 AS INTEGER ) THEN + 22 ELSE NULL END ), + + 60 ) / + ( 93 ) * + 74 + 28 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL - + 59 + - 42 + - COUNT( * ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL - + 59 + - 42 + - COUNT ( * ) AS col0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT DISTINCT + CASE + - ( - - CAST( - - 34 AS SIGNED ) ) WHEN - ( + ( 25 ) ) THEN + + 68 * + - 45 + - 38 WHEN - + 67 THEN NULL WHEN + 68 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + CASE + - ( - - CAST ( - - 34 AS INTEGER ) ) WHEN - ( + ( 25 ) ) THEN + + 68 * + - 45 + - 38 WHEN - + 67 THEN NULL WHEN + 68 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 6 * - 74 AS col0
----
444

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT ALL - 32 DIV + 16
----
-2

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - 32 / + 16
----
-2

query I rowsort
SELECT ALL + 25 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - 75 * + 6 * + 47 - - COUNT( * ) * CASE + - 60 WHEN - COUNT( DISTINCT - - 35 ) THEN NULL WHEN - 88 * + 13 * + ( + - MIN( ALL + 92 ) ) + - + 82 THEN + - CASE 37 WHEN - 65 THEN NULL WHEN + 54 * - 57 THEN + - 15 + + ( - - 70 ) END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT - 75 * + 6 * + 47 - - COUNT ( * ) * CASE + - 60 WHEN - COUNT ( DISTINCT - - 35 ) THEN NULL WHEN - 88 * + 13 * + ( + - MIN ( ALL + 92 ) ) + - + 82 THEN + - CASE 37 WHEN - 65 THEN NULL WHEN + 54 * - 57 THEN + - 15 + + ( - - 70 ) END ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + ( - 92 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT + 64 + - 85 DIV - 50
----
65

skipif mysql # not compatible
query I rowsort label-2889
SELECT + 64 + - 85 / - 50
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT - - 88 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-2890
SELECT - - 88 / - 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + + SUM( + - 45 ) * + 40 * - ( - 29 ) col1
----
-52200

skipif mysql # not compatible
query I rowsort label-2891
SELECT + + SUM ( + - 45 ) * + 40 * - ( - 29 ) col1
----
-52200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT + CAST( + 87 AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2892
SELECT + CAST ( + 87 AS INTEGER ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) + - ( 98 ) + + COALESCE ( + - ( + 87 ), - COUNT( - + 27 ), + 50 * - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - ( 98 ) + + COALESCE ( + - ( + 87 ), - COUNT ( - + 27 ), + 50 * - 60 )
----
NULL

query I rowsort
SELECT ALL - - 26 col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT ALL - MAX( + 50 ) AS col2, 54
----
-50
54

skipif mysql # not compatible
query II rowsort label-2895
SELECT ALL - MAX ( + 50 ) AS col2, 54
----
-50
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + 96 * MIN( 97 ) + + 86 + - - 32 AS col0
----
9430

skipif mysql # not compatible
query I rowsort label-2896
SELECT + 96 * MIN ( 97 ) + + 86 + - - 32 AS col0
----
9430

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - 54 * ( - - 74 ) + COUNT( * )
----
-3995

skipif mysql # not compatible
query I rowsort label-2897
SELECT - 54 * ( - - 74 ) + COUNT ( * )
----
-3995

query II rowsort
SELECT 50 AS col2, + 82 + + + 73 AS col2
----
50
155

query I rowsort
SELECT ALL - 83 - - - 30
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT + COUNT( * ) * - 26 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT + COUNT ( * ) * - 26 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2901
SELECT 31 col2, + 14 * + COUNT( * )
----
31
14

skipif mysql # not compatible
query II rowsort label-2901
SELECT 31 col2, + 14 * + COUNT ( * )
----
31
14

query I rowsort
SELECT 1 + - 36
----
-35

query I rowsort
SELECT DISTINCT + 38 * - 66
----
-2508

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT ALL 73 AS col0, - COUNT( * )
----
73
-1

skipif mysql # not compatible
query II rowsort label-2904
SELECT ALL 73 AS col0, - COUNT ( * )
----
73
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2905
SELECT COUNT( * ) DIV - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2905
SELECT COUNT ( * ) / - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + COUNT( * ) + - - 32 col0
----
33

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + COUNT ( * ) + - - 32 col0
----
33

query I rowsort
SELECT 94 - 68 AS col1
----
26

query II rowsort
SELECT ALL 30 AS col1, 92 AS col0
----
30
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2909
SELECT COUNT( * ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( * ) / 63
----
0

query II rowsort
SELECT ALL 39 AS col2, + 30
----
39
30

query I rowsort
SELECT ALL 85 + 53 + - 75 - - - 79 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ( + 14 ) + - + 76 * 64 / - NULLIF ( - + 4, + + 59 ) * + - ( 89 ) + + - COUNT( + + 16 ) + - CASE - + 62 WHEN + + 50 * 49 * 55 + + 24 THEN NULL WHEN - 7 THEN COUNT( * ) END * + 65 - + - 62 * + 58 + + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT ( + 14 ) + - + 76 * 64 / - NULLIF ( - + 4, + + 59 ) * + - ( 89 ) + + - COUNT ( + + 16 ) + - CASE - + 62 WHEN + + 50 * 49 * 55 + + 24 THEN NULL WHEN - 7 THEN COUNT ( * ) END * + 65 - + - 62 * + 58 + + + 46
----
NULL

query I rowsort
SELECT ALL + ( 94 ) + - 31
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 57 + + 66 + 40 * COUNT( * ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-2914
SELECT 57 + + 66 + 40 * COUNT ( * ) AS col0
----
163

query I rowsort
SELECT ALL - 47 + - 75 AS col1
----
-122

query I rowsort
SELECT ALL + 78 + + - 29
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT + SUM( 97 ) + - COUNT( * ) - - 75 * + - ( + + 91 ) AS col2
----
-6729

skipif mysql # not compatible
query I rowsort label-2917
SELECT + SUM ( 97 ) + - COUNT ( * ) - - 75 * + - ( + + 91 ) AS col2
----
-6729

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL - ( + - 28 ) * + ( MAX( DISTINCT 89 ) )
----
2492

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - ( + - 28 ) * + ( MAX ( DISTINCT 89 ) )
----
2492

query I rowsort
SELECT + 18 + + + 51
----
69

query I rowsort
SELECT DISTINCT - + 92 col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT + - 68 DIV - - 6 + - COUNT( 10 ) + 77 * + 17 * + - COUNT( * ) AS col1
----
-1321

skipif mysql # not compatible
query I rowsort label-2921
SELECT + - 68 / - - 6 + - COUNT ( 10 ) + 77 * + 17 * + - COUNT ( * ) AS col1
----
-1321

query I rowsort
SELECT ALL - - ( - 2 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT + 4 - + - 64
----
68

query I rowsort
SELECT DISTINCT - - 58 AS col1
----
58

query I rowsort
SELECT + + 52 col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT + CAST( NULL AS SIGNED ) * - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT + CAST ( NULL AS INTEGER ) * - - 55
----
NULL

query I rowsort
SELECT ALL + 43 * 31
----
1333

query I rowsort
SELECT ALL - 65 AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT 43 * + + 4 + 57 + 48 + + 28 + - + NULLIF ( + - 61, - 85 ) + + 42 + - 27 DIV - 11 col2
----
410

skipif mysql # not compatible
query I rowsort label-2929
SELECT 43 * + + 4 + 57 + 48 + + 28 + - + NULLIF ( + - 61, - 85 ) + + 42 + - 27 / - 11 col2
----
410

query I rowsort
SELECT 4 - - 18 * 42 * 81 + - 41 col0
----
61199

query I rowsort
SELECT 10 * + + 6
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 31
----
NULL

query I rowsort
SELECT DISTINCT - ( 59 )
----
-59

query I rowsort
SELECT ALL + 25 + 76 * + ( - - 36 ) + + 80 col2
----
2841

query I rowsort
SELECT 0 * - 36
----
0

query I rowsort
SELECT 36 + + 72 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + COUNT( * ) + - + 50 + + 54
----
5

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + COUNT ( * ) + - + 50 + + 54
----
5

query I rowsort
SELECT 80 * + 58 + - ( + 42 )
----
4598

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT COUNT( * ) * - - 21 col1
----
21

skipif mysql # not compatible
query I rowsort label-2939
SELECT COUNT ( * ) * - - 21 col1
----
21

query I rowsort
SELECT ALL + 80 + + - 11 + + 37 AS col1
----
106

query I rowsort
SELECT 25 * 30
----
750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2942
SELECT DISTINCT + 8 + + MAX( DISTINCT + 34 ) + + + 58 DIV - - 31 + - 78 + 95 * + + 70
----
6615

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + 8 + + MAX ( DISTINCT + 34 ) + + + 58 / - - 31 + - 78 + 95 * + + 70
----
6615

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL + MAX( 2 ) * - NULLIF ( 75, - - 20 - + COUNT( * ) ) AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + MAX ( 2 ) * - NULLIF ( 75, - - 20 - + COUNT ( * ) ) AS col0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT DISTINCT COUNT( * ) AS col0, 37 + 58 AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-2944
SELECT DISTINCT COUNT ( * ) AS col0, 37 + 58 AS col0
----
1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL 79 + + NULLIF ( - 72, - 50 ) * 16 * + NULLIF ( + + 10, - + 56 * + + 24 * - - ( - + 83 ) + - COUNT( * ) ) AS col1
----
-11441

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL 79 + + NULLIF ( - 72, - 50 ) * 16 * + NULLIF ( + + 10, - + 56 * + + 24 * - - ( - + 83 ) + - COUNT ( * ) ) AS col1
----
-11441

onlyif mysql # aggregate syntax: 
query II rowsort label-2946
SELECT ALL CASE + 74 WHEN - ( + + 15 ) THEN 58 ELSE + - COUNT( * ) END, 14 + + 45 AS col0
----
-1
59

skipif mysql # not compatible
query II rowsort label-2946
SELECT ALL CASE + 74 WHEN - ( + + 15 ) THEN 58 ELSE + - COUNT ( * ) END, 14 + + 45 AS col0
----
-1
59

query II rowsort
SELECT + 5 + + - 15 AS col0, 39 - 41 col1
----
-10
-2

query I rowsort
SELECT + 79 * 7 AS col0
----
553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT CAST( NULL AS SIGNED ) + - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT CAST ( NULL AS INTEGER ) + - 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT + MAX( - 12 ) DIV + 87 * - 80 * - 85
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + MAX ( - 12 ) / + 87 * - 80 * - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT - CAST( NULL AS SIGNED ) * + + 41 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT - CAST ( NULL AS INTEGER ) * + + 41 * 6
----
NULL

query I rowsort
SELECT - 55 - - 28
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2953
SELECT ALL + 31 AS col1, 75 + COUNT( * ) - + + SUM( + CAST( NULL AS SIGNED ) )
----
31
NULL

skipif mysql # not compatible
query II rowsort label-2953
SELECT ALL + 31 AS col1, 75 + COUNT ( * ) - + + SUM ( + CAST ( NULL AS INTEGER ) )
----
31
NULL

query I rowsort
SELECT ALL - ( - 26 ) AS col0
----
26

query I rowsort
SELECT ALL - 0 - + 27 + - 75
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + - 63 * - 91 + - 26 * 67 + + COUNT( * ) + + MAX( 23 )
----
4015

skipif mysql # not compatible
query I rowsort label-2956
SELECT + - 63 * - 91 + - 26 * 67 + + COUNT ( * ) + + MAX ( 23 )
----
4015

query II rowsort
SELECT + 4 - - 31 AS col2, + 84 * + 66 AS col1
----
35
5544

query II rowsort
SELECT - 29 * - - 47 + ( 87 ) - - - 60 + - 0, 48 AS col0
----
-1336
48

query I rowsort
SELECT DISTINCT + 81 * - + 26 AS col2
----
-2106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT + SUM( - 29 ) + 4 + - 37 DIV + MIN( ALL - 93 )
----
-25

skipif mysql # not compatible
query I rowsort label-2960
SELECT + SUM ( - 29 ) + 4 + - 37 / + MIN ( ALL - 93 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT - - MAX( + 26 ) DIV + 4 - + 11 + NULLIF ( + 30, - + 25 - + COUNT( 57 ) DIV 91 + + + 90 ) * + 38 * - 67 - - + 34
----
-76351

skipif mysql # not compatible
query I rowsort label-2961
SELECT - - MAX ( + 26 ) / + 4 - + 11 + NULLIF ( + 30, - + 25 - + COUNT ( 57 ) / 91 + + + 90 ) * + 38 * - 67 - - + 34
----
-76351

query II rowsort
SELECT DISTINCT + + 6, 1 AS col0
----
6
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2963
SELECT DISTINCT 35 * CASE 96 WHEN - + 11 + - 13 THEN + 58 WHEN - + 95 THEN + COALESCE ( + CAST( + + 7 AS SIGNED ), + 72 * - COUNT( * ), 31 ) + + 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT 35 * CASE 96 WHEN - + 11 + - 13 THEN + 58 WHEN - + 95 THEN + COALESCE ( + CAST ( + + 7 AS INTEGER ), + 72 * - COUNT ( * ), 31 ) + + 19 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT 57 * - - 58 + 93 + + + SUM( COALESCE ( + - 91, + ( 11 ), - 47 ) ) DIV + 91 + - + 27 * - 66 * - 71 + - - 61
----
-123063

skipif mysql # not compatible
query I rowsort label-2964
SELECT 57 * - - 58 + 93 + + + SUM ( COALESCE ( + - 91, + ( 11 ), - 47 ) ) / + 91 + - + 27 * - 66 * - 71 + - - 61
----
-123063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT ALL + MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT + 28 * + - 43 AS col2, 1 AS col2
----
-1204
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT 48 * COUNT( * ) + 11
----
59

skipif mysql # not compatible
query I rowsort label-2967
SELECT 48 * COUNT ( * ) + 11
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT - 52 * 48 AS col2, + SUM( DISTINCT - ( + 47 ) ) AS col1
----
-2496
-47

skipif mysql # not compatible
query II rowsort label-2968
SELECT - 52 * 48 AS col2, + SUM ( DISTINCT - ( + 47 ) ) AS col1
----
-2496
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT AVG ( DISTINCT + 72 ) * + MAX( ALL + 34 ) * - + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT AVG ( DISTINCT + 72 ) * + MAX ( ALL + 34 ) * - + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2970
SELECT MAX( 84 ) AS col2, + 48 + ( COUNT( * ) )
----
84
49

skipif mysql # not compatible
query II rowsort label-2970
SELECT MAX ( 84 ) AS col2, + 48 + ( COUNT ( * ) )
----
84
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL - COUNT( * ) * - + 1 + + SUM( + 28 )
----
29

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - COUNT ( * ) * - + 1 + + SUM ( + 28 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT + 16 + - SUM( CAST( 46 AS SIGNED ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2972
SELECT + 16 + - SUM ( CAST ( 46 AS INTEGER ) ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT + MIN( DISTINCT - 23 ) + 39 - 97 * - + 41 * + 10 * 66, 18 + 25 AS col1
----
2624836
43

skipif mysql # not compatible
query II rowsort label-2973
SELECT + MIN ( DISTINCT - 23 ) + 39 - 97 * - + 41 * + 10 * 66, 18 + 25 AS col1
----
2624836
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT - 51 DIV + - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT - 51 / + - 74 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL NULLIF ( - COUNT( * ), + COALESCE ( 8, 75, + - COUNT( * ) ) * CASE - + 87 WHEN + 63 / COALESCE ( - CAST( NULL AS SIGNED ), + 67 * - 48 / - + 8 ) THEN NULL ELSE - ( 15 ) END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL NULLIF ( - COUNT ( * ), + COALESCE ( 8, 75, + - COUNT ( * ) ) * CASE - + 87 WHEN + 63 / COALESCE ( - CAST ( NULL AS INTEGER ), + 67 * - 48 / - + 8 ) THEN NULL ELSE - ( 15 ) END ) AS col1
----
-1

query I rowsort
SELECT DISTINCT ( - + 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT + 56 + - 31, ( 64 ) + - NULLIF ( - + 53, 3 * + CASE 4 WHEN + + 5 THEN + 20 END + + - 34 / 80 * + + 70 ) * MAX( ALL - 5 ) col2
----
25
-201

skipif mysql # not compatible
query II rowsort label-2977
SELECT + 56 + - 31, ( 64 ) + - NULLIF ( - + 53, 3 * + CASE 4 WHEN + + 5 THEN + 20 END + + - 34 / 80 * + + 70 ) * MAX ( ALL - 5 ) col2
----
25
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT + 31 * + 78 * + COUNT( * ) / - - 65 * - CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT + 31 * + 78 * + COUNT ( * ) / - - 65 * - CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT DISTINCT COUNT( DISTINCT 85 ) AS col0, MAX( 51 )
----
1
51

skipif mysql # not compatible
query II rowsort label-2979
SELECT DISTINCT COUNT ( DISTINCT 85 ) AS col0, MAX ( 51 )
----
1
51

query II rowsort
SELECT - 77 * + 77, 73 + 9 AS col0
----
-5929
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT - - 64 + + + 89 AS col1
----
153

query II rowsort
SELECT DISTINCT - 53 * ( - 32 ) AS col0, + 55 * + 81
----
1696
4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2984
SELECT - 44 * - 78 col1, 23 * + 53 - - 15 - + CAST( + ( - 61 ) AS SIGNED ) DIV + - COUNT( * )
----
3432
1173

skipif mysql # not compatible
query II rowsort label-2984
SELECT - 44 * - 78 col1, 23 * + 53 - - 15 - + CAST ( + ( - 61 ) AS INTEGER ) / + - COUNT ( * )
----
3432
1173

query II rowsort
SELECT - - 15 + - 46 AS col1, 98 + - 78 * - + 78 * + 52 AS col0
----
-31
316466

onlyif mysql # aggregate syntax: 
query II rowsort label-2986
SELECT DISTINCT + MIN( + - 10 ), + 75 AS col0
----
-10
75

skipif mysql # not compatible
query II rowsort label-2986
SELECT DISTINCT + MIN ( + - 10 ), + 75 AS col0
----
-10
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + 2 + COUNT( * ) * + ( - - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-2987
SELECT + 2 + COUNT ( * ) * + ( - - COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT - 46 * 21 * + 85 * - COUNT( * )
----
82110

skipif mysql # not compatible
query I rowsort label-2988
SELECT - 46 * 21 * + 85 * - COUNT ( * )
----
82110

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + COUNT( * ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-2989
SELECT + COUNT ( * ) + + 31
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - MIN( DISTINCT + + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-2990
SELECT - MIN ( DISTINCT + + 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT - SUM( + 89 ) DIV COALESCE ( - + 62, + 91 DIV + + 3 * - - COUNT( * ) DIV - 42 + + + 75 * + 66 + + + 90 - - 69 * + 86, - ( - + CAST( + - 10 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT - SUM ( + 89 ) / COALESCE ( - + 62, + 91 / + + 3 * - - COUNT ( * ) / - 42 + + + 75 * + 66 + + + 90 - - 69 * + 86, - ( - + CAST ( + - 10 AS INTEGER ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT ALL + - 44 DIV + + 2 + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + - 44 / + + 2 + + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT + ( + SUM( 74 ) )
----
74

skipif mysql # not compatible
query I rowsort label-2993
SELECT + ( + SUM ( 74 ) )
----
74

query I rowsort
SELECT ALL + + 38
----
38

query I rowsort
SELECT - 65 * 34 AS col1
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL MIN( - + 83 ) * - 8 * ( - + 32 )
----
-21248

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL MIN ( - + 83 ) * - 8 * ( - + 32 )
----
-21248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT CAST( 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-2997
SELECT CAST ( 92 AS INTEGER )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT ALL 97 DIV 18 + 81
----
86

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL 97 / 18 + 81
----
86

query I rowsort
SELECT + ( 63 ) AS col1
----
63

query I rowsort
SELECT ( - 23 ) col2
----
-23

query I rowsort
SELECT 62 * 7 - + 16
----
418

query I rowsort
SELECT + 11 * - 75
----
-825

query I rowsort
SELECT ( + 8 )
----
8

query I rowsort
SELECT + 28 + - 74 + + CASE - 93 WHEN + ( + 38 ) * - 97 * + - 93 + 50 + + 88 * + CASE WHEN ( NULL ) = NULL THEN 55 ELSE 20 END * 1 THEN + + 20 WHEN + - 35 THEN NULL END * - + 83
----
NULL

query I rowsort
SELECT ( - ( - 71 ) ) AS col2
----
71

query I rowsort
SELECT + 75 - + - 23 + - 1 AS col2
----
97

query I rowsort
SELECT ( 23 ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL - ( 7 ) * + NULLIF ( + - COUNT( * ), 40 * 76 ) + + - MAX( - - ( - + 78 ) ) + + + 35 - + COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - ( 7 ) * + NULLIF ( + - COUNT ( * ), 40 * 76 ) + + - MAX ( - - ( - + 78 ) ) + + + 35 - + COUNT ( * )
----
119

query I rowsort
SELECT + 45 * - 27
----
-1215

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3010
SELECT + NULLIF ( + 11, + SUM( - CAST( + + 94 AS DECIMAL ) ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3010
SELECT + NULLIF ( + 11, + SUM ( - CAST ( + + 94 AS REAL ) ) ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT + 64 * 15 + + - COALESCE ( + 2, + 90 + + ( - 61 ) * - COUNT( * ) ) AS col0
----
958

skipif mysql # not compatible
query I rowsort label-3011
SELECT + 64 * 15 + + - COALESCE ( + 2, + 90 + + ( - 61 ) * - COUNT ( * ) ) AS col0
----
958

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT - SUM( + - 83 ) - + 18 + - - 73 * - 37 col1
----
-2636

skipif mysql # not compatible
query I rowsort label-3012
SELECT - SUM ( + - 83 ) - + 18 + - - 73 * - 37 col1
----
-2636

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + - 10 * COUNT( ALL - 74 ) * - ( - 85 ) AS col0
----
-850

skipif mysql # not compatible
query I rowsort label-3013
SELECT + - 10 * COUNT ( ALL - 74 ) * - ( - 85 ) AS col0
----
-850

query I rowsort
SELECT - - ( - 3 ) AS col0
----
-3

query I rowsort
SELECT ALL - 24 * - 22
----
528

query I rowsort
SELECT DISTINCT + 66 * - 16
----
-1056

query I rowsort
SELECT DISTINCT - + 8 * + 68 AS col2
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT MIN( + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT MIN ( + 56 ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT 4 DIV + 93 + 62 - + - 8 * + + 86 AS col1
----
750

skipif mysql # not compatible
query I rowsort label-3019
SELECT 4 / + 93 + 62 - + - 8 * + + 86 AS col1
----
750

query I rowsort
SELECT - 3 + + 79 * - + ( + + 64 )
----
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - 78 * - 28 + COUNT( * ) + - 59 + + 79 + + COUNT( * ) * + 69 + - + COUNT( * ) * + + COUNT( * )
----
2273

skipif mysql # not compatible
query I rowsort label-3021
SELECT - 78 * - 28 + COUNT ( * ) + - 59 + + 79 + + COUNT ( * ) * + 69 + - + COUNT ( * ) * + + COUNT ( * )
----
2273

query I rowsort
SELECT + 17 + 32 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - COUNT( ALL + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-3023
SELECT - COUNT ( ALL + 12 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3024
SELECT ALL + COALESCE ( + + ( CAST( NULL AS SIGNED ) ), - + COUNT( * ), + - 34 DIV 22 ) + - + 3
----
-4

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL + COALESCE ( + + ( CAST ( NULL AS INTEGER ) ), - + COUNT ( * ), + - 34 / 22 ) + - + 3
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT COUNT( * ) - + SUM( DISTINCT + 36 ) + 87 + - + CAST( NULL AS SIGNED ) + - - 91 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT COUNT ( * ) - + SUM ( DISTINCT + 36 ) + 87 + - + CAST ( NULL AS INTEGER ) + - - 91 * + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 56, + NULLIF ( + - CASE - 67 WHEN - 57 THEN 10 + 91 END, - - 20 + ( 44 ) ) ) * 15
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT - 20 + MAX( DISTINCT + 31 )
----
11

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 20 + MAX ( DISTINCT + 31 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ALL - - 90 * 53 + - MAX( + ( 2 ) ) AS col2
----
4768

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - - 90 * 53 + - MAX ( + ( 2 ) ) AS col2
----
4768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT 53 + - COUNT( * ) DIV 54 DIV - - COUNT( * ) * 69 + - 36 - 16 col2
----
1

skipif mysql # not compatible
query I rowsort label-3029
SELECT 53 + - COUNT ( * ) / 54 / - - COUNT ( * ) * 69 + - 36 - 16 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL - 93 + + SUM( DISTINCT ( + + 84 ) ) + - COUNT( * ) + ( 93 )
----
83

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 93 + + SUM ( DISTINCT ( + + 84 ) ) + - COUNT ( * ) + ( 93 )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3031
SELECT 93 DIV - COUNT( * ) + - 58 * + + 35 * - + 93 AS col0, COUNT( * ) + - + 29 - - COUNT( - 15 ) * + 32 DIV - + 96 DIV COUNT( * )
----
188697
-28

skipif mysql # not compatible
query II rowsort label-3031
SELECT 93 / - COUNT ( * ) + - 58 * + + 35 * - + 93 AS col0, COUNT ( * ) + - + 29 - - COUNT ( - 15 ) * + 32 / - + 96 / COUNT ( * )
----
188697
-28

query I rowsort
SELECT ALL + ( - 16 ) * - 41
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT 3 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3033
SELECT 3 + - COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT - 62 * - 23 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT - 62 * - 23 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL + ( + 36 ) - - + COUNT( * ) * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL + ( + 36 ) - - + COUNT ( * ) * + COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3036
SELECT - CAST( - 40 AS SIGNED ) * + + COUNT( * ) * - 29 + - + 64 + 20 + - 70 + + + 32 * + 40 / + + 20 + - + CAST( NULL AS SIGNED ) / - 1 + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT - CAST ( - 40 AS INTEGER ) * + + COUNT ( * ) * - 29 + - + 64 + 20 + - 70 + + + 32 * + 40 / + + 20 + - + CAST ( NULL AS INTEGER ) / - 1 + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT ALL 87 DIV + 31
----
2

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL 87 / + 31
----
2

query I rowsort
SELECT DISTINCT 22 * 21
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT COUNT( * ) + 3
----
4

skipif mysql # not compatible
query I rowsort label-3039
SELECT COUNT ( * ) + 3
----
4

query I rowsort
SELECT DISTINCT - 86 col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT 64 * 38 AS col2, + COUNT( 49 ) AS col2
----
2432
1

skipif mysql # not compatible
query II rowsort label-3041
SELECT 64 * 38 AS col2, + COUNT ( 49 ) AS col2
----
2432
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - 59 * - + MIN( + 63 )
----
3717

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - 59 * - + MIN ( + 63 )
----
3717

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - COUNT( * ) + - 34 + + 85 * COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3043
SELECT - COUNT ( * ) + - 34 + + 85 * COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT DISTINCT + 26 * - + 61 * + COUNT( * ) col2
----
-1586

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT + 26 * - + 61 * + COUNT ( * ) col2
----
-1586

query I rowsort
SELECT ALL + 24 col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT + COUNT( * ) * - 98 + - - ( 55 ) AS col0, - 85 * 73 * COUNT( * ) * + - 64 - 65 AS col1
----
-43
397055

skipif mysql # not compatible
query II rowsort label-3046
SELECT + COUNT ( * ) * - 98 + - - ( 55 ) AS col0, - 85 * 73 * COUNT ( * ) * + - 64 - 65 AS col1
----
-43
397055

onlyif mysql # DIV for integer division: 
query II rowsort label-3047
SELECT ALL - 87 DIV - 62 AS col1, ( 47 ) + - 69 AS col1
----
1
-22

skipif mysql # not compatible
query II rowsort label-3047
SELECT ALL - 87 / - 62 AS col1, ( 47 ) + - 69 AS col1
----
1
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT - COALESCE ( + + 16, + + MIN( - ( - 43 ) ) + + - 99 )
----
-16

skipif mysql # not compatible
query I rowsort label-3048
SELECT - COALESCE ( + + 16, + + MIN ( - ( - 43 ) ) + + - 99 )
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-3049
SELECT ALL + 43 DIV 61 AS col2, 50
----
0
50

skipif mysql # not compatible
query II rowsort label-3049
SELECT ALL + 43 / 61 AS col2, 50
----
0
50

query II rowsort
SELECT + 1 * 10 AS col1, 41 AS col0
----
10
41

query I rowsort
SELECT 50 + NULLIF ( - NULLIF ( + 26, + ( - 2 ) ), - 0 ) + 9
----
33

query I rowsort
SELECT + ( + 88 ) + + 66
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT - CAST( NULL AS SIGNED ) + ( - 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT - CAST ( NULL AS INTEGER ) + ( - 28 ) AS col0
----
NULL

query I rowsort
SELECT 29 + 99 AS col2
----
128

query I rowsort
SELECT - ( + 78 ) + + 63
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT 29 + - COUNT( * ) - 98 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3056
SELECT 29 + - COUNT ( * ) - 98 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT DISTINCT COUNT( - + 50 ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT COUNT ( - + 50 ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3058
SELECT ALL + CAST( - 90 AS SIGNED ) - - - 67 + + NULLIF ( - - 48, + + COALESCE ( - 17, + + 63 ) ) AS col2, - 56 * 26
----
-109
-1456

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL + CAST ( - 90 AS INTEGER ) - - - 67 + + NULLIF ( - - 48, + + COALESCE ( - 17, + + 63 ) ) AS col2, - 56 * 26
----
-109
-1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT COALESCE ( - + 19, + + 77 + - - COUNT( * ), - 53 ) * 58 DIV - 46 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3059
SELECT COALESCE ( - + 19, + + 77 + - - COUNT ( * ), - 53 ) * 58 / - 46 AS col1
----
23

query I rowsort
SELECT ALL + 35 * - 15 AS col1
----
-525

query I rowsort
SELECT DISTINCT + 17 * - + 87
----
-1479

query II rowsort
SELECT ALL 63 * 90 - + 43 AS col2, 42
----
5627
42

query II rowsort
SELECT ALL - 90 col1, 23 col1
----
-90
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT CAST( NULL AS SIGNED ) - + + 99 * + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT CAST ( NULL AS INTEGER ) - + + 99 * + - 70
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3065
SELECT 64 DIV + 6 DIV + COUNT( * ) col0, 17
----
10
17

skipif mysql # not compatible
query II rowsort label-3065
SELECT 64 / + 6 / + COUNT ( * ) col0, 17
----
10
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT 35 * - MAX( DISTINCT + - 49 ), - 98 AS col2
----
1715
-98

skipif mysql # not compatible
query II rowsort label-3066
SELECT 35 * - MAX ( DISTINCT + - 49 ), - 98 AS col2
----
1715
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - COUNT( * ) + + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3067
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT + 87 AS col2, + 14 / + CASE 86 WHEN + CASE 1 WHEN + 37 / - 68 THEN + 92 END - 56 THEN + - 49 END + + 76 / - - COUNT( * ) * + SUM( - 83 )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-3068
SELECT + 87 AS col2, + 14 / + CASE 86 WHEN + CASE 1 WHEN + 37 / - 68 THEN + 92 END - 56 THEN + - 49 END + + 76 / - - COUNT ( * ) * + SUM ( - 83 )
----
87
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3069
SELECT - CASE + COUNT( * ) WHEN + COUNT( * ) * NULLIF ( - + COUNT( * ), + 65 ) - - 8 DIV 70 THEN - 33 * - 52 WHEN 26 THEN + SUM( DISTINCT - 14 ) DIV - - 4 ELSE MAX( DISTINCT - 33 ) + + + COUNT( DISTINCT - 76 ) DIV - 83 END DIV + - 98 AS col2, - 2 * + + COUNT( * )
----
0
-2

skipif mysql # not compatible
query II rowsort label-3069
SELECT - CASE + COUNT ( * ) WHEN + COUNT ( * ) * NULLIF ( - + COUNT ( * ), + 65 ) - - 8 / 70 THEN - 33 * - 52 WHEN 26 THEN + SUM ( DISTINCT - 14 ) / - - 4 ELSE MAX ( DISTINCT - 33 ) + + + COUNT ( DISTINCT - 76 ) / - 83 END / + - 98 AS col2, - 2 * + + COUNT ( * )
----
0
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3070
SELECT ALL + CAST( NULL AS SIGNED ) * + 7 * + NULLIF ( - - NULLIF ( + + 66, - MIN( + 30 ) * 10 ), - + MAX( ALL - 83 ) ) / + + 97 * + CAST( - COUNT( * ) AS SIGNED ), 24 + + 23 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3070
SELECT ALL + CAST ( NULL AS INTEGER ) * + 7 * + NULLIF ( - - NULLIF ( + + 66, - MIN ( + 30 ) * 10 ), - + MAX ( ALL - 83 ) ) / + + 97 * + CAST ( - COUNT ( * ) AS INTEGER ), 24 + + 23 AS col1
----
NULL
47

query I rowsort
SELECT - 62 - - - 2 AS col2
----
-64

query I rowsort
SELECT + + NULLIF ( 42, + 83 ) AS col2
----
42

query I rowsort
SELECT ALL + + 75 AS col1
----
75

query I rowsort
SELECT ALL + 8 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT - - 27 DIV + + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT - - 27 / + + 33 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT ALL + COALESCE ( - COUNT( + 32 ), 67 + - 1, CAST( NULL AS SIGNED ) ) + 25 * 20
----
499

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + COALESCE ( - COUNT ( + 32 ), 67 + - 1, CAST ( NULL AS INTEGER ) ) + 25 * 20
----
499

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3077
SELECT DISTINCT - + 37 / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - + 37 / CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 47 + - 19
----
28

query II rowsort
SELECT + 42 + - + 27 + 95, - 0 AS col2
----
110
0

query II rowsort
SELECT + 13, 95 AS col1
----
13
95

query I rowsort
SELECT + 69 * + + 24
----
1656

query I rowsort
SELECT ALL 43 + - + 38 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT + 64 * + MIN( - 90 ) + ( + + 46 ) + - + 44 + + - 26 AS col2
----
-5784

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + 64 * + MIN ( - 90 ) + ( + + 46 ) + - + 44 + + - 26 AS col2
----
-5784

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT + - NULLIF ( - 69, + + 69 + + 51 * + 18 * 41 + - MAX( DISTINCT - 74 ) * - 51 + - 79 ) + 88
----
157

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT + - NULLIF ( - 69, + + 69 + + 51 * + 18 * 41 + - MAX ( DISTINCT - 74 ) * - 51 + - 79 ) + 88
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT ALL + + 82 + + 91 DIV - + 29 + - 16 * - 87 AS col0
----
1471

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + + 82 + + 91 / - + 29 + - 16 * - 87 AS col0
----
1471

query I rowsort
SELECT ALL - ( - 13 ) + - - 36 AS col0
----
49

query I rowsort
SELECT - + 65 + - 99 AS col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + CASE WHEN NULL = COUNT( * ) AND 45 IS NOT NULL THEN + 75 END * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT + CASE WHEN NULL = COUNT ( * ) AND 45 IS NOT NULL THEN + 75 END * - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT - - CAST( + 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-3089
SELECT - - CAST ( + 66 AS INTEGER )
----
66

query I rowsort
SELECT - 15 + - 82 + - 72 - 39 AS col2
----
-208

query II rowsort
SELECT - 32, 71 col0
----
-32
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT + 99 - - 10 - + SUM( + NULLIF ( + 68, + + 88 ) ) * + 32 - + + 68 * - - NULLIF ( + 3, - - 47 )
----
-2271

skipif mysql # not compatible
query I rowsort label-3092
SELECT + 99 - - 10 - + SUM ( + NULLIF ( + 68, + + 88 ) ) * + 32 - + + 68 * - - NULLIF ( + 3, - - 47 )
----
-2271

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT DISTINCT 23 DIV + 19 col2
----
1

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT 23 / + 19 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3094
SELECT + 52 + - CAST( NULL AS DECIMAL ) * + + COUNT( * ) * - 55 * - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT + 52 + - CAST ( NULL AS REAL ) * + + COUNT ( * ) * - 55 * - - 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT ALL 58 * 44, + 90 * + MIN( + - 11 ) AS col2
----
2552
-990

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL 58 * 44, + 90 * + MIN ( + - 11 ) AS col2
----
2552
-990

query II rowsort
SELECT DISTINCT 63 AS col1, - 44 AS col1
----
63
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT + COUNT( * ) + + 62 + + - 23 * 39 AS col0
----
-834

skipif mysql # not compatible
query I rowsort label-3097
SELECT + COUNT ( * ) + + 62 + + - 23 * 39 AS col0
----
-834

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT 68 DIV - - ( - 19 ) + + - 13 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3098
SELECT 68 / - - ( - 19 ) + + - 13 AS col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT + ( NULLIF ( - 20, - 30 * + 95 ) ) DIV + COUNT( * ) + + + 2 - + 79 col0
----
-97

skipif mysql # not compatible
query I rowsort label-3099
SELECT + ( NULLIF ( - 20, - 30 * + 95 ) ) / + COUNT ( * ) + + + 2 - + 79 col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3100
SELECT + COUNT( * ) * - 47 * - 26 * 88, + ( + + 45 ) AS col0
----
107536
45

skipif mysql # not compatible
query II rowsort label-3100
SELECT + COUNT ( * ) * - 47 * - 26 * 88, + ( + + 45 ) AS col0
----
107536
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT - ( + COUNT( * ) ) * + CAST( - 25 AS SIGNED ) * - + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3101
SELECT - ( + COUNT ( * ) ) * + CAST ( - 25 AS INTEGER ) * - + COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT ( 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3103
SELECT - ( - 97 ) * - + 27 - + CAST( + + CASE COUNT( * ) WHEN + CAST( - + 10 AS SIGNED ) THEN 58 WHEN - 87 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT - ( - 97 ) * - + 27 - + CAST ( + + CASE COUNT ( * ) WHEN + CAST ( - + 10 AS INTEGER ) THEN 58 WHEN - 87 THEN NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT + 45 col2, - 39 col1
----
45
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL + 50 * + MIN( DISTINCT + ( + - 32 ) ) + - 58 + + 88 * + 72
----
4678

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + 50 * + MIN ( DISTINCT + ( + - 32 ) ) + - 58 + + 88 * + 72
----
4678

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + ( 35 ) * - + 58 + - - COUNT( * ) + - 99 AS col2
----
-2128

skipif mysql # not compatible
query I rowsort label-3106
SELECT + ( 35 ) * - + 58 + - - COUNT ( * ) + - 99 AS col2
----
-2128

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT 22 * - 82 * - 83 - COUNT( * ) + - COUNT( * ) + 24 * COUNT( * ) AS col1
----
149754

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT 22 * - 82 * - 83 - COUNT ( * ) + - COUNT ( * ) + 24 * COUNT ( * ) AS col1
----
149754

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3108
SELECT + 69 AS col1, - 89 / 26 + - CAST( NULL AS DECIMAL ) + 42 * 49 * + 39
----
69
NULL

skipif mysql # not compatible
query II rowsort label-3108
SELECT + 69 AS col1, - 89 / 26 + - CAST ( NULL AS REAL ) + 42 * 49 * + 39
----
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT - + 15 DIV - 15 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3109
SELECT - + 15 / - 15 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3110
SELECT + COUNT( * ), NULLIF ( 94, + CAST( + 60 AS SIGNED ) * - 78 + ( + - 90 ) ) + + - 34 AS col1, + + COUNT( * ) AS col1
----
1
60
1

skipif mysql # not compatible
query III rowsort label-3110
SELECT + COUNT ( * ), NULLIF ( 94, + CAST ( + 60 AS INTEGER ) * - 78 + ( + - 90 ) ) + + - 34 AS col1, + + COUNT ( * ) AS col1
----
1
60
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3111
SELECT - + 30 + - 38 * - COALESCE ( - - 75, + - CAST( - 82 AS SIGNED ), CAST( NULL AS SIGNED ), MAX( ALL 6 ) ), 68 AS col0
----
2820
68

skipif mysql # not compatible
query II rowsort label-3111
SELECT - + 30 + - 38 * - COALESCE ( - - 75, + - CAST ( - 82 AS INTEGER ), CAST ( NULL AS INTEGER ), MAX ( ALL 6 ) ), 68 AS col0
----
2820
68

query I rowsort
SELECT DISTINCT 30 * - ( + 80 ) + + 62 * 3 AS col0
----
-2214

query I rowsort
SELECT - - 55 + + 2 * + 73
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3114
SELECT ALL + + COUNT( * ) * - 45 DIV - 58 - + 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + + COUNT ( * ) * - 45 / - 58 - + 52 AS col1
----
-52

query I rowsort
SELECT - 46 * 95 + 3 AS col0
----
-4367

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT ALL - 0 DIV - 76 * 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - 0 / - 76 * 22 AS col0
----
0

query I rowsort
SELECT - 26 col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3118
SELECT 89 * - + 30 - + 57 + - 98 AS col2, + COUNT( * )
----
-2825
1

skipif mysql # not compatible
query II rowsort label-3118
SELECT 89 * - + 30 - + 57 + - 98 AS col2, + COUNT ( * )
----
-2825
1

query II rowsort
SELECT 6 AS col0, + 92 AS col0
----
6
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT + CAST( - 68 AS SIGNED ) + - 82 AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-3120
SELECT + CAST ( - 68 AS INTEGER ) + - 82 AS col2
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL + - 54 - NULLIF ( 34, COUNT( * ) + COUNT( * ) ) + - 62 * + CASE - 76 WHEN 21 * - COUNT( * ) + - 42 + - + 44 THEN + + 14 * - CASE COUNT( * ) WHEN ( - 62 ) * + CASE CAST( - 97 AS SIGNED ) WHEN - 6 * + 13 THEN + + 81 * 76 + + - COALESCE ( + 84, + ( - 22 ), MIN( ALL + 74 ) ) ELSE NULL END + + 77 + - 4 THEN CAST( 49 AS SIGNED ) WHEN + 91 - COUNT( * ) / 65 THEN NULL ELSE COUNT( * ) END * - 17 + - 82 WHEN - COUNT( * ) * + 79 + + 98 THEN 28 + - 11 ELSE NULL END * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + - 54 - NULLIF ( 34, COUNT ( * ) + COUNT ( * ) ) + - 62 * + CASE - 76 WHEN 21 * - COUNT ( * ) + - 42 + - + 44 THEN + + 14 * - CASE COUNT ( * ) WHEN ( - 62 ) * + CASE CAST ( - 97 AS INTEGER ) WHEN - 6 * + 13 THEN + + 81 * 76 + + - COALESCE ( + 84, + ( - 22 ), MIN ( ALL + 74 ) ) ELSE NULL END + + 77 + - 4 THEN CAST ( 49 AS INTEGER ) WHEN + 91 - COUNT ( * ) / 65 THEN NULL ELSE COUNT ( * ) END * - 17 + - 82 WHEN - COUNT ( * ) * + 79 + + 98 THEN 28 + - 11 ELSE NULL END * - 33 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3122
SELECT ALL - 40, - CAST( NULL AS SIGNED ) * + - 69 * - - 24 * - 38 AS col2
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-3122
SELECT ALL - 40, - CAST ( NULL AS INTEGER ) * + - 69 * - - 24 * - 38 AS col2
----
-40
NULL

query II rowsort
SELECT - + 84, - 46 AS col1
----
-84
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3124
SELECT + - 39 + + 40 - - COALESCE ( - 67, ( - 55 ) + COUNT( * ) - - 85 ) DIV - 84 + - COUNT( * ) * - 89, 1 * + + 44 AS col1
----
90
44

skipif mysql # not compatible
query II rowsort label-3124
SELECT + - 39 + + 40 - - COALESCE ( - 67, ( - 55 ) + COUNT ( * ) - - 85 ) / - 84 + - COUNT ( * ) * - 89, 1 * + + 44 AS col1
----
90
44

query II rowsort
SELECT - 58 * + 29 AS col0, 73 AS col2
----
-1682
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT ( COUNT( + 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT ( COUNT ( + 64 ) )
----
1

query I rowsort
SELECT ALL - CASE + - 15 WHEN + 88 THEN NULL ELSE 80 END - + + 15 + 48
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3128
SELECT - 52 + - CASE - COALESCE ( - 19, - CAST( + - 70 AS SIGNED ) ) WHEN + 49 THEN + 31 * - + 95 + - + COUNT( * ) / 65 * - COUNT( * ) * + - ( + ( - COUNT( * ) ) ) + + 39 END + - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT - 52 + - CASE - COALESCE ( - 19, - CAST ( + - 70 AS INTEGER ) ) WHEN + 49 THEN + 31 * - + 95 + - + COUNT ( * ) / 65 * - COUNT ( * ) * + - ( + ( - COUNT ( * ) ) ) + + 39 END + - 89 col1
----
NULL

query II rowsort
SELECT DISTINCT - 44 * + - 41, - 7 AS col0
----
1804
-7

query I rowsort
SELECT - NULLIF ( - 20, - 92 )
----
20

query I rowsort
SELECT + 46 * - 44 * 59 AS col2
----
-119416

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + COUNT( * ) + - + 48 + + COUNT( 21 ) * - 43
----
-90

skipif mysql # not compatible
query I rowsort label-3132
SELECT + COUNT ( * ) + - + 48 + + COUNT ( 21 ) * - 43
----
-90

query I rowsort
SELECT 38 * + 59 AS col2
----
2242

query I rowsort
SELECT 73 + + 31 + 54 * + + 12 * - - 6 + 47
----
4039

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT ALL 4 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL 4 / 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ( COUNT( * ) ) + - 71
----
-70

skipif mysql # not compatible
query I rowsort label-3136
SELECT ( COUNT ( * ) ) + - 71
----
-70

query I rowsort
SELECT DISTINCT 91 + + 58
----
149

query I rowsort
SELECT ALL 62 + + 39 + + 79 + - 49 AS col1
----
131

query I rowsort
SELECT 53 - 34
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT 66 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT 66 / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT - COUNT( * ) - - 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3141
SELECT - COUNT ( * ) - - 84 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3142
SELECT + 90 / + 24 + + CAST( - 43 AS DECIMAL ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT + 90 / + 24 + + CAST ( - 43 AS REAL ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 19 ) AS col1
----
-19

query I rowsort
SELECT DISTINCT - - 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT 35 * + + MAX( DISTINCT + 33 ) + + ( 65 ) AS col1, 89 AS col1
----
1220
89

skipif mysql # not compatible
query II rowsort label-3145
SELECT 35 * + + MAX ( DISTINCT + 33 ) + + ( 65 ) AS col1, 89 AS col1
----
1220
89

onlyif mysql # aggregate syntax: 
query III rowsort label-3146
SELECT DISTINCT 60 + SUM( ALL - 17 ) * - 49 * - + 57 AS col2, 24 + NULLIF ( 75, + 75 ) * 27 AS col1, + + MAX( + 89 ) + - 86
----
-47421
NULL
3

skipif mysql # not compatible
query III rowsort label-3146
SELECT DISTINCT 60 + SUM ( ALL - 17 ) * - 49 * - + 57 AS col2, 24 + NULLIF ( 75, + 75 ) * 27 AS col1, + + MAX ( + 89 ) + - 86
----
-47421
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - SUM( ALL 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - SUM ( ALL 24 )
----
-24

query I rowsort
SELECT COALESCE ( 42, + 79 + - 64 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT ( + 76 ) - - 45 AS col1, ( - 29 ) + + COUNT( * )
----
121
-28

skipif mysql # not compatible
query II rowsort label-3149
SELECT ( + 76 ) - - 45 AS col1, ( - 29 ) + + COUNT ( * )
----
121
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL - + 32 * + - MAX( + - 41 )
----
-1312

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - + 32 * + - MAX ( + - 41 )
----
-1312

query I rowsort
SELECT ALL 87 * - 75
----
-6525

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT 14 * + 45 col1, COUNT( * ) * - + 85
----
630
-85

skipif mysql # not compatible
query II rowsort label-3152
SELECT 14 * + 45 col1, COUNT ( * ) * - + 85
----
630
-85

query I rowsort
SELECT + COALESCE ( - - 5, 2, + 99 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3154
SELECT DISTINCT 71 * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT 71 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT + COUNT( * ) * + COALESCE ( + 70, - 75 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3155
SELECT + COUNT ( * ) * + COALESCE ( + 70, - 75 ) AS col0
----
70

query II rowsort
SELECT ALL 96 AS col2, + ( - ( - - 77 ) )
----
96
-77

query I rowsort
SELECT ALL + 76 * + 71
----
5396

query I rowsort
SELECT 48 * 1
----
48

query I rowsort
SELECT NULLIF ( - 79, - 50 ) + - 20
----
-99

query I rowsort
SELECT 28 + - + 99 col2
----
-71

query II rowsort
SELECT - 9 AS col1, - 80
----
-9
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3162
SELECT 38 + + 61 * 74 DIV - + COUNT( * ) AS col2, - 12 AS col1
----
-4476
-12

skipif mysql # not compatible
query II rowsort label-3162
SELECT 38 + + 61 * 74 / - + COUNT ( * ) AS col2, - 12 AS col1
----
-4476
-12

query II rowsort
SELECT 47 + + 35 * - 44, 20 AS col0
----
-1493
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL + 41 + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + 41 + + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT 63 + + MIN( ALL + - 9 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3165
SELECT 63 + + MIN ( ALL + - 9 ) AS col0
----
54

query I rowsort
SELECT DISTINCT - 14 * + 45 * - - ( 89 ) * + 53
----
-2971710

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT 73 + + 67 + + + 54 * + COUNT( * ) + + ( - 11 ) AS col2
----
183

skipif mysql # not compatible
query I rowsort label-3167
SELECT 73 + + 67 + + + 54 * + COUNT ( * ) + + ( - 11 ) AS col2
----
183

query II rowsort
SELECT ALL 31, - 12 AS col1
----
31
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT - 96 + NULLIF ( 7, - MIN( DISTINCT + - 87 ) * - ( 18 ) - + + 28 )
----
-89

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - 96 + NULLIF ( 7, - MIN ( DISTINCT + - 87 ) * - ( 18 ) - + + 28 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL + 41 + - - MIN( DISTINCT 35 ) + - 44 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + 41 + - - MIN ( DISTINCT 35 ) + - 44 AS col2
----
32

query I rowsort
SELECT 53 + + 23 AS col1
----
76

query I rowsort
SELECT 5 * - - 92 * - 44 - + + 68 AS col0
----
-20308

onlyif mysql # aggregate syntax: 
query II rowsort label-3173
SELECT ALL - COUNT( * ), - 84 + NULLIF ( 28, - 71 - + 63 ) * + + COUNT( * ) + 8 AS col1
----
-1
-48

skipif mysql # not compatible
query II rowsort label-3173
SELECT ALL - COUNT ( * ), - 84 + NULLIF ( 28, - 71 - + 63 ) * + + COUNT ( * ) + 8 AS col1
----
-1
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT + COALESCE ( - ( + CAST( NULL AS SIGNED ) ), 54 ) + - COUNT( * ) + - 8
----
45

skipif mysql # not compatible
query I rowsort label-3174
SELECT + COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), 54 ) + - COUNT ( * ) + - 8
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT + ( - ( + + 70 ) ) AS col2, COUNT( * ) * + - 61 AS col1
----
-70
-61

skipif mysql # not compatible
query II rowsort label-3175
SELECT + ( - ( + + 70 ) ) AS col2, COUNT ( * ) * + - 61 AS col1
----
-70
-61

query I rowsort
SELECT DISTINCT - 57 + + + 18
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - 96 * - 59 * + 68 * - CASE ( - + 80 ) WHEN + 25 * - - 90 + - 4 + + ( + MIN( + + 2 ) ) THEN - 23 + COALESCE ( - + 59, - COALESCE ( + - 62, 93, + 56 * + 53 + + + 96 ) * - 53 ) WHEN + 28 THEN NULL END / + 91 - - ( - 77 ) + + 44 * + 66 + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT - 96 * - 59 * + 68 * - CASE ( - + 80 ) WHEN + 25 * - - 90 + - 4 + + ( + MIN ( + + 2 ) ) THEN - 23 + COALESCE ( - + 59, - COALESCE ( + - 62, 93, + 56 * + 53 + + + 96 ) * - 53 ) WHEN + 28 THEN NULL END / + 91 - - ( - 77 ) + + 44 * + 66 + + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT + MAX( ALL + 36 ) * - 76
----
-2736

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT + MAX ( ALL + 36 ) * - 76
----
-2736

query I rowsort
SELECT - 92 + 10
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3180
SELECT - ( + CASE - + 30 WHEN + NULLIF ( - 23, - 53 ) THEN + NULLIF ( - COALESCE ( + 87, 54 DIV - 34 + + 98 - + MAX( DISTINCT + CAST( 32 AS SIGNED ) ) * 15 * - 58 * + 39 * + 27, 28 ), 49 ) + - CASE - + COUNT( * ) WHEN ( + - 1 ) THEN 41 DIV - COUNT( * ) ELSE NULL END * + + COUNT( * ) + 87 ELSE - 20 * + + NULLIF ( + 44, - ( COALESCE ( COUNT( * ), 23 + COUNT( * ) ) ) * - 26 - - NULLIF ( CAST( ( - ( - 18 ) ) AS DECIMAL ) - CAST( NULL AS SIGNED ), + 25 - + 67 ) ) END ) * 58 col0
----
51040

skipif mysql # not compatible
query I rowsort label-3180
SELECT - ( + CASE - + 30 WHEN + NULLIF ( - 23, - 53 ) THEN + NULLIF ( - COALESCE ( + 87, 54 / - 34 + + 98 - + MAX ( DISTINCT + CAST ( 32 AS INTEGER ) ) * 15 * - 58 * + 39 * + 27, 28 ), 49 ) + - CASE - + COUNT ( * ) WHEN ( + - 1 ) THEN 41 / - COUNT ( * ) ELSE NULL END * + + COUNT ( * ) + 87 ELSE - 20 * + + NULLIF ( + 44, - ( COALESCE ( COUNT ( * ), 23 + COUNT ( * ) ) ) * - 26 - - NULLIF ( CAST ( ( - ( - 18 ) ) AS REAL ) - CAST ( NULL AS INTEGER ), + 25 - + 67 ) ) END ) * 58 col0
----
51040

query I rowsort
SELECT ALL + 33 * - + 45
----
-1485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT COUNT( * ) + + 2 + 78 + - + 41 * + - 18 * + 66
----
48789

skipif mysql # not compatible
query I rowsort label-3183
SELECT COUNT ( * ) + + 2 + 78 + - + 41 * + - 18 * + 66
----
48789

query I rowsort
SELECT DISTINCT 94 - 94 AS col2
----
0

query I rowsort
SELECT ALL - ( - + 53 ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3186
SELECT 98 AS col2, + COUNT( * ) + - + 87 * COALESCE ( - 56, + CAST( NULL AS SIGNED ) DIV - 35 ) * + 4 + + COUNT( * )
----
98
19490

skipif mysql # not compatible
query II rowsort label-3186
SELECT 98 AS col2, + COUNT ( * ) + - + 87 * COALESCE ( - 56, + CAST ( NULL AS INTEGER ) / - 35 ) * + 4 + + COUNT ( * )
----
98
19490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT 14 * 8 + 59 + - ( - 93 ) * 18 + - - 99 * 15 * 90 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT 14 * 8 + 59 + - ( - 93 ) * 18 + - - 99 * 15 * 90 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 65 col2
----
65

query II rowsort
SELECT ALL - 8, - 96 * 63 AS col1
----
-8
-6048

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3190
SELECT + CAST( + 89 AS SIGNED ) * - ( 14 ) + + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT + CAST ( + 89 AS INTEGER ) * - ( 14 ) + + + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT 98 + + 64
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - + CASE WHEN NOT COUNT( * ) IS NOT NULL THEN + 91 * - + 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN + 91 * - + 60 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT - 48 * 92 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT - 48 * 92 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT COUNT( * ) * + 3
----
3

skipif mysql # not compatible
query I rowsort label-3194
SELECT COUNT ( * ) * + 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - COUNT( * ) + 11 + - - 14 + - 68 col1
----
-44

skipif mysql # not compatible
query I rowsort label-3195
SELECT - COUNT ( * ) + 11 + - - 14 + - 68 col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL COALESCE ( - + 4, + - ( + COUNT( * ) ) * + 26, - 12 + - 72 + 34 * - 55 ) * + 80 * 50 AS col2
----
-16000

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL COALESCE ( - + 4, + - ( + COUNT ( * ) ) * + 26, - 12 + - 72 + 34 * - 55 ) * + 80 * 50 AS col2
----
-16000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT - 99 + + + 93 DIV - ( 1 ) * + - COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3197
SELECT - 99 + + + 93 / - ( 1 ) * + - COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT - NULLIF ( 8, ( + 9 ) ) AS col0
----
-8

query I rowsort
SELECT ALL ( - 62 ) * 97
----
-6014

query I rowsort
SELECT ALL 51 + - 48 + - 17 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT DISTINCT + 55 + + COALESCE ( - 94, 44, - 13 ) DIV + 8
----
44

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT + 55 + + COALESCE ( - 94, 44, - 13 ) / + 8
----
44

query I rowsort
SELECT DISTINCT 86 + 3 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL - 10 + - ( + - COUNT( * ) ) + - + 92 * + - 90 AS col1
----
8271

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - 10 + - ( + - COUNT ( * ) ) + - + 92 * + - 90 AS col1
----
8271

query I rowsort
SELECT DISTINCT + 55 + - 58
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3205
SELECT + NULLIF ( 78, - COUNT( * ) ) DIV - ( 67 ) + + 85
----
84

skipif mysql # not compatible
query I rowsort label-3205
SELECT + NULLIF ( 78, - COUNT ( * ) ) / - ( 67 ) + + 85
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3206
SELECT - CAST( NULL AS DECIMAL ) + MAX( + - 80 ) * 25 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT - CAST ( NULL AS REAL ) + MAX ( + - 80 ) * 25 + - 10
----
NULL

query I rowsort
SELECT ALL + 37 * 21 * - 98 AS col0
----
-76146

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - 85 + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3208
SELECT - 85 + COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - MIN( ALL + 89 ) * - COALESCE ( + 84, - 63 ) AS col0
----
7476

skipif mysql # not compatible
query I rowsort label-3209
SELECT - MIN ( ALL + 89 ) * - COALESCE ( + 84, - 63 ) AS col0
----
7476

query I rowsort
SELECT DISTINCT + + 23 * + - 43 * 29 + - 7
----
-28688

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT - + 98 - + - 96 + - 70 * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3211
SELECT - + 98 - + - 96 + - 70 * - COUNT ( * )
----
68

query I rowsort
SELECT - + 93 * - 69 AS col1
----
6417

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT + 44 DIV - 15 + - 99
----
-101

skipif mysql # not compatible
query I rowsort label-3213
SELECT + 44 / - 15 + - 99
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT SUM( - 58 ) AS col2, + 55 AS col2
----
-58
55

skipif mysql # not compatible
query II rowsort label-3214
SELECT SUM ( - 58 ) AS col2, + 55 AS col2
----
-58
55

query II rowsort
SELECT + 35 + + 98, - 87 AS col2
----
133
-87

query I rowsort
SELECT + - 36 AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT ALL + - COALESCE ( - 41, - + 80 DIV + 15 + - 53 - - + NULLIF ( 44, + + 40 ) + + 66 * + + 68 * + 4 )
----
41

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + - COALESCE ( - 41, - + 80 / + 15 + - 53 - - + NULLIF ( 44, + + 40 ) + + 66 * + + 68 * + 4 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT + CAST( COALESCE ( 58, + - 6 + + - 80 + CASE + 93 WHEN - + 71 THEN NULL ELSE + - 19 END - - 60 * - + SUM( + - 35 ), 98, - 57 ) AS SIGNED ) - - 99 AS col1
----
157

skipif mysql # not compatible
query I rowsort label-3218
SELECT + CAST ( COALESCE ( 58, + - 6 + + - 80 + CASE + 93 WHEN - + 71 THEN NULL ELSE + - 19 END - - 60 * - + SUM ( + - 35 ), 98, - 57 ) AS INTEGER ) - - 99 AS col1
----
157

query I rowsort
SELECT ALL - 71 * + 76 * + - 67
----
361532

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL + MIN( - 95 ) * + 4 * - - 51 col0
----
-19380

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + MIN ( - 95 ) * + 4 * - - 51 col0
----
-19380

query I rowsort
SELECT DISTINCT - 27 * 29 - - - 36
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT MAX( - + 67 ) * + 27 AS col2
----
-1809

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT MAX ( - + 67 ) * + 27 AS col2
----
-1809

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT - 17 * - 5 * + COUNT( * ) * 40 col2
----
3400

skipif mysql # not compatible
query I rowsort label-3223
SELECT - 17 * - 5 * + COUNT ( * ) * 40 col2
----
3400

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT + ( + 26 ) * - 93 * + 36 + + - COUNT( * ) AS col1, + SUM( DISTINCT 40 )
----
-87049
40

skipif mysql # not compatible
query II rowsort label-3224
SELECT + ( + 26 ) * - 93 * + 36 + + - COUNT ( * ) AS col1, + SUM ( DISTINCT 40 )
----
-87049
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT MIN( DISTINCT + 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3225
SELECT MIN ( DISTINCT + 69 ) AS col1
----
69

query I rowsort
SELECT + 93 * - + 13 col0
----
-1209

query I rowsort
SELECT + ( 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL COUNT( * ) * + - ( + 12 ) * + - 40 + - + COUNT( DISTINCT - 96 )
----
479

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL COUNT ( * ) * + - ( + 12 ) * + - 40 + - + COUNT ( DISTINCT - 96 )
----
479

query I rowsort
SELECT + 87 - - - 46 AS col2
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3230
SELECT DISTINCT CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT DISTINCT 10 + - 93 - 12 - + ( + - 17 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL MAX( DISTINCT + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL MAX ( DISTINCT + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL 45 + 26 - - + 76 - 50 * 74 * + MIN( - 53 )
----
196247

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL 45 + 26 - - + 76 - 50 * 74 * + MIN ( - 53 )
----
196247

query I rowsort
SELECT - ( + 18 ) col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + COUNT( * ) + - - 7 + - 10 * + + 61 col2
----
-602

skipif mysql # not compatible
query I rowsort label-3235
SELECT + COUNT ( * ) + - - 7 + - 10 * + + 61 col2
----
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + ( + COUNT( * ) ) - - - 49 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3236
SELECT + ( + COUNT ( * ) ) - - - 49 AS col2
----
-48

query I rowsort
SELECT ALL 39 * - - 64 AS col1
----
2496

query I rowsort
SELECT + 3 + + 83 - + - ( + 90 ) col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - ( - ( + COUNT( * ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT - ( - ( + COUNT ( * ) ) ) col1
----
1

query I rowsort
SELECT + ( + 17 ) * 78
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + MIN( 45 ) + + - COUNT( * ) * - + ( - 22 ) * + COUNT( DISTINCT 20 )
----
23

skipif mysql # not compatible
query I rowsort label-3241
SELECT + MIN ( 45 ) + + - COUNT ( * ) * - + ( - 22 ) * + COUNT ( DISTINCT 20 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL - MIN( - 10 ) - 93 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - MIN ( - 10 ) - 93 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + MIN( ALL - 67 ) + 8 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3243
SELECT + MIN ( ALL - 67 ) + 8 AS col2
----
-59

query I rowsort
SELECT + + 88 + 93 AS col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT - + COUNT( * ) + + + CASE WHEN 98 >= NULL THEN - 60 + 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT - + COUNT ( * ) + + + CASE WHEN 98 >= NULL THEN - 60 + 49 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 75 - + ( - 49 )
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL - 16 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - 16 / + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT + COUNT( * ) * + 68
----
68

skipif mysql # not compatible
query I rowsort label-3248
SELECT + COUNT ( * ) * + 68
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT + - 11 / + 6 + + 77 * COALESCE ( - 11, + 48, + COUNT( * ) + - + 18 ) * - CASE + + 40 WHEN + + COUNT( * ) THEN 92 * 36 ELSE NULL END AS col2, 3 + - 22 + ( + 79 ) AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3249
SELECT + - 11 / + 6 + + 77 * COALESCE ( - 11, + 48, + COUNT ( * ) + - + 18 ) * - CASE + + 40 WHEN + + COUNT ( * ) THEN 92 * 36 ELSE NULL END AS col2, 3 + - 22 + ( + 79 ) AS col0
----
NULL
60

query I rowsort
SELECT + 41 * + + 92 AS col0
----
3772

query I rowsort
SELECT CASE 90 WHEN + - 49 - 76 THEN NULL WHEN + - 27 THEN + - NULLIF ( + 0, + 69 ) + 29 ELSE NULL END
----
NULL

query I rowsort
SELECT CASE - NULLIF ( - 38, + ( + + 71 ) ) WHEN 14 * - - 20 / + + ( - + ( 11 ) ) * 16 + - 86 THEN - 84 * - 29 - + - 21 + - 80 END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3253
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT + - CAST( - COALESCE ( + ( + CAST( + + 53 AS SIGNED ) ), + + 11 + - + 34 ) AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3254
SELECT + - CAST ( - COALESCE ( + ( + CAST ( + + 53 AS INTEGER ) ), + + 11 + - + 34 ) AS INTEGER ) AS col2
----
53

query I rowsort
SELECT - 99 * + 51 * + + 97 * + 8 AS col1
----
-3918024

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - 39 + + 3 + + ( + COUNT( * ) ) - + 57 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3256
SELECT - 39 + + 3 + + ( + COUNT ( * ) ) - + 57 AS col2
----
-92

query I rowsort
SELECT DISTINCT + + 78 AS col0
----
78

query I rowsort
SELECT - 57 * + 52 * + 89 - 67 AS col1
----
-263863

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT 38 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT 38 / - - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL - SUM( 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL - SUM ( 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3261
SELECT 36, + 1 * + + CAST( NULL AS SIGNED ) + + 42 * - COUNT( * ) + - + 68 * + 43 + 92 / 22 - + 43 - + - CASE + - 6 WHEN + 35 + 30 + 4 THEN NULL WHEN 15 - + 24 THEN 29 + + - CASE 22 WHEN 58 THEN NULL ELSE + 55 * + 51 * - 13 * - 97 END - ( - 53 ) * + 40 ELSE NULL END col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-3261
SELECT 36, + 1 * + + CAST ( NULL AS INTEGER ) + + 42 * - COUNT ( * ) + - + 68 * + 43 + 92 / 22 - + 43 - + - CASE + - 6 WHEN + 35 + 30 + 4 THEN NULL WHEN 15 - + 24 THEN 29 + + - CASE 22 WHEN 58 THEN NULL ELSE + 55 * + 51 * - 13 * - 97 END - ( - 53 ) * + 40 ELSE NULL END col0
----
36
NULL

query II rowsort
SELECT ALL - 93 col2, + 17
----
-93
17

query I rowsort
SELECT DISTINCT + 27 + + 47 + - 0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL - ( - - 4 ) + - 65 * - 4 * - + COUNT( * ) AS col2
----
-264

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - ( - - 4 ) + - 65 * - 4 * - + COUNT ( * ) AS col2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT MIN( - + 89 ) + - - 22 * - 59
----
-1387

skipif mysql # not compatible
query I rowsort label-3265
SELECT MIN ( - + 89 ) + - - 22 * - 59
----
-1387

query I rowsort
SELECT ALL + 9 + ( - 25 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3267
SELECT 53 DIV - NULLIF ( - COALESCE ( - - 61, + 76 * - 7 * - MIN( ALL + CAST( + 40 AS SIGNED ) ), - 76 + - - COUNT( * ) ), 97 + + 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3267
SELECT 53 / - NULLIF ( - COALESCE ( - - 61, + 76 * - 7 * - MIN ( ALL + CAST ( + 40 AS INTEGER ) ), - 76 + - - COUNT ( * ) ), 97 + + 98 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT MAX( - - 74 ) * - - ( + + 69 ) + - COUNT( * )
----
5105

skipif mysql # not compatible
query I rowsort label-3268
SELECT MAX ( - - 74 ) * - - ( + + 69 ) + - COUNT ( * )
----
5105

query I rowsort
SELECT ALL 98 * - - 50
----
4900

query II rowsort
SELECT - 71 AS col0, 75 + - + 97 AS col0
----
-71
-22

query I rowsort
SELECT ALL 92 - + 79
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT 79 DIV + + 58 col2
----
1

skipif mysql # not compatible
query I rowsort label-3272
SELECT 79 / + + 58 col2
----
1

query II rowsort
SELECT 52 AS col0, + 61
----
52
61

query I rowsort
SELECT ALL + 83 * + 80
----
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - 54 * COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3275
SELECT - 54 * COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3276
SELECT - 83, + NULLIF ( + MAX( ALL + - 15 ), - ( - + 50 ) * - 73 ) DIV + + 43 AS col2
----
-83
0

skipif mysql # not compatible
query II rowsort label-3276
SELECT - 83, + NULLIF ( + MAX ( ALL + - 15 ), - ( - + 50 ) * - 73 ) / + + 43 AS col2
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL COUNT( - 2 )
----
1

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL COUNT ( - 2 )
----
1

query I rowsort
SELECT ALL 42 * - 8 col0
----
-336

query II rowsort
SELECT - + 50, 16 * - - NULLIF ( - 34, + 7 ) AS col0
----
-50
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT NULLIF ( 31, 67 * - COUNT( DISTINCT 34 ) ) col0
----
31

skipif mysql # not compatible
query I rowsort label-3280
SELECT NULLIF ( 31, 67 * - COUNT ( DISTINCT 34 ) ) col0
----
31

query I rowsort
SELECT ALL - ( 98 ) AS col0
----
-98

query I rowsort
SELECT ALL - 26 + + 0 + - + 26 - + 30 AS col1
----
-82

query I rowsort
SELECT DISTINCT + 52 + ( - - 10 ) AS col0
----
62

query I rowsort
SELECT DISTINCT 26 + - - 52 * - 91
----
-4706

onlyif mysql # aggregate syntax: 
query II rowsort label-3285
SELECT COUNT( * ), 4 - ( MAX( - + ( + - 31 ) ) ) AS col0
----
1
-27

skipif mysql # not compatible
query II rowsort label-3285
SELECT COUNT ( * ), 4 - ( MAX ( - + ( + - 31 ) ) ) AS col0
----
1
-27

query I rowsort
SELECT ALL 44 + - - 94 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT 83 * + 57 * - + 68 * - MAX( - - 29 ) AS col1
----
9329532

skipif mysql # not compatible
query I rowsort label-3287
SELECT 83 * + 57 * - + 68 * - MAX ( - - 29 ) AS col1
----
9329532

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT - COUNT( * ) + - 84 col2, - 9
----
-85
-9

skipif mysql # not compatible
query II rowsort label-3288
SELECT - COUNT ( * ) + - 84 col2, - 9
----
-85
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + 37 * + COUNT( * ) + - ( + 34 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3289
SELECT + 37 * + COUNT ( * ) + - ( + 34 ) AS col1
----
3

query II rowsort
SELECT + - COALESCE ( 85, + 62 ) * - 79 + ( - 76 ) col2, - 98
----
6639
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT - CAST( NULL AS SIGNED ) * + + 15 * - - 5 * - + 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT - CAST ( NULL AS INTEGER ) * + + 15 * - - 5 * - + 78 col2
----
NULL

query II rowsort
SELECT 67, + 35 + - - 40 AS col1
----
67
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3293
SELECT 83 DIV + - COUNT( * ) + - + 48 AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-3293
SELECT 83 / + - COUNT ( * ) + - + 48 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT COUNT( * ) + + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT COUNT ( * ) + + - 43
----
-42

query II rowsort
SELECT DISTINCT + 68 * + 29, 24 AS col1
----
1972
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3296
SELECT ALL CASE 96 WHEN - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 84 + + + 90 / - - COUNT( * ) THEN NULL WHEN - - CAST( NULL AS DECIMAL ) - + + 0 + - 43 * - 19 * + + 25 * + CAST( NULL AS SIGNED ) * + - 81 THEN NULL ELSE - 92 END + - 51 * + ( + + 81 ) AS col0
----
-4223

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL CASE 96 WHEN - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 84 + + + 90 / - - COUNT ( * ) THEN NULL WHEN - - CAST ( NULL AS REAL ) - + + 0 + - 43 * - 19 * + + 25 * + CAST ( NULL AS INTEGER ) * + - 81 THEN NULL ELSE - 92 END + - 51 * + ( + + 81 ) AS col0
----
-4223

query I rowsort
SELECT ALL 28 * + + 0 * - + 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT DISTINCT - COALESCE ( + + CAST( NULL AS SIGNED ), 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - COALESCE ( + + CAST ( NULL AS INTEGER ), 85 ) AS col0
----
-85

query I rowsort
SELECT ALL - 41 - 23
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT + MIN( - - 99 ), - 2 AS col2
----
99
-2

skipif mysql # not compatible
query II rowsort label-3300
SELECT + MIN ( - - 99 ), - 2 AS col2
----
99
-2

query I rowsort
SELECT 57 + - 10 - - - 79 + + - ( 99 )
----
-131

query I rowsort
SELECT 92 * + - 95
----
-8740

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3303
SELECT DISTINCT - COALESCE ( 61, 25, CAST( - 21 AS SIGNED ) ), 48 AS col0
----
-61
48

skipif mysql # not compatible
query II rowsort label-3303
SELECT DISTINCT - COALESCE ( 61, 25, CAST ( - 21 AS INTEGER ) ), 48 AS col0
----
-61
48

query I rowsort
SELECT 82 * + 26
----
2132

query I rowsort
SELECT 88 - - 25 * + + 77
----
2013

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT ALL - 24 DIV - 52 * - ( + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL - 24 / - 52 * - ( + 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT 7 * COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3307
SELECT 7 * COUNT ( * ) AS col1
----
7

query I rowsort
SELECT DISTINCT - 6 * - 22
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + 52 - + 63 + + COUNT( * ) * + 38
----
27

skipif mysql # not compatible
query I rowsort label-3309
SELECT + 52 - + 63 + + COUNT ( * ) * + 38
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT 32 DIV - 36 * ( + - 12 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT 32 / - 36 * ( + - 12 ) col1
----
0

query I rowsort
SELECT ALL - + 66 * + + 26 * COALESCE ( - - 99, + 62, - 43 )
----
-169884

query I rowsort
SELECT ( 95 ) AS col1
----
95

query I rowsort
SELECT DISTINCT - ( + ( - 23 ) ) + + 52 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT - COALESCE ( + 42, ( - 33 ) ) + CAST( - MIN( 65 ) AS SIGNED )
----
-107

skipif mysql # not compatible
query I rowsort label-3314
SELECT - COALESCE ( + 42, ( - 33 ) ) + CAST ( - MIN ( 65 ) AS INTEGER )
----
-107

query I rowsort
SELECT ALL - - 62 + - + 76 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT - 59 + + 98 + - ( 8 ) DIV - ( + 38 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 59 + + 98 + - ( 8 ) / - ( + 38 ) AS col2
----
39

query I rowsort
SELECT - + 9 * + 42
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT DISTINCT + - COUNT( * ) * + - MAX( ALL 9 ) + - + COUNT( * ) + - - 70
----
78

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT + - COUNT ( * ) * + - MAX ( ALL 9 ) + - + COUNT ( * ) + - - 70
----
78

query I rowsort
SELECT ( + + 2 ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT - 94 DIV 32 + 60 * + 60
----
3598

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 94 / 32 + 60 * + 60
----
3598

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL MIN( + 0 ) * - + 78 + - + 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL MIN ( + 0 ) * - + 78 + - + 28 AS col1
----
-28

query I rowsort
SELECT ALL 18 * - 99
----
-1782

query I rowsort
SELECT DISTINCT - 1 * 52 + - ( 0 ) * + + 94 col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT CASE WHEN 1 IS NOT NULL THEN ( + 79 ) * + 65 ELSE + COUNT( * ) + - SUM( DISTINCT - 2 ) END col0
----
5135

skipif mysql # not compatible
query I rowsort label-3324
SELECT CASE WHEN 1 IS NOT NULL THEN ( + 79 ) * + 65 ELSE + COUNT ( * ) + - SUM ( DISTINCT - 2 ) END col0
----
5135

query I rowsort
SELECT ALL 29 * - - 64 * - 95 * - 81
----
14281920

query I rowsort
SELECT DISTINCT + 5 AS col1
----
5

query I rowsort
SELECT DISTINCT 75 * - - 37 * - 75 - 95
----
-208220

query I rowsort
SELECT + 28 + + 77 - + 44 * 68 AS col1
----
-2887

query I rowsort
SELECT - ( + 81 ) - - 95 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT 12 * + 6 * - COUNT( * ) - - 76 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT 12 * + 6 * - COUNT ( * ) - - 76 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3331
SELECT + COALESCE ( - 17, - - 69 - - + 60 * - 91 * 87, 60 * - 87 + + - COUNT( * ) DIV + + COALESCE ( + 78, - 3 * 43 + - 15 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3331
SELECT + COALESCE ( - 17, - - 69 - - + 60 * - 91 * 87, 60 * - 87 + + - COUNT ( * ) / + + COALESCE ( + 78, - 3 * 43 + - 15 ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL + 92 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + 92 * + COUNT ( * )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT ALL 63 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL 63 / - 83 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT 49 * + 74 * ( - 45 ) - + + 91 - - + 55 * + + 81 - - 69 DIV 83
----
-158806

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT 49 * + 74 * ( - 45 ) - + + 91 - - + 55 * + + 81 - - 69 / 83
----
-158806

query I rowsort
SELECT ALL - 19 * 55 AS col2
----
-1045

onlyif mysql # aggregate syntax: 
query II rowsort label-3336
SELECT DISTINCT 74 * + MAX( ALL - 43 ) col0, 7 - - 63
----
-3182
70

skipif mysql # not compatible
query II rowsort label-3336
SELECT DISTINCT 74 * + MAX ( ALL - 43 ) col0, 7 - - 63
----
-3182
70

query I rowsort
SELECT + 97 * - 62
----
-6014

query I rowsort
SELECT - 3 * + 30 AS col0
----
-90

query I rowsort
SELECT ALL - 20 * + 7 AS col2
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT 47 * + + 97 + + ( - ( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT 47 * + + 97 + + ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT - ( ( - + ( + 25 ) ) )
----
25

query I rowsort
SELECT - - 34 + - 66 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT - CAST( + COALESCE ( - - 93, - 49 ) AS SIGNED ) + + - 10
----
-103

skipif mysql # not compatible
query I rowsort label-3343
SELECT - CAST ( + COALESCE ( - - 93, - 49 ) AS INTEGER ) + + - 10
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3344
SELECT ALL 77 + + + CASE + 96 WHEN - COUNT( DISTINCT - - 85 ) - 93 THEN + 30 WHEN - 90 * - 72 * - - 25 + 8 THEN NULL WHEN + 72 * + COUNT( * ) + - 89 THEN + CAST( - 82 AS SIGNED ) * + 26 / - - 33 ELSE NULL END AS col2, 80 * 9 AS col1
----
NULL
720

skipif mysql # not compatible
query II rowsort label-3344
SELECT ALL 77 + + + CASE + 96 WHEN - COUNT ( DISTINCT - - 85 ) - 93 THEN + 30 WHEN - 90 * - 72 * - - 25 + 8 THEN NULL WHEN + 72 * + COUNT ( * ) + - 89 THEN + CAST ( - 82 AS INTEGER ) * + 26 / - - 33 ELSE NULL END AS col2, 80 * 9 AS col1
----
NULL
720

query I rowsort
SELECT DISTINCT + - 72 + + 13 AS col0
----
-59

query I rowsort
SELECT ALL + 4 + - + 46
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - 30 * - + 99 + ( MIN( 58 ) ) col1
----
3028

skipif mysql # not compatible
query I rowsort label-3347
SELECT - 30 * - + 99 + ( MIN ( 58 ) ) col1
----
3028

query I rowsort
SELECT ALL + 93 + + 56 AS col0
----
149

query I rowsort
SELECT DISTINCT + - 97 + + 87 col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT - + CAST( NULL AS SIGNED ) - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + CAST ( NULL AS INTEGER ) - + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + NULLIF ( - + 47, - + ( - COUNT( ALL + + 74 ) ) - - 87 )
----
-47

skipif mysql # not compatible
query I rowsort label-3351
SELECT + NULLIF ( - + 47, - + ( - COUNT ( ALL + + 74 ) ) - - 87 )
----
-47

query I rowsort
SELECT ALL + 44 + - + 53 * - 68
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - - COUNT( * ) - + 26
----
-25

skipif mysql # not compatible
query I rowsort label-3353
SELECT - - COUNT ( * ) - + 26
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - + 63 * - - 31 * - CASE - 60 WHEN - 77 THEN + 3 * + + COUNT( * ) * + - 78 + 50 WHEN 55 + + + 35 + - 43 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT - + 63 * - - 31 * - CASE - 60 WHEN - 77 THEN + 3 * + + COUNT ( * ) * + - 78 + 50 WHEN 55 + + + 35 + - 43 THEN NULL END
----
NULL

query II rowsort
SELECT + 3, - 40 + 75 AS col0
----
3
35

query I rowsort
SELECT NULLIF ( - 3, 79 + + - 41 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT - COALESCE ( - 16, 98 + 95 ) * - NULLIF ( - 87, + CAST( + 69 AS SIGNED ) - - 33 ) * + 97 + - - CAST( NULL AS SIGNED ) + 78 - 18 * 93 * - - 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT - COALESCE ( - 16, 98 + 95 ) * - NULLIF ( - 87, + CAST ( + 69 AS INTEGER ) - - 33 ) * + 97 + - - CAST ( NULL AS INTEGER ) + 78 - 18 * 93 * - - 81 col0
----
NULL

query I rowsort
SELECT DISTINCT + 50 - - + 76
----
126

query I rowsort
SELECT ALL - 92 * + 91
----
-8372

query I rowsort
SELECT - + 81 + - 87 AS col2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT ( + COUNT( * ) ) / + 70 - + 11 * NULLIF ( + CASE + 87 WHEN + 23 * + - 85 * ( - 85 ) THEN + COUNT( * ) + + - 67 WHEN NULLIF ( - COUNT( * ), - SUM( - 44 ) ) THEN NULL END, + 72 ) * + SUM( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT ( + COUNT ( * ) ) / + 70 - + 11 * NULLIF ( + CASE + 87 WHEN + 23 * + - 85 * ( - 85 ) THEN + COUNT ( * ) + + - 67 WHEN NULLIF ( - COUNT ( * ), - SUM ( - 44 ) ) THEN NULL END, + 72 ) * + SUM ( 89 )
----
NULL

query I rowsort
SELECT DISTINCT + - 33 AS col1
----
-33

query II rowsort
SELECT - 11 * 0 col1, - 83
----
0
-83

query I rowsort
SELECT ALL + 21 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT + ( CASE COUNT( * ) WHEN 23 + + 16 THEN MAX( + ( - 54 ) ) * 95 WHEN - + MIN( + COALESCE ( + ( 34 ), 13 * - 29 * 95 * 75 ) ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT + ( CASE COUNT ( * ) WHEN 23 + + 16 THEN MAX ( + ( - 54 ) ) * 95 WHEN - + MIN ( + COALESCE ( + ( 34 ), 13 * - 29 * 95 * 75 ) ) THEN NULL END )
----
NULL

query I rowsort
SELECT ALL 75 * + 86 * - 79
----
-509550

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + COUNT( + 13 ) * 7 * - 23 AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-3367
SELECT + COUNT ( + 13 ) * 7 * - 23 AS col1
----
-161

query I rowsort
SELECT + 87 + + + ( - 71 ) AS col0
----
16

query I rowsort
SELECT DISTINCT + 33 * 63
----
2079

query I rowsort
SELECT DISTINCT + 24 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL 39 * SUM( + 56 )
----
2184

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL 39 * SUM ( + 56 )
----
2184

query I rowsort
SELECT + ( - + 35 ) * - + 63 AS col0
----
2205

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT + SUM( DISTINCT 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + SUM ( DISTINCT 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT + 3 DIV + 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT + 3 / + 8 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3375
SELECT ALL - CAST( NULL AS DECIMAL ) * + 18 + ( ( + NULLIF ( - 12, + SUM( ALL 75 ) ) ) ) * + + 73 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - CAST ( NULL AS REAL ) * + 18 + ( ( + NULLIF ( - 12, + SUM ( ALL 75 ) ) ) ) * + + 73 * + 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT CASE 59 WHEN 73 * + - 9 + COUNT( * ) * + SUM( + - 12 ) THEN NULL WHEN - 38 THEN NULL ELSE + + 62 END col1, + 60 - - 42 AS col2
----
62
102

skipif mysql # not compatible
query II rowsort label-3376
SELECT CASE 59 WHEN 73 * + - 9 + COUNT ( * ) * + SUM ( + - 12 ) THEN NULL WHEN - 38 THEN NULL ELSE + + 62 END col1, + 60 - - 42 AS col2
----
62
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT ALL ( + 31 ) / - ( 44 ) + COUNT( * ) - + 20 * 97 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL ( + 31 ) / - ( 44 ) + COUNT ( * ) - + 20 * 97 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT + 67 DIV + 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT + 67 / + 51 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT + 94 * - COUNT( * ) + - 19
----
-113

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT + 94 * - COUNT ( * ) + - 19
----
-113

query I rowsort
SELECT DISTINCT + - 49 * - 26 * + ( - 22 ) + - NULLIF ( + + 95, + ( 82 ) ) + - 60 * + + 28 AS col2
----
-29803

query I rowsort
SELECT ALL 75 * - 85
----
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT 88 * - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT 88 * - - COUNT ( * ) AS col1
----
88

query I rowsort
SELECT - - 53 * - 20 * - + 59 - 44 * + ( - 41 ) AS col1
----
64344

query I rowsort
SELECT + 67 + - + 79 + 52 * - 55 * + 15 * 3 AS col1
----
-128712

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT - + ( + + 54 ) AS col1, COUNT( * ) AS col1
----
-54
1

skipif mysql # not compatible
query II rowsort label-3385
SELECT - + ( + + 54 ) AS col1, COUNT ( * ) AS col1
----
-54
1

query II rowsort
SELECT ALL + 73 + - 3 AS col2, - 35 AS col1
----
70
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT - 80 + 60 / + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT - 80 + 60 / + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - 50 - - + 59 * - COUNT( * ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-3388
SELECT - 50 - - + 59 * - COUNT ( * ) AS col0
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3389
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN 83 + + + COUNT( * ) - - COUNT( * ) THEN NULL WHEN - 41 * + 59 THEN 71 ELSE NULL END - - - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN 83 + + + COUNT ( * ) - - COUNT ( * ) THEN NULL WHEN - 41 * + 59 THEN 71 ELSE NULL END - - - 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT ALL + - 19 DIV - 7 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + - 19 / - 7 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT ALL + ( - ( + - CASE + 41 WHEN - 20 THEN NULL ELSE - COUNT( * ) * + + 69 DIV 43 END ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + ( - ( + - CASE + 41 WHEN - 20 THEN NULL ELSE - COUNT ( * ) * + + 69 / 43 END ) ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT ALL + - 27 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + - 27 / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - 66 * - + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3393
SELECT - 66 * - + COUNT ( * )
----
66

query II rowsort
SELECT - 43 AS col0, - 9 AS col1
----
-43
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-3395
SELECT 43, 36 DIV - - 83 * + 54 col0
----
43
0

skipif mysql # not compatible
query II rowsort label-3395
SELECT 43, 36 / - - 83 * + 54 col0
----
43
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3396
SELECT ALL 45, - 48 + + - 58 + 35 + CAST( + 63 AS SIGNED ) AS col1
----
45
-8

skipif mysql # not compatible
query II rowsort label-3396
SELECT ALL 45, - 48 + + - 58 + 35 + CAST ( + 63 AS INTEGER ) AS col1
----
45
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - 22 / - 88 + - CASE 90 WHEN + + 78 THEN - - 29 + - 26 - COUNT( * ) WHEN + 51 * + 93 - - - ( 26 ) THEN NULL ELSE NULL END + + 61 + - - COUNT( * ) * 67 + 93 * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 22 / - 88 + - CASE 90 WHEN + + 78 THEN - - 29 + - 26 - COUNT ( * ) WHEN + 51 * + 93 - - - ( 26 ) THEN NULL ELSE NULL END + + 61 + - - COUNT ( * ) * 67 + 93 * 60 AS col1
----
NULL

query I rowsort
SELECT 73 * + 93 AS col1
----
6789

query I rowsort
SELECT 8 * - - 37 AS col1
----
296

query I rowsort
SELECT DISTINCT + 47 * - 32
----
-1504

query II rowsort
SELECT ALL - 27, - 69 AS col2
----
-27
-69

query II rowsort
SELECT ALL - 72, - 4 AS col1
----
-72
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( * ) * + 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3403
SELECT COUNT ( * ) * + 63 AS col1
----
63

query I rowsort
SELECT ALL + 20 + + - 9 AS col0
----
11

query I rowsort
SELECT 79 + 18
----
97

query I rowsort
SELECT 88 + 2 - - 66 * - + 47 * + 16
----
-49542

query II rowsort
SELECT ALL - 62 AS col1, 13 * 99 + - - 11
----
-62
1298

query I rowsort
SELECT + NULLIF ( + ( + - ( - - 34 ) ), + + ( - 64 ) ) * 37 + - 43
----
-1301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3409
SELECT + 32, 11 + - CAST( NULL AS SIGNED ) + - AVG ( DISTINCT 72 ) + - 7 + - 32 * - COUNT( * ) * + 25 / ( - 33 ) * - - MIN( ( - 48 ) ) + - 67 * + 29 * + 58 AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-3409
SELECT + 32, 11 + - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT 72 ) + - 7 + - 32 * - COUNT ( * ) * + 25 / ( - 33 ) * - - MIN ( ( - 48 ) ) + - 67 * + 29 * + 58 AS col2
----
32
NULL

query I rowsort
SELECT DISTINCT + 2 + + 63
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3411
SELECT ALL + + 30 + - 55 + COUNT( ALL + 78 ) + COUNT( * ) col2, CASE 31 WHEN + - 67 THEN + 60 * - 5 + - - 30 + - + 25 * 16 END * 97 + - - 75 + + + 18 + 24
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-3411
SELECT ALL + + 30 + - 55 + COUNT ( ALL + 78 ) + COUNT ( * ) col2, CASE 31 WHEN + - 67 THEN + 60 * - 5 + - - 30 + - + 25 * 16 END * 97 + - - 75 + + + 18 + 24
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - - NULLIF ( + 24, + COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - - NULLIF ( + 24, + COUNT ( * ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3413
SELECT - + 19 AS col0, + 63 * - 77, + + AVG ( DISTINCT - - 61 ) * - 0 * + CAST( + - 88 AS DECIMAL ) / 15 + - COUNT( * ) + + CAST( NULL AS SIGNED ) + 57 + - 70 col2
----
-19
-4851
NULL

skipif mysql # not compatible
query III rowsort label-3413
SELECT - + 19 AS col0, + 63 * - 77, + + AVG ( DISTINCT - - 61 ) * - 0 * + CAST ( + - 88 AS REAL ) / 15 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 57 + - 70 col2
----
-19
-4851
NULL

query I rowsort
SELECT DISTINCT 66 - 0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + 5 * + - COUNT( * ) - + 38 * - 94 AS col1
----
3567

skipif mysql # not compatible
query I rowsort label-3415
SELECT + 5 * + - COUNT ( * ) - + 38 * - 94 AS col1
----
3567

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT + 14 DIV + - 45
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 14 / + - 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT ALL MIN( DISTINCT + + 78 ) DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL MIN ( DISTINCT + + 78 ) / + + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT 93 * COUNT( * ) * ( + COUNT( * ) ) + 47 + + 44 + + - 97 * 63 + - 66
----
-5993

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT 93 * COUNT ( * ) * ( + COUNT ( * ) ) + 47 + + 44 + + - 97 * 63 + - 66
----
-5993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL + CASE - 80 WHEN + CAST( - 85 AS SIGNED ) THEN - 16 + - + 23 END * - ( 43 ) + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + CASE - 80 WHEN + CAST ( - 85 AS INTEGER ) THEN - 16 + - + 23 END * - ( 43 ) + - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT 6 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT 6 * + COUNT ( * )
----
6

query I rowsort
SELECT - 94 - - - 18 AS col0
----
-112

query I rowsort
SELECT ALL - 9 * + - 16
----
144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3423
SELECT + NULLIF ( CAST( NULL AS DECIMAL ), COALESCE ( + 59, + + 42, + 30 * - - 28 * - - 53, + 31 + 83 ) + + + COUNT( * ) - 28 + + 36 * 59 ) * - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT + NULLIF ( CAST ( NULL AS REAL ), COALESCE ( + 59, + + 42, + 30 * - - 28 * - - 53, + 31 + 83 ) + + + COUNT ( * ) - 28 + + 36 * 59 ) * - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT - COUNT( * ) AS col2, 90 AS col2
----
-1
90

skipif mysql # not compatible
query II rowsort label-3424
SELECT - COUNT ( * ) AS col2, 90 AS col2
----
-1
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3425
SELECT 8 + + CASE - COUNT( * ) WHEN - 62 / - 78 / + 29 * - CAST( NULL AS SIGNED ) THEN NULL WHEN + 53 THEN + 22 + 63 + - - ( 82 ) * 22 + 25 + + 11 END / 24 AS col2, MAX( ALL - 3 ) AS col2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3425
SELECT 8 + + CASE - COUNT ( * ) WHEN - 62 / - 78 / + 29 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 53 THEN + 22 + 63 + - - ( 82 ) * 22 + 25 + + 11 END / 24 AS col2, MAX ( ALL - 3 ) AS col2
----
NULL
-3

query II rowsort
SELECT ALL 52 AS col2, + 24
----
52
24

query I rowsort
SELECT 12 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT COUNT( * ) * 16 * + COUNT( * ) + + - 65 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT COUNT ( * ) * 16 * + COUNT ( * ) + + - 65 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT 8 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT 8 / + 86 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL COUNT( * ) * + + ( + CASE + 97 WHEN + - ( 16 ) THEN NULL ELSE + - 60 / + CAST( NULL AS SIGNED ) + + CAST( + NULLIF ( - 42, - 15 ) AS SIGNED ) END ) * + - 53 / 65 * - 69 * 66 * - 82 + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL COUNT ( * ) * + + ( + CASE + 97 WHEN + - ( 16 ) THEN NULL ELSE + - 60 / + CAST ( NULL AS INTEGER ) + + CAST ( + NULLIF ( - 42, - 15 ) AS INTEGER ) END ) * + - 53 / 65 * - 69 * 66 * - 82 + + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL COUNT( * ) * 88 + - 75 + - 21 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL COUNT ( * ) * 88 + - 75 + - 21 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT SUM( DISTINCT 78 ), + 84 AS col2
----
78
84

skipif mysql # not compatible
query II rowsort label-3432
SELECT SUM ( DISTINCT 78 ), + 84 AS col2
----
78
84

query I rowsort
SELECT 91 + - 17 + + - 88 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3434
SELECT COUNT( + + 56 ) DIV + 38 + + + 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3434
SELECT COUNT ( + + 56 ) / + 38 + + + 47 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3435
SELECT COUNT( * ) - CAST( - + 56 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-3435
SELECT COUNT ( * ) - CAST ( - + 56 AS INTEGER )
----
57

query II rowsort
SELECT + 75, + 10 AS col1
----
75
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT 23 DIV + + 14 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3437
SELECT 23 / + + 14 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3438
SELECT DISTINCT - 65 AS col2, 79 * + NULLIF ( + 92, 58 ) * + + ( + 42 ) + COUNT( * )
----
-65
305257

skipif mysql # not compatible
query II rowsort label-3438
SELECT DISTINCT - 65 AS col2, 79 * + NULLIF ( + 92, 58 ) * + + ( + 42 ) + COUNT ( * )
----
-65
305257

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT ALL 26 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 26 / + 47
----
0

query I rowsort
SELECT + 7 * - 37 + - COALESCE ( - - 15, 2, + 82 ) + + 55 + + - ( 46 ) * + 53 - - - 40 + + 72 col1
----
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT + ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT + ( + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT + - 20 * 3
----
-60

query I rowsort
SELECT ALL + + 93 AS col0
----
93

query I rowsort
SELECT + - NULLIF ( + 95, + 16 ) AS col1
----
-95

query II rowsort
SELECT DISTINCT + - 11, - 52 AS col1
----
-11
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - SUM( 73 ) - - - 85 - - 39 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-3446
SELECT - SUM ( 73 ) - - - 85 - - 39 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL - - COUNT( * ) * + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL - - COUNT ( * ) * + 65 AS col2
----
65

query I rowsort
SELECT + 99 - + + 19
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL - COALESCE ( ( + 92 ), - 42 + + ( - - 63 ) * COUNT( * ) ) * + ( - - 16 ) * + COUNT( * ) + 58
----
-1414

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - COALESCE ( ( + 92 ), - 42 + + ( - - 63 ) * COUNT ( * ) ) * + ( - - 16 ) * + COUNT ( * ) + 58
----
-1414

query I rowsort
SELECT DISTINCT + 85 col1
----
85

query I rowsort
SELECT ALL - - 35 * - 4 + 27 * - 7
----
-329

query I rowsort
SELECT + + 93 * 0 + - 46
----
-46

query I rowsort
SELECT - ( + - ( + + ( 25 ) ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - + COUNT( * ) + - - COUNT( + - 81 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT - + COUNT ( * ) + - - COUNT ( + - 81 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + + COUNT( * ) - - + COUNT( * ) + + 6 + + 18 * + 5
----
98

skipif mysql # not compatible
query I rowsort label-3455
SELECT + + COUNT ( * ) - - + COUNT ( * ) + + 6 + + 18 * + 5
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT + - ( 11 ) * + 80 + 37 * 45 * - COUNT( * ) * 61 * 29 + + - 69
----
-2946334

skipif mysql # not compatible
query I rowsort label-3456
SELECT + - ( 11 ) * + 80 + 37 * 45 * - COUNT ( * ) * 61 * 29 + + - 69
----
-2946334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT + - CAST( - + COUNT( 83 ) AS SIGNED ) + + COUNT( * ) + + CASE - 67 WHEN 46 * - COUNT( * ) - + + 74 THEN - 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT + - CAST ( - + COUNT ( 83 ) AS INTEGER ) + + COUNT ( * ) + + CASE - 67 WHEN 46 * - COUNT ( * ) - + + 74 THEN - 66 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT + - 69 - SUM( - 0 ) + 29 + - - 56 DIV + 57 * - COUNT( * ) + - 7 + 38 * 63 + 12
----
2359

skipif mysql # not compatible
query I rowsort label-3458
SELECT + - 69 - SUM ( - 0 ) + 29 + - - 56 / + 57 * - COUNT ( * ) + - 7 + 38 * 63 + 12
----
2359

query I rowsort
SELECT + 1 * - + 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL 22 + - 6 + + - COUNT( * ) * 58 col2
----
-42

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL 22 + - 6 + + - COUNT ( * ) * 58 col2
----
-42

query I rowsort
SELECT ALL ( + 16 ) * + 59 * - 71 AS col2
----
-67024

query I rowsort
SELECT DISTINCT 57 + + - 79 AS col0
----
-22

query I rowsort
SELECT ALL 16 + - 53 AS col2
----
-37

query I rowsort
SELECT - ( - 55 ) AS col0
----
55

query I rowsort
SELECT ALL 92 + - 6
----
86

query I rowsort
SELECT ALL 10 * + + 69
----
690

query I rowsort
SELECT + 51 * + 84 AS col1
----
4284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT ( - CAST( NULLIF ( + + 82, + 42 ) AS SIGNED ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3468
SELECT ( - CAST ( NULLIF ( + + 82, + 42 ) AS INTEGER ) ) AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT ALL + 31 DIV + 60 + - - 27 + + 64 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + 31 / + 60 + - - 27 + + 64 AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT ( - CAST( - 94 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-3470
SELECT ( - CAST ( - 94 AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL - COUNT( * ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - COUNT ( * ) * + 0
----
0

query I rowsort
SELECT 94 * - ( + 70 ) + 5 * - 56 * - 43 + 83
----
5543

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - - 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-3473
SELECT - - 66 * - COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL - + SUM( DISTINCT - ( - 5 ) ) * 7
----
-35

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - + SUM ( DISTINCT - ( - 5 ) ) * 7
----
-35

query I rowsort
SELECT ALL + + 77 AS col1
----
77

query I rowsort
SELECT DISTINCT - 27 * 7
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3477
SELECT - + 5 * CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN ( - 92 ) THEN + ( + 19 ) WHEN - 3 * + 14 THEN + - 49 * - + 21 + - COUNT( * ) + - NULLIF ( + + ( + 85 ), - SUM( DISTINCT + 71 ) ) * + 92 + 3 DIV - 82 + - 8 * 49 WHEN COUNT( + + 1 ) THEN - ( COUNT( * ) ) * - 67 DIV - 40 + + 63 ELSE - - MIN( + + 88 ) END + + 24 - 82 AS col1
----
-368

skipif mysql # not compatible
query I rowsort label-3477
SELECT - + 5 * CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN ( - 92 ) THEN + ( + 19 ) WHEN - 3 * + 14 THEN + - 49 * - + 21 + - COUNT ( * ) + - NULLIF ( + + ( + 85 ), - SUM ( DISTINCT + 71 ) ) * + 92 + 3 / - 82 + - 8 * 49 WHEN COUNT ( + + 1 ) THEN - ( COUNT ( * ) ) * - 67 / - 40 + + 63 ELSE - - MIN ( + + 88 ) END + + 24 - 82 AS col1
----
-368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3478
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT 39 * + COUNT( * ) + + - 16 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT 39 * + COUNT ( * ) + + - 16 AS col0
----
23

query I rowsort
SELECT DISTINCT + + 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + 67 * - COUNT( + + 26 ) + + + 97 * 32 AS col0
----
3037

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + 67 * - COUNT ( + + 26 ) + + + 97 * 32 AS col0
----
3037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3482
SELECT DISTINCT + CASE + + 73 WHEN + MIN( + 60 ) THEN - + 47 WHEN - - 75 THEN + + 45 * - 16 * + + 11 - CAST( NULL AS SIGNED ) ELSE NULL END col0, 1 * + CAST( NULL AS SIGNED ) + + + CASE 13 WHEN - COUNT( * ) THEN 66 END + + - 74 * + + NULLIF ( SUM( + 35 ), + MAX( DISTINCT - + 3 ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3482
SELECT DISTINCT + CASE + + 73 WHEN + MIN ( + 60 ) THEN - + 47 WHEN - - 75 THEN + + 45 * - 16 * + + 11 - CAST ( NULL AS INTEGER ) ELSE NULL END col0, 1 * + CAST ( NULL AS INTEGER ) + + + CASE 13 WHEN - COUNT ( * ) THEN 66 END + + - 74 * + + NULLIF ( SUM ( + 35 ), + MAX ( DISTINCT - + 3 ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT ALL + + 12 DIV - 60 * + 2 + - + ( + 17 ) + - - 41 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + + 12 / - 60 * + 2 + - + ( + 17 ) + - - 41 * COUNT ( * )
----
24

query II rowsort
SELECT - 96 + 8 AS col0, - 9
----
-88
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + SUM( + + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3485
SELECT + SUM ( + + 29 ) AS col2
----
29

query I rowsort
SELECT DISTINCT + - 84
----
-84

query I rowsort
SELECT + - 73 + + 44
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3488
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3489
SELECT ALL - - 8 * + + 64 DIV - - COUNT( * ) AS col1
----
512

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - - 8 * + + 64 / - - COUNT ( * ) AS col1
----
512

query I rowsort
SELECT - + 82 col0
----
-82

query I rowsort
SELECT ALL - 50 * - 13 + + 1
----
651

query I rowsort
SELECT DISTINCT + 60 * - - 79
----
4740

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT + 51 + COUNT( DISTINCT + - 16 ) - - + 0
----
52

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + 51 + COUNT ( DISTINCT + - 16 ) - - + 0
----
52

query I rowsort
SELECT + 87 * - NULLIF ( + 49, - 18 + + 95 ) AS col0
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL 69 + + + MAX( ALL + 71 ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL 69 + + + MAX ( ALL + 71 ) AS col1
----
140

query II rowsort
SELECT 45, 61 AS col0
----
45
61

query II rowsort
SELECT ALL 39 + 16 + + - 58 AS col2, 71 * + 12 + - + 38
----
-3
814

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT DISTINCT + 43 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + 43 / + 70
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3499
SELECT ALL CAST( NULL AS DECIMAL ) * + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL CAST ( NULL AS REAL ) * + - 73 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3500
SELECT 74 AS col1, 45 DIV + 92
----
74
0

skipif mysql # not compatible
query II rowsort label-3500
SELECT 74 AS col1, 45 / + 92
----
74
0

query I rowsort
SELECT DISTINCT ( 78 ) * - - 48 AS col2
----
3744

query II rowsort
SELECT 55 AS col2, 22 AS col2
----
55
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT DISTINCT - + CAST( COALESCE ( - - 30, - - 73 ) AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT - + CAST ( COALESCE ( - - 30, - - 73 ) AS INTEGER ) AS col1
----
-30

query I rowsort
SELECT ALL - COALESCE ( + - CASE + - 96 WHEN 39 THEN - + 85 ELSE NULL END, + - 46 - + 68 )
----
114

query II rowsort
SELECT ALL - 74 col2, + 51 AS col2
----
-74
51

query I rowsort
SELECT - 58 * + - 32 AS col0
----
1856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 10 * + 58 AS col1
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL - CASE - - 82 WHEN - 44 THEN - - 92 WHEN + ( - - 34 ) * - 85 + 59 THEN NULL WHEN + 84 * - SUM( DISTINCT - 23 ) - - 67 + - + 93 + + - 52 THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL - CASE - - 82 WHEN - 44 THEN - - 92 WHEN + ( - - 34 ) * - 85 + 59 THEN NULL WHEN + 84 * - SUM ( DISTINCT - 23 ) - - 67 + - + 93 + + - 52 THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT 40 * + CAST( NULL AS SIGNED ) * 57 + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT 40 * + CAST ( NULL AS INTEGER ) * 57 + + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT DISTINCT 73 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT 73 / - - 96
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3512
SELECT ALL - - 81 + + 83 + - 75 + - CAST( NULL AS DECIMAL ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - - 81 + + 83 + - 75 + - CAST ( NULL AS REAL ) * + 80
----
NULL

query I rowsort
SELECT + 72 * - 51 + + 6 + 50 + + 42 AS col0
----
-3574

query I rowsort
SELECT 20 + - 99
----
-79

query I rowsort
SELECT 63 * 92
----
5796

query I rowsort
SELECT ALL + - 68 + + 43
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3517
SELECT + 63 AS col1, + CAST( NULL AS SIGNED ) * - 77
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3517
SELECT + 63 AS col1, + CAST ( NULL AS INTEGER ) * - 77
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT + COUNT( * ) * + + NULLIF ( + 52, CASE COUNT( * ) WHEN - 9 THEN - 65 + + COUNT( * ) ELSE NULL END ) * + 48 + CASE ( + 32 ) WHEN + + COUNT( * ) THEN COUNT( * ) * - + 1 - 68 END * + SUM( - 11 ) / - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + COUNT ( * ) * + + NULLIF ( + 52, CASE COUNT ( * ) WHEN - 9 THEN - 65 + + COUNT ( * ) ELSE NULL END ) * + 48 + CASE ( + 32 ) WHEN + + COUNT ( * ) THEN COUNT ( * ) * - + 1 - 68 END * + SUM ( - 11 ) / - - 26
----
NULL

query I rowsort
SELECT ALL 44 + - - 27 + ( - 79 ) * + 52 AS col0
----
-4037

query I rowsort
SELECT + 83 - + 38 - + 21 AS col2
----
24

query II rowsort
SELECT + 30, - CASE - 3 WHEN - 20 THEN NULL WHEN + 84 THEN - 79 ELSE - 48 END AS col0
----
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL 57 + COUNT( ALL + 41 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL 57 + COUNT ( ALL + 41 ) col1
----
58

query I rowsort
SELECT + ( - 3 ) * - - 17 * + + 91 * + 97 - 97 * + - 64
----
-443969

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL + ( - 12 ) + - 54 + + + 47 + + - 76 * 14 * NULLIF ( - COUNT( * ), + - 19 * - 13 - - - 33 + - 72 - + 21 * 27 * - ( 17 ) ) * - + 52 * + 4
----
-221331

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + ( - 12 ) + - 54 + + + 47 + + - 76 * 14 * NULLIF ( - COUNT ( * ), + - 19 * - 13 - - - 33 + - 72 - + 21 * 27 * - ( 17 ) ) * - + 52 * + 4
----
-221331

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL - 97 + - + COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL - 97 + - + COUNT ( * ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT 1 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT 1 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 1 + + ( + + 50 ) - - + 8 * - 9 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT COUNT( * ) DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT COUNT ( * ) / + 88 AS col0
----
0

query I rowsort
SELECT 82 + - 89
----
-7

query I rowsort
SELECT 36 - - 44 + - 85 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL - NULLIF ( - COUNT( * ), - COALESCE ( - COUNT( 79 ), - - 46, - + 24 + - - MIN( DISTINCT - 83 ) ) ) + - + 37 * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - NULLIF ( - COUNT ( * ), - COALESCE ( - COUNT ( 79 ), - - 46, - + 24 + - - MIN ( DISTINCT - 83 ) ) ) + - + 37 * COUNT ( * )
----
-36

query I rowsort
SELECT 17 * 47 * + 97
----
77503

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL CASE - + COUNT( * ) WHEN 81 THEN NULL ELSE + + 64 END * - 44
----
-2816

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL CASE - + COUNT ( * ) WHEN 81 THEN NULL ELSE + + 64 END * - 44
----
-2816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3534
SELECT 7 * 89 DIV + COALESCE ( - - NULLIF ( 33, 43 ), COUNT( DISTINCT + 17 ) - + COUNT( * ) ) col2, + 12
----
18
12

skipif mysql # not compatible
query II rowsort label-3534
SELECT 7 * 89 / + COALESCE ( - - NULLIF ( 33, 43 ), COUNT ( DISTINCT + 17 ) - + COUNT ( * ) ) col2, + 12
----
18
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT COUNT( * ) * 23, ( - - 42 ) + - 49 AS col2
----
23
-7

skipif mysql # not compatible
query II rowsort label-3535
SELECT COUNT ( * ) * 23, ( - - 42 ) + - 49 AS col2
----
23
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3536
SELECT ALL + 30 * + 26 AS col2, ( - - ( CAST( + 89 AS SIGNED ) ) )
----
780
89

skipif mysql # not compatible
query II rowsort label-3536
SELECT ALL + 30 * + 26 AS col2, ( - - ( CAST ( + 89 AS INTEGER ) ) )
----
780
89

query I rowsort
SELECT ALL 28 col0
----
28

query I rowsort
SELECT 23 + + 69 + + 58
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT COUNT( * ) + - - SUM( ALL 4 ) * MAX( ALL + CAST( 52 AS SIGNED ) ) + + + 69 AS col1
----
278

skipif mysql # not compatible
query I rowsort label-3539
SELECT COUNT ( * ) + - - SUM ( ALL 4 ) * MAX ( ALL + CAST ( 52 AS INTEGER ) ) + + + 69 AS col1
----
278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT MAX( DISTINCT + + 91 ) DIV + - COUNT( * ) + - 67 DIV + 22 + + - 73 col2
----
-167

skipif mysql # not compatible
query I rowsort label-3540
SELECT MAX ( DISTINCT + + 91 ) / + - COUNT ( * ) + - 67 / + 22 + + - 73 col2
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT DISTINCT - CAST( - + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT - CAST ( - + 79 AS INTEGER )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT 86 DIV + 23 + - - 46
----
49

skipif mysql # not compatible
query I rowsort label-3542
SELECT 86 / + 23 + - - 46
----
49

query I rowsort
SELECT ALL + ( + + 74 ) * - 64 + 49 AS col1
----
-4687

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ( - - 88 ) + + 90 + - + COUNT( * ) AS col2
----
177

skipif mysql # not compatible
query I rowsort label-3544
SELECT ( - - 88 ) + + 90 + - + COUNT ( * ) AS col2
----
177

query I rowsort
SELECT ALL - ( + 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT + + 0 * - + 75 + + + NULLIF ( COUNT( * ), + 91 + - + 24 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT + + 0 * - + 75 + + + NULLIF ( COUNT ( * ), + 91 + - + 24 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT DISTINCT 4 * - CASE COUNT( * ) WHEN 96 THEN - 57 + - - CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT 4 * - CASE COUNT ( * ) WHEN 96 THEN - 57 + - - CAST ( NULL AS INTEGER ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT - 37 DIV + - 35 + - 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3548
SELECT - 37 / + - 35 + - 37 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL COUNT( * ) + - 71 + COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL COUNT ( * ) + - 71 + COUNT ( * ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT AVG ( - 25 ) + - + 73 + - + CAST( NULL AS SIGNED ) - + 40 * - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT AVG ( - 25 ) + - + 73 + - + CAST ( NULL AS INTEGER ) - + 40 * - - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT + 33 * - + 55 + - - COUNT( * ) + - + 10 * - 91 + - 94
----
-998

skipif mysql # not compatible
query I rowsort label-3551
SELECT + 33 * - + 55 + - - COUNT ( * ) + - + 10 * - 91 + - 94
----
-998

query I rowsort
SELECT DISTINCT + 26 * 56 * + CASE - 62 WHEN - 75 THEN - ( 93 ) + + ( - 38 ) ELSE - 37 END AS col2
----
-53872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3553
SELECT + - MIN( ALL - + 22 ) AS col0, - CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-3553
SELECT + - MIN ( ALL - + 22 ) AS col0, - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT + COUNT( * ) + + 54
----
55

skipif mysql # not compatible
query I rowsort label-3554
SELECT + COUNT ( * ) + + 54
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - ( MAX( ALL + 60 ) ) + - 34
----
-94

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - ( MAX ( ALL + 60 ) ) + - 34
----
-94

query I rowsort
SELECT DISTINCT - + 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT 93 + + CASE - COUNT( * ) WHEN 77 THEN NULL WHEN + 44 + + - COUNT( - + 80 ) + + 58 * - 75 THEN 38 END + ( COUNT( * ) ) + - - ( + 6 ) + + 81 / 78 * 14 * + ( + 72 ) * - + 21 - + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT 93 + + CASE - COUNT ( * ) WHEN 77 THEN NULL WHEN + 44 + + - COUNT ( - + 80 ) + + 58 * - 75 THEN 38 END + ( COUNT ( * ) ) + - - ( + 6 ) + + 81 / 78 * 14 * + ( + 72 ) * - + 21 - + - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3558
SELECT DISTINCT ( + COUNT( * ) ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT ( + COUNT ( * ) ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 1 + 4 AS col2
----
3

query I rowsort
SELECT ALL 51 + + 59 * - 9 * 81 AS col0
----
-42960

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL - + MAX( DISTINCT - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - + MAX ( DISTINCT - 27 ) AS col2
----
27

query I rowsort
SELECT - + 70 * 72 + - 89 AS col2
----
-5129

query I rowsort
SELECT DISTINCT - + 73 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL 78 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL 78 + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT 27 + - + 94 * + - 29 AS col2, - 64 * - + COALESCE ( - + MAX( ALL - NULLIF ( + ( 22 ), + 68 ) ), + COUNT( * ) * ( - 2 ), 40 + 6 ) AS col2
----
2753
1408

skipif mysql # not compatible
query II rowsort label-3565
SELECT 27 + - + 94 * + - 29 AS col2, - 64 * - + COALESCE ( - + MAX ( ALL - NULLIF ( + ( 22 ), + 68 ) ), + COUNT ( * ) * ( - 2 ), 40 + 6 ) AS col2
----
2753
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL ( - ( - CASE + COALESCE ( + 70, - + 9 ) WHEN 45 * COUNT( * ) * - 40 THEN NULL WHEN - 75 * + COUNT( * ) THEN - + COUNT( * ) ELSE NULL END ) ) * + 84 / 1 + - CASE 1 WHEN + 69 THEN + MIN( - 83 ) + - 19 * + + COUNT( 85 ) + - 19 ELSE NULL END / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL ( - ( - CASE + COALESCE ( + 70, - + 9 ) WHEN 45 * COUNT ( * ) * - 40 THEN NULL WHEN - 75 * + COUNT ( * ) THEN - + COUNT ( * ) ELSE NULL END ) ) * + 84 / 1 + - CASE 1 WHEN + 69 THEN + MIN ( - 83 ) + - 19 * + + COUNT ( 85 ) + - 19 ELSE NULL END / 92
----
NULL

query I rowsort
SELECT - CASE + 87 WHEN - 3 * 38 THEN NULL ELSE - 32 + + NULLIF ( + + 46, - - 48 - - 8 ) END AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT SUM( DISTINCT 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT SUM ( DISTINCT 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT DISTINCT 92 - + 0 + + 42 AS col2, + 78 * + 33 * 73 * + 45 + 20 + - COALESCE ( + 37, + 93 ) + 42 + - 71 / 72 / + SUM( - + 73 ) * + 95 + - + 38 + 36 + + - MIN( - 20 ) + - 14 * - - CASE + + 50 WHEN 6 * + 15 + - AVG ( 81 ) THEN NULL WHEN 31 + + + NULLIF ( - 50, - - 93 + + - 76 ) + - - COUNT( * ) + COUNT( * ) + 73 THEN - 42 END
----
134
NULL

skipif mysql # not compatible
query II rowsort label-3569
SELECT DISTINCT 92 - + 0 + + 42 AS col2, + 78 * + 33 * 73 * + 45 + 20 + - COALESCE ( + 37, + 93 ) + 42 + - 71 / 72 / + SUM ( - + 73 ) * + 95 + - + 38 + 36 + + - MIN ( - 20 ) + - 14 * - - CASE + + 50 WHEN 6 * + 15 + - AVG ( 81 ) THEN NULL WHEN 31 + + + NULLIF ( - 50, - - 93 + + - 76 ) + - - COUNT ( * ) + COUNT ( * ) + 73 THEN - 42 END
----
134
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL COUNT( - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL COUNT ( - 33 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT ALL COUNT( * ) * - + NULLIF ( - SUM( DISTINCT - + 25 ), - 29 ), - 74 * ( 16 ) * - 84 - - 97 AS col2
----
-25
99553

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL COUNT ( * ) * - + NULLIF ( - SUM ( DISTINCT - + 25 ), - 29 ), - 74 * ( 16 ) * - 84 - - 97 AS col2
----
-25
99553

query I rowsort
SELECT - 39 + - 29 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT CASE - COUNT( * ) WHEN + 68 THEN + 97 * - 17 * - - 69 * + 91 + + 12 + - 87 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT CASE - COUNT ( * ) WHEN + 68 THEN + 97 * - 17 * - - 69 * + 91 + + 12 + - 87 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT + 9 DIV - - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3574
SELECT + 9 / - - 56 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT - 15 * NULLIF ( + NULLIF ( 65, + + NULLIF ( - 93, ( - - 71 ) ) + - - 21 * 31 * + CAST( NULL AS SIGNED ) * - 93 * 25 ), + 7 + + 17 ) AS col2
----
-975

skipif mysql # not compatible
query I rowsort label-3575
SELECT - 15 * NULLIF ( + NULLIF ( 65, + + NULLIF ( - 93, ( - - 71 ) ) + - - 21 * 31 * + CAST ( NULL AS INTEGER ) * - 93 * 25 ), + 7 + + 17 ) AS col2
----
-975

query II rowsort
SELECT - 68, 27 + 89 + - 22 col0
----
-68
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL COUNT( ALL + + 60 )
----
1

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL COUNT ( ALL + + 60 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT + 85 - - 91 + + ( + NULLIF ( ( - + 64 ), - CAST( NULL AS SIGNED ) ) ) * - - 72 + 45 - - + ( - - MIN( + 38 ) ) col1
----
-4349

skipif mysql # not compatible
query I rowsort label-3578
SELECT + 85 - - 91 + + ( + NULLIF ( ( - + 64 ), - CAST ( NULL AS INTEGER ) ) ) * - - 72 + 45 - - + ( - - MIN ( + 38 ) ) col1
----
-4349

query II rowsort
SELECT - 62 - - 51 - 72 AS col1, - 5
----
-83
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT - 85 + + - 68 + + 95 DIV - - 54 AS col0
----
-152

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 85 + + - 68 + + 95 / - - 54 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-3581
SELECT ALL CASE + 55 WHEN + 74 * - 33 THEN + 22 / 37 END AS col2, 88 + + + 89 * - COUNT( * ) col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3581
SELECT ALL CASE + 55 WHEN + 74 * - 33 THEN + 22 / 37 END AS col2, 88 + + + 89 * - COUNT ( * ) col2
----
NULL
-1

query I rowsort
SELECT ALL + 99 * - 3 * 53 * - 87 AS col0
----
1369467

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL + COUNT( * ) * COALESCE ( 80, - 36 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL + COUNT ( * ) * COALESCE ( 80, - 36 ) AS col1
----
80

query I rowsort
SELECT ALL + 37 * 56
----
2072

query I rowsort
SELECT DISTINCT + CASE + - 13 WHEN - 5 THEN - - 16 END AS col1
----
NULL

query I rowsort
SELECT + - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3587
SELECT + - COUNT( * ) AS col0, 0 * NULLIF ( 27, + - 76 ) + + 51 * - COALESCE ( + + 26, + 85 DIV + 43 )
----
-1
-1326

skipif mysql # not compatible
query II rowsort label-3587
SELECT + - COUNT ( * ) AS col0, 0 * NULLIF ( 27, + - 76 ) + + 51 * - COALESCE ( + + 26, + 85 / + 43 )
----
-1
-1326

query I rowsort
SELECT - + 66 * - - 92 * 91
----
-552552

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT + - CASE WHEN NOT NULL NOT IN ( 97, - 74 * + 64 ) THEN - 75 ELSE + 89 END * - 98 + 56 + 60 - COUNT( * ) * - 7 + - - 18 + + 64 * - + 75 col0
----
4063

skipif mysql # not compatible
query I rowsort label-3589
SELECT + - CASE WHEN NOT NULL NOT IN ( 97, - 74 * + 64 ) THEN - 75 ELSE + 89 END * - 98 + 56 + 60 - COUNT ( * ) * - 7 + - - 18 + + 64 * - + 75 col0
----
4063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT + COUNT( * ) * + 9 + 23 * + 1 + - ( COUNT( * ) ) + + 42 DIV - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT + COUNT ( * ) * + 9 + 23 * + 1 + - ( COUNT ( * ) ) + + 42 / - COUNT ( * )
----
-11

query II rowsort
SELECT ALL + 13 AS col2, + 35 - + 37 AS col0
----
13
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT DISTINCT + - CAST( 20 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + - CAST ( 20 AS INTEGER ) AS col2
----
-20

query II rowsort
SELECT ALL + 88 * 57 + + 8 AS col1, + COALESCE ( 20, - 12 * - 31, - - 77, 51 )
----
5024
20

query I rowsort
SELECT - 52 * + 14
----
-728

query I rowsort
SELECT DISTINCT + - 21 col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT DISTINCT + COUNT( * ) * + ( + ( 4 ) ) + 59 AS col2, COUNT( * ) AS col0
----
63
1

skipif mysql # not compatible
query II rowsort label-3596
SELECT DISTINCT + COUNT ( * ) * + ( + ( 4 ) ) + 59 AS col2, COUNT ( * ) AS col0
----
63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT + 28 * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT + 28 * + COUNT ( * )
----
28

query I rowsort
SELECT ALL + - 62 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + - 94 * 12 * - - MIN( DISTINCT - COALESCE ( + + 10, - - 23, 16 ) ) + - - 88 - + + SUM( - 35 ) + 78 + - + 48 AS col2
----
11433

skipif mysql # not compatible
query I rowsort label-3599
SELECT + - 94 * 12 * - - MIN ( DISTINCT - COALESCE ( + + 10, - - 23, 16 ) ) + - - 88 - + + SUM ( - 35 ) + 78 + - + 48 AS col2
----
11433

query I rowsort
SELECT + 6 * + 44 col1
----
264

query II rowsort
SELECT ALL + 62 AS col2, - 50 * - + 93 - 88 * + - 85 AS col1
----
62
12130

query I rowsort
SELECT ALL ( - 62 ) * 29 AS col2
----
-1798

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT + 52 + + COUNT( * ), 33 AS col1
----
53
33

skipif mysql # not compatible
query II rowsort label-3603
SELECT + 52 + + COUNT ( * ), 33 AS col1
----
53
33

query I rowsort
SELECT + ( 71 )
----
71

query I rowsort
SELECT + 69 * 31 * + 63 AS col0
----
134757

query II rowsort
SELECT ALL + 52 AS col2, 48 * + + NULLIF ( - + 29, + 87 ) AS col0
----
52
-1392

query I rowsort
SELECT ALL - 44 * + 3 - - 67
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT ALL COUNT( * ) AS col1, - 19
----
1
-19

skipif mysql # not compatible
query II rowsort label-3608
SELECT ALL COUNT ( * ) AS col1, - 19
----
1
-19

query II rowsort
SELECT DISTINCT 6 AS col2, 77 col0
----
6
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT SUM( ( + - 45 ) ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-3610
SELECT SUM ( ( + - 45 ) ) col0
----
-45

query II rowsort
SELECT DISTINCT 61 AS col2, - 68 * 4
----
61
-272

query I rowsort
SELECT + 86 + + 48 * + 89
----
4358

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + 92 DIV - 18 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 92 / - 18 AS col2
----
-5

query I rowsort
SELECT + 62 + + 88 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL COUNT( ALL - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL COUNT ( ALL - 15 )
----
1

query I rowsort
SELECT DISTINCT 32 * + - ( 29 ) AS col0
----
-928

query I rowsort
SELECT + 38 + - + 46 + - - 29 + + 96 * 13 col2
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL - 67 + - + MIN( DISTINCT + + 45 )
----
-112

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 67 + - + MIN ( DISTINCT + + 45 )
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3619
SELECT ALL 81 AS col0, CAST( NULL AS SIGNED ) AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL 81 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
81
NULL

query II rowsort
SELECT 98 AS col2, + 75
----
98
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - 8 + + COALESCE ( 48, - COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3621
SELECT - 8 + + COALESCE ( 48, - COUNT ( * ) ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL COUNT( * ) * - COUNT( * ) * + + 5 * COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + + 5 * COUNT ( * ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - 50 + - 42 + + - 95 + + + COUNT( * )
----
-186

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - 50 + - 42 + + - 95 + + + COUNT ( * )
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL + 75 + - CAST( + 1 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL + 75 + - CAST ( + 1 AS INTEGER ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT + - COALESCE ( - + 94, 70 ) * CAST( NULL AS SIGNED ) * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT + - COALESCE ( - + 94, 70 ) * CAST ( NULL AS INTEGER ) * + 26 AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( - 2, - - 43 * - 97 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + - 95 + + - 53 * + - COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-3627
SELECT + - 95 + + - 53 * + - COUNT ( * ) col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT - 69 DIV - - 21
----
-3

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 69 / - - 21
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT + + COUNT( * ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + + COUNT ( * ) + + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT - 13 + + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-3630
SELECT - 13 + + - COUNT ( * )
----
-14

query I rowsort
SELECT - 83 * + 24 + 88
----
-1904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL - CAST( + 41 AS SIGNED ) + 62 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL - CAST ( + 41 AS INTEGER ) + 62 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3633
SELECT - 47 AS col2, CAST( + 98 AS SIGNED ) + - 75 AS col0
----
-47
23

skipif mysql # not compatible
query II rowsort label-3633
SELECT - 47 AS col2, CAST ( + 98 AS INTEGER ) + - 75 AS col0
----
-47
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT ALL + 34 DIV + 51 + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + 34 / + 51 + + 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - 36 + + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3635
SELECT - 36 + + - COUNT ( * )
----
-37

query II rowsort
SELECT ALL + - 10 col2, 83 * 95 * - + 1 AS col1
----
-10
-7885

query I rowsort
SELECT 54 * + + 60 + + 10
----
3250

query I rowsort
SELECT + + 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL + - COUNT( ALL + 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + - COUNT ( ALL + 37 )
----
-1

query I rowsort
SELECT + ( + 12 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3641
SELECT COUNT( * ) DIV + ( + - 31 ) + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3641
SELECT COUNT ( * ) / + ( + - 31 ) + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL - COUNT( ALL ( + 62 ) ) * + + 83 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - COUNT ( ALL ( + 62 ) ) * + + 83 AS col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3643
SELECT ALL + - 14 DIV COUNT( DISTINCT + + 95 ) - + 38 * 90 * 49, 17 + 38 AS col1
----
-167594
55

skipif mysql # not compatible
query II rowsort label-3643
SELECT ALL + - 14 / COUNT ( DISTINCT + + 95 ) - + 38 * 90 * 49, 17 + 38 AS col1
----
-167594
55

query II rowsort
SELECT + + 20, 60 AS col0
----
20
60

query I rowsort
SELECT ALL - + 90 * - - 10 AS col2
----
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3646
SELECT DISTINCT 81 DIV + - COALESCE ( 33, + - 39 * - + 98 DIV 91 + - 21 ) - + MAX( - + ( 63 ) )
----
61

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT 81 / + - COALESCE ( 33, + - 39 * - + 98 / 91 + - 21 ) - + MAX ( - + ( 63 ) )
----
61

query I rowsort
SELECT - 46 + - 78 + - 27
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT 26 + + + 38 + - + 90 + - 90 - - 78 * - - COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3648
SELECT 26 + + + 38 + - + 90 + - 90 - - 78 * - - COUNT ( * ) AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT DISTINCT + COUNT( + + 0 ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + COUNT ( + + 0 ) / - 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3650
SELECT 42 * CAST( + 43 AS SIGNED ) AS col1, - NULLIF ( ( - - MAX( - + 81 ) ), 79 * - 96 )
----
1806
81

skipif mysql # not compatible
query II rowsort label-3650
SELECT 42 * CAST ( + 43 AS INTEGER ) AS col1, - NULLIF ( ( - - MAX ( - + 81 ) ), 79 * - 96 )
----
1806
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3651
SELECT COUNT( * ) * - 8 AS col1, - 38 DIV ( + 44 )
----
-8
0

skipif mysql # not compatible
query II rowsort label-3651
SELECT COUNT ( * ) * - 8 AS col1, - 38 / ( + 44 )
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT 61 + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-3652
SELECT 61 + COUNT ( * )
----
62

query I rowsort
SELECT ALL 74 * + CASE 84 WHEN + + 1 THEN + + 60 ELSE 56 END * - 41 AS col2
----
-169904

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT 32 * + MAX( DISTINCT - 81 ) AS col2
----
-2592

skipif mysql # not compatible
query I rowsort label-3654
SELECT 32 * + MAX ( DISTINCT - 81 ) AS col2
----
-2592

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT DISTINCT - 26 * - 18 AS col0, MIN( - + 17 ) + - + COUNT( * ) * 38 AS col1
----
468
-55

skipif mysql # not compatible
query II rowsort label-3655
SELECT DISTINCT - 26 * - 18 AS col0, MIN ( - + 17 ) + - + COUNT ( * ) * 38 AS col1
----
468
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3656
SELECT DISTINCT 68 + - COUNT( * ), + 54 + - CAST( NULL AS SIGNED ) * + 42 * 5 * + CASE - 93 WHEN - + 38 THEN + - CAST( - - 64 AS SIGNED ) ELSE + 23 * + COALESCE ( 79, 15 - - + 90 + 17 ) * + 91 END + + - 68 + - - 42 - 4 AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3656
SELECT DISTINCT 68 + - COUNT ( * ), + 54 + - CAST ( NULL AS INTEGER ) * + 42 * 5 * + CASE - 93 WHEN - + 38 THEN + - CAST ( - - 64 AS INTEGER ) ELSE + 23 * + COALESCE ( 79, 15 - - + 90 + 17 ) * + 91 END + + - 68 + - - 42 - 4 AS col2
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3657
SELECT ALL 26 + - + COUNT( * ), - 32 AS col0
----
25
-32

skipif mysql # not compatible
query II rowsort label-3657
SELECT ALL 26 + - + COUNT ( * ), - 32 AS col0
----
25
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT ALL - COUNT( * ) * - - 99, - COUNT( * ) AS col1
----
-99
-1

skipif mysql # not compatible
query II rowsort label-3658
SELECT ALL - COUNT ( * ) * - - 99, - COUNT ( * ) AS col1
----
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT ( - - 63 ) + - MAX( + + 74 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT ( - - 63 ) + - MAX ( + + 74 ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 61 + - 1 AS col1
----
60

query I rowsort
SELECT DISTINCT 30 col0
----
30

query I rowsort
SELECT DISTINCT 79 + - + 71 AS col2
----
8

query II rowsort
SELECT 70 * - 59 AS col0, + 64
----
-4130
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL 90 + - - 0 * + COALESCE ( + 10, - 97 * 36 * 51, + + 37 + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - 57 )
----
90

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL 90 + - - 0 * + COALESCE ( + 10, - 97 * 36 * 51, + + 37 + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 57 )
----
90

query I rowsort
SELECT ALL + 46 + - + 12
----
34

query I rowsort
SELECT + 75 - - - 22 - 41 + + 96 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3667
SELECT - - CAST( - 28 AS SIGNED ) AS col2, 73
----
-28
73

skipif mysql # not compatible
query II rowsort label-3667
SELECT - - CAST ( - 28 AS INTEGER ) AS col2, 73
----
-28
73

query I rowsort
SELECT - 58 * - - 51 * 69 * + 14 col1
----
-2857428

query I rowsort
SELECT ALL 28 * - 20
----
-560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3670
SELECT DISTINCT CAST( - 43 AS SIGNED ), 44 * - 92 + - + 79 + - 49 * + ( 99 ) AS col0
----
-43
-8978

skipif mysql # not compatible
query II rowsort label-3670
SELECT DISTINCT CAST ( - 43 AS INTEGER ), 44 * - 92 + - + 79 + - 49 * + ( 99 ) AS col0
----
-43
-8978

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT + COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3672
SELECT DISTINCT + COALESCE ( + 66, + 36 * + ( ( + - 55 ) ) DIV + 79 DIV + + 28 DIV - COALESCE ( 14, + - COALESCE ( - - MIN( CAST( NULL AS SIGNED ) ), 37 ) ) + + 13 * - 27, 14 ) DIV - + COUNT( * ) + + COALESCE ( COUNT( DISTINCT + 96 ), 35 ) * 55 + + 84
----
73

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + COALESCE ( + 66, + 36 * + ( ( + - 55 ) ) / + 79 / + + 28 / - COALESCE ( 14, + - COALESCE ( - - MIN ( CAST ( NULL AS INTEGER ) ), 37 ) ) + + 13 * - 27, 14 ) / - + COUNT ( * ) + + COALESCE ( COUNT ( DISTINCT + 96 ), 35 ) * 55 + + 84
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL + 5 + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL + 5 + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT - NULLIF ( 88, - - 64 - - 89 ) * 48 - 88 - - - COUNT( * ) + 6 * 56 - + + COUNT( * ) DIV + 41 + - NULLIF ( 12, 73 * - 50 * - - 0 * + - 61 + 85 )
----
-3989

skipif mysql # not compatible
query I rowsort label-3674
SELECT - NULLIF ( 88, - - 64 - - 89 ) * 48 - 88 - - - COUNT ( * ) + 6 * 56 - + + COUNT ( * ) / + 41 + - NULLIF ( 12, 73 * - 50 * - - 0 * + - 61 + 85 )
----
-3989

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL + MIN( - - 22 ) * - 23 + + 55
----
-451

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL + MIN ( - - 22 ) * - 23 + + 55
----
-451

query I rowsort
SELECT - ( 12 ) AS col1
----
-12

query I rowsort
SELECT ALL + 45 - + 47 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3678
SELECT CAST( NULL AS SIGNED ) * - - 60 AS col1, - 5 - - 78 / CAST( NULL AS SIGNED ) / + 67 * - 56
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3678
SELECT CAST ( NULL AS INTEGER ) * - - 60 AS col1, - 5 - - 78 / CAST ( NULL AS INTEGER ) / + 67 * - 56
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT 12 + + - 83 + - - SUM( + 33 )
----
-38

skipif mysql # not compatible
query I rowsort label-3679
SELECT 12 + + - 83 + - - SUM ( + 33 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + + SUM( DISTINCT + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3680
SELECT + + SUM ( DISTINCT + 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL + - CASE 11 WHEN - 98 + + - 6 THEN + 66 * 41 WHEN + - ( + COUNT( * ) ) + - 51 - 18 + - + 14 THEN NULL WHEN 44 + - 0 THEN 69 + - - 99 ELSE NULL END / - 8 * + 18 * + - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + - CASE 11 WHEN - 98 + + - 6 THEN + 66 * 41 WHEN + - ( + COUNT ( * ) ) + - 51 - 18 + - + 14 THEN NULL WHEN 44 + - 0 THEN 69 + - - 99 ELSE NULL END / - 8 * + 18 * + - 20 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - + 79, - 54, + - 62 + + 77 * + 2 * 84 * + 3 ) * + + COALESCE ( - 87, 2 ) + + 23
----
-6850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT ALL - CAST( 92 AS SIGNED ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - CAST ( 92 AS INTEGER ) col0
----
-92

query I rowsort
SELECT ALL - 84 * + 37 AS col0
----
-3108

query I rowsort
SELECT ALL - 12 * - 97 AS col1
----
1164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3686
SELECT 52 - 88 + - + 40 * - + CAST( - COUNT( 30 ) AS SIGNED ) + - 10 DIV - 89, - 65 AS col2
----
-76
-65

skipif mysql # not compatible
query II rowsort label-3686
SELECT 52 - 88 + - + 40 * - + CAST ( - COUNT ( 30 ) AS INTEGER ) + - 10 / - 89, - 65 AS col2
----
-76
-65

query II rowsort
SELECT ALL - 87 AS col2, 21 + - 55 AS col2
----
-87
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - MIN( ALL + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - MIN ( ALL + 49 )
----
-49

query I rowsort
SELECT 26 + - 98 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3690
SELECT 36 + + CAST( NULL AS SIGNED ) - + 90 - - - 71 * 95 / - 70 AS col0, - 38 AS col2
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-3690
SELECT 36 + + CAST ( NULL AS INTEGER ) - + 90 - - - 71 * 95 / - 70 AS col0, - 38 AS col2
----
NULL
-38

query I rowsort
SELECT ALL - 12 + + 47 * + 4
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT 45 DIV - 13
----
-3

skipif mysql # not compatible
query I rowsort label-3692
SELECT 45 / - 13
----
-3

query I rowsort
SELECT ALL + 49 + + 86 AS col2
----
135

query I rowsort
SELECT 51 + + 47 + + 39 + - + 7 AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT 35 DIV - - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT 35 / - - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT COUNT( DISTINCT - 19 ) + 7 col2
----
8

skipif mysql # not compatible
query I rowsort label-3696
SELECT COUNT ( DISTINCT - 19 ) + 7 col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL + 50 + + - 58 + 72 * CAST( - 21 AS SIGNED ) * + 98 + - 84
----
-148268

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + 50 + + - 58 + 72 * CAST ( - 21 AS INTEGER ) * + 98 + - 84
----
-148268

query I rowsort
SELECT 80 + - 14 col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT 51 + + + 88 - 5 + + 10 * - MAX( DISTINCT 60 ) + + + 44 AS col2
----
-422

skipif mysql # not compatible
query I rowsort label-3699
SELECT 51 + + + 88 - 5 + + 10 * - MAX ( DISTINCT 60 ) + + + 44 AS col2
----
-422

query II rowsort
SELECT 61, + 5 AS col1
----
61
5

query I rowsort
SELECT ALL + + 20 * + + 71
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - 73 + COUNT( * ) + - 29 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-3702
SELECT - 73 + COUNT ( * ) + - 29 AS col1
----
-101

query I rowsort
SELECT - + 63 col1
----
-63

query I rowsort
SELECT DISTINCT - 67 + 80
----
13

query I rowsort
SELECT ALL - 9 + 7
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL - + ( + + 82 ) * COUNT( * ) * 79
----
-6478

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - + ( + + 82 ) * COUNT ( * ) * 79
----
-6478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT ALL + 34 - - CAST( + COUNT( * ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + 34 - - CAST ( + COUNT ( * ) AS INTEGER )
----
35

query I rowsort
SELECT + 9 + + 75
----
84

query I rowsort
SELECT DISTINCT + 65 * + 39 AS col0
----
2535

query I rowsort
SELECT DISTINCT - - 77 - - 65 AS col1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-3711
SELECT ALL 4 AS col2, COUNT( * ) * + COUNT( * ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL 4 AS col2, COUNT ( * ) * + COUNT ( * ) AS col1
----
4
1

query I rowsort
SELECT ALL - 74 - 25 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT - ( 45 ) * 86 - 76 * + SUM( + 36 ) AS col0
----
-6606

skipif mysql # not compatible
query I rowsort label-3713
SELECT - ( 45 ) * 86 - 76 * + SUM ( + 36 ) AS col0
----
-6606

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT - 59 * - - COUNT( * ) * 1 * + 74 col0
----
-4366

skipif mysql # not compatible
query I rowsort label-3714
SELECT - 59 * - - COUNT ( * ) * 1 * + 74 col0
----
-4366

query I rowsort
SELECT - 98 + 3
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3716
SELECT ALL 55 * 35 * + 46, NULLIF ( - ( - + 69 ), + CAST( + 18 AS SIGNED ) + + COUNT( * ) ) AS col1
----
88550
69

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL 55 * 35 * + 46, NULLIF ( - ( - + 69 ), + CAST ( + 18 AS INTEGER ) + + COUNT ( * ) ) AS col1
----
88550
69

query I rowsort
SELECT + 25 * + 38 AS col0
----
950

query I rowsort
SELECT + + 11 + - + 76 - + 96 col1
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3719
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3719
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT COUNT( * ) * 75 + 25
----
100

skipif mysql # not compatible
query I rowsort label-3720
SELECT COUNT ( * ) * 75 + 25
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3721
SELECT ALL + COALESCE ( - - MIN( DISTINCT CAST( NULL AS SIGNED ) ), - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + COALESCE ( - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ), - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT CASE - 62 WHEN 31 THEN NULL WHEN 20 + - 95 - + NULLIF ( - - COUNT( * ), + 57 / - 18 + - 92 + - 7 ) + COUNT( * ) + + ( - - 57 ) THEN - 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT CASE - 62 WHEN 31 THEN NULL WHEN 20 + - 95 - + NULLIF ( - - COUNT ( * ), + 57 / - 18 + - 92 + - 7 ) + COUNT ( * ) + + ( - - 57 ) THEN - 70 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT COALESCE ( - CAST( + SUM( DISTINCT + 32 ) AS SIGNED ), 66, + MIN( DISTINCT 11 ) ) / - - 61 + + 27 + + - ( - COUNT( * ) ) - 1 * + CAST( NULL AS SIGNED ) * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT COALESCE ( - CAST ( + SUM ( DISTINCT + 32 ) AS INTEGER ), 66, + MIN ( DISTINCT 11 ) ) / - - 61 + + 27 + + - ( - COUNT ( * ) ) - 1 * + CAST ( NULL AS INTEGER ) * - - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT COALESCE ( + 57, 81, + 30 * + - 4 * + 21 + + - 22 ) col1, 38 + + COUNT( * ) + 65 AS col1
----
57
104

skipif mysql # not compatible
query II rowsort label-3724
SELECT COALESCE ( + 57, 81, + 30 * + - 4 * + 21 + + - 22 ) col1, 38 + + COUNT ( * ) + 65 AS col1
----
57
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3725
SELECT + 63 * COUNT( * ) col2, 11 * + - 16 + CASE + + ( + 47 ) WHEN - 5 * SUM( ALL CAST( NULL AS DECIMAL ) ) - - 3 THEN 17 + CAST( NULL AS SIGNED ) WHEN + + 45 * + - 63 / + - 77 - + + COUNT( * ) THEN NULL ELSE NULL END AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3725
SELECT + 63 * COUNT ( * ) col2, 11 * + - 16 + CASE + + ( + 47 ) WHEN - 5 * SUM ( ALL CAST ( NULL AS REAL ) ) - - 3 THEN 17 + CAST ( NULL AS INTEGER ) WHEN + + 45 * + - 63 / + - 77 - + + COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT - 69 + + COUNT( * ) * + - 19 + - + 23, MIN( + 37 ) AS col0
----
-111
37

skipif mysql # not compatible
query II rowsort label-3726
SELECT - 69 + + COUNT ( * ) * + - 19 + - + 23, MIN ( + 37 ) AS col0
----
-111
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + 39 * + + MIN( ALL + + 19 ) AS col2
----
741

skipif mysql # not compatible
query I rowsort label-3727
SELECT + 39 * + + MIN ( ALL + + 19 ) AS col2
----
741

query I rowsort
SELECT ALL 90 * 24 * ( + - 60 ) * 48 + + - 25 + - 91 * + 76 AS col0
----
-6227741

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT - COUNT( * ) * 34 * + - 65 * - - 62 AS col1, + COUNT( * ) AS col2
----
137020
1

skipif mysql # not compatible
query II rowsort label-3729
SELECT - COUNT ( * ) * 34 * + - 65 * - - 62 AS col1, + COUNT ( * ) AS col2
----
137020
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT MAX( - + 86 ) * 38 - 60 AS col2
----
-3328

skipif mysql # not compatible
query I rowsort label-3730
SELECT MAX ( - + 86 ) * 38 - 60 AS col2
----
-3328

query I rowsort
SELECT - ( ( 72 ) ) * + ( 30 ) + - 99 + 71 * 3 + 22 AS col1
----
-2024

onlyif mysql # aggregate syntax: 
query II rowsort label-3732
SELECT ALL NULLIF ( - 39, - MIN( DISTINCT 30 ) ) AS col0, 75
----
-39
75

skipif mysql # not compatible
query II rowsort label-3732
SELECT ALL NULLIF ( - 39, - MIN ( DISTINCT 30 ) ) AS col0, 75
----
-39
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT + 36 + + - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + 36 + + - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT - - ( 72 ) * - + 40 + + - 75 AS col2
----
-2955

query I rowsort
SELECT ALL ( + 40 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT DISTINCT + + 17 DIV + 13 - COUNT( * ) * 85 DIV + - 91 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + + 17 / + 13 - COUNT ( * ) * 85 / + - 91 AS col0
----
1

query I rowsort
SELECT ALL + 78 - 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT - + COUNT( * ) DIV + + 68 * + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - + COUNT ( * ) / + + 68 * + 64 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - 73 + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-3739
SELECT - 73 + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - + ( + COUNT( * ) ) * + 83
----
-83

skipif mysql # not compatible
query I rowsort label-3740
SELECT - + ( + COUNT ( * ) ) * + 83
----
-83

query I rowsort
SELECT + + 0 + + - 24 + - - 98
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT - + 50 * + + CASE - 65 WHEN + - 83 THEN - COUNT( * ) - 29 WHEN 56 * + 38 + - MAX( ALL + 86 ) THEN NULL ELSE NULL END + - NULLIF ( ( - ( + 22 ) ), - 5 ) / + 7 * + ( 81 ) / - 57 + ( - COUNT( 35 ) ) + - 33 + - 26 * - 17 + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - + 50 * + + CASE - 65 WHEN + - 83 THEN - COUNT ( * ) - 29 WHEN 56 * + 38 + - MAX ( ALL + 86 ) THEN NULL ELSE NULL END + - NULLIF ( ( - ( + 22 ) ), - 5 ) / + 7 * + ( 81 ) / - 57 + ( - COUNT ( 35 ) ) + - 33 + - 26 * - 17 + 69
----
NULL

query I rowsort
SELECT ALL 35 * + 36 * + - 52 * 39
----
-2555280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT DISTINCT + 93 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + 93 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - - ( - COUNT( * ) ) - - 70
----
69

skipif mysql # not compatible
query I rowsort label-3746
SELECT - - ( - COUNT ( * ) ) - - 70
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT + MAX( + ( + 72 ) ) * - 99
----
-7128

skipif mysql # not compatible
query I rowsort label-3747
SELECT + MAX ( + ( + 72 ) ) * - 99
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - 87 * SUM( ALL - 3 )
----
261

skipif mysql # not compatible
query I rowsort label-3748
SELECT - 87 * SUM ( ALL - 3 )
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT CAST( + 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-3749
SELECT CAST ( + 48 AS INTEGER )
----
48

query I rowsort
SELECT + ( + 99 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT DISTINCT - 35 DIV 50 + + 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - 35 / 50 + + 91 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT + COUNT( - - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT + COUNT ( - - 44 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3753
SELECT ALL 6 DIV 39 * - 47 * - + 92 + + + 77 col0, + 16
----
77
16

skipif mysql # not compatible
query II rowsort label-3753
SELECT ALL 6 / 39 * - 47 * - + 92 + + + 77 col0, + 16
----
77
16

query I rowsort
SELECT ( + COALESCE ( + 43, - - 78 ) ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT + 9 DIV - 59 * - 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT + 9 / - 59 * - 60 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - 25 * - COUNT( * ) + + 92
----
117

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - 25 * - COUNT ( * ) + + 92
----
117

query I rowsort
SELECT ( 85 )
----
85

query I rowsort
SELECT ( + + 13 )
----
13

query I rowsort
SELECT - 79 - - + ( 35 ) * - 24 * + 88
----
-73999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT - CAST( - 94 AS SIGNED ) * + - 76 col2
----
-7144

skipif mysql # not compatible
query I rowsort label-3760
SELECT - CAST ( - 94 AS INTEGER ) * + - 76 col2
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL COUNT( * ) * - + ( + ( - COUNT( * ) ) ) - 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL COUNT ( * ) * - + ( + ( - COUNT ( * ) ) ) - 95 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL + 14 * COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + 14 * COUNT ( * ) AS col1
----
14

query I rowsort
SELECT ALL ( + 52 ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT CASE 3 WHEN 88 THEN NULL WHEN ( COUNT( * ) ) THEN - 10 + + COUNT( * ) / + 59 ELSE + CASE 87 WHEN - 29 THEN 39 ELSE NULL END * 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT CASE 3 WHEN 88 THEN NULL WHEN ( COUNT ( * ) ) THEN - 10 + + COUNT ( * ) / + 59 ELSE + CASE 87 WHEN - 29 THEN 39 ELSE NULL END * 81 END
----
NULL

query I rowsort
SELECT - 72 + 37 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT + CAST( COUNT( - 3 ) AS SIGNED ) * - 48
----
-48

skipif mysql # not compatible
query I rowsort label-3766
SELECT + CAST ( COUNT ( - 3 ) AS INTEGER ) * - 48
----
-48

query I rowsort
SELECT - 89 * + 14
----
-1246

query I rowsort
SELECT ALL + COALESCE ( - 32, 92 + 37 * 89 ) * 41
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL CASE + COUNT( * ) WHEN - 86 * - 9 THEN ( + 96 ) WHEN 46 + 82 * ( - 47 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL CASE + COUNT ( * ) WHEN - 86 * - 9 THEN ( + 96 ) WHEN 46 + 82 * ( - 47 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 97 * - 82 AS col0
----
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - 42 + - MAX( - 58 )
----
16

skipif mysql # not compatible
query I rowsort label-3771
SELECT - 42 + - MAX ( - 58 )
----
16

query I rowsort
SELECT ALL ( + 48 ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT - 53 * - CAST( - 17 AS SIGNED ) AS col1
----
-901

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 53 * - CAST ( - 17 AS INTEGER ) AS col1
----
-901

query I rowsort
SELECT ALL 59 * 38 AS col1
----
2242

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT DISTINCT 94 + - 51 DIV - 46
----
95

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT 94 + - 51 / - 46
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT 20 + ( + COUNT( 96 ) )
----
21

skipif mysql # not compatible
query I rowsort label-3776
SELECT 20 + ( + COUNT ( 96 ) )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT ALL - 52 DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - 52 / 46
----
-1

query I rowsort
SELECT 27 * 12
----
324

query I rowsort
SELECT 30 + 76 * - 95 AS col0
----
-7190

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL - ( SUM( DISTINCT 30 ) ) + - ( - 70 ) col2
----
40

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - ( SUM ( DISTINCT 30 ) ) + - ( - 70 ) col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT 17 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT 17 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT DISTINCT + CAST( MAX( NULLIF ( CAST( NULL AS SIGNED ), - 16 ) ) AS SIGNED ) + - CASE 29 WHEN + SUM( 61 ) THEN - 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + CAST ( MAX ( NULLIF ( CAST ( NULL AS INTEGER ), - 16 ) ) AS INTEGER ) + - CASE 29 WHEN + SUM ( 61 ) THEN - 93 END AS col2
----
NULL

query I rowsort
SELECT ALL - 26 * - 89 AS col2
----
2314

query I rowsort
SELECT ALL + 62 + + 29 AS col0
----
91

query I rowsort
SELECT ALL 28 + 98 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT MAX( - 30 ) + - MIN( ALL 26 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-3786
SELECT MAX ( - 30 ) + - MIN ( ALL 26 ) col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT DISTINCT + SUM( 10 ) + + 57 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT + SUM ( 10 ) + + 57 AS col2
----
67

query I rowsort
SELECT DISTINCT - NULLIF ( - 30, COALESCE ( 56, 77 ) * + 31 + + 37 * - 74 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT 41 * - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3789
SELECT 41 * - COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT 77 * 54 AS col1
----
4158

query I rowsort
SELECT ALL - ( 88 )
----
-88

query I rowsort
SELECT DISTINCT 27 - + 25 AS col0
----
2

query I rowsort
SELECT 90 * COALESCE ( 70 * + 46, 15 )
----
289800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL 61 - - CASE 45 WHEN - 88 THEN 16 + 12 WHEN CAST( + 83 AS SIGNED ) / + SUM( ALL + 36 ) THEN NULL WHEN 5 + NULLIF ( 92, + 32 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL 61 - - CASE 45 WHEN - 88 THEN 16 + 12 WHEN CAST ( + 83 AS INTEGER ) / + SUM ( ALL + 36 ) THEN NULL WHEN 5 + NULLIF ( 92, + 32 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - ( 96 ) AS col1
----
-96

query I rowsort
SELECT DISTINCT 96 * 87 AS col2
----
8352

query I rowsort
SELECT 80 * 44
----
3520

query I rowsort
SELECT ALL 14 * - 92
----
-1288

query I rowsort
SELECT ALL - 19 * + 11 AS col2
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL - COUNT( 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - COUNT ( 52 )
----
-1

query I rowsort
SELECT DISTINCT - - 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT COUNT ( * ) * - 89
----
-89

query I rowsort
SELECT + 19 * - 56
----
-1064

query I rowsort
SELECT + 28 - NULLIF ( 89, 47 ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3805
SELECT 84 DIV + CAST( 98 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT 84 / + CAST ( 98 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT MAX( ALL 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3806
SELECT MAX ( ALL 51 ) AS col1
----
51

query I rowsort
SELECT 33 * - 83 AS col0
----
-2739

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT ALL 95 DIV - 1 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL 95 / - 1 AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT 63 DIV + 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3809
SELECT 63 / + 50 AS col2
----
1

query I rowsort
SELECT ALL 38 + + 92
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT + 62 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + 62 / + 33
----
1

query I rowsort
SELECT ALL - 4 + 94 AS col2
----
90

query I rowsort
SELECT ALL + 45 + - 81
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - 91 - MIN( + 55 ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-3814
SELECT - 91 - MIN ( + 55 ) AS col0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT + + 83 + COUNT( * ) * - 34
----
49

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + + 83 + COUNT ( * ) * - 34
----
49

query I rowsort
SELECT ALL 83 + 59
----
142

query I rowsort
SELECT ( 19 ) AS col0
----
19

query I rowsort
SELECT - + ( 52 ) AS col2
----
-52

query I rowsort
SELECT - + 66 AS col1
----
-66

query I rowsort
SELECT 81 + 22 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - COUNT( COALESCE ( 30, 35 ) ) + + 53
----
52

skipif mysql # not compatible
query I rowsort label-3821
SELECT - COUNT ( COALESCE ( 30, 35 ) ) + + 53
----
52

query I rowsort
SELECT DISTINCT - + 3 + - 4 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - MAX( 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3823
SELECT - MAX ( 15 )
----
-15

query I rowsort
SELECT DISTINCT 5 + 70
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT 52 DIV 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT 52 / 46 AS col0
----
1

query I rowsort
SELECT DISTINCT - 4 + + 63 - 98 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT COALESCE ( + COUNT( * ), 93 ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-3827
SELECT COALESCE ( + COUNT ( * ), 93 ) * 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3828
SELECT ALL + 22 DIV NULLIF ( COALESCE ( + MIN( ALL - 46 ), 63 * CAST( 63 AS SIGNED ) ), 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + 22 / NULLIF ( COALESCE ( + MIN ( ALL - 46 ), 63 * CAST ( 63 AS INTEGER ) ), 94 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 4 * + 1
----
4

query I rowsort
SELECT 90 * - 75 AS col0
----
-6750

query I rowsort
SELECT ALL - 32 * + 76 AS col0
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT + COUNT( ALL 50 ) * - 6
----
-6

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT + COUNT ( ALL 50 ) * - 6
----
-6

query I rowsort
SELECT ALL - ( + 93 )
----
-93

query I rowsort
SELECT ALL 90 * - 31 - - 46 AS col0
----
-2744

query I rowsort
SELECT + 60 * - + 76 + + 45
----
-4515

query I rowsort
SELECT ALL - - 65 AS col2
----
65

query I rowsort
SELECT - 39 + - - 7 + - 75 col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL - SUM( - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - SUM ( - 13 ) AS col2
----
13

query I rowsort
SELECT DISTINCT + 33 + - 2 + - 72 * + ( + 46 )
----
-3281

query I rowsort
SELECT ALL + 74 + + 18 * 9
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL SUM( DISTINCT - 34 ) + + 98 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL SUM ( DISTINCT - 34 ) + + 98 AS col1
----
64

query I rowsort
SELECT ALL 72 + 0 AS col0
----
72

query I rowsort
SELECT - - 92 * + 70 * 80 AS col0
----
515200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT + ( + 86 ) * - CASE + COUNT( * ) WHEN 86 * CASE + 12 WHEN 63 / + CAST( 1 AS SIGNED ) THEN 45 WHEN 61 + + 63 THEN NULL END + ( 57 + AVG ( 87 ) ) THEN ( + 44 ) WHEN + 72 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT + ( + 86 ) * - CASE + COUNT ( * ) WHEN 86 * CASE + 12 WHEN 63 / + CAST ( 1 AS INTEGER ) THEN 45 WHEN 61 + + 63 THEN NULL END + ( 57 + AVG ( 87 ) ) THEN ( + 44 ) WHEN + 72 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - + CASE 61 WHEN NULLIF ( 76, + 15 ) + - 28 THEN + 29 ELSE - 55 END
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT + - 11 DIV - - 94
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT + - 11 / - - 94
----
0

query I rowsort
SELECT ALL + 31 + + + 52 * + 64 AS col2
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT DISTINCT 57 + COUNT( * ) + + 2 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT 57 + COUNT ( * ) + + 2 AS col1
----
60

query I rowsort
SELECT ALL 28 * + - 80
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + COALESCE ( + - 30, - + 10, 5, COUNT( ALL 87 ) + 63 ) + 39 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3850
SELECT + COALESCE ( + - 30, - + 10, 5, COUNT ( ALL 87 ) + 63 ) + 39 AS col1
----
9

query I rowsort
SELECT + 93 * + 15
----
1395

query II rowsort
SELECT ALL 37 col2, 17
----
37
17

query II rowsort
SELECT DISTINCT 89 AS col1, 61 * + - 28 * - 26
----
89
44408

query II rowsort
SELECT 89 AS col1, 32 AS col1
----
89
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - SUM( + + ( 14 ) ) * - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3855
SELECT - SUM ( + + ( 14 ) ) * - COUNT ( * )
----
14

query I rowsort
SELECT + 74 + - 34 * - + 72 + + 21 * - 12 AS col2
----
2270

query I rowsort
SELECT + 50 + + 94 + 83
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL MIN( - + 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL MIN ( - + 63 ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT + COALESCE ( - 92, - + 64 ) + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT + COALESCE ( - 92, - + 64 ) + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT DISTINCT 50 * 17 / - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT 50 * 17 / - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT - 20 + + NULLIF ( - MIN( ALL ( - 20 ) ), 69 / + 8 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT - 20 + + NULLIF ( - MIN ( ALL ( - 20 ) ), 69 / + 8 ) AS col2
----
0

query I rowsort
SELECT + ( - 87 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT 65 DIV 81 + - 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3863
SELECT 65 / 81 + - 81 AS col2
----
-81

query I rowsort
SELECT + ( + 90 ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT - 49 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT - 49 / - 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT + ( CAST( - COUNT( * ) AS SIGNED ) ) * 19
----
-19

skipif mysql # not compatible
query I rowsort label-3866
SELECT + ( CAST ( - COUNT ( * ) AS INTEGER ) ) * 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - + NULLIF ( + 7, ( - 73 ) * + COUNT( * ) ) + - 8 * COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-3867
SELECT - + NULLIF ( + 7, ( - 73 ) * + COUNT ( * ) ) + - 8 * COUNT ( * )
----
-15

query I rowsort
SELECT ALL + - 16 * 30 * + 79 AS col0
----
-37920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT - + 89 DIV - 29 * + COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3869
SELECT - + 89 / - 29 * + COUNT ( * ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - + COUNT( * ) * - MIN( DISTINCT - - 28 ) + 41 + - 95 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - + COUNT ( * ) * - MIN ( DISTINCT - - 28 ) + 41 + - 95 AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT - + 73 * 40 DIV + - 79 + 48 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3871
SELECT - + 73 * 40 / + - 79 + 48 AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT ALL + 67 * + 75 * - COALESCE ( 79, - 27 ) DIV + COUNT( * ) - - 28
----
-396947

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + 67 * + 75 * - COALESCE ( 79, - 27 ) / + COUNT ( * ) - - 28
----
-396947

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - MIN( ALL - - CASE - 47 WHEN + 50 * - 21 THEN NULL WHEN 2 THEN 20 END ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT - MIN ( ALL - - CASE - 47 WHEN + 50 * - 21 THEN NULL WHEN 2 THEN 20 END ) * 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT - NULLIF ( - 62, + CAST( NULL AS SIGNED ) + - 6 ) - + NULLIF ( - 83, - 66 )
----
145

skipif mysql # not compatible
query I rowsort label-3874
SELECT - NULLIF ( - 62, + CAST ( NULL AS INTEGER ) + - 6 ) - + NULLIF ( - 83, - 66 )
----
145

query I rowsort
SELECT + + COALESCE ( + + 74, 16, + 82 ) AS col2
----
74

query I rowsort
SELECT ALL + + 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT MIN( - - 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3877
SELECT MIN ( - - 97 ) AS col2
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3878
SELECT + 70 AS col2, + ( CAST( NULL AS DECIMAL ) ) * 40 + 39 AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3878
SELECT + 70 AS col2, + ( CAST ( NULL AS REAL ) ) * 40 + 39 AS col0
----
70
NULL

query I rowsort
SELECT ALL - ( + ( + + 35 ) ) * 83 + 9 * 6
----
-2851

query I rowsort
SELECT DISTINCT 2 * - + 26 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL - 67 * - ( + COUNT( * ) ) * 61 - - 99 AS col2
----
4186

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - 67 * - ( + COUNT ( * ) ) * 61 - - 99 AS col2
----
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - MIN( DISTINCT 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3882
SELECT - MIN ( DISTINCT 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL + 27 * + 73 * + COUNT( * ) AS col0
----
1971

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + 27 * + 73 * + COUNT ( * ) AS col0
----
1971

query I rowsort
SELECT + 89 - - 90 + - ( 41 ) + + 0 AS col1
----
138

query II rowsort
SELECT ALL 5 * - + 56 AS col2, - 84 * + 66 + 35 * 41 AS col0
----
-280
-4109

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( ALL + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-3886
SELECT COUNT ( ALL + 16 )
----
1

query I rowsort
SELECT DISTINCT + 22 * - - 71 AS col1
----
1562

query I rowsort
SELECT ALL 51 * + 68 AS col2
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - 33 + - 78 + - CASE - + 50 WHEN + COUNT( ALL 20 ) THEN 67 WHEN 7 THEN + 39 ELSE + 81 END + 63
----
-129

skipif mysql # not compatible
query I rowsort label-3889
SELECT - 33 + - 78 + - CASE - + 50 WHEN + COUNT ( ALL 20 ) THEN 67 WHEN 7 THEN + 39 ELSE + 81 END + 63
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + COUNT( * ) * + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-3890
SELECT + COUNT ( * ) * + - 42
----
-42

query I rowsort
SELECT ALL - 4 * - 27 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3892
SELECT + 27 DIV - MAX( - 55 ) DIV - COUNT( * ) + + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 27 / - MAX ( - 55 ) / - COUNT ( * ) + + 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT ALL 39 DIV - + ( - - 38 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL 39 / - + ( - - 38 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + COALESCE ( + + NULLIF ( + COUNT( * ), - 24 ), NULLIF ( - 81, 13 ) ) * - ( + 72 + - SUM( DISTINCT 29 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3894
SELECT + COALESCE ( + + NULLIF ( + COUNT ( * ), - 24 ), NULLIF ( - 81, 13 ) ) * - ( + 72 + - SUM ( DISTINCT 29 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - ( MAX( ALL 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3895
SELECT - ( MAX ( ALL 29 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT + 79 + + SUM( 43 ) AS col2
----
122

skipif mysql # not compatible
query I rowsort label-3896
SELECT + 79 + + SUM ( 43 ) AS col2
----
122

query I rowsort
SELECT + 73 * + ( - 10 ) AS col0
----
-730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT CASE + 51 WHEN - 27 * + 69 THEN NULL WHEN COALESCE ( - 22, + 17, 35 * CAST( NULL AS SIGNED ) + COALESCE ( 37 - 22, NULLIF ( 81, 77 * 56 ) ) ) * - 54 THEN + ( 79 ) + - 42 / 50 WHEN + 67 THEN NULL END / 96 + + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT CASE + 51 WHEN - 27 * + 69 THEN NULL WHEN COALESCE ( - 22, + 17, 35 * CAST ( NULL AS INTEGER ) + COALESCE ( 37 - 22, NULLIF ( 81, 77 * 56 ) ) ) * - 54 THEN + ( 79 ) + - 42 / 50 WHEN + 67 THEN NULL END / 96 + + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ( - COUNT( * ) ) * 73 * - 42 * 26 + 59 * 12
----
80424

skipif mysql # not compatible
query I rowsort label-3899
SELECT ( - COUNT ( * ) ) * 73 * - 42 * 26 + 59 * 12
----
80424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3900
SELECT ALL 43 + + - COUNT( * ) DIV + - NULLIF ( - 69, - 99 ) * 92 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL 43 + + - COUNT ( * ) / + - NULLIF ( - 69, - 99 ) * 92 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - NULLIF ( 97, - MAX( - 10 ) * COUNT( * ) + MAX( + 18 ) ) * - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - NULLIF ( 97, - MAX ( - 10 ) * COUNT ( * ) + MAX ( + 18 ) ) * - 51 AS col2
----
NULL

query I rowsort
SELECT + ( + + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL - NULLIF ( - - 25, + COUNT( * ) ) + - + 94 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - NULLIF ( - - 25, + COUNT ( * ) ) + - + 94 AS col2
----
-119

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3904
SELECT - 93 * - - 34 - - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT - 93 * - - 34 - - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3905
SELECT + - ( - - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT - - 78 * 7 - - + 43 - 32 - 37 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT - - 78 * 7 - - + 43 - 32 - 37 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - - 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL COUNT( * ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL COUNT ( * ) + - 74
----
-73

query I rowsort
SELECT 67 * - 12 + + ( 90 ) + 54 * + 93
----
4308

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT - - 42 DIV + 74 + 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3910
SELECT - - 42 / + 74 + 81 AS col2
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3911
SELECT + CAST( NULL AS DECIMAL ) * 31 - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT + CAST ( NULL AS REAL ) * 31 - 96 AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 29 ) * - 13
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + 38 + - COALESCE ( + CASE 17 WHEN 97 * COUNT( * ) THEN NULL WHEN - 50 THEN + 72 * - 13 END, - ( - 26 ), + 58 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3913
SELECT + 38 + - COALESCE ( + CASE 17 WHEN 97 * COUNT ( * ) THEN NULL WHEN - 50 THEN + 72 * - 13 END, - ( - 26 ), + 58 ) AS col2
----
12

query I rowsort
SELECT ALL - 11 - - - 73 + - 41 + - ( - 44 ) * - 84 col2
----
-3821

query I rowsort
SELECT DISTINCT - + COALESCE ( ( - 9 ), + + 32 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL + + COUNT( * ) - - 21 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + + COUNT ( * ) - - 21 AS col0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-3917
SELECT - 60 + + 45 AS col1, + 83 DIV + - 39 + - 60 AS col0
----
-15
-62

skipif mysql # not compatible
query II rowsort label-3917
SELECT - 60 + + 45 AS col1, + 83 / + - 39 + - 60 AS col0
----
-15
-62

query I rowsort
SELECT ALL 34 * + + 40 * + 44 + - 83
----
59757

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + COUNT( * ) * - 16 + + + SUM( ( 51 ) ) + ( - 1 ) * 70
----
-35

skipif mysql # not compatible
query I rowsort label-3919
SELECT + COUNT ( * ) * - 16 + + + SUM ( ( 51 ) ) + ( - 1 ) * 70
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - 87 + + 3 * + 39 * 85 + COUNT( * ) col0
----
9859

skipif mysql # not compatible
query I rowsort label-3920
SELECT - 87 + + 3 * + 39 * 85 + COUNT ( * ) col0
----
9859

query I rowsort
SELECT ALL + 70 - 12 * + 77 * + 65 * + 51
----
-3062990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT + 96 * - 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 96 * - 65 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 74 + - ( + 75 ) AS col0
----
-1

query I rowsort
SELECT 51 + 17
----
68

query I rowsort
SELECT 61 * + - 20 AS col0
----
-1220

query I rowsort
SELECT ALL 98 * - + 33
----
-3234

query I rowsort
SELECT DISTINCT + 46 + + - 91 - + + 15 * + 1 AS col0
----
-60

query I rowsort
SELECT DISTINCT 33 * + 65
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL + 28 + - + ( - 31 ) - + + MIN( + 89 ) * 16
----
-1365

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + 28 + - + ( - 31 ) - + + MIN ( + 89 ) * 16
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT ALL - 73 * 43 / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - 73 * 43 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT 5 DIV - + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3931
SELECT 5 / - + COUNT ( * )
----
-5

query I rowsort
SELECT 86 + + + 55 + - + 76 + - NULLIF ( 16, - NULLIF ( - 30, 61 * + ( - 96 ) ) + 11 ) * + 84 * 49 * COALESCE ( + 84, + 28 * + 77, - 86 )
----
-5531839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT COALESCE ( - + MAX( + 2 ), 24 ) - - CAST( NULL AS SIGNED ) + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT COALESCE ( - + MAX ( + 2 ), 24 ) - - CAST ( NULL AS INTEGER ) + 30 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT 95 DIV - 74 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3934
SELECT 95 / - 74 AS col1
----
-1

query I rowsort
SELECT ALL 49 + + 51 AS col2
----
100

query I rowsort
SELECT ( + 97 ) AS col1
----
97

query I rowsort
SELECT ALL - 43 col1
----
-43

query I rowsort
SELECT DISTINCT + 45 * - 42
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL - 76 + - SUM( - + 2 ) * - MIN( DISTINCT + + 81 ) * + 46
----
-7528

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - 76 + - SUM ( - + 2 ) * - MIN ( DISTINCT + + 81 ) * + 46
----
-7528

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT MIN( DISTINCT + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3940
SELECT MIN ( DISTINCT + 54 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT CASE 2 WHEN - NULLIF ( - 37, - + 3 ) * CASE - 85 WHEN + 15 / 43 THEN NULLIF ( 29, + ( MAX( ALL - 92 ) ) ) ELSE NULL END THEN CAST( 37 AS SIGNED ) + - 99 WHEN - 15 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT CASE 2 WHEN - NULLIF ( - 37, - + 3 ) * CASE - 85 WHEN + 15 / 43 THEN NULLIF ( 29, + ( MAX ( ALL - 92 ) ) ) ELSE NULL END THEN CAST ( 37 AS INTEGER ) + - 99 WHEN - 15 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 34 AS col0
----
34

query I rowsort
SELECT ALL - 26 * - + 75 AS col2
----
1950

query I rowsort
SELECT DISTINCT - + ( + + 80 ) AS col0
----
-80

query I rowsort
SELECT DISTINCT 23 * 47 + + 32 AS col1
----
1113

query I rowsort
SELECT + 2 * 1 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + - SUM( 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3947
SELECT + - SUM ( 23 ) AS col2
----
-23

query I rowsort
SELECT + NULLIF ( - - 87, + + 73 * + CASE - - 68 WHEN 37 THEN NULL WHEN 29 THEN 85 + 79 END + 10 * + 22 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3949
SELECT COUNT( * ) - 98 + - 13 AS col2, 15 * 71 AS col0
----
-110
1065

skipif mysql # not compatible
query II rowsort label-3949
SELECT COUNT ( * ) - 98 + - 13 AS col2, 15 * 71 AS col0
----
-110
1065

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT ALL 28 DIV + - 33 * + NULLIF ( - - 8, NULLIF ( - - 40, + 18 * + 39 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL 28 / + - 33 * + NULLIF ( - - 8, NULLIF ( - - 40, + 18 * + 39 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT 54 - + COUNT( + - 45 ) + + 37
----
90

skipif mysql # not compatible
query I rowsort label-3951
SELECT 54 - + COUNT ( + - 45 ) + + 37
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT 75 DIV + + 3
----
25

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT 75 / + + 3
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT DISTINCT + 87 * + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT + 87 * + COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT ALL COUNT( * ) AS col2, 36 AS col0
----
1
36

skipif mysql # not compatible
query II rowsort label-3954
SELECT ALL COUNT ( * ) AS col2, 36 AS col0
----
1
36

query I rowsort
SELECT 96 * + 9 * + 88 * 37 + 51 + 45 * - ( - 62 + - 65 )
----
2818950

query I rowsort
SELECT DISTINCT 27 + + + 41 + + 32 - - + 60 * - 96 * - 81 + - 89 * 54
----
461854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT 96 * - - 94 * - CAST( + + 60 AS SIGNED ) * 2 AS col2
----
-1082880

skipif mysql # not compatible
query I rowsort label-3957
SELECT 96 * - - 94 * - CAST ( + + 60 AS INTEGER ) * 2 AS col2
----
-1082880

query I rowsort
SELECT 99 * + 49
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - CASE - COALESCE ( + + 77, - - 5, - 27 * - COUNT( * ) * 64 ) WHEN - 0 + 12 THEN + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CASE - COALESCE ( + + 77, - - 5, - 27 * - COUNT ( * ) * 64 ) WHEN - 0 + 12 THEN + 2 ELSE NULL END
----
NULL

query II rowsort
SELECT - 57, - 47 AS col0
----
-57
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT 79 + + + CAST( NULL AS SIGNED ) + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT 79 + + + CAST ( NULL AS INTEGER ) + - 37 AS col1
----
NULL

query II rowsort
SELECT 86 * - 95 AS col1, - 65 * - 21
----
-8170
1365

query I rowsort
SELECT - 67 + 15 * + 4 + 21 AS col1
----
14

query II rowsort
SELECT 12 AS col2, - 27 * - 6
----
12
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL + SUM( + + 24 ) + + ( - 27 )
----
-3

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + SUM ( + + 24 ) + + ( - 27 )
----
-3

query I rowsort
SELECT ALL COALESCE ( - 84, - 10 + - - 97 * + 34 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - 31 * + + 86 * + - COUNT( * )
----
2666

skipif mysql # not compatible
query I rowsort label-3967
SELECT - 31 * + + 86 * + - COUNT ( * )
----
2666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3968
SELECT 28 AS col1, + 88 * 97 * + CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3968
SELECT 28 AS col1, + 88 * 97 * + CAST ( NULL AS INTEGER )
----
28
NULL

query I rowsort
SELECT ALL + 97 + 66 + + - 72 col0
----
91

query I rowsort
SELECT - - COALESCE ( - + 25, 28, 93 )
----
-25

query I rowsort
SELECT ( 50 ) AS col2
----
50

query I rowsort
SELECT - 65 - + 30
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT DISTINCT - 89 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT - 89 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - MAX( ( + + 36 ) ) - - - 46
----
-82

skipif mysql # not compatible
query I rowsort label-3974
SELECT - MAX ( ( + + 36 ) ) - - - 46
----
-82

query I rowsort
SELECT + 53 * + 25 + - 89 AS col2
----
1236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT + ( + 92 ) DIV + COUNT( ALL - 29 ) + + - 12 * + - 34
----
500

skipif mysql # not compatible
query I rowsort label-3976
SELECT + ( + 92 ) / + COUNT ( ALL - 29 ) + + - 12 * + - 34
----
500

query II rowsort
SELECT - 15 col2, 7 + - COALESCE ( + + 73, 87 ) - + 7 * + 87 * 86 AS col0
----
-15
-52440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT DISTINCT - ( - 97 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - ( - 97 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 12 * + COALESCE ( + 45, + - 23 ) * - 74 * + + 66 + - 12 - 92
----
2637256

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT SUM( - 95 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-3980
SELECT SUM ( - 95 ) col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT DISTINCT 68 DIV - 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT 68 / - 8 AS col2
----
-8

query I rowsort
SELECT ALL + CASE + + 64 WHEN - 63 THEN - 41 END
----
NULL

query I rowsort
SELECT + - 34 + - ( - 37 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - 54 * - 73 + - MIN( - 9 ) + - NULLIF ( - - 56, + 26 ) * - 53 col2
----
6919

skipif mysql # not compatible
query I rowsort label-3984
SELECT - 54 * - 73 + - MIN ( - 9 ) + - NULLIF ( - - 56, + 26 ) * - 53 col2
----
6919

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 66 * COUNT( * ) / + ( + MIN( + ( + 54 ) ) ) - ( - 33 ) + 29 / - CASE + 71 WHEN - ( AVG ( - 74 ) ) THEN 47 * NULLIF ( - ( - 11 ) * COUNT( * ), 37 + 70 * 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 66 * COUNT ( * ) / + ( + MIN ( + ( + 54 ) ) ) - ( - 33 ) + 29 / - CASE + 71 WHEN - ( AVG ( - 74 ) ) THEN 47 * NULLIF ( - ( - 11 ) * COUNT ( * ), 37 + 70 * 13 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3986
SELECT + 6, + 68 + - NULLIF ( - + 12, - CAST( + 16 AS SIGNED ) ) * 3 AS col1
----
6
104

skipif mysql # not compatible
query II rowsort label-3986
SELECT + 6, + 68 + - NULLIF ( - + 12, - CAST ( + 16 AS INTEGER ) ) * 3 AS col1
----
6
104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3987
SELECT + 22 + + 47 * + CAST( NULL AS DECIMAL ) + - MIN( ALL + - 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT + 22 + + 47 * + CAST ( NULL AS REAL ) + - MIN ( ALL + - 77 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT + + COALESCE ( - - 80, + 33 ) * 47 - - + 58 * + 24 DIV + ( 53 * 71 ) AS col2
----
3760

skipif mysql # not compatible
query I rowsort label-3988
SELECT + + COALESCE ( - - 80, + 33 ) * 47 - - + 58 * + 24 / + ( 53 * 71 ) AS col2
----
3760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3989
SELECT DISTINCT + CAST( 2 AS SIGNED ), + 59 AS col2
----
2
59

skipif mysql # not compatible
query II rowsort label-3989
SELECT DISTINCT + CAST ( 2 AS INTEGER ), + 59 AS col2
----
2
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT ALL 34 * + COUNT( * ) col0, 72 * + COUNT( * ) col1
----
34
72

skipif mysql # not compatible
query II rowsort label-3990
SELECT ALL 34 * + COUNT ( * ) col0, 72 * + COUNT ( * ) col1
----
34
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT + ( - COUNT( * ) ) + 24 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3991
SELECT + ( - COUNT ( * ) ) + 24 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL - 1 * 44 + - - ( MIN( - 26 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - 1 * 44 + - - ( MIN ( - 26 ) ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT CAST( NULL AS SIGNED ) * + - ( 64 ) + - CAST( NULL AS SIGNED ) + 38 / - - 73 + - 46 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT CAST ( NULL AS INTEGER ) * + - ( 64 ) + - CAST ( NULL AS INTEGER ) + 38 / - - 73 + - 46 + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT ALL 39 * - 50 + + 26 + + 9 * - ( - 1 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL 39 * - 50 + + 26 + + 9 * - ( - 1 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT + NULLIF ( + MIN( ALL 47 ), - CASE - 53 WHEN - MAX( DISTINCT 66 ) THEN NULL WHEN + 73 + - ( 53 ) THEN - COUNT( * ) END ) * ( - 81 ) AS col2
----
-3807

skipif mysql # not compatible
query I rowsort label-3995
SELECT + NULLIF ( + MIN ( ALL 47 ), - CASE - 53 WHEN - MAX ( DISTINCT 66 ) THEN NULL WHEN + 73 + - ( 53 ) THEN - COUNT ( * ) END ) * ( - 81 ) AS col2
----
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + CASE NULLIF ( 81, - - CASE - 86 WHEN 88 THEN - 5 ELSE - MAX( - 12 ) * 82 + ( 35 ) END ) WHEN + NULLIF ( 43, 67 ) * + ( 39 ) + + 74 THEN 59 * - 93 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT + CASE NULLIF ( 81, - - CASE - 86 WHEN 88 THEN - 5 ELSE - MAX ( - 12 ) * 82 + ( 35 ) END ) WHEN + NULLIF ( 43, 67 ) * + ( 39 ) + + 74 THEN 59 * - 93 END + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 26 + 75 AS col1
----
49

query I rowsort
SELECT - ( 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL + 10 * + - ( - - MIN( - 99 ) ) AS col0
----
990

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + 10 * + - ( - - MIN ( - 99 ) ) AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT DISTINCT COALESCE ( + ( - + 0 ), - COUNT( * ), + 79 + + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT COALESCE ( + ( - + 0 ), - COUNT ( * ), + 79 + + 14 )
----
0

query I rowsort
SELECT ALL - 38 * + 66 AS col2
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT - 8 + + - ( NULLIF ( + 53, 64 * + 61 + COUNT( * ) ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4002
SELECT - 8 + + - ( NULLIF ( + 53, 64 * + 61 + COUNT ( * ) ) ) AS col2
----
-61

query I rowsort
SELECT DISTINCT 14 - - - 85
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + CAST( - 62 AS SIGNED ) * - - 63
----
-3906

skipif mysql # not compatible
query I rowsort label-4004
SELECT + CAST ( - 62 AS INTEGER ) * - - 63
----
-3906

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4005
SELECT - 84 + CASE 26 WHEN COUNT( * ) * + CAST( NULL AS DECIMAL ) * + - ( + 40 ) + 58 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT - 84 + CASE 26 WHEN COUNT ( * ) * + CAST ( NULL AS REAL ) * + - ( + 40 ) + 58 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4006
SELECT DISTINCT ( - + 78 ) AS col2, - COUNT( * ) DIV + + COUNT( * )
----
-78
-1

skipif mysql # not compatible
query II rowsort label-4006
SELECT DISTINCT ( - + 78 ) AS col2, - COUNT ( * ) / + + COUNT ( * )
----
-78
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL - - NULLIF ( 1, COUNT( * ) + - 26 ) * - + 99
----
-99

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - - NULLIF ( 1, COUNT ( * ) + - 26 ) * - + 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + + COUNT( DISTINCT 9 ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT + + COUNT ( DISTINCT 9 ) + - + COUNT ( * )
----
0

query I rowsort
SELECT - 10 col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT + - CAST( 65 AS SIGNED ) + - - ( + 37 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4010
SELECT + - CAST ( 65 AS INTEGER ) + - - ( + 37 ) AS col2
----
-28

query II rowsort
SELECT - + 74 + + 34, - 96 AS col1
----
-40
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL ( + MIN( DISTINCT 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL ( + MIN ( DISTINCT 76 ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT - 13 + - 51 AS col0, MIN( DISTINCT - 78 ) + + 7 - 97
----
-64
-168

skipif mysql # not compatible
query II rowsort label-4013
SELECT - 13 + - 51 AS col0, MIN ( DISTINCT - 78 ) + + 7 - 97
----
-64
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4014
SELECT - + 55 * CAST( + 59 AS SIGNED ) DIV + + COUNT( ALL + 28 ) + + COUNT( * ) AS col1
----
-3244

skipif mysql # not compatible
query I rowsort label-4014
SELECT - + 55 * CAST ( + 59 AS INTEGER ) / + + COUNT ( ALL + 28 ) + + COUNT ( * ) AS col1
----
-3244

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL + 44 * - MIN( - 19 )
----
836

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + 44 * - MIN ( - 19 )
----
836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT + 66 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT + 66 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - 84 * + - 23 * + NULLIF ( - COUNT( * ), + - 43 )
----
-1932

skipif mysql # not compatible
query I rowsort label-4017
SELECT - 84 * + - 23 * + NULLIF ( - COUNT ( * ), + - 43 )
----
-1932

query II rowsort
SELECT - 53 * - - 56 col1, 97 AS col2
----
-2968
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT + + 0 DIV - 51 + 62 * + 59
----
3658

skipif mysql # not compatible
query I rowsort label-4019
SELECT + + 0 / - 51 + 62 * + 59
----
3658

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT DISTINCT + + 79 DIV - 13 + 98 + + + 97 AS col1
----
189

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + + 79 / - 13 + 98 + + + 97 AS col1
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4021
SELECT ALL - - COUNT( * ) DIV CASE + COUNT( * ) WHEN - COUNT( * ) + + 13 THEN NULL ELSE 39 + + + 58 * 67 END - - 19 * 31 + - COUNT( * )
----
588

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - - COUNT ( * ) / CASE + COUNT ( * ) WHEN - COUNT ( * ) + + 13 THEN NULL ELSE 39 + + + 58 * 67 END - - 19 * 31 + - COUNT ( * )
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT + + MIN( DISTINCT 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + + MIN ( DISTINCT 0 ) AS col1
----
0

query I rowsort
SELECT - - 53 * - - 16
----
848

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT ALL 79 DIV - 45 + + + 56 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL 79 / - 45 + + + 56 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT DISTINCT COUNT( * ) DIV ( - 58 ) DIV + - 96 + 4 + COALESCE ( - NULLIF ( - 80, SUM( 92 ) - 31 * - 8 ), COUNT( * ), + 50 * 54 )
----
84

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT COUNT ( * ) / ( - 58 ) / + - 96 + 4 + COALESCE ( - NULLIF ( - 80, SUM ( 92 ) - 31 * - 8 ), COUNT ( * ), + 50 * 54 )
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4026
SELECT ALL + 74 DIV 98 + + - NULLIF ( + - 40, ( + 54 ) * + CAST( NULL AS SIGNED ) + + + 5 - 92 )
----
40

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + 74 / 98 + + - NULLIF ( + - 40, ( + 54 ) * + CAST ( NULL AS INTEGER ) + + + 5 - 92 )
----
40

query I rowsort
SELECT - 51 * - - 75 AS col1
----
-3825

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT + COUNT( * ) AS col1, + 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-4028
SELECT + COUNT ( * ) AS col1, + 90 AS col1
----
1
90

query II rowsort
SELECT ALL + 41 AS col2, - 19 AS col0
----
41
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL 35 * + 7 * - + NULLIF ( - 80, - COALESCE ( + + 68, COUNT( * ) / - 42, - CASE 25 WHEN 3 THEN - CAST( NULL AS SIGNED ) * 93 ELSE NULL END * 44 ) * AVG ( ALL - 14 ) ) * 7 + + 48
----
137248

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL 35 * + 7 * - + NULLIF ( - 80, - COALESCE ( + + 68, COUNT ( * ) / - 42, - CASE 25 WHEN 3 THEN - CAST ( NULL AS INTEGER ) * 93 ELSE NULL END * 44 ) * AVG ( ALL - 14 ) ) * 7 + + 48
----
137248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT - CAST( NULL AS SIGNED ) - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT - CAST ( NULL AS INTEGER ) - 99
----
NULL

query I rowsort
SELECT 89 - + 35 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT NULLIF ( + 73, - MIN( DISTINCT + + 98 ) / - 57 * + 62 + COUNT( 88 ) ) * 48 AS col0
----
3504

skipif mysql # not compatible
query I rowsort label-4033
SELECT NULLIF ( + 73, - MIN ( DISTINCT + + 98 ) / - 57 * + 62 + COUNT ( 88 ) ) * 48 AS col0
----
3504

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL COUNT( * ) * 95 * + ( + + ( COUNT( * ) ) ) * + - COUNT( * ) * + - ( - 71 )
----
-6745

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL COUNT ( * ) * 95 * + ( + + ( COUNT ( * ) ) ) * + - COUNT ( * ) * + - ( - 71 )
----
-6745

query II rowsort
SELECT 51 AS col0, 56 AS col0
----
51
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4036
SELECT ALL - NULLIF ( + 28, 9 ) AS col1, CAST( - CAST( + + 11 AS SIGNED ) AS SIGNED ) + 64
----
-28
53

skipif mysql # not compatible
query II rowsort label-4036
SELECT ALL - NULLIF ( + 28, 9 ) AS col1, CAST ( - CAST ( + + 11 AS INTEGER ) AS INTEGER ) + 64
----
-28
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL - 15 + - 55 + - - CASE + COUNT( + + 87 ) WHEN 60 THEN 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - 15 + - 55 + - - CASE + COUNT ( + + 87 ) WHEN 60 THEN 19 END
----
NULL

query II rowsort
SELECT DISTINCT 38 - - 22 * - 18 * - - 71 AS col0, + 92 + NULLIF ( 73, + + 93 ) + - 86 AS col1
----
-28078
79

query I rowsort
SELECT 24 - - 81
----
105

query I rowsort
SELECT ( 71 ) * + 99 - + 28
----
7001

query I rowsort
SELECT 14 + + 12
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - CASE + 18 WHEN + COALESCE ( AVG ( DISTINCT - 32 ), 54 + + 97 + 78 + + 89 * - 65 * + COUNT( - 13 + + 55 ) ) * - 20 THEN MAX( 15 ) + + COUNT( * ) / + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT - CASE + 18 WHEN + COALESCE ( AVG ( DISTINCT - 32 ), 54 + + 97 + 78 + + 89 * - 65 * + COUNT ( - 13 + + 55 ) ) * - 20 THEN MAX ( 15 ) + + COUNT ( * ) / + 47 END
----
NULL

query I rowsort
SELECT + 31 + + 50 AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4044
SELECT COALESCE ( + 65, + 94 ) * CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT COALESCE ( + 65, + 94 ) * CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4045
SELECT - CAST( NULL AS SIGNED ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4045
SELECT - CAST ( NULL AS INTEGER ) AS col2, 60
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT - 95 DIV 43 * + 40
----
-80

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - 95 / 43 * + 40
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT COUNT( * ) * 68 * 87 + - + 17 AS col1
----
5899

skipif mysql # not compatible
query I rowsort label-4047
SELECT COUNT ( * ) * 68 * 87 + - + 17 AS col1
----
5899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT + COUNT( ALL 72 ) - + + CAST( COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT + COUNT ( ALL 72 ) - + + CAST ( COUNT ( * ) AS INTEGER )
----
0

query II rowsort
SELECT - 73 AS col0, 88
----
-73
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL + 12 + - ( - CASE + AVG ( + - 23 ) WHEN COUNT( ALL - 7 ) THEN AVG ( - 69 ) + - 3 ELSE NULL END ) + + ( AVG ( - ( 23 ) ) ) * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL + 12 + - ( - CASE + AVG ( + - 23 ) WHEN COUNT ( ALL - 7 ) THEN AVG ( - 69 ) + - 3 ELSE NULL END ) + + ( AVG ( - ( 23 ) ) ) * + 92 AS col1
----
NULL

query I rowsort
SELECT 10 + - 5
----
5

query I rowsort
SELECT + ( - 89 ) AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL - CAST( - ( ( + - CAST( COUNT( * ) AS SIGNED ) ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - CAST ( - ( ( + - CAST ( COUNT ( * ) AS INTEGER ) ) ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL 74 + 95 col2
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT - CASE + 66 WHEN ( 1 ) THEN NULL WHEN 88 + + 62 THEN COUNT( * ) + 43 / 34 ELSE NULL END + - 74 * - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - CASE + 66 WHEN ( 1 ) THEN NULL WHEN 88 + + 62 THEN COUNT ( * ) + 43 / 34 ELSE NULL END + - 74 * - 2 AS col0
----
NULL

query I rowsort
SELECT + - NULLIF ( 73, + + 35 + - 68 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL + - COUNT( * ) + + 90 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL + - COUNT ( * ) + + 90 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT CAST( NULL AS SIGNED ) / 1 + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT CAST ( NULL AS INTEGER ) / 1 + 32
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 31, + + 68 ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL - 83 + 64 * - CAST( NULL AS SIGNED ) + + 92 * 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - 83 + 64 * - CAST ( NULL AS INTEGER ) + + 92 * 80 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4061
SELECT 89 + - + 60, - 5 * - - CAST( - + COALESCE ( 99, - - 8 + - AVG ( ALL - + 30 ), 54 * - 77 ) AS SIGNED ) * + ( 16 ) + + CAST( NULL AS SIGNED ) AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4061
SELECT 89 + - + 60, - 5 * - - CAST ( - + COALESCE ( 99, - - 8 + - AVG ( ALL - + 30 ), 54 * - 77 ) AS INTEGER ) * + ( 16 ) + + CAST ( NULL AS INTEGER ) AS col0
----
29
NULL

query I rowsort
SELECT 95 * ( + 49 ) * - 38 + + COALESCE ( + - 99, 69 ) * + 16
----
-178474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4063
SELECT ALL + 38 * + MIN( ALL 16 ) * - MAX( ALL 70 ) DIV - 70 + - + COUNT( * ) AS col0
----
607

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + 38 * + MIN ( ALL 16 ) * - MAX ( ALL 70 ) / - 70 + - + COUNT ( * ) AS col0
----
607

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT ALL + 83 - - 86 DIV 87
----
83

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + 83 - - 86 / 87
----
83

query I rowsort
SELECT DISTINCT - 29 * + - 64 AS col0
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL - CASE 59 WHEN + COUNT( * ) * 2 + - COALESCE ( - MAX( - - ( - 61 ) ), + 1 ) THEN NULL ELSE - COUNT( * ) + - COUNT( * ) END AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - CASE 59 WHEN + COUNT ( * ) * 2 + - COALESCE ( - MAX ( - - ( - 61 ) ), + 1 ) THEN NULL ELSE - COUNT ( * ) + - COUNT ( * ) END AS col2
----
2

query I rowsort
SELECT ALL 85 - 56 AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4068
SELECT DISTINCT - 93 DIV + ( - + 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - 93 / + ( - + 59 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT 4 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT 4 / - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT 40 * - - 73 / CASE + 29 WHEN - 20 * + 34 * - 48 + COUNT( + + 63 ) * COALESCE ( - COUNT( * ), ( 76 ) ) THEN NULL ELSE - 14 * + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT 40 * - - 73 / CASE + 29 WHEN - 20 * + 34 * - 48 + COUNT ( + + 63 ) * COALESCE ( - COUNT ( * ), ( 76 ) ) THEN NULL ELSE - 14 * + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT 11 + 47
----
58

query I rowsort
SELECT NULLIF ( 95, - ( + + 91 ) ) * - 56
----
-5320

query I rowsort
SELECT 20 + COALESCE ( - 33, 66 ) * + - 31 - - 20
----
1063

query II rowsort
SELECT DISTINCT - COALESCE ( 95, - 8 + 52 ) * + 84, - 35 * 10 * + 2 + + - 55 col0
----
-7980
-755

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL 12 * - COUNT( * ) + - - 50 + + 55 * - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL 12 * - COUNT ( * ) + - - 50 + + 55 * - + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT + CASE + 80 WHEN + 67 THEN NULL WHEN - COUNT( * ) THEN 25 ELSE NULL END * MIN( DISTINCT + 69 ) / - 79 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + CASE + 80 WHEN + 67 THEN NULL WHEN - COUNT ( * ) THEN 25 ELSE NULL END * MIN ( DISTINCT + 69 ) / - 79 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT + COUNT( 40 ) + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-4077
SELECT + COUNT ( 40 ) + - 95
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT NULLIF ( - 76, + COUNT( * ) ) * - 84 * 97 + + COUNT( * ) - COUNT( * ) col0
----
619248

skipif mysql # not compatible
query I rowsort label-4078
SELECT NULLIF ( - 76, + COUNT ( * ) ) * - 84 * 97 + + COUNT ( * ) - COUNT ( * ) col0
----
619248

query I rowsort
SELECT ( + NULLIF ( 62, - + ( + - 34 ) ) ) + + 93
----
155

query I rowsort
SELECT ALL - ( - + 9 ) + - 89 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4081
SELECT - CASE + 39 WHEN - 15 THEN 7 - - + 39 WHEN - - CAST( - ( - 26 ) AS SIGNED ) * - + 50 + - 44 THEN + NULLIF ( + 34, - 25 - MIN( - NULLIF ( + 62, + 54 ) + - 82 ) * AVG ( COALESCE ( - 2, + 41 ) * 75 + - 93 ) ) WHEN 83 + 71 THEN - COUNT( * ) END + - MAX( CAST( NULL AS SIGNED ) ) * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT - CASE + 39 WHEN - 15 THEN 7 - - + 39 WHEN - - CAST ( - ( - 26 ) AS INTEGER ) * - + 50 + - 44 THEN + NULLIF ( + 34, - 25 - MIN ( - NULLIF ( + 62, + 54 ) + - 82 ) * AVG ( COALESCE ( - 2, + 41 ) * 75 + - 93 ) ) WHEN 83 + 71 THEN - COUNT ( * ) END + - MAX ( CAST ( NULL AS INTEGER ) ) * - 57 AS col0
----
NULL

query I rowsort
SELECT 22 + + 19 + - + 42 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT - CAST( + - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4083
SELECT - CAST ( + - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT 25 * + - 30 AS col0
----
-750

query I rowsort
SELECT DISTINCT + 33 + 47 AS col2
----
80

query I rowsort
SELECT DISTINCT + 22 + + + 83
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL 41 + MIN( ALL + 58 )
----
99

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 41 + MIN ( ALL + 58 )
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4088
SELECT ALL + CAST( - 97 AS SIGNED ) DIV 34 - + + 78 AS col0, - ( + 56 )
----
-80
-56

skipif mysql # not compatible
query II rowsort label-4088
SELECT ALL + CAST ( - 97 AS INTEGER ) / 34 - + + 78 AS col0, - ( + 56 )
----
-80
-56

query I rowsort
SELECT + - 48 * - 59 + 99 - - 10 AS col2
----
2941

query I rowsort
SELECT + - 81 AS col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT + COALESCE ( + - 17, - - COALESCE ( + CAST( - 8 AS SIGNED ), - 6 ), 81 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4091
SELECT + COALESCE ( + - 17, - - COALESCE ( + CAST ( - 8 AS INTEGER ), - 6 ), 81 ) AS col1
----
-17

query I rowsort
SELECT 70 * + 18 AS col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT 5 * - - 58 * - 49 * COUNT( * ) * - 60 * 50 AS col1
----
42630000

skipif mysql # not compatible
query I rowsort label-4093
SELECT 5 * - - 58 * - 49 * COUNT ( * ) * - 60 * 50 AS col1
----
42630000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4094
SELECT + ( + 46 ) * + 42, CAST( + - 24 AS SIGNED ) + + NULLIF ( 42, + + 36 + + NULLIF ( + 49, + 92 * + 74 ) ) * + 89 AS col2
----
1932
3714

skipif mysql # not compatible
query II rowsort label-4094
SELECT + ( + 46 ) * + 42, CAST ( + - 24 AS INTEGER ) + + NULLIF ( 42, + + 36 + + NULLIF ( + 49, + 92 * + 74 ) ) * + 89 AS col2
----
1932
3714

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL + MIN( - ( 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL + MIN ( - ( 0 ) ) AS col2
----
0

query I rowsort
SELECT + COALESCE ( - 6, + 88 - + + 64 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL COUNT( * ) * - - 31
----
31

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL COUNT ( * ) * - - 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL + COUNT( ALL - - 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + COUNT ( ALL - - 19 ) AS col0
----
1

query I rowsort
SELECT + 79 * + - 22
----
-1738

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - 85 * COUNT( ALL + + ( 90 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4100
SELECT - 85 * COUNT ( ALL + + ( 90 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4101
SELECT DISTINCT - ( - MIN( ALL 77 ) ) DIV + ( COUNT( + 13 ) ) AS col2, 3 * 48 AS col0
----
77
144

skipif mysql # not compatible
query II rowsort label-4101
SELECT DISTINCT - ( - MIN ( ALL 77 ) ) / + ( COUNT ( + 13 ) ) AS col2, 3 * 48 AS col0
----
77
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL + MIN( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + MIN ( DISTINCT + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT SUM( 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4103
SELECT SUM ( 4 ) AS col2
----
4

query I rowsort
SELECT - 32 - + - 78
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT - 37 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT - 37 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL - MAX( + 23 ) * + 36 AS col2
----
-828

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - MAX ( + 23 ) * + 36 AS col2
----
-828

query I rowsort
SELECT - 49 * + 29 AS col0
----
-1421

query I rowsort
SELECT DISTINCT 55 * - 31 * ( 91 ) AS col0
----
-155155

query I rowsort
SELECT DISTINCT + ( 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT SUM( + + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT SUM ( + + 36 ) AS col0
----
36

query I rowsort
SELECT - + 42 - - ( 63 )
----
21

query I rowsort
SELECT DISTINCT + 20 + + 32 * 35 + + + 28
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT - - MAX( ALL + - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4113
SELECT - - MAX ( ALL + - 17 ) AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT - 93 DIV - 59
----
1

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 93 / - 59
----
1

query I rowsort
SELECT - 46 * - + ( + 41 ) * - 0 - - 87 + - + 30 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - - COUNT( * ) + - 39 + - 48 * - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4116
SELECT - - COUNT ( * ) + - 39 + - 48 * - COUNT ( * ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT - COUNT( DISTINCT - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-4117
SELECT - COUNT ( DISTINCT - 20 )
----
-1

query I rowsort
SELECT ALL - + 49 + + - NULLIF ( - 50, - 86 / + + 52 ) + 0
----
1

query I rowsort
SELECT ALL - 4 + - - 55 AS col1
----
51

query I rowsort
SELECT DISTINCT ( - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - COALESCE ( - 34, + + 79 * ( - COUNT( DISTINCT + 25 ) ) + COUNT( * ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - COALESCE ( - 34, + + 79 * ( - COUNT ( DISTINCT + 25 ) ) + COUNT ( * ) ) AS col2
----
34

query I rowsort
SELECT DISTINCT 30 + + 5 * 35 + + + 28 AS col1
----
233

query I rowsort
SELECT + NULLIF ( 22, - 79 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT + + 49 * ( - + COUNT( * ) ) + - COUNT( * ) - - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4124
SELECT + + 49 * ( - + COUNT ( * ) ) + - COUNT ( * ) - - COUNT ( * ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL - - COUNT( * ) + - 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL - - COUNT ( * ) + - 46 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT - + CAST( 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4126
SELECT - + CAST ( 43 AS INTEGER ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL 92 + - 33 + - CASE - MAX( + 14 ) WHEN 31 / - + 21 THEN - + 41 + 7 END + - + 6 - - ( - ( - 58 ) ) * + 69 * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL 92 + - 33 + - CASE - MAX ( + 14 ) WHEN 31 / - + 21 THEN - + 41 + 7 END + - + 6 - - ( - ( - 58 ) ) * + 69 * + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - 62 + - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4128
SELECT - 62 + - COUNT ( * )
----
-63

query I rowsort
SELECT - - 5 * - 29
----
-145

query II rowsort
SELECT - 54 AS col1, - 9
----
-54
-9

query I rowsort
SELECT - 46 + - 4 - - 64
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT + 51 * 51 * ( ( + CAST( + COALESCE ( - + 21, + CAST( NULL AS SIGNED ) / + 40, + 1, ( - 7 ) ) AS SIGNED ) ) ) * NULLIF ( 76 + COUNT( * ), 54 ) AS col0
----
-4205817

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 51 * 51 * ( ( + CAST ( + COALESCE ( - + 21, + CAST ( NULL AS INTEGER ) / + 40, + 1, ( - 7 ) ) AS INTEGER ) ) ) * NULLIF ( 76 + COUNT ( * ), 54 ) AS col0
----
-4205817

query III rowsort
SELECT ALL 30 AS col1, - 1 AS col1, - + 23 * + + 54 AS col2
----
30
-1
-1242

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT DISTINCT + COUNT( * ) AS col1, + 19 + + + COALESCE ( 91, + 21, ( - 95 ) )
----
1
110

skipif mysql # not compatible
query II rowsort label-4134
SELECT DISTINCT + COUNT ( * ) AS col1, + 19 + + + COALESCE ( 91, + 21, ( - 95 ) )
----
1
110

query I rowsort
SELECT ALL 10 * + 87 AS col2
----
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4136
SELECT + 15 DIV COUNT( * ) AS col0, 72
----
15
72

skipif mysql # not compatible
query II rowsort label-4136
SELECT + 15 / COUNT ( * ) AS col0, 72
----
15
72

query I rowsort
SELECT + CASE + - 57 WHEN + - 9 THEN NULL ELSE + 59 END
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT - CAST( - + NULLIF ( + 22, 55 ) AS SIGNED ) * - 32 + - + 10 + + + 71 + + 6 + - COALESCE ( CAST( NULL AS SIGNED ), + 4 * - 31 ) + + 67 * 59
----
3440

skipif mysql # not compatible
query I rowsort label-4138
SELECT - CAST ( - + NULLIF ( + 22, 55 ) AS INTEGER ) * - 32 + - + 10 + + + 71 + + 6 + - COALESCE ( CAST ( NULL AS INTEGER ), + 4 * - 31 ) + + 67 * 59
----
3440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL CAST( NULL AS SIGNED ) * + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL CAST ( NULL AS INTEGER ) * + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + 68 + - COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4140
SELECT + 68 + - COUNT ( * ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4141
SELECT + CASE + CAST( - - ( - + 84 ) AS SIGNED ) WHEN - 35 + + 78 * + + COUNT( * ) THEN + COUNT( * ) + - CAST( - NULLIF ( - 63, - 73 ) AS SIGNED ) WHEN + 80 THEN COUNT( DISTINCT + 55 ) WHEN 75 THEN NULL ELSE COUNT( DISTINCT - 18 ) END DIV - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4141
SELECT + CASE + CAST ( - - ( - + 84 ) AS INTEGER ) WHEN - 35 + + 78 * + + COUNT ( * ) THEN + COUNT ( * ) + - CAST ( - NULLIF ( - 63, - 73 ) AS INTEGER ) WHEN + 80 THEN COUNT ( DISTINCT + 55 ) WHEN 75 THEN NULL ELSE COUNT ( DISTINCT - 18 ) END / - 16 AS col2
----
0

query I rowsort
SELECT + 85 * + 27 * + ( + + 36 )
----
82620

query I rowsort
SELECT + 44 + + 6 + + 70 * + ( + 3 ) * 15
----
3200

query I rowsort
SELECT ALL 50 * + 34 AS col0
----
1700

query I rowsort
SELECT + 61 * + ( + 19 ) AS col2
----
1159

query I rowsort
SELECT + 20 * - - 23
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT - 28 * 83 + + NULLIF ( + 6, 30 * + + MIN( - 99 ) - + MAX( DISTINCT - 81 ) )
----
-2318

skipif mysql # not compatible
query I rowsort label-4147
SELECT - 28 * 83 + + NULLIF ( + 6, 30 * + + MIN ( - 99 ) - + MAX ( DISTINCT - 81 ) )
----
-2318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT + 49 DIV - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 49 / - COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT DISTINCT + 56 col2
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4150
SELECT DISTINCT + 62 AS col0, + 42 DIV - ( - CAST( - 66 AS SIGNED ) ) AS col1
----
62
0

skipif mysql # not compatible
query II rowsort label-4150
SELECT DISTINCT + 62 AS col0, + 42 / - ( - CAST ( - 66 AS INTEGER ) ) AS col1
----
62
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT + CAST( - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-4151
SELECT + CAST ( - 91 AS INTEGER )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4152
SELECT ALL + 75, - 89 * NULLIF ( - NULLIF ( 90, - 46 - + - 65 ), + 11 * - + ( + - COUNT( ALL - 61 ) ) + + ( + CAST( NULL AS SIGNED ) ) * + CASE - 38 WHEN - 80 * 94 THEN + SUM( ALL + 16 ) * + COUNT( * ) + ( 88 + 97 ) WHEN + 48 THEN NULL WHEN - 89 * 47 + + 70 THEN 6 ELSE - 1 + 56 END ) AS col1
----
75
8010

skipif mysql # not compatible
query II rowsort label-4152
SELECT ALL + 75, - 89 * NULLIF ( - NULLIF ( 90, - 46 - + - 65 ), + 11 * - + ( + - COUNT ( ALL - 61 ) ) + + ( + CAST ( NULL AS INTEGER ) ) * + CASE - 38 WHEN - 80 * 94 THEN + SUM ( ALL + 16 ) * + COUNT ( * ) + ( 88 + 97 ) WHEN + 48 THEN NULL WHEN - 89 * 47 + + 70 THEN 6 ELSE - 1 + 56 END ) AS col1
----
75
8010

query I rowsort
SELECT - 63 * + - 60 AS col2
----
3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT COALESCE ( 71, - - ( 73 ) + - + CAST( NULL AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-4154
SELECT COALESCE ( 71, - - ( 73 ) + - + CAST ( NULL AS INTEGER ) )
----
71

query I rowsort
SELECT + - 83 col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT - - CAST( NULL AS SIGNED ) + + - 28 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT - - CAST ( NULL AS INTEGER ) + + - 28 + 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT DISTINCT - MIN( ALL + 12 ) AS col1, 52 + - - MIN( - + 45 ) AS col1
----
-12
7

skipif mysql # not compatible
query II rowsort label-4157
SELECT DISTINCT - MIN ( ALL + 12 ) AS col1, 52 + - - MIN ( - + 45 ) AS col1
----
-12
7

query II rowsort
SELECT + + 94 + - 31 AS col0, 59 AS col0
----
63
59

query I rowsort
SELECT ALL NULLIF ( - 70, - - ( 30 ) * + + 8 - + 80 * + 3 + 92 * - 54 + - 45 )
----
-70

query I rowsort
SELECT ALL - 40 * - 30 + 32
----
1232

query II rowsort
SELECT DISTINCT - 36, COALESCE ( + + 30, + NULLIF ( - 1, + 35 ) ) AS col1
----
-36
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT ALL + MIN( DISTINCT + + 73 ) AS col2, 44 + - 97 * + MAX( + 76 ) + + 40 - - 59 + - 28 + - 64
----
73
-7321

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL + MIN ( DISTINCT + + 73 ) AS col2, 44 + - 97 * + MAX ( + 76 ) + + 40 - - 59 + - 28 + - 64
----
73
-7321

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT + - 34 + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + - 34 + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT - + 95 * 40 DIV - - COUNT( * ) AS col1
----
-3800

skipif mysql # not compatible
query I rowsort label-4164
SELECT - + 95 * 40 / - - COUNT ( * ) AS col1
----
-3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4165
SELECT DISTINCT COALESCE ( - 10, - 97, + COUNT( * ), - COUNT( * ) + + - CAST( + + ( + 7 ) AS SIGNED ) + + 70 ), - 48 + + - 94 + 66 * - 23 AS col0
----
-10
-1660

skipif mysql # not compatible
query II rowsort label-4165
SELECT DISTINCT COALESCE ( - 10, - 97, + COUNT ( * ), - COUNT ( * ) + + - CAST ( + + ( + 7 ) AS INTEGER ) + + 70 ), - 48 + + - 94 + 66 * - 23 AS col0
----
-10
-1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4166
SELECT - CAST( ( + - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS SIGNED ) * + COUNT( * ) + 79 * CAST( + MIN( - ( - + 71 ) ) AS SIGNED ) * + 69 * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT - CAST ( ( + - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) ) AS INTEGER ) * + COUNT ( * ) + 79 * CAST ( + MIN ( - ( - + 71 ) ) AS INTEGER ) * + 69 * 62 AS col0
----
NULL

query I rowsort
SELECT 23 * + 13 AS col1
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT MAX( 21 ) + + 5 * 22
----
131

skipif mysql # not compatible
query I rowsort label-4168
SELECT MAX ( 21 ) + + 5 * 22
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT DISTINCT 69 * + MAX( ALL 48 ) AS col2
----
3312

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT 69 * + MAX ( ALL 48 ) AS col2
----
3312

query I rowsort
SELECT 8 * + - ( 40 ) AS col2
----
-320

onlyif mysql # aggregate syntax: 
query II rowsort label-4171
SELECT ALL - COUNT( * ) * + 97 AS col1, + 13 AS col2
----
-97
13

skipif mysql # not compatible
query II rowsort label-4171
SELECT ALL - COUNT ( * ) * + 97 AS col1, + 13 AS col2
----
-97
13

query I rowsort
SELECT 98 * - 48 col1
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT COUNT( * ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-4173
SELECT COUNT ( * ) * 2
----
2

query II rowsort
SELECT 49 + - 3, - ( + 70 ) AS col1
----
46
-70

query I rowsort
SELECT DISTINCT - CASE - 32 WHEN NULLIF ( + 69, - 9 ) / 61 + + 85 - + 88 THEN 74 ELSE - 59 - 87 * - 91 END
----
-7858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT ALL 96 + + COUNT( * ) DIV + + 37 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL 96 + + COUNT ( * ) / + + 37 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL + CASE 84 WHEN - 73 THEN 77 + 47 WHEN - - 51 THEN MIN( ALL - CAST( + 96 AS SIGNED ) ) END + - + COUNT( * ) + - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + CASE 84 WHEN - 73 THEN 77 + 47 WHEN - - 51 THEN MIN ( ALL - CAST ( + 96 AS INTEGER ) ) END + - + COUNT ( * ) + - + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT 25 + - COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT 25 + - COUNT ( * ) AS col0
----
24

query I rowsort
SELECT ALL 90 * + 94 * - 10 AS col1
----
-84600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT DISTINCT ( - CASE - COALESCE ( + 75, + CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) THEN - 67 WHEN - + 94 THEN + 37 + + 85 WHEN + + MAX( ALL - 53 ) THEN NULL END ) + + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT ( - CASE - COALESCE ( + 75, + CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) THEN - 67 WHEN - + 94 THEN + 37 + + 85 WHEN + + MAX ( ALL - 53 ) THEN NULL END ) + + 10 AS col0
----
NULL

query I rowsort
SELECT ALL 60 + NULLIF ( - 34, - 93 ) AS col0
----
26

query I rowsort
SELECT ALL - 29 * 22
----
-638

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4183
SELECT + 14 DIV 38, - CAST( - + 75 AS SIGNED ) AS col2
----
0
75

skipif mysql # not compatible
query II rowsort label-4183
SELECT + 14 / 38, - CAST ( - + 75 AS INTEGER ) AS col2
----
0
75

onlyif mysql # aggregate syntax: 
query III rowsort label-4184
SELECT 0 - + - CASE - 84 WHEN COUNT( * ) * - 45 THEN NULLIF ( 89, - 83 ) END AS col0, COUNT( DISTINCT + - 32 ) col2, + + COUNT( * )
----
NULL
1
1

skipif mysql # not compatible
query III rowsort label-4184
SELECT 0 - + - CASE - 84 WHEN COUNT ( * ) * - 45 THEN NULLIF ( 89, - 83 ) END AS col0, COUNT ( DISTINCT + - 32 ) col2, + + COUNT ( * )
----
NULL
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT - ( + CAST( - + 72 AS SIGNED ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4185
SELECT - ( + CAST ( - + 72 AS INTEGER ) ) AS col0
----
72

query I rowsort
SELECT DISTINCT - - 63 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT + MIN( ALL 30 ) * 14 + - 87
----
333

skipif mysql # not compatible
query I rowsort label-4187
SELECT + MIN ( ALL 30 ) * 14 + - 87
----
333

query I rowsort
SELECT - + 23 col1
----
-23

query I rowsort
SELECT ALL + NULLIF ( 99, + 8 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT - 21 * COUNT( + 31 )
----
-21

skipif mysql # not compatible
query I rowsort label-4190
SELECT - 21 * COUNT ( + 31 )
----
-21

query I rowsort
SELECT DISTINCT 70 * + 81 col0
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - NULLIF ( SUM( + 18 ), + COALESCE ( 64, + + 49 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-4192
SELECT - NULLIF ( SUM ( + 18 ), + COALESCE ( 64, + + 49 ) )
----
-18

query I rowsort
SELECT ALL + - ( - 18 ) * 81 AS col2
----
1458

query I rowsort
SELECT DISTINCT 36 * - - ( + 86 )
----
3096

query I rowsort
SELECT 5 - + 63
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL COUNT( + ( - - 87 ) ) * 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL COUNT ( + ( - - 87 ) ) * 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT SUM( ALL 79 ) + + COALESCE ( - COUNT( * ), - 13 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4197
SELECT SUM ( ALL 79 ) + + COALESCE ( - COUNT ( * ), - 13 ) AS col0
----
78

query I rowsort
SELECT 34 * COALESCE ( + - 47, + 26 )
----
-1598

query I rowsort
SELECT 4 + + 79 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT DISTINCT + NULLIF ( ( 70 ), - 61 + 44 ) DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT + NULLIF ( ( 70 ), - 61 + 44 ) / 28
----
2

query I rowsort
SELECT ALL - 93 + + 8 col0
----
-85

query I rowsort
SELECT 14 + - + 1 + - - 5
----
18

query I rowsort
SELECT 24 + + 49 AS col2
----
73

query I rowsort
SELECT ALL - 21 * - 9 AS col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 95 * COUNT( * ) + - 68 - - 65
----
-98

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 95 * COUNT ( * ) + - 68 - - 65
----
-98

query I rowsort
SELECT DISTINCT - ( 91 ) * - 57 + - - 62 AS col2
----
5249

query I rowsort
SELECT 23 * + 22
----
506

query I rowsort
SELECT + 71 col2
----
71

query I rowsort
SELECT DISTINCT + 49 * - + 51 AS col1
----
-2499

query I rowsort
SELECT 58 * + 40 + ( - 19 ) col1
----
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT MAX( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4211
SELECT MAX ( ALL - 35 )
----
-35

query I rowsort
SELECT ALL - - 29 col2
----
29

query I rowsort
SELECT ALL + - 34 + + 98 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT - - 96 DIV - + 7 + 17 - + 43
----
-39

skipif mysql # not compatible
query I rowsort label-4214
SELECT - - 96 / - + 7 + 17 - + 43
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + ( + - 12 ) * COALESCE ( - 80, + 88, MAX( ALL + 74 ) + 76 + - 99 ) - + ( + 47 )
----
913

skipif mysql # not compatible
query I rowsort label-4215
SELECT + ( + - 12 ) * COALESCE ( - 80, + 88, MAX ( ALL + 74 ) + 76 + - 99 ) - + ( + 47 )
----
913

query I rowsort
SELECT ALL + 39 - + - 89 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - COUNT( * ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4217
SELECT - COUNT ( * ) * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT + + 92 - - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + + 92 - - COUNT ( * )
----
93

query I rowsort
SELECT 84 + - - ( - 22 ) + + - 17 * + 72 * 54 * + 69 + ( + 77 ) AS col1
----
-4560485

query I rowsort
SELECT + + 62 * + 51
----
3162

query I rowsort
SELECT - - 92 * 2
----
184

query I rowsort
SELECT ALL - 81 * 39 AS col2
----
-3159

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT + + 12 DIV - 12
----
-1

skipif mysql # not compatible
query I rowsort label-4223
SELECT + + 12 / - 12
----
-1

query I rowsort
SELECT DISTINCT - NULLIF ( 40, + NULLIF ( + ( - - 8 ), - - 86 ) * + 74 ) col2
----
-40

query II rowsort
SELECT DISTINCT 16 col0, 4 + + 39 col0
----
16
43

query II rowsort
SELECT DISTINCT + 99, + 8 + - - 70 AS col1
----
99
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4227
SELECT - CASE + 87 WHEN + CAST( 42 AS SIGNED ) * - - COUNT( + 73 ) / 27 * - MAX( ALL + 11 ) / + + CAST( - - 42 AS DECIMAL ) THEN - - 20 WHEN + + 55 * MIN( 27 ) + + ( - COALESCE ( CASE - 4 WHEN + COUNT( * ) THEN - 1 END, - 7 + 7 / 97 ) ) THEN 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT - CASE + 87 WHEN + CAST ( 42 AS INTEGER ) * - - COUNT ( + 73 ) / 27 * - MAX ( ALL + 11 ) / + + CAST ( - - 42 AS REAL ) THEN - - 20 WHEN + + 55 * MIN ( 27 ) + + ( - COALESCE ( CASE - 4 WHEN + COUNT ( * ) THEN - 1 END, - 7 + 7 / 97 ) ) THEN 3 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT + ( COUNT( * ) ) * - 96 * COUNT( * ) * 84
----
-8064

skipif mysql # not compatible
query I rowsort label-4228
SELECT + ( COUNT ( * ) ) * - 96 * COUNT ( * ) * 84
----
-8064

query I rowsort
SELECT + 45 + - 79 + + + 79 * - + CASE - ( + + 5 ) WHEN + 86 + - 77 + - + 85 * + - ( 97 ) * 27 THEN NULL WHEN + 27 THEN NULL ELSE - - 69 * 66 + + CASE 53 - + 80 WHEN + 10 + 92 THEN 33 ELSE NULL END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - COUNT( * ) * + + 94
----
-94

skipif mysql # not compatible
query I rowsort label-4230
SELECT - COUNT ( * ) * + + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + 33 * MIN( ALL 70 ) AS col0
----
2310

skipif mysql # not compatible
query I rowsort label-4231
SELECT + 33 * MIN ( ALL 70 ) AS col0
----
2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), - 91 * + + 38, 67 - - 20 * - 85 ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-4232
SELECT - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), - 91 * + + 38, 67 - - 20 * - 85 ) + 36
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4233
SELECT ALL CAST( NULL AS SIGNED ) * - 41 AS col2, COUNT( * ) * - 39 * + CASE 13 WHEN 26 * + - SUM( - 10 ) + - 53 / 93 THEN - 91 WHEN + ( 79 ) THEN + COUNT( 45 ) ELSE NULL END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4233
SELECT ALL CAST ( NULL AS INTEGER ) * - 41 AS col2, COUNT ( * ) * - 39 * + CASE 13 WHEN 26 * + - SUM ( - 10 ) + - 53 / 93 THEN - 91 WHEN + ( 79 ) THEN + COUNT ( 45 ) ELSE NULL END col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT ALL - 89 + - - 68 AS col2, ( - - MIN( 68 ) ) AS col2
----
-21
68

skipif mysql # not compatible
query II rowsort label-4234
SELECT ALL - 89 + - - 68 AS col2, ( - - MIN ( 68 ) ) AS col2
----
-21
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL + CAST( NULL AS SIGNED ) * - + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 54 AS col0
----
NULL

query I rowsort
SELECT ALL 91 + 43 + 83 AS col1
----
217

query I rowsort
SELECT - NULLIF ( + + 10, - - 85 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT - 55 DIV + + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4238
SELECT - 55 / + + 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + 67 * + CASE - 72 WHEN + 25 * + 69 + - 86 + + 97 * + + 16 * - - 29 THEN - 98 WHEN + + COUNT( ALL - 96 ) THEN + + 6 END * - - ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT + 67 * + CASE - 72 WHEN + 25 * + 69 + - 86 + + 97 * + + 16 * - - 29 THEN - 98 WHEN + + COUNT ( ALL - 96 ) THEN + + 6 END * - - ( 83 )
----
NULL

query I rowsort
SELECT ( - 76 ) AS col2
----
-76

query I rowsort
SELECT DISTINCT + 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4242
SELECT ALL 90 * - 5 + COUNT( CAST( + 0 AS DECIMAL ) ) AS col1
----
-449

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL 90 * - 5 + COUNT ( CAST ( + 0 AS REAL ) ) AS col1
----
-449

query I rowsort
SELECT ( + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ( - - SUM( DISTINCT + ( - COALESCE ( - 44, - + 8 * + ( - + 65 ) + + NULLIF ( + 52, 34 ) ) ) ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4244
SELECT ( - - SUM ( DISTINCT + ( - COALESCE ( - 44, - + 8 * + ( - + 65 ) + + NULLIF ( + 52, 34 ) ) ) ) ) AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT ALL - 99 DIV - 86 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - 99 / - 86 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT - 19 DIV - - 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 19 / - - 16 AS col0
----
-1

query I rowsort
SELECT - 37 * - + 6 AS col2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT DISTINCT - 1 / - CASE + 98 WHEN - - 6 THEN 76 ELSE NULL END + + + COUNT( * ) + - + 38 + - + ( + COUNT( * ) ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT - 1 / - CASE + 98 WHEN - - 6 THEN 76 ELSE NULL END + + + COUNT ( * ) + - + 38 + - + ( + COUNT ( * ) ) * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + NULLIF ( - COUNT( * ), - 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4249
SELECT + NULLIF ( - COUNT ( * ), - 53 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4250
SELECT ALL + + MAX( ALL + 71 ) AS col1, 4 / CAST( NULL AS SIGNED ) AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4250
SELECT ALL + + MAX ( ALL + 71 ) AS col1, 4 / CAST ( NULL AS INTEGER ) AS col2
----
71
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4251
SELECT DISTINCT + 35 * - 75 - - 78 DIV - 89, - ( + 81 ) AS col2
----
-2625
-81

skipif mysql # not compatible
query II rowsort label-4251
SELECT DISTINCT + 35 * - 75 - - 78 / - 89, - ( + 81 ) AS col2
----
-2625
-81

query II rowsort
SELECT - - 82 * - + 45 AS col0, ( + 99 )
----
-3690
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4253
SELECT ALL + + 90 * + 27 - - 3 + + 70 + - ( - 75 ) + + 22 + - MIN( DISTINCT - + 80 ) + 80 * + CASE - COUNT( * ) WHEN COALESCE ( - - 94, + CAST( NULL AS SIGNED ) * + 43 ) / 7 THEN COUNT( * ) WHEN COALESCE ( - 29, MAX( DISTINCT + 30 ) + - CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + 32 * + 69 THEN 40 / - 43 END * + CAST( + AVG ( - 6 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + + 90 * + 27 - - 3 + + 70 + - ( - 75 ) + + 22 + - MIN ( DISTINCT - + 80 ) + 80 * + CASE - COUNT ( * ) WHEN COALESCE ( - - 94, + CAST ( NULL AS INTEGER ) * + 43 ) / 7 THEN COUNT ( * ) WHEN COALESCE ( - 29, MAX ( DISTINCT + 30 ) + - CAST ( NULL AS REAL ) ) THEN NULL WHEN + 32 * + 69 THEN 40 / - 43 END * + CAST ( + AVG ( - 6 ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT - + CAST( 34 AS SIGNED ) * - 68 - - 33 * + 70 + + + 39 + - 30 + - COUNT( * ) * + 59
----
4572

skipif mysql # not compatible
query I rowsort label-4254
SELECT - + CAST ( 34 AS INTEGER ) * - 68 - - 33 * + 70 + + + 39 + - 30 + - COUNT ( * ) * + 59
----
4572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT - COUNT( * ) + + 43 * - 56 / 14 + CAST( NULL AS SIGNED ) * - 12 / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT - COUNT ( * ) + + 43 * - 56 / 14 + CAST ( NULL AS INTEGER ) * - 12 / + 31
----
NULL

query I rowsort
SELECT + - 39 col0
----
-39

query I rowsort
SELECT ALL + - 15 * + + 70 + + - 39 AS col2
----
-1089

query I rowsort
SELECT - ( + + 61 ) - 91 AS col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT + 73 * COALESCE ( + 50, + + COUNT( * ) * + COUNT( * ) + - 9 ) + + 61 + + 14 AS col2
----
3725

skipif mysql # not compatible
query I rowsort label-4259
SELECT + 73 * COALESCE ( + 50, + + COUNT ( * ) * + COUNT ( * ) + - 9 ) + + 61 + + 14 AS col2
----
3725

query I rowsort
SELECT ALL + - ( - 99 ) AS col0
----
99

query I rowsort
SELECT - - 55 * + 70 * + 33 AS col2
----
127050

query I rowsort
SELECT ALL + + 9 col0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4263
SELECT + - 6 - - 83 AS col2, 35 DIV - 34 col1
----
77
-1

skipif mysql # not compatible
query II rowsort label-4263
SELECT + - 6 - - 83 AS col2, 35 / - 34 col1
----
77
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT ALL - 0 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - 0 / 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4265
SELECT - - 95 DIV 55 AS col2, 67 * + COUNT( * ) * - + COUNT( * )
----
1
-67

skipif mysql # not compatible
query II rowsort label-4265
SELECT - - 95 / 55 AS col2, 67 * + COUNT ( * ) * - + COUNT ( * )
----
1
-67

query II rowsort
SELECT + 75 * - 73 AS col0, 20 AS col2
----
-5475
20

query I rowsort
SELECT DISTINCT 92 * + 46
----
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL CASE + 89 WHEN + ( 28 ) THEN NULL WHEN - ( + 79 ) / + 36 + + 16 THEN NULL ELSE + 98 END + - COUNT( * ) * + - 25 + + - NULLIF ( - + 86, + 21 ) AS col2
----
209

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL CASE + 89 WHEN + ( 28 ) THEN NULL WHEN - ( + 79 ) / + 36 + + 16 THEN NULL ELSE + 98 END + - COUNT ( * ) * + - 25 + + - NULLIF ( - + 86, + 21 ) AS col2
----
209

query I rowsort
SELECT - 57 - 59 AS col2
----
-116

query I rowsort
SELECT - ( 84 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT - 33 DIV - 19
----
1

skipif mysql # not compatible
query I rowsort label-4271
SELECT - 33 / - 19
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT DISTINCT COUNT( * ) + + + 19 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT COUNT ( * ) + + + 19 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT - COUNT( * ) * - - ( - + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - COUNT ( * ) * - - ( - + 57 ) AS col2
----
57

query I rowsort
SELECT ALL + 93 + + ( 5 ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT - NULLIF ( + 36, - - NULLIF ( ( - CAST( NULL AS SIGNED ) ), + - 42 ) * 56 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4275
SELECT - NULLIF ( + 36, - - NULLIF ( ( - CAST ( NULL AS INTEGER ) ), + - 42 ) * 56 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query III rowsort label-4276
SELECT ALL - ( - 58 ) + + + 66 + + - 16 * COUNT( * ) + + + 2, 45 + 45 AS col0, 86 AS col2
----
110
90
86

skipif mysql # not compatible
query III rowsort label-4276
SELECT ALL - ( - 58 ) + + + 66 + + - 16 * COUNT ( * ) + + + 2, 45 + 45 AS col0, 86 AS col2
----
110
90
86

query I rowsort
SELECT - ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL 73 + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL 73 + + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL 85 + - 94 + - - 8 * 66 * 28 * - SUM( - ( - 41 ) ) AS col0
----
-606153

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL 85 + - 94 + - - 8 * 66 * 28 * - SUM ( - ( - 41 ) ) AS col0
----
-606153

query I rowsort
SELECT + 67 + 36 AS col2
----
103

query I rowsort
SELECT - NULLIF ( - 65, - - 57 ) col0
----
65

query I rowsort
SELECT ALL 37 + - 8
----
29

query I rowsort
SELECT + 43 + + 8 AS col1
----
51

query I rowsort
SELECT + 49 * - 43 AS col1
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + COUNT( * ) + - 61
----
-60

skipif mysql # not compatible
query I rowsort label-4285
SELECT + COUNT ( * ) + - 61
----
-60

query I rowsort
SELECT ALL 90 * + 15 AS col1
----
1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT + 96 + + - 43 - - COUNT( DISTINCT + 13 ) + - - ( 89 ) DIV + ( - 95 ) * - 31 + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 96 + + - 43 - - COUNT ( DISTINCT + 13 ) + - - ( 89 ) / + ( - 95 ) * - 31 + - COUNT ( * )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT ALL 1 DIV 22 * COUNT( ALL + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL 1 / 22 * COUNT ( ALL + 70 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4289
SELECT DISTINCT + 81 DIV + - 4 - + + 81 AS col0, 58 + - 86 + - 93 + + 76
----
-101
-45

skipif mysql # not compatible
query II rowsort label-4289
SELECT DISTINCT + 81 / + - 4 - + + 81 AS col0, 58 + - 86 + - 93 + + 76
----
-101
-45

query I rowsort
SELECT ALL + + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT + 59 / - + CASE + 92 WHEN COUNT( * ) THEN 58 END + - - 63 - + + COUNT( * ) + + 40 + 90 - 94 * + - 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT + 59 / - + CASE + 92 WHEN COUNT ( * ) THEN 58 END + - - 63 - + + COUNT ( * ) + + 40 + 90 - 94 * + - 38 col0
----
NULL

query I rowsort
SELECT 5 * - 24
----
-120

query I rowsort
SELECT DISTINCT - - 0 AS col1
----
0

query I rowsort
SELECT ALL - - 18 AS col2
----
18

query II rowsort
SELECT + 22 AS col2, - 98 AS col0
----
22
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT DISTINCT - + 25 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT - + 25 / - 41
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4297
SELECT ALL - + CAST( NULL AS SIGNED ), - 37 AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-4297
SELECT ALL - + CAST ( NULL AS INTEGER ), - 37 AS col0
----
NULL
-37

query I rowsort
SELECT + - 23
----
-23

query I rowsort
SELECT ALL + 41 + + 60
----
101

query I rowsort
SELECT ALL + 13 + 41
----
54

query I rowsort
SELECT ALL - + 70 + 52
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT COUNT( * ) + + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( * ) + + - 9
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4303
SELECT 46 AS col1, COUNT( * ) * + 35 * + + 20 + 1 - + + 45
----
46
656

skipif mysql # not compatible
query II rowsort label-4303
SELECT 46 AS col1, COUNT ( * ) * + 35 * + + 20 + 1 - + + 45
----
46
656

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT 14 + - - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4304
SELECT 14 + - - COUNT ( * ) AS col0
----
15

query II rowsort
SELECT ALL 31 AS col1, + 69 col0
----
31
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT 98 * + 35 DIV COUNT( * ) + - + 75 * - + 78
----
9280

skipif mysql # not compatible
query I rowsort label-4306
SELECT 98 * + 35 / COUNT ( * ) + - + 75 * - + 78
----
9280

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL - 61 + + + 10 * + + CASE - - 77 WHEN + COUNT( * ) THEN + 16 WHEN - 4 - ( + 0 ) + CASE ( + 64 ) WHEN - + 86 * - 53 / + AVG ( + - 67 ) THEN - COUNT( * ) END / NULLIF ( - COUNT( * ) * + 86, + 49 * COUNT( * ) ) THEN 12 - + 3 WHEN + 41 THEN NULL ELSE NULL END * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - 61 + + + 10 * + + CASE - - 77 WHEN + COUNT ( * ) THEN + 16 WHEN - 4 - ( + 0 ) + CASE ( + 64 ) WHEN - + 86 * - 53 / + AVG ( + - 67 ) THEN - COUNT ( * ) END / NULLIF ( - COUNT ( * ) * + 86, + 49 * COUNT ( * ) ) THEN 12 - + 3 WHEN + 41 THEN NULL ELSE NULL END * - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL 97 + COUNT( * ) + 51
----
149

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL 97 + COUNT ( * ) + 51
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT COUNT( * ) + + 96 col0
----
97

skipif mysql # not compatible
query I rowsort label-4309
SELECT COUNT ( * ) + + 96 col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4310
SELECT DISTINCT 91 AS col0, + MIN( - 38 ) * - + 85
----
91
3230

skipif mysql # not compatible
query II rowsort label-4310
SELECT DISTINCT 91 AS col0, + MIN ( - 38 ) * - + 85
----
91
3230

query III rowsort
SELECT ALL 42 AS col2, 79 AS col2, 16
----
42
79
16

query I rowsort
SELECT 49 + - 67 * 7 col0
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT - 17 DIV - - 25 * - - ( + COALESCE ( - 97, - + COUNT( + 26 ) * - 3 - + + 30 + + ( + 34 ) + - - 63 * 36 * + 38, COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - 17 / - - 25 * - - ( + COALESCE ( - 97, - + COUNT ( + 26 ) * - 3 - + + 30 + + ( + 34 ) + - - 63 * 36 * + 38, COUNT ( * ) ) )
----
0

query II rowsort
SELECT ALL - ( + 8 ) - - + ( + + 8 ) AS col0, 72 AS col0
----
0
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT 33 * 51 DIV + NULLIF ( + 6, + - COUNT( * ) )
----
280

skipif mysql # not compatible
query I rowsort label-4315
SELECT 33 * 51 / + NULLIF ( + 6, + - COUNT ( * ) )
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4316
SELECT MAX( 72 ) + - CASE + COUNT( ALL - 36 ) WHEN + COUNT( * ) * - 67 THEN NULL WHEN 14 THEN - + 47 * + - CASE + COUNT( * ) WHEN - ( - 72 ) THEN 78 * - 18 / + - 7 WHEN 44 / 88 + + CAST( NULL AS DECIMAL ) THEN 51 ELSE NULL END + - 45 + CAST( NULL AS SIGNED ) / + 45 ELSE NULL END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT MAX ( 72 ) + - CASE + COUNT ( ALL - 36 ) WHEN + COUNT ( * ) * - 67 THEN NULL WHEN 14 THEN - + 47 * + - CASE + COUNT ( * ) WHEN - ( - 72 ) THEN 78 * - 18 / + - 7 WHEN 44 / 88 + + CAST ( NULL AS REAL ) THEN 51 ELSE NULL END + - 45 + CAST ( NULL AS INTEGER ) / + 45 ELSE NULL END * 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT 39 DIV COALESCE ( - 60, 98 DIV + - 68 * + + 65 * + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT 39 / COALESCE ( - 60, 98 / + - 68 * + + 65 * + 73 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT MIN( + - 15 ) + + 43 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4318
SELECT MIN ( + - 15 ) + + 43 AS col0
----
28

query I rowsort
SELECT DISTINCT 55 * + ( - 52 ) * - 52 AS col1
----
148720

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL 31 * SUM( 12 ) * 63 + - - COUNT( * ) * + ( + COALESCE ( ( - 49 ), + 74 ) )
----
23387

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL 31 * SUM ( 12 ) * 63 + - - COUNT ( * ) * + ( + COALESCE ( ( - 49 ), + 74 ) )
----
23387

query I rowsort
SELECT ALL + 99 * - + 17
----
-1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT - ( 27 ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - ( 27 ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT 56, + CASE SUM( 11 ) WHEN 15 * 37 / + + 40 + - 37 THEN + COUNT( * ) END + - 17 / - 47 AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4323
SELECT 56, + CASE SUM ( 11 ) WHEN 15 * 37 / + + 40 + - 37 THEN + COUNT ( * ) END + - 17 / - 47 AS col0
----
56
NULL

query II rowsort
SELECT DISTINCT 71, 14 * - - 42 col1
----
71
588

query I rowsort
SELECT ALL - 27 * + 88 AS col0
----
-2376

query I rowsort
SELECT + + 77 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4327
SELECT COALESCE ( - + 42, + CASE 45 WHEN - COALESCE ( COUNT( * ), - 16, 87 * - - 94 ) + + MIN( + + 21 ) * - CAST( NULL AS DECIMAL ) THEN NULL ELSE - 1 * + 30 END + 37 ) - COUNT( * ) * 79 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-4327
SELECT COALESCE ( - + 42, + CASE 45 WHEN - COALESCE ( COUNT ( * ), - 16, 87 * - - 94 ) + + MIN ( + + 21 ) * - CAST ( NULL AS REAL ) THEN NULL ELSE - 1 * + 30 END + 37 ) - COUNT ( * ) * 79 AS col2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT + CASE 70 WHEN - 77 * + CAST( NULL AS SIGNED ) THEN + COUNT( DISTINCT + - 1 ) WHEN - ( 61 ) * + 46 / + - COUNT( ALL + 97 ) THEN - ( - - 53 ) * - 13 * 1 WHEN - - 74 * 87 THEN ( + 30 ) * - 2 - 45 * - 6 ELSE + 77 * MIN( DISTINCT ( 61 ) * 37 ) END
----
173789

skipif mysql # not compatible
query I rowsort label-4328
SELECT + CASE 70 WHEN - 77 * + CAST ( NULL AS INTEGER ) THEN + COUNT ( DISTINCT + - 1 ) WHEN - ( 61 ) * + 46 / + - COUNT ( ALL + 97 ) THEN - ( - - 53 ) * - 13 * 1 WHEN - - 74 * 87 THEN ( + 30 ) * - 2 - 45 * - 6 ELSE + 77 * MIN ( DISTINCT ( 61 ) * 37 ) END
----
173789

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT 0 * + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 73 * + 29 * - - 53
----
112201

query I rowsort
SELECT DISTINCT 47 + + 77 + + 21
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ( - + 93 ) * - - 43 + COALESCE ( + + ( 77 ), + 11, - COUNT( * ) ) * 41 + + + 56 AS col0
----
-786

skipif mysql # not compatible
query I rowsort label-4332
SELECT ( - + 93 ) * - - 43 + COALESCE ( + + ( 77 ), + 11, - COUNT ( * ) ) * 41 + + + 56 AS col0
----
-786

query II rowsort
SELECT + + 25 AS col2, - 27 + 83 * + 92 AS col1
----
25
7609

onlyif mysql # aggregate syntax: 
query II rowsort label-4334
SELECT 55, COUNT( * ) AS col1
----
55
1

skipif mysql # not compatible
query II rowsort label-4334
SELECT 55, COUNT ( * ) AS col1
----
55
1

query I rowsort
SELECT DISTINCT + 42 + + 79 AS col2
----
121

query I rowsort
SELECT 17 + + - COALESCE ( - 37, - - 0 ) + - 2 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ( COUNT( * ) ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-4337
SELECT ( COUNT ( * ) ) * + 57
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT DISTINCT CAST( - 43 AS SIGNED ) + + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT CAST ( - 43 AS INTEGER ) + + COUNT ( * ) AS col2
----
-42

query I rowsort
SELECT ALL NULLIF ( 37, + + 94 ) + 83 + 75 AS col0
----
195

query I rowsort
SELECT DISTINCT + 93 + + 21
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT NULLIF ( COUNT( DISTINCT 86 ), + 96 + + + AVG ( ALL - 25 ) ) DIV - + 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT NULLIF ( COUNT ( DISTINCT 86 ), + 96 + + + AVG ( ALL - 25 ) ) / - + 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT ALL - 30 + 55 AS col0, + 93 * COUNT( * )
----
25
93

skipif mysql # not compatible
query II rowsort label-4342
SELECT ALL - 30 + 55 AS col0, + 93 * COUNT ( * )
----
25
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4343
SELECT ALL + 75 + - CAST( + ( COUNT( ALL 82 ) ) AS SIGNED ) + - + 20 + - COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + 75 + - CAST ( + ( COUNT ( ALL 82 ) ) AS INTEGER ) + - + 20 + - COUNT ( * ) * + 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT 43 * - - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT 43 * - - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + + 30 ) * - - 64 * - 64 col1
----
122880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT COUNT( * ) - - 27 * + COUNT( ALL - 35 ) * + 45 + - 62 * CASE 83 WHEN CASE 77 WHEN + 90 + - 7 THEN - + 81 + MIN( DISTINCT 8 ) * + CAST( NULL AS SIGNED ) WHEN + AVG ( + 47 ) * CASE COUNT( * ) * + 2 + 37 / 67 WHEN + 86 + 75 THEN - 97 END THEN NULL END + - 83 THEN 27 * + 84 + 7 * + 72 END * 50 + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT COUNT ( * ) - - 27 * + COUNT ( ALL - 35 ) * + 45 + - 62 * CASE 83 WHEN CASE 77 WHEN + 90 + - 7 THEN - + 81 + MIN ( DISTINCT 8 ) * + CAST ( NULL AS INTEGER ) WHEN + AVG ( + 47 ) * CASE COUNT ( * ) * + 2 + 37 / 67 WHEN + 86 + 75 THEN - 97 END THEN NULL END + - 83 THEN 27 * + 84 + 7 * + 72 END * 50 + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - MAX( 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4347
SELECT - MAX ( 80 ) AS col2
----
-80

query I rowsort
SELECT 39 - + + 14
----
25

query I rowsort
SELECT 78 * 94
----
7332

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT MAX( - + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT MAX ( - + 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT + ( - - NULLIF ( - CAST( NULL AS SIGNED ), - COALESCE ( COUNT( * ), 35, + + 97 - + SUM( - - 79 ) ) ) ) - - NULLIF ( CAST( NULL AS SIGNED ), 47 ) * - - COUNT( * ) * - ( + CAST( + 46 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + ( - - NULLIF ( - CAST ( NULL AS INTEGER ), - COALESCE ( COUNT ( * ), 35, + + 97 - + SUM ( - - 79 ) ) ) ) - - NULLIF ( CAST ( NULL AS INTEGER ), 47 ) * - - COUNT ( * ) * - ( + CAST ( + 46 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT 68 * - + COALESCE ( 93, CASE - + ( + 50 ) WHEN - ( 5 ) THEN - + 50 END + + CASE + 12 WHEN - 97 + + 76 * SUM( ( - + 16 ) ) THEN - - ( + 96 ) + + COALESCE ( + 88, - MIN( - 54 ) + 80 * - 34, + 19 ) WHEN - NULLIF ( + 27, + 45 + - COUNT( * ) ) THEN 63 WHEN 50 + 90 THEN NULL ELSE NULL END )
----
-6324

skipif mysql # not compatible
query I rowsort label-4352
SELECT 68 * - + COALESCE ( 93, CASE - + ( + 50 ) WHEN - ( 5 ) THEN - + 50 END + + CASE + 12 WHEN - 97 + + 76 * SUM ( ( - + 16 ) ) THEN - - ( + 96 ) + + COALESCE ( + 88, - MIN ( - 54 ) + 80 * - 34, + 19 ) WHEN - NULLIF ( + 27, + 45 + - COUNT ( * ) ) THEN 63 WHEN 50 + 90 THEN NULL ELSE NULL END )
----
-6324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT ALL + MAX( ALL - CAST( NULL AS SIGNED ) ) / - CAST( COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + MAX ( ALL - CAST ( NULL AS INTEGER ) ) / - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT - COUNT( * ) + - + ( 44 )
----
-45

skipif mysql # not compatible
query I rowsort label-4354
SELECT - COUNT ( * ) + - + ( 44 )
----
-45

query I rowsort
SELECT - + 95 * + - 33 AS col1
----
3135

onlyif mysql # DIV for integer division: 
query II rowsort label-4356
SELECT + + 78 DIV - 16 AS col2, - 97 AS col1
----
-4
-97

skipif mysql # not compatible
query II rowsort label-4356
SELECT + + 78 / - 16 AS col2, - 97 AS col1
----
-4
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4357
SELECT + + 45 DIV ( + COUNT( * ) ) + - 3 + - + 98 AS col2, - 43 * - + 70 + - + COALESCE ( + 47, ( - 15 ) ) AS col1
----
-56
2963

skipif mysql # not compatible
query II rowsort label-4357
SELECT + + 45 / ( + COUNT ( * ) ) + - 3 + - + 98 AS col2, - 43 * - + 70 + - + COALESCE ( + 47, ( - 15 ) ) AS col1
----
-56
2963

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT ALL + + 8 + - MIN( DISTINCT - COALESCE ( - - 51, - 90, 74 + + 51 ) ), - 16 AS col1
----
59
-16

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL + + 8 + - MIN ( DISTINCT - COALESCE ( - - 51, - 90, 74 + + 51 ) ), - 16 AS col1
----
59
-16

query I rowsort
SELECT - - ( 62 ) + 17 * - 20 AS col1
----
-278

query I rowsort
SELECT - - ( + - 86 ) * + 21 + - 65
----
-1871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT - COUNT( - - CASE 37 WHEN 9 * - 78 THEN + 8 DIV + 28 + 53 WHEN - 90 * + + 61 THEN NULL ELSE NULL END ) * + - 74 DIV - 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT - COUNT ( - - CASE 37 WHEN 9 * - 78 THEN + 8 / + 28 + 53 WHEN - 90 * + + 61 THEN NULL ELSE NULL END ) * + - 74 / - 41 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT - 12 DIV - 72 + + NULLIF ( 25, + + 93 ) * - 31 * + - 90
----
69750

skipif mysql # not compatible
query I rowsort label-4362
SELECT - 12 / - 72 + + NULLIF ( 25, + + 93 ) * - 31 * + - 90
----
69750

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT + + 62 * - ( COUNT( * ) ) + - + SUM( ALL + - 8 ) + - 40 * - 0
----
-54

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + + 62 * - ( COUNT ( * ) ) + - + SUM ( ALL + - 8 ) + - 40 * - 0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT ALL - 92 * + COUNT( * ) + - 18 + - - COUNT( * ) + - 29 DIV - 16 + 62 * - - 74 + + - 43 * + - 93 col0
----
8479

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - 92 * + COUNT ( * ) + - 18 + - - COUNT ( * ) + - 29 / - 16 + 62 * - - 74 + + - 43 * + - 93 col0
----
8479

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - - 42 * COUNT( * ) * - 96 * + NULLIF ( + + 4, - ( - - 68 ) - 17 + 50 + - ( - 74 ) ) * - 30 + - + 94 col0
----
483746

skipif mysql # not compatible
query I rowsort label-4365
SELECT - - 42 * COUNT ( * ) * - 96 * + NULLIF ( + + 4, - ( - - 68 ) - 17 + 50 + - ( - 74 ) ) * - 30 + - + 94 col0
----
483746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT - + CAST( NULL AS SIGNED ) * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT - + CAST ( NULL AS INTEGER ) * + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + 77 * + - 30 + - 55 + + 56 * - COUNT( DISTINCT 44 ) AS col0
----
-2421

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + 77 * + - 30 + - 55 + + 56 * - COUNT ( DISTINCT 44 ) AS col0
----
-2421

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT MIN( - + 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4368
SELECT MIN ( - + 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT ALL + + 76 * 76 + - - 71 - CASE - + COUNT( ALL + 18 ) WHEN - - 24 + 50 THEN - 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + + 76 * 76 + - - 71 - CASE - + COUNT ( ALL + 18 ) WHEN - - 24 + 50 THEN - 64 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT + 89 * + - ( - ( - + 34 ) ) - 39 + + - ( + - COUNT( * ) ) + - 41 AS col2
----
-3105

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + 89 * + - ( - ( - + 34 ) ) - 39 + + - ( + - COUNT ( * ) ) + - 41 AS col2
----
-3105

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT ALL + + 66 * + 67 + + + ( 39 ) + - 64 + 75 * ( 90 ) * - COALESCE ( + - ( + 28 ), + - AVG ( + 21 ) DIV - 99 ) + + 82 + ( 3 ) * + 8 AS col2
----
193503

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + + 66 * + 67 + + + ( 39 ) + - 64 + 75 * ( 90 ) * - COALESCE ( + - ( + 28 ), + - AVG ( + 21 ) / - 99 ) + + 82 + ( 3 ) * + 8 AS col2
----
193503

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL CASE - COUNT( * ) WHEN - - AVG ( DISTINCT + 19 ) * - MIN( + - 57 ) + + MAX( 59 ) / + 77 THEN - + ( NULLIF ( + + 64, + + 49 * 12 / - - 60 * - + 13 + - - 36 ) ) + - COUNT( * ) END * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL CASE - COUNT ( * ) WHEN - - AVG ( DISTINCT + 19 ) * - MIN ( + - 57 ) + + MAX ( 59 ) / + 77 THEN - + ( NULLIF ( + + 64, + + 49 * 12 / - - 60 * - + 13 + - - 36 ) ) + - COUNT ( * ) END * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL 25 * - 45 * + COUNT( * ) - + 5 AS col0
----
-1130

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL 25 * - 45 * + COUNT ( * ) - + 5 AS col0
----
-1130

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT + NULLIF ( + 70, - 56 ) AS col1, SUM( 89 ) + - 82
----
70
7

skipif mysql # not compatible
query II rowsort label-4374
SELECT + NULLIF ( + 70, - 56 ) AS col1, SUM ( 89 ) + - 82
----
70
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT ( ( - COUNT( * ) ) ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT ( ( - COUNT ( * ) ) ) * + COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT DISTINCT + NULLIF ( - 69, - + 6 + + + 66 ) * - 23 - + - 47, + CASE + + 36 WHEN - - 84 - 4 * ( + 66 ) + - 82 THEN - 29 * - + ( + 91 ) + - 72 * + - 20 + 73 / 93 WHEN 60 + - 78 / 98 THEN NULL END * 27 AS col0
----
1634
NULL

query I rowsort
SELECT + 50 * + 4
----
200

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT + ( - SUM( 13 ) ), - 53 * - + 72 - - 84 AS col2
----
-13
3900

skipif mysql # not compatible
query II rowsort label-4378
SELECT + ( - SUM ( 13 ) ), - 53 * - + 72 - - 84 AS col2
----
-13
3900

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT ALL - 88 * - 22 - + 90 + + 15, - COUNT( * ) + + 60 AS col0
----
1861
59

skipif mysql # not compatible
query II rowsort label-4379
SELECT ALL - 88 * - 22 - + 90 + + 15, - COUNT ( * ) + + 60 AS col0
----
1861
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT MAX( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4380
SELECT MAX ( 83 )
----
83

query I rowsort
SELECT + 44 + 92
----
136

query I rowsort
SELECT - 81 * - 68 - 75 * 79 AS col2
----
-417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT - CAST( NULL AS SIGNED ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT - CAST ( NULL AS INTEGER ) * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + NULLIF ( - COUNT( * ), + ( - 45 ) ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4384
SELECT + NULLIF ( - COUNT ( * ), + ( - 45 ) ) + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT - ( 63 )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT + 73 DIV + 22
----
3

skipif mysql # not compatible
query I rowsort label-4386
SELECT + 73 / + 22
----
3

query I rowsort
SELECT - 90 + 38 AS col2
----
-52

query II rowsort
SELECT - CASE - 37 WHEN - 27 * - + 97 * + 0 * 36 THEN - 15 ELSE + 26 END, 8 AS col1
----
-26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - 43 + - 84 * - MIN( 22 )
----
1805

skipif mysql # not compatible
query I rowsort label-4389
SELECT - 43 + - 84 * - MIN ( 22 )
----
1805

query II rowsort
SELECT 87, 67 AS col1
----
87
67

query I rowsort
SELECT - 19 * 78
----
-1482

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4392
SELECT - 10 + - ( + 68 ) AS col0, - CAST( + 77 AS SIGNED ) + + 37
----
-78
-40

skipif mysql # not compatible
query II rowsort label-4392
SELECT - 10 + - ( + 68 ) AS col0, - CAST ( + 77 AS INTEGER ) + + 37
----
-78
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT + COUNT( * ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + COUNT ( * ) * 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL 23 + + COUNT( + 38 )
----
24

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL 23 + + COUNT ( + 38 )
----
24

query I rowsort
SELECT ALL + 78 + - 99 + - + 0 + 86 * + 31 * 37 * 62 col1
----
6115783

query I rowsort
SELECT DISTINCT NULLIF ( - 21, 29 + - + 51 + - - CASE + - 66 WHEN - 4 - - 21 THEN - 49 WHEN + 4 THEN NULL ELSE NULL END ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL - - 76 + - CAST( CAST( - 50 AS SIGNED ) AS SIGNED ) + - 64
----
62

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - - 76 + - CAST ( CAST ( - 50 AS INTEGER ) AS INTEGER ) + - 64
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT SUM( - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4398
SELECT SUM ( - - 72 )
----
72

query I rowsort
SELECT + - 28 * + 39
----
-1092

query I rowsort
SELECT - - 22 * - 20 * - - NULLIF ( + 42, - - 38 * - 14 ) * 63
----
-1164240

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - SUM( 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-4401
SELECT - SUM ( 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4402
SELECT DISTINCT - CAST( - AVG ( + + 15 ) AS SIGNED ) DIV - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT - CAST ( - AVG ( + + 15 ) AS INTEGER ) / - 24 AS col1
----
0

query II rowsort
SELECT ALL + - 96, + 7 AS col2
----
-96
7

query I rowsort
SELECT + ( - 86 ) * - 40 * - 42 AS col0
----
-144480

query I rowsort
SELECT ALL - - 63 * + 94 + 5 AS col1
----
5927

query I rowsort
SELECT - 83 * + 25 AS col1
----
-2075

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4407
SELECT ALL + + 99 DIV 10 - - + COUNT( * ) AS col0, + 49
----
10
49

skipif mysql # not compatible
query II rowsort label-4407
SELECT ALL + + 99 / 10 - - + COUNT ( * ) AS col0, + 49
----
10
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - COUNT( * ) * + MAX( - 85 ) col2
----
85

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - COUNT ( * ) * + MAX ( - 85 ) col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL + 44 DIV + 74 - - - 90 * 32 AS col0
----
-2880

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + 44 / + 74 - - - 90 * 32 AS col0
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL - - ( + + COUNT( * ) ) * - 79
----
-79

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - - ( + + COUNT ( * ) ) * - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + SUM( - 0 ) + + 70
----
70

skipif mysql # not compatible
query I rowsort label-4412
SELECT + SUM ( - 0 ) + + 70
----
70

query I rowsort
SELECT DISTINCT + ( + 19 )
----
19

query II rowsort
SELECT ( - 37 ) AS col2, 30 col1
----
-37
30

query I rowsort
SELECT + ( + 17 )
----
17

query I rowsort
SELECT ALL - 44 * - 85 - 60
----
3680

query I rowsort
SELECT - 27 * - + 46 * - 20 * 77
----
-1912680

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + ( + 20 ) * + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-4418
SELECT + ( + 20 ) * + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + MAX( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4419
SELECT + MAX ( - 2 )
----
-2

query I rowsort
SELECT ( + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + COUNT( * ) * + + 95 + - 74 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4421
SELECT + COUNT ( * ) * + + 95 + - 74 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL + CAST( - - 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + CAST ( - - 30 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT + MIN( DISTINCT 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + MIN ( DISTINCT 19 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL COUNT( * ) * + 26 * + 18
----
468

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL COUNT ( * ) * + 26 * + 18
----
468

query I rowsort
SELECT DISTINCT 26 * - - 83 * + COALESCE ( - - 35, + 38 ) AS col1
----
75530

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT 38 * - SUM( + 56 )
----
-2128

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT 38 * - SUM ( + 56 )
----
-2128

query I rowsort
SELECT 48 * - 9
----
-432

query I rowsort
SELECT 84 * - 99
----
-8316

query I rowsort
SELECT ALL 73 * - - ( - 93 )
----
-6789

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT 3 DIV + 1
----
3

skipif mysql # not compatible
query I rowsort label-4430
SELECT 3 / + 1
----
3

query I rowsort
SELECT ALL 25 + - 26 + - + 40
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT 74 - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4432
SELECT 74 - COUNT ( * )
----
73

query I rowsort
SELECT ALL - - 16 + + + 53
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT - 90 * - MIN( DISTINCT + - 74 )
----
-6660

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT - 90 * - MIN ( DISTINCT + - 74 )
----
-6660

query I rowsort
SELECT DISTINCT 39 + - 72 * - 56 AS col0
----
4071

query I rowsort
SELECT DISTINCT + + 3 * 62 * - 22
----
-4092

query I rowsort
SELECT 67 - + COALESCE ( 29, + + 34 * - 57, - - 95 + + 3 )
----
38

query I rowsort
SELECT DISTINCT + 94 * - 16 - 74 AS col2
----
-1578

query I rowsort
SELECT DISTINCT - - 25 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT ALL - COALESCE ( - COUNT( ALL - ( 74 ) ), + 76 + + 81 + + 24 * 62, + ( + + 22 ) * + 70 * - 26 + + + SUM( ALL 24 ) + 44 DIV + - MAX( ALL + 3 ) * - - 2 * - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - COALESCE ( - COUNT ( ALL - ( 74 ) ), + 76 + + 81 + + 24 * 62, + ( + + 22 ) * + 70 * - 26 + + + SUM ( ALL 24 ) + 44 / + - MAX ( ALL + 3 ) * - - 2 * - 73 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT + - 7 - + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + - 7 - + COUNT ( * ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT - 43 * - 50 * - ( + 78 ), CASE + 5 WHEN + 63 THEN 80 * - + COUNT( ALL + 56 ) ELSE NULL END AS col1
----
-167700
NULL

skipif mysql # not compatible
query II rowsort label-4442
SELECT - 43 * - 50 * - ( + 78 ), CASE + 5 WHEN + 63 THEN 80 * - + COUNT ( ALL + 56 ) ELSE NULL END AS col1
----
-167700
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4443
SELECT + 65 DIV 88 + + ( + ( + - 54 ) ) + SUM( ALL - + ( + + NULLIF ( - 13, - 29 ) ) ) * - 36
----
-522

skipif mysql # not compatible
query I rowsort label-4443
SELECT + 65 / 88 + + ( + ( + - 54 ) ) + SUM ( ALL - + ( + + NULLIF ( - 13, - 29 ) ) ) * - 36
----
-522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL + CAST( + 76 AS SIGNED ) - 37
----
39

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + CAST ( + 76 AS INTEGER ) - 37
----
39

query I rowsort
SELECT 62 + 20 - - 11 AS col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT 33 DIV + ( + - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-4446
SELECT 33 / + ( + - 22 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT 68 * COALESCE ( + - CAST( NULL AS SIGNED ), - + COUNT( * ), 96 * + + 76 + - COUNT( * ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4447
SELECT 68 * COALESCE ( + - CAST ( NULL AS INTEGER ), - + COUNT ( * ), 96 * + + 76 + - COUNT ( * ) ) AS col0
----
-68

query I rowsort
SELECT ALL - 71 * - 32 * - 26
----
-59072

query I rowsort
SELECT ALL - ( - 24 ) AS col0
----
24

query I rowsort
SELECT DISTINCT + 99 * - 18 AS col1
----
-1782

query I rowsort
SELECT ALL - 44 * - + 27 AS col1
----
1188

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT 58 DIV - 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4452
SELECT 58 / - 52 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL - 72 * + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - 72 * + - COUNT ( * )
----
72

query I rowsort
SELECT ALL + 8 * - 59 AS col2
----
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL SUM( - - 2 ) + + - 31 + + CASE 18 WHEN + 31 THEN + 47 * - 39 * - 0 END + - 83 / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL SUM ( - - 2 ) + + - 31 + + CASE 18 WHEN + 31 THEN + 47 * - 39 * - 0 END + - 83 / 18
----
NULL

query I rowsort
SELECT DISTINCT + 99 * 49
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT + COALESCE ( 56, 25 ) * + COALESCE ( + 67, 49, + MAX( + 4 ) ) * 49 + + 20 * + COUNT( ALL + - 14 ) + 67 + + CASE 44 WHEN + MIN( + 34 ) THEN 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT + COALESCE ( 56, 25 ) * + COALESCE ( + 67, 49, + MAX ( + 4 ) ) * 49 + + 20 * + COUNT ( ALL + - 14 ) + 67 + + CASE 44 WHEN + MIN ( + 34 ) THEN 41 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 35 col2
----
-35

query I rowsort
SELECT 74 + - - 40
----
114

query I rowsort
SELECT 9 * + - 93 + 74 AS col0
----
-763

query I rowsort
SELECT ALL 19 + - 80 + - ( 66 ) * + 85
----
-5671

query I rowsort
SELECT ALL 69 col1
----
69

query I rowsort
SELECT ALL + 10 + - 55 AS col1
----
-45

query I rowsort
SELECT ALL - + 97 * 12
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL 89 + + 79 - ( + COUNT( * ) ) * - - 19 + MIN( + 52 ) * - - 5 col1
----
409

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL 89 + + 79 - ( + COUNT ( * ) ) * - - 19 + MIN ( + 52 ) * - - 5 col1
----
409

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT - ( ( COUNT( * ) ) ) + + - 21 * - 48 col0, + 24
----
1007
24

skipif mysql # not compatible
query II rowsort label-4466
SELECT - ( ( COUNT ( * ) ) ) + + - 21 * - 48 col0, + 24
----
1007
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT 12 + - + 48 + 9 + - 16 * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4467
SELECT 12 + - + 48 + 9 + - 16 * - COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT ALL 42 + - 61 + + + COUNT( * ) * + - COUNT( * ) * - 38 AS col0, 90 AS col1
----
19
90

skipif mysql # not compatible
query II rowsort label-4468
SELECT ALL 42 + - 61 + + + COUNT ( * ) * + - COUNT ( * ) * - 38 AS col0, 90 AS col1
----
19
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT - - COUNT( * ), - 3 col2
----
1
-3

skipif mysql # not compatible
query II rowsort label-4469
SELECT - - COUNT ( * ), - 3 col2
----
1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4470
SELECT DISTINCT + ( NULLIF ( - SUM( - - 58 ), + CAST( NULL AS SIGNED ) + + + 63 + - + ( + 37 ) * + 9 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + ( NULLIF ( - SUM ( - - 58 ), + CAST ( NULL AS INTEGER ) + + + 63 + - + ( + 37 ) * + 9 ) )
----
-58

query I rowsort
SELECT 89 * + 54
----
4806

query I rowsort
SELECT DISTINCT - 33 col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT 69 * - - 50 - + - 71 * + - 42 * - COUNT( * ) + + - 73 - + COUNT( * ) * - 26
----
6385

skipif mysql # not compatible
query I rowsort label-4473
SELECT 69 * - - 50 - + - 71 * + - 42 * - COUNT ( * ) + + - 73 - + COUNT ( * ) * - 26
----
6385

query I rowsort
SELECT ( - 31 ) AS col1
----
-31

query I rowsort
SELECT - + 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 30 * + COUNT( * ) * - 52 * + 21
----
-32760

skipif mysql # not compatible
query I rowsort label-4476
SELECT 30 * + COUNT ( * ) * - 52 * + 21
----
-32760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4477
SELECT ALL - MAX( ALL - - 29 ) DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - MAX ( ALL - - 29 ) / + 63 AS col0
----
0

query I rowsort
SELECT ALL + 85 * 89 AS col0
----
7565

query II rowsort
SELECT 20, 7 AS col0
----
20
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4480
SELECT ALL 58 DIV - - 63 * - SUM( 17 )
----
0

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL 58 / - - 63 * - SUM ( 17 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT COUNT( * ) * 44 + - COUNT( * ) + - 77 * + SUM( ALL + 52 ) AS col0
----
-3961

skipif mysql # not compatible
query I rowsort label-4481
SELECT COUNT ( * ) * 44 + - COUNT ( * ) + - 77 * + SUM ( ALL + 52 ) AS col0
----
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT - COUNT( DISTINCT 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - COUNT ( DISTINCT 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT COUNT( * ) - 8
----
-7

skipif mysql # not compatible
query I rowsort label-4483
SELECT COUNT ( * ) - 8
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT ALL - COUNT( * ), + 96 AS col0
----
-1
96

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL - COUNT ( * ), + 96 AS col0
----
-1
96

query I rowsort
SELECT ALL 98 * + 76 * - - 45 * - ( COALESCE ( + NULLIF ( 15, 54 * 2 + 46 ), - - 43 ) ) AS col1
----
-5027400

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT 49 * - 59 - - - 58 + + COUNT( * ) * 17 * + - 17
----
-3238

skipif mysql # not compatible
query I rowsort label-4486
SELECT 49 * - 59 - - - 58 + + COUNT ( * ) * 17 * + - 17
----
-3238

query I rowsort
SELECT NULLIF ( - ( - 76 ), 79 )
----
76

query I rowsort
SELECT 49 * - 73 AS col0
----
-3577

query I rowsort
SELECT + ( 73 ) * - - 88 * - - 2 + - + 10 * 32 * - + 62 / + CASE WHEN 46 IS NULL THEN + ( - 11 ) * ( 33 ) * + 98 ELSE NULL END - - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT + CASE WHEN NOT 47 IS NOT NULL THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT + CASE WHEN NOT 47 IS NOT NULL THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL + CAST( NULL AS SIGNED ) * + + 88 + + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 88 + + + 96 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 27 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT ALL COUNT( * ) * - - 75 * + 62 + NULLIF ( - ( + + 55 ), COUNT( * ) ), 50 AS col1
----
4595
50

skipif mysql # not compatible
query II rowsort label-4493
SELECT ALL COUNT ( * ) * - - 75 * + 62 + NULLIF ( - ( + + 55 ), COUNT ( * ) ), 50 AS col1
----
4595
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT - ( - 24 ) - + COALESCE ( - 79, + + CAST( + ( + 47 ) AS SIGNED ) + + 90 ) col0
----
103

skipif mysql # not compatible
query I rowsort label-4494
SELECT - ( - 24 ) - + COALESCE ( - 79, + + CAST ( + ( + 47 ) AS INTEGER ) + + 90 ) col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL + COALESCE ( - 11, + 72, - SUM( DISTINCT + - 26 ) - - 66 + 15 * + - 32 )
----
-11

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL + COALESCE ( - 11, + 72, - SUM ( DISTINCT + - 26 ) - - 66 + 15 * + - 32 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT COUNT( + - COALESCE ( + + 29, - 90 * + ( + 26 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( + - COALESCE ( + + 29, - 90 * + ( + 26 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + COALESCE ( - + 12, - - COUNT( - - 61 ) * - COUNT( * ) - - 20 + COUNT( + 12 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4497
SELECT + COALESCE ( - + 12, - - COUNT ( - - 61 ) * - COUNT ( * ) - - 20 + COUNT ( + 12 ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4498
SELECT - COALESCE ( - 95, 39 + - 76 ) DIV - COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-4498
SELECT - COALESCE ( - 95, 39 + - 76 ) / - COUNT ( * ) AS col1
----
-95

query II rowsort
SELECT + 5 AS col2, 66 AS col0
----
5
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT - 30 * - ( - SUM( 44 ) ) + + 1
----
-1319

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - 30 * - ( - SUM ( 44 ) ) + + 1
----
-1319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4501
SELECT + 14 AS col0, - COALESCE ( CASE 26 WHEN - 38 THEN - + CAST( + - 65 AS SIGNED ) * - - 52 + - - 78 WHEN - 82 * + - 19 THEN NULL WHEN - - COUNT( * ) THEN 38 END, 79 ) AS col0
----
14
-79

skipif mysql # not compatible
query II rowsort label-4501
SELECT + 14 AS col0, - COALESCE ( CASE 26 WHEN - 38 THEN - + CAST ( + - 65 AS INTEGER ) * - - 52 + - - 78 WHEN - 82 * + - 19 THEN NULL WHEN - - COUNT ( * ) THEN 38 END, 79 ) AS col0
----
14
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT DISTINCT + 23 + 97 DIV - 90
----
22

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + 23 + 97 / - 90
----
22

query I rowsort
SELECT - 60 * - - 81
----
-4860

query I rowsort
SELECT ALL + ( + - 95 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4505
SELECT - 77 DIV - COALESCE ( COUNT( * ), CAST( - 57 AS SIGNED ), - 27 * - - 61, + + 91 + - - 55 ), - 37 * + - ( 70 ) * + - 47 AS col0
----
77
-121730

skipif mysql # not compatible
query II rowsort label-4505
SELECT - 77 / - COALESCE ( COUNT ( * ), CAST ( - 57 AS INTEGER ), - 27 * - - 61, + + 91 + - - 55 ), - 37 * + - ( 70 ) * + - 47 AS col0
----
77
-121730

query I rowsort
SELECT ALL - + 70 * - - 61 - 59
----
-4329

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT COUNT( DISTINCT + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4507
SELECT COUNT ( DISTINCT + 44 )
----
1

query I rowsort
SELECT - 0 * 94 - 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL ( + - SUM( - ( - ( - - 8 ) ) ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL ( + - SUM ( - ( - ( - - 8 ) ) ) ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - + 24 - + + COUNT( + 59 )
----
-25

skipif mysql # not compatible
query I rowsort label-4510
SELECT - + 24 - + + COUNT ( + 59 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4511
SELECT 54 AS col1, 75 * 97 DIV + COALESCE ( CASE - - 94 WHEN - 93 * - + 65 * 19 * + ( 6 ) THEN - ( + 0 ) + - 54 + - 82 ELSE + 97 END, - COUNT( * ) * + 35 DIV - CAST( 10 AS SIGNED ) * + COUNT( * ), COUNT( * ) + + CASE + 46 WHEN 77 - 83 THEN 83 ELSE - 32 END * 27 ) + + 89 * - 81
----
54
-7134

skipif mysql # not compatible
query II rowsort label-4511
SELECT 54 AS col1, 75 * 97 / + COALESCE ( CASE - - 94 WHEN - 93 * - + 65 * 19 * + ( 6 ) THEN - ( + 0 ) + - 54 + - 82 ELSE + 97 END, - COUNT ( * ) * + 35 / - CAST ( 10 AS INTEGER ) * + COUNT ( * ), COUNT ( * ) + + CASE + 46 WHEN 77 - 83 THEN 83 ELSE - 32 END * 27 ) + + 89 * - 81
----
54
-7134

query I rowsort
SELECT + 92 * 72 AS col0
----
6624

query I rowsort
SELECT - + 74 + + 56
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4514
SELECT ALL CAST( 60 AS SIGNED ) - + COUNT( * ) * - ( + - ( - 88 ) ), COUNT( * ) + + 83 AS col1
----
148
84

skipif mysql # not compatible
query II rowsort label-4514
SELECT ALL CAST ( 60 AS INTEGER ) - + COUNT ( * ) * - ( + - ( - 88 ) ), COUNT ( * ) + + 83 AS col1
----
148
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL - 5 * + MAX( + - 44 ) AS col2
----
220

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - 5 * + MAX ( + - 44 ) AS col2
----
220

query II rowsort
SELECT - + 53 AS col2, 83 AS col0
----
-53
83

query I rowsort
SELECT DISTINCT NULLIF ( 55, + 27 )
----
55

query II rowsort
SELECT - 66 AS col2, ( + 79 )
----
-66
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT + 72 - NULLIF ( CAST( - 79 AS SIGNED ), - - 82 + 34 * + ( + 55 ) ) + + 65 + + COUNT( * ) + + 65 + - COUNT( * ) * COUNT( * ) * 88 AS col0
----
194

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 72 - NULLIF ( CAST ( - 79 AS INTEGER ), - - 82 + 34 * + ( + 55 ) ) + + 65 + + COUNT ( * ) + + 65 + - COUNT ( * ) * COUNT ( * ) * 88 AS col0
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL + COUNT( * ) * - 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + COUNT ( * ) * - 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + + ( - 86 ) + + - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4521
SELECT + + ( - 86 ) + + - COUNT ( * )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT - + 22 DIV + - 46 * + + NULLIF ( - 9, + COALESCE ( + 49, - - ( 70 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4522
SELECT - + 22 / + - 46 * + + NULLIF ( - 9, + COALESCE ( + 49, - - ( 70 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - SUM( - 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4523
SELECT - SUM ( - 57 ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4524
SELECT - - 48 + - + 17 DIV + CAST( 86 AS SIGNED ), - 82 col1
----
48
-82

skipif mysql # not compatible
query II rowsort label-4524
SELECT - - 48 + - + 17 / + CAST ( 86 AS INTEGER ), - 82 col1
----
48
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4525
SELECT - COALESCE ( + 41, 24 * 95 + - - NULLIF ( - 34, + COUNT( - 77 ) * - 28 ) - CAST( NULL AS SIGNED ) - + CASE - - 56 WHEN 49 * + 42 + - AVG ( - 4 ) * + 38 THEN - 97 * + 93 - CASE 8 WHEN 5 THEN CAST( 66 AS SIGNED ) ELSE CASE - 6 WHEN 70 + - 31 * 38 THEN COUNT( * ) ELSE NULL END + + ( COUNT( + 24 ) ) END - 76 * COUNT( * ) ELSE COUNT( 62 ) END * 95 DIV 29 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4525
SELECT - COALESCE ( + 41, 24 * 95 + - - NULLIF ( - 34, + COUNT ( - 77 ) * - 28 ) - CAST ( NULL AS INTEGER ) - + CASE - - 56 WHEN 49 * + 42 + - AVG ( - 4 ) * + 38 THEN - 97 * + 93 - CASE 8 WHEN 5 THEN CAST ( 66 AS INTEGER ) ELSE CASE - 6 WHEN 70 + - 31 * 38 THEN COUNT ( * ) ELSE NULL END + + ( COUNT ( + 24 ) ) END - 76 * COUNT ( * ) ELSE COUNT ( 62 ) END * 95 / 29 ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4526
SELECT + COUNT( * ) DIV 39 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT + COUNT ( * ) / 39 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT DISTINCT 51 DIV 42 col0
----
1

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT 51 / 42 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT ALL CAST( + 5 AS SIGNED ) + 97 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL CAST ( + 5 AS INTEGER ) + 97 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT ALL 33 DIV 65 + - - COUNT( * ) - - 20
----
21

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL 33 / 65 + - - COUNT ( * ) - - 20
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT + CAST( NULL AS SIGNED ) + CAST( - + 30 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT + CAST ( NULL AS INTEGER ) + CAST ( - + 30 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ALL 70 DIV + - COUNT( * ) + 43
----
-27

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL 70 / + - COUNT ( * ) + 43
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ( + MIN( DISTINCT - 93 ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4532
SELECT ( + MIN ( DISTINCT - 93 ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT + ( + 97 ) AS col0, + COUNT( * ) + - - 8
----
97
9

skipif mysql # not compatible
query II rowsort label-4533
SELECT + ( + 97 ) AS col0, + COUNT ( * ) + - - 8
----
97
9

query I rowsort
SELECT DISTINCT 55 * + + 36
----
1980

query I rowsort
SELECT ALL 39 * - 99 + - 66 AS col2
----
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL + SUM( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + SUM ( + 56 )
----
56

query I rowsort
SELECT ALL + 37 * 93 * - + 52 + + + 75
----
-178857

query II rowsort
SELECT DISTINCT 7 * + 62, 94 AS col2
----
434
94

query I rowsort
SELECT - 78 + - ( + + 34 )
----
-112

query I rowsort
SELECT + ( 17 ) AS col1
----
17

query I rowsort
SELECT - 82 * - 58 + - 20
----
4736

query I rowsort
SELECT NULLIF ( - 45, - 93 / + 28 ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4543
SELECT + 93 + + - CAST( NULL AS SIGNED ) + 79 + - - 41 / + 6 AS col2, 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-4543
SELECT + 93 + + - CAST ( NULL AS INTEGER ) + 79 + - - 41 / + 6 AS col2, 64 AS col0
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - - MAX( ALL 69 ) * + 48 AS col2
----
3312

skipif mysql # not compatible
query I rowsort label-4544
SELECT - - MAX ( ALL 69 ) * + 48 AS col2
----
3312

query I rowsort
SELECT ALL + + 54 * - 63
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - 34 * NULLIF ( + + COUNT( * ), - + 33 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4546
SELECT - 34 * NULLIF ( + + COUNT ( * ), - + 33 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT + 7 * - 30 AS col2
----
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-4548
SELECT ALL MIN( ( + 98 ) ) AS col0, - 54 col0
----
98
-54

skipif mysql # not compatible
query II rowsort label-4548
SELECT ALL MIN ( ( + 98 ) ) AS col0, - 54 col0
----
98
-54

query I rowsort
SELECT + + 68 * - - 8 * + 38 - 92 AS col0
----
20580

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - - MIN( DISTINCT + 83 ) + 44 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-4550
SELECT - - MIN ( DISTINCT + 83 ) + 44 AS col0
----
127

query I rowsort
SELECT - - 93 * - 30 - + - 19
----
-2771

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + NULLIF ( + COUNT( * ), + + 71 * + + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4552
SELECT + NULLIF ( + COUNT ( * ), + + 71 * + + 67 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL + - 75 + 5 * + 78 * + COUNT( * ) AS col1
----
315

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL + - 75 + 5 * + 78 * + COUNT ( * ) AS col1
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - CASE - 64 WHEN 32 THEN NULL WHEN + 15 / + COUNT( * ) THEN - - 26 END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT - CASE - 64 WHEN 32 THEN NULL WHEN + 15 / + COUNT ( * ) THEN - - 26 END * 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + - 58 + + + MAX( 93 )
----
35

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + - 58 + + + MAX ( 93 )
----
35

query I rowsort
SELECT DISTINCT + 72 col2
----
72

query II rowsort
SELECT 36, - 25 * COALESCE ( 40, - 25 ) AS col1
----
36
-1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL 68 + ( 2 ) * + MAX( + + CAST( NULL AS SIGNED ) ) * - + 70 * - 72 * - 58 * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL 68 + ( 2 ) * + MAX ( + + CAST ( NULL AS INTEGER ) ) * - + 70 * - 72 * - 58 * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL COUNT ( * ) + - 41
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4560
SELECT DISTINCT 37, + CAST( COUNT( * ) AS SIGNED ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-4560
SELECT DISTINCT 37, + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
37
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4561
SELECT ALL COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( 68 ) * + 52 - ( - 16 )
----
3552

onlyif mysql # aggregate syntax: 
query II rowsort label-4563
SELECT DISTINCT - COUNT( * ), 66 * 25 AS col0
----
-1
1650

skipif mysql # not compatible
query II rowsort label-4563
SELECT DISTINCT - COUNT ( * ), 66 * 25 AS col0
----
-1
1650

query I rowsort
SELECT ALL + 23 - - 63 AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT DISTINCT 96 DIV + - 37 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT 96 / + - 37 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT ALL MAX( ALL - 58 ) - - 92 + + ( - CAST( 90 AS SIGNED ) ) + + 36 - + CAST( NULL AS SIGNED ) * - 72 / - 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL MAX ( ALL - 58 ) - - 92 + + ( - CAST ( 90 AS INTEGER ) ) + + 36 - + CAST ( NULL AS INTEGER ) * - 72 / - 63 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT + 56, + 61 * + COUNT( * ) AS col1
----
56
61

skipif mysql # not compatible
query II rowsort label-4567
SELECT + 56, + 61 * + COUNT ( * ) AS col1
----
56
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4568
SELECT 60 * + + 59 + COUNT( * ) + 84 DIV + CAST( - SUM( ALL - + 7 ) AS SIGNED ) AS col0
----
3553

skipif mysql # not compatible
query I rowsort label-4568
SELECT 60 * + + 59 + COUNT ( * ) + 84 / + CAST ( - SUM ( ALL - + 7 ) AS INTEGER ) AS col0
----
3553

query I rowsort
SELECT ALL 95 * + 53
----
5035

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT 67 DIV - + 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4570
SELECT 67 / - + 42 AS col2
----
-1

query II rowsort
SELECT 46, + ( 72 ) AS col0
----
46
72

query I rowsort
SELECT - 96 + + - 54 AS col1
----
-150

query I rowsort
SELECT ALL 35 * 99 AS col2
----
3465

onlyif mysql # aggregate syntax: 
query II rowsort label-4574
SELECT CASE - 96 WHEN + - COUNT( * ) - AVG ( 49 ) THEN + 16 + - AVG ( ALL - 54 ) ELSE NULL END AS col2, 51 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4574
SELECT CASE - 96 WHEN + - COUNT ( * ) - AVG ( 49 ) THEN + 16 + - AVG ( ALL - 54 ) ELSE NULL END AS col2, 51 AS col1
----
NULL
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4575
SELECT ALL - - 79 AS col1, COALESCE ( + 67, + 40 ) AS col0, + 38 * - AVG ( - - 37 ) + - - 66 - - CAST( NULL AS SIGNED ) + 14 + + 79 * + NULLIF ( - 74, - 49 ) * 97 - + 38 / - NULLIF ( + + COUNT( * ), 56 ) * - 88
----
79
67
NULL

skipif mysql # not compatible
query III rowsort label-4575
SELECT ALL - - 79 AS col1, COALESCE ( + 67, + 40 ) AS col0, + 38 * - AVG ( - - 37 ) + - - 66 - - CAST ( NULL AS INTEGER ) + 14 + + 79 * + NULLIF ( - 74, - 49 ) * 97 - + 38 / - NULLIF ( + + COUNT ( * ), 56 ) * - 88
----
79
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL - MIN( + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - MIN ( + 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4577
SELECT + + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT NULLIF ( + 19, - 75 / COUNT( * ) * - + 72 ) * + - MAX( 85 )
----
-1615

skipif mysql # not compatible
query I rowsort label-4578
SELECT NULLIF ( + 19, - 75 / COUNT ( * ) * - + 72 ) * + - MAX ( 85 )
----
-1615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4579
SELECT + COUNT( + ( + 66 ) ) + COUNT( * ) DIV ( + 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4579
SELECT + COUNT ( + ( + 66 ) ) + COUNT ( * ) / ( + 57 ) AS col2
----
1

query II rowsort
SELECT ALL 73 AS col2, + ( + - 88 )
----
73
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - 94 - + COUNT( * ) - CASE + ( ( + 89 ) ) WHEN 15 THEN + - 96 * + 15 / - MIN( DISTINCT + - 35 ) * - COUNT( * ) - - + MIN( DISTINCT + 93 ) + - ( 10 ) WHEN + + 11 THEN + 54 + + + CASE COUNT( - - ( 54 ) ) WHEN - 46 THEN + NULLIF ( COUNT( * ), + 28 * 2 ) + 86 WHEN 67 THEN NULL END + 53 * COUNT( * ) END / - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 94 - + COUNT ( * ) - CASE + ( ( + 89 ) ) WHEN 15 THEN + - 96 * + 15 / - MIN ( DISTINCT + - 35 ) * - COUNT ( * ) - - + MIN ( DISTINCT + 93 ) + - ( 10 ) WHEN + + 11 THEN + 54 + + + CASE COUNT ( - - ( 54 ) ) WHEN - 46 THEN + NULLIF ( COUNT ( * ), + 28 * 2 ) + 86 WHEN 67 THEN NULL END + 53 * COUNT ( * ) END / - 78
----
NULL

query I rowsort
SELECT 16 * - - 46
----
736

query I rowsort
SELECT - 68 * 34 * - - 98
----
-226576

query II rowsort
SELECT - - 5 AS col2, - NULLIF ( 58, 85 + + 94 + - 72 * - 75 + + 72 )
----
5
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + 34 + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 34 + + COUNT ( * )
----
35

query I rowsort
SELECT ALL - 51 + + + 68
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT COUNT( - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT COUNT ( - 12 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT ALL - 1 * 72 + - - 10 + - + 16 DIV + + 80 * - 30 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - 1 * 72 + - - 10 + - + 16 / + + 80 * - 30 AS col0
----
-62

query I rowsort
SELECT 42 + - 85 * + + 34 + NULLIF ( 65, + - 15 )
----
-2783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT 77 - CAST( NULL AS SIGNED ) + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT 77 - CAST ( NULL AS INTEGER ) + - 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT ALL + 54 + + + CAST( - 83 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + 54 + + + CAST ( - 83 AS INTEGER )
----
-29

query I rowsort
SELECT 97 + 49 + + - 76 AS col2
----
70

query I rowsort
SELECT ALL - 91 + + + 42 col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT 67 + 50 + - 74 + MAX( DISTINCT 24 ) * + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4594
SELECT 67 + 50 + - 74 + MAX ( DISTINCT 24 ) * + COUNT ( * ) AS col1
----
67

query I rowsort
SELECT 3 * 93
----
279

onlyif mysql # DIV for integer division: 
query II rowsort label-4596
SELECT ALL - 82 DIV - 66 AS col0, + 11 * + 50
----
1
550

skipif mysql # not compatible
query II rowsort label-4596
SELECT ALL - 82 / - 66 AS col0, + 11 * + 50
----
1
550

query I rowsort
SELECT DISTINCT 38 + 27 AS col1
----
65

query II rowsort
SELECT 86 + + 77 col1, 12 AS col2
----
163
12

query I rowsort
SELECT ALL - 91 - - - 10 + - 44 AS col0
----
-145

query I rowsort
SELECT 28 * 70 AS col0
----
1960

query I rowsort
SELECT ALL - ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - COUNT( ALL - 65 ) * + + 12 + 25 + - 7 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - COUNT ( ALL - 65 ) * + + 12 + 25 + - 7 AS col1
----
6

query I rowsort
SELECT ALL - ( - 91 ) AS col2
----
91

query I rowsort
SELECT - 73 * + 70 + - 40 AS col1
----
-5150

query I rowsort
SELECT DISTINCT - NULLIF ( + 47, - 8 ) AS col1
----
-47

query I rowsort
SELECT ALL - + 19 col1
----
-19

query II rowsort
SELECT 62 / - 16 + + CASE - 6 WHEN - ( - 13 ) THEN 50 ELSE NULL END, - 76 AS col1
----
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL - SUM( DISTINCT + - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL - SUM ( DISTINCT + - 3 )
----
3

query I rowsort
SELECT DISTINCT - - ( + ( 41 ) )
----
41

query I rowsort
SELECT ALL - - 42 AS col0
----
42

query I rowsort
SELECT CASE + 97 WHEN 93 * + 56 - + 47 THEN 20 WHEN + + 26 + - 38 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4612
SELECT 92 * - - NULLIF ( - 37, + + 79 ) AS col1, 57 * + 47 + 51 DIV 97 AS col1
----
-3404
2679

skipif mysql # not compatible
query II rowsort label-4612
SELECT 92 * - - NULLIF ( - 37, + + 79 ) AS col1, 57 * + 47 + 51 / 97 AS col1
----
-3404
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - 25 + COUNT( * ) * - COUNT( * ) * + 15
----
-40

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 25 + COUNT ( * ) * - COUNT ( * ) * + 15
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + MIN( + + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-4614
SELECT + MIN ( + + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT + - 48 * 39 + + COUNT( * ) + ( + - 44 ) * - 74 * - + 39
----
-128855

skipif mysql # not compatible
query I rowsort label-4615
SELECT + - 48 * 39 + + COUNT ( * ) + ( + - 44 ) * - 74 * - + 39
----
-128855

query I rowsort
SELECT ALL 8 + - - 6
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4617
SELECT ALL 13 DIV + SUM( ALL 99 )
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL 13 / + SUM ( ALL 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL - 66 + + - 73 + + COUNT( * ) * 43
----
-96

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - 66 + + - 73 + + COUNT ( * ) * 43
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT AVG ( DISTINCT + 71 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT AVG ( DISTINCT + 71 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - - SUM( ALL + - 2 ) + 75 + - 32
----
41

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - - SUM ( ALL + - 2 ) + 75 + - 32
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT DISTINCT CAST( + + 93 AS SIGNED ) + 93 AS col2
----
186

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT CAST ( + + 93 AS INTEGER ) + 93 AS col2
----
186

query I rowsort
SELECT ALL 58 + 97 * + 68 AS col1
----
6654

query I rowsort
SELECT DISTINCT 36 col1
----
36

query I rowsort
SELECT ALL 71 + + - 3 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + ( + ( + COUNT( * ) ) ) + - 44 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4625
SELECT + ( + ( + COUNT ( * ) ) ) + - 44 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT - COUNT( - ( + + ( + 84 ) ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT - COUNT ( - ( + + ( + 84 ) ) ) col1
----
-1

query I rowsort
SELECT DISTINCT - 72 + - 88
----
-160

query I rowsort
SELECT + 27 + + + 84
----
111

query I rowsort
SELECT ALL 33 + - - 45
----
78

query I rowsort
SELECT + 39 * + - 11
----
-429

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4631
SELECT ALL 86 DIV + + 94 * + - COUNT( * ) AS col0, 33 * 14 - + - 31 - - 69
----
0
562

skipif mysql # not compatible
query II rowsort label-4631
SELECT ALL 86 / + + 94 * + - COUNT ( * ) AS col0, 33 * 14 - + - 31 - - 69
----
0
562

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT + 91 DIV + COALESCE ( + + 14, + 20 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-4632
SELECT + 91 / + COALESCE ( + + 14, + 20 ) col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL 97 - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL 97 - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL MIN( ALL + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL MIN ( ALL + 43 ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT ALL + NULLIF ( - - 20, - - 8 DIV 59 ) - 40 DIV + 68 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + NULLIF ( - - 20, - - 8 / 59 ) - 40 / + 68 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT - 61 DIV 43 * COALESCE ( 28, + 66 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 61 / 43 * COALESCE ( 28, + 66 ) col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT ALL COALESCE ( - 26, 15 - - NULLIF ( NULLIF ( 95, 81 + - - ( 5 ) ), 49 ) + 25 * - + 23, + - 53 ) col0, ( + 76 ) + - COUNT( * )
----
-26
75

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL COALESCE ( - 26, 15 - - NULLIF ( NULLIF ( 95, 81 + - - ( 5 ) ), 49 ) + 25 * - + 23, + - 53 ) col0, ( + 76 ) + - COUNT ( * )
----
-26
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT + CAST( NULL AS SIGNED ) + - 91 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT + CAST ( NULL AS INTEGER ) + - 91 * 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4639
SELECT - CASE + CAST( NULL AS DECIMAL ) WHEN - + COUNT( * ) + MIN( 30 ) THEN + + 86 END AS col2, 95 col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4639
SELECT - CASE + CAST ( NULL AS REAL ) WHEN - + COUNT ( * ) + MIN ( 30 ) THEN + + 86 END AS col2, 95 col0
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL MIN( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL MIN ( - 4 )
----
-4

query I rowsort
SELECT - 31 * + 41
----
-1271

query II rowsort
SELECT + 1 - + + 4 * - NULLIF ( + 74, + - 37 ) AS col2, 13
----
297
13

query I rowsort
SELECT - 7 * - 45 col0
----
315

query I rowsort
SELECT DISTINCT 25 * + 48 col0
----
1200

query I rowsort
SELECT ALL + 47 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT ( ( + CASE + 9 WHEN AVG ( ALL - 82 ) THEN - 31 + + MIN( ALL - - 92 ) WHEN + CAST( NULL AS SIGNED ) THEN 23 * + + 22 / - 70 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT ( ( + CASE + 9 WHEN AVG ( ALL - 82 ) THEN - 31 + + MIN ( ALL - - 92 ) WHEN + CAST ( NULL AS INTEGER ) THEN 23 * + + 22 / - 70 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT 34 DIV - - 76 + - + 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4647
SELECT 34 / - - 76 + - + 80 AS col0
----
-80

query I rowsort
SELECT DISTINCT + 55 col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4649
SELECT DISTINCT - - COUNT( + 18 ) * - 43 AS col0, - 17 DIV + COUNT( * ) + - 72 + NULLIF ( - - 88, - 13 ) * - 21 * - - 31 * + - 74 AS col1
----
-43
4239223

skipif mysql # not compatible
query II rowsort label-4649
SELECT DISTINCT - - COUNT ( + 18 ) * - 43 AS col0, - 17 / + COUNT ( * ) + - 72 + NULLIF ( - - 88, - 13 ) * - 21 * - - 31 * + - 74 AS col1
----
-43
4239223

query I rowsort
SELECT NULLIF ( 6, - - 30 ) AS col1
----
6

query I rowsort
SELECT - + 55 * - 7 AS col1
----
385

query I rowsort
SELECT ALL - + 62 * - + 10 + 39 + - - 63
----
722

query I rowsort
SELECT + COALESCE ( + 38, 59 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + + COALESCE ( + 57, 80 + 83, - 89 * 75 + - SUM( + + 60 ), 12 * CASE WHEN NOT 13 IS NOT NULL THEN - - 71 + - + 24 + 11 * - + 45 ELSE NULL END )
----
57

skipif mysql # not compatible
query I rowsort label-4654
SELECT + + COALESCE ( + 57, 80 + 83, - 89 * 75 + - SUM ( + + 60 ), 12 * CASE WHEN NOT 13 IS NOT NULL THEN - - 71 + - + 24 + 11 * - + 45 ELSE NULL END )
----
57

query I rowsort
SELECT - + 89 * + 55
----
-4895

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - + 9 * 45 * + 45 + + - MAX( + - ( 6 ) ) + 45
----
-18174

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - + 9 * 45 * + 45 + + - MAX ( + - ( 6 ) ) + 45
----
-18174

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4657
SELECT DISTINCT 93 * + AVG ( DISTINCT 53 ) + + CASE - 40 WHEN + 32 THEN NULL WHEN CAST( NULL AS DECIMAL ) + - - NULLIF ( - + 20, 6 ) * - 99 * 46 THEN 12 * + 65 + - 86 - - 10 * - 90 * 64 ELSE - ( - MAX( ALL 37 ) ) END - CASE - COALESCE ( + + 27, 90 * 10 ) WHEN ( + NULLIF ( 95, 19 + 82 * 39 ) ) THEN - COUNT( * ) END * NULLIF ( + 45 / 5, - 84 ) + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT 93 * + AVG ( DISTINCT 53 ) + + CASE - 40 WHEN + 32 THEN NULL WHEN CAST ( NULL AS REAL ) + - - NULLIF ( - + 20, 6 ) * - 99 * 46 THEN 12 * + 65 + - 86 - - 10 * - 90 * 64 ELSE - ( - MAX ( ALL 37 ) ) END - CASE - COALESCE ( + + 27, 90 * 10 ) WHEN ( + NULLIF ( 95, 19 + 82 * 39 ) ) THEN - COUNT ( * ) END * NULLIF ( + 45 / 5, - 84 ) + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL + + ( + + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + + ( + + ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT - 25 * + 30 * - 71 * + 74
----
3940500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4660
SELECT - MIN( ALL - 76 ) + + 19 * - 1 + - ( CAST( + - 30 AS SIGNED ) ) + + 30 * + COALESCE ( - 88, + 86 * 9 + CASE + COUNT( * ) WHEN - NULLIF ( + COUNT( * ), + COUNT( * ) ) + + COUNT( * ) THEN NULL WHEN 73 * 39 DIV - 41 * - 76 + - 99 * AVG ( + 11 ) * - 94 + - 91 THEN 17 * 38 ELSE NULLIF ( COALESCE ( - 9, 6 DIV - 59 ), 17 * 84 ) END ) * + COUNT( * ) AS col1
----
-2553

skipif mysql # not compatible
query I rowsort label-4660
SELECT - MIN ( ALL - 76 ) + + 19 * - 1 + - ( CAST ( + - 30 AS INTEGER ) ) + + 30 * + COALESCE ( - 88, + 86 * 9 + CASE + COUNT ( * ) WHEN - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + + COUNT ( * ) THEN NULL WHEN 73 * 39 / - 41 * - 76 + - 99 * AVG ( + 11 ) * - 94 + - 91 THEN 17 * 38 ELSE NULLIF ( COALESCE ( - 9, 6 / - 59 ), 17 * 84 ) END ) * + COUNT ( * ) AS col1
----
-2553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4661
SELECT + + CASE + 23 WHEN 54 + + 62 THEN NULL WHEN - 93 THEN - CAST( MAX( + 4 ) AS SIGNED ) WHEN + 41 * 33 THEN - ( CAST( NULL AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT + + CASE + 23 WHEN 54 + + 62 THEN NULL WHEN - 93 THEN - CAST ( MAX ( + 4 ) AS INTEGER ) WHEN + 41 * 33 THEN - ( CAST ( NULL AS REAL ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4662
SELECT - + MIN( 82 ) + 67 * + - 60 DIV + 30 AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-4662
SELECT - + MIN ( 82 ) + 67 * + - 60 / + 30 AS col2
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT 91 * - + 82 * COUNT( * ) + COALESCE ( + + 35, 25 ) AS col2
----
-7427

skipif mysql # not compatible
query I rowsort label-4663
SELECT 91 * - + 82 * COUNT ( * ) + COALESCE ( + + 35, 25 ) AS col2
----
-7427

query I rowsort
SELECT + 21 * - + 5 * 42
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL SUM( ALL - 77 ) * + + 57
----
-4389

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL SUM ( ALL - 77 ) * + + 57
----
-4389

query I rowsort
SELECT + ( 19 ) + - 87 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT ALL + 91 - + - 66 AS col2, - 76 * + + COUNT( * )
----
157
-76

skipif mysql # not compatible
query II rowsort label-4667
SELECT ALL + 91 - + - 66 AS col2, - 76 * + + COUNT ( * )
----
157
-76

query I rowsort
SELECT + 68 + 58 AS col0
----
126

query I rowsort
SELECT ALL 79 - 15 + 44 + ( - 8 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT 91 * COALESCE ( + COUNT( * ), + 98 + ( + - 77 ) * - 62 * + 56 - - 14 + + 60 * + SUM( DISTINCT - 73 ) )
----
91

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT 91 * COALESCE ( + COUNT ( * ), + 98 + ( + - 77 ) * - 62 * + 56 - - 14 + + 60 * + SUM ( DISTINCT - 73 ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - COUNT( * ) + ( + 96 ) + MIN( ALL + 39 ) * + 26 AS col1
----
1109

skipif mysql # not compatible
query I rowsort label-4671
SELECT - COUNT ( * ) + ( + 96 ) + MIN ( ALL + 39 ) * + 26 AS col1
----
1109

query I rowsort
SELECT + 38 + 25 + 81
----
144

query II rowsort
SELECT ALL 42, - ( - + 85 ) * + 78 AS col1
----
42
6630

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT + COUNT( * ) * + - 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4674
SELECT + COUNT ( * ) * + - 78 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT + 14 + + 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT + 14 + + 54 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + 90 + ( COALESCE ( - + 65, + 42 ) ) - + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4676
SELECT + 90 + ( COALESCE ( - + 65, + 42 ) ) - + COUNT ( * )
----
24

query I rowsort
SELECT + 2 + + 74 AS col0
----
76

query I rowsort
SELECT + 78 + - 23 * 31
----
-635

query II rowsort
SELECT DISTINCT 59 AS col2, + 63
----
59
63

query I rowsort
SELECT ALL + ( + + 50 ) * + 9 + - + 52
----
398

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT 89 AS col2, - COUNT( 76 ) + - 0
----
89
-1

skipif mysql # not compatible
query II rowsort label-4681
SELECT 89 AS col2, - COUNT ( 76 ) + - 0
----
89
-1

query II rowsort
SELECT ALL 36 + 35, 86 AS col2
----
71
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT - 83 DIV NULLIF ( + 48, 8 + COALESCE ( - 71, + 27 ) ) + + ( - 35 ) - + 58 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4683
SELECT - 83 / NULLIF ( + 48, 8 + COALESCE ( - 71, + 27 ) ) + + ( - 35 ) - + 58 AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT - - 79 DIV - - 61 + + 48 * - 64
----
-3071

skipif mysql # not compatible
query I rowsort label-4684
SELECT - - 79 / - - 61 + + 48 * - 64
----
-3071

query I rowsort
SELECT - - 21 + + 54
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT ALL - + ( - COUNT( * ) ) DIV COUNT( DISTINCT - 62 ) + CASE WHEN 73 BETWEEN ( - - AVG ( ALL - - 5 ) * COUNT( * ) DIV - 31 ) AND 34 THEN NULL ELSE + ( - + 59 ) END + - - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - + ( - COUNT ( * ) ) / COUNT ( DISTINCT - 62 ) + CASE WHEN 73 BETWEEN ( - - AVG ( ALL - - 5 ) * COUNT ( * ) / - 31 ) AND 34 THEN NULL ELSE + ( - + 59 ) END + - - 58 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4687
SELECT + - NULLIF ( - 2, - CASE - COUNT( DISTINCT + + 75 ) WHEN + 13 THEN - - 17 + - - 27 - - 19 + - 50 END + - 29 + - + 72 + + - AVG ( - - 23 ) * - - 49 / - - CAST( NULL AS SIGNED ) + + COUNT( * ) * 15 * 11 * + + 56 ) * 72 * + - 84, + 86 AS col0
----
-12096
86

skipif mysql # not compatible
query II rowsort label-4687
SELECT + - NULLIF ( - 2, - CASE - COUNT ( DISTINCT + + 75 ) WHEN + 13 THEN - - 17 + - - 27 - - 19 + - 50 END + - 29 + - + 72 + + - AVG ( - - 23 ) * - - 49 / - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 15 * 11 * + + 56 ) * 72 * + - 84, + 86 AS col0
----
-12096
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - + 11 * COUNT( * ) + - 12 + - 58 * - ( 98 ) - - ( + 54 ) AS col2
----
5715

skipif mysql # not compatible
query I rowsort label-4688
SELECT - + 11 * COUNT ( * ) + - 12 + - 58 * - ( 98 ) - - ( + 54 ) AS col2
----
5715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4689
SELECT DISTINCT + CAST( - + ( - - COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + CAST ( - + ( - - COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT DISTINCT - 33 + + COUNT( * ) DIV + 63 + - + COUNT( * ) + 85 + - 72 * - - 48 * - 57 + 55 col1
----
197098

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - 33 + + COUNT ( * ) / + 63 + - + COUNT ( * ) + 85 + - 72 * - - 48 * - 57 + 55 col1
----
197098

query I rowsort
SELECT ALL - - 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT + 53 AS col0, - 5 - ( - + 37 ) + - 16 * COUNT( * )
----
53
16

skipif mysql # not compatible
query II rowsort label-4692
SELECT + 53 AS col0, - 5 - ( - + 37 ) + - 16 * COUNT ( * )
----
53
16

query I rowsort
SELECT DISTINCT - - 49 + + 96 AS col0
----
145

query I rowsort
SELECT + ( - 62 ) AS col2
----
-62

query I rowsort
SELECT - 19 * 55 + + 28 col2
----
-1017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4696
SELECT + 9, - 40 + + - 9 DIV - COALESCE ( + COUNT( * ), - + 39 + 56 * + 43 * COUNT( * ) + - + COUNT( * ), - + CAST( 0 AS SIGNED ) ) col2
----
9
-31

skipif mysql # not compatible
query II rowsort label-4696
SELECT + 9, - 40 + + - 9 / - COALESCE ( + COUNT ( * ), - + 39 + 56 * + 43 * COUNT ( * ) + - + COUNT ( * ), - + CAST ( 0 AS INTEGER ) ) col2
----
9
-31

query I rowsort
SELECT + 81 * + 25
----
2025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT MIN( + 22 ) + + + 15 + + + 99 DIV - 81 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4698
SELECT MIN ( + 22 ) + + + 15 + + + 99 / - 81 AS col0
----
36

query I rowsort
SELECT ALL + 22 * - 65 AS col1
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT - + 31 * - - 59 * MAX( - + 11 ) + 50
----
20169

skipif mysql # not compatible
query I rowsort label-4700
SELECT - + 31 * - - 59 * MAX ( - + 11 ) + 50
----
20169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4701
SELECT DISTINCT - ( - 13 ) AS col0, CAST( - - 97 AS SIGNED ) + - + 50
----
13
47

skipif mysql # not compatible
query II rowsort label-4701
SELECT DISTINCT - ( - 13 ) AS col0, CAST ( - - 97 AS INTEGER ) + - + 50
----
13
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4702
SELECT ALL + 5 * MAX( - - 78 ) * + COALESCE ( + 77, - 54 - - + 10 ) + + + 30 + - + 91 + - COALESCE ( - 78, + 69 + - COUNT( * ) + + 65, - 36 + - + CAST( NULL AS SIGNED ) * - 32 + + 0 + - + 35 * - 44 + 9 DIV - - 73 + - 12 ) - 93 * 11 DIV - COUNT( * )
----
31070

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + 5 * MAX ( - - 78 ) * + COALESCE ( + 77, - 54 - - + 10 ) + + + 30 + - + 91 + - COALESCE ( - 78, + 69 + - COUNT ( * ) + + 65, - 36 + - + CAST ( NULL AS INTEGER ) * - 32 + + 0 + - + 35 * - 44 + 9 / - - 73 + - 12 ) - 93 * 11 / - COUNT ( * )
----
31070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT COUNT( * ) DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4703
SELECT COUNT ( * ) / 59 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT NULLIF ( ( - 17 ), + - 98 * 12 * - 71 ) + + 71 * - - ( - 64 ) * + 96 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT NULLIF ( ( - 17 ), + - 98 * 12 * - 71 ) + + 71 * - - ( - 64 ) * + 96 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * - 34 AS col1
----
-952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL ( - CAST( + ( + - 5 ) AS SIGNED ) ) * + 97 * - 31 + - 85 * + COUNT( * )
----
-15120

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL ( - CAST ( + ( + - 5 ) AS INTEGER ) ) * + 97 * - 31 + - 85 * + COUNT ( * )
----
-15120

query I rowsort
SELECT 18 * - 14
----
-252

query I rowsort
SELECT DISTINCT + 88 + - 78 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4709
SELECT COUNT( * ) * - 95 * - NULLIF ( + + 96, - CAST( NULL AS DECIMAL ) * NULLIF ( + NULLIF ( + ( - 78 ), - COUNT( * ) + - MIN( ( + - 64 ) ) ), - 59 ) )
----
9120

skipif mysql # not compatible
query I rowsort label-4709
SELECT COUNT ( * ) * - 95 * - NULLIF ( + + 96, - CAST ( NULL AS REAL ) * NULLIF ( + NULLIF ( + ( - 78 ), - COUNT ( * ) + - MIN ( ( + - 64 ) ) ), - 59 ) )
----
9120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT ALL + 70 + 93 + + + CASE - 70 WHEN + + CAST( NULL AS SIGNED ) + + - COUNT( * ) - + - 99 * - 90 THEN - CAST( NULL AS SIGNED ) + + + COUNT( - 81 ) WHEN 32 + - ( - ( + 15 ) ) THEN NULL ELSE NULL END * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL + 70 + 93 + + + CASE - 70 WHEN + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) - + - 99 * - 90 THEN - CAST ( NULL AS INTEGER ) + + + COUNT ( - 81 ) WHEN 32 + - ( - ( + 15 ) ) THEN NULL ELSE NULL END * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT - ( - - 86 ) + - ( + MIN( - 58 ) ) + + ( - + 57 ) * 47
----
-2707

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - ( - - 86 ) + - ( + MIN ( - 58 ) ) + + ( - + 57 ) * 47
----
-2707

query I rowsort
SELECT 11 + - 40 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - COALESCE ( - 6, + CASE 45 WHEN - COUNT( * ) / - 39 THEN + + 60 ELSE - SUM( ALL - + 61 ) END + 2, + + NULLIF ( - + 46, - - 43 * COALESCE ( + - 51, + 36, + + 3 + - 66 ) + - NULLIF ( + + 61, 64 / - - ( - 94 ) * - 30 * MAX( - 19 ) + - - 96 ) + - 67 ) + + MIN( DISTINCT 87 ), - 52 )
----
6

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - COALESCE ( - 6, + CASE 45 WHEN - COUNT ( * ) / - 39 THEN + + 60 ELSE - SUM ( ALL - + 61 ) END + 2, + + NULLIF ( - + 46, - - 43 * COALESCE ( + - 51, + 36, + + 3 + - 66 ) + - NULLIF ( + + 61, 64 / - - ( - 94 ) * - 30 * MAX ( - 19 ) + - - 96 ) + - 67 ) + + MIN ( DISTINCT 87 ), - 52 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT ( - CAST( NULL AS SIGNED ) ) + - COUNT( * ) * + - COUNT( * ) - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * + - COUNT ( * ) - - 36
----
NULL

query II rowsort
SELECT + 96 * + 33, + 32 + + + 14 AS col2
----
3168
46

query I rowsort
SELECT ALL ( 51 ) + + 37
----
88

query I rowsort
SELECT 36 - - + 53 - - + 23 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL - - ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - - ( - - COUNT ( * ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4719
SELECT - + CAST( NULL AS DECIMAL ) * - 69 + + COUNT( DISTINCT NULLIF ( - ( - 63 ), - 29 ) ) + - 94 * + + 20 * + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT - + CAST ( NULL AS REAL ) * - 69 + + COUNT ( DISTINCT NULLIF ( - ( - 63 ), - 29 ) ) + - 94 * + + 20 * + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL COUNT( * ) * + 71 AS col1, - 95
----
71
-95

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL COUNT ( * ) * + 71 AS col1, - 95
----
71
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL - NULLIF ( + 49, COUNT( DISTINCT 10 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - NULLIF ( + 49, COUNT ( DISTINCT 10 ) ) AS col1
----
-49

query I rowsort
SELECT DISTINCT 64 - + 85 * 85 * 28
----
-202236

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT COUNT( ALL 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4723
SELECT COUNT ( ALL 55 ) AS col1
----
1

query I rowsort
SELECT 48 * 37 - 58
----
1718

query I rowsort
SELECT 85 * + + 56 AS col0
----
4760

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT 28 * + COUNT( * ) + 62 * + 83 + + - NULLIF ( 98, ( + + 13 ) ) + + 28
----
5104

skipif mysql # not compatible
query I rowsort label-4726
SELECT 28 * + COUNT ( * ) + 62 * + 83 + + - NULLIF ( 98, ( + + 13 ) ) + + 28
----
5104

query I rowsort
SELECT ALL - - 4 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - 78 * - - COUNT( * ) + + 30
----
-48

skipif mysql # not compatible
query I rowsort label-4728
SELECT - 78 * - - COUNT ( * ) + + 30
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4729
SELECT ALL COUNT( * ) * - 57, CAST( NULL AS SIGNED ) * MIN( - 98 ) col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-4729
SELECT ALL COUNT ( * ) * - 57, CAST ( NULL AS INTEGER ) * MIN ( - 98 ) col1
----
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + SUM( DISTINCT 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4730
SELECT + SUM ( DISTINCT 55 ) AS col2
----
55

query I rowsort
SELECT DISTINCT + - 71 - - 57
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4732
SELECT ALL - 2 DIV + COALESCE ( 36, ( + COUNT( * ) ), + 88 + - - 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL - 2 / + COALESCE ( 36, ( + COUNT ( * ) ), + 88 + - - 95 ) AS col2
----
0

query I rowsort
SELECT 8 * - 17 AS col0
----
-136

query I rowsort
SELECT ALL - + 71 col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL - CASE 40 WHEN - 69 / - - 14 THEN - 45 + - - AVG ( DISTINCT + - 62 ) - - 94 * 68 + - - 52 * COALESCE ( + CASE 98 WHEN + 57 THEN + + COUNT( * ) WHEN + 15 * - 70 THEN - 20 * ( + 95 ) * 67 - - - 8 + + + CAST( + - 51 AS SIGNED ) - - - 36 + + - COALESCE ( 94, - 4 ) + + 54 * - 56 END, + ( 63 ) * - 67, COUNT( * ), NULLIF ( + 42, + 87 ) ) + + 27 * 90 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - CASE 40 WHEN - 69 / - - 14 THEN - 45 + - - AVG ( DISTINCT + - 62 ) - - 94 * 68 + - - 52 * COALESCE ( + CASE 98 WHEN + 57 THEN + + COUNT ( * ) WHEN + 15 * - 70 THEN - 20 * ( + 95 ) * 67 - - - 8 + + + CAST ( + - 51 AS INTEGER ) - - - 36 + + - COALESCE ( 94, - 4 ) + + 54 * - 56 END, + ( 63 ) * - 67, COUNT ( * ), NULLIF ( + 42, + 87 ) ) + + 27 * 90 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT 96 * 64 * 2 * + COUNT( * )
----
12288

skipif mysql # not compatible
query I rowsort label-4736
SELECT 96 * 64 * 2 * + COUNT ( * )
----
12288

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL - CASE + 85 WHEN + + CASE - COUNT( * ) WHEN - 22 + - + ( - + 33 ) - 52 THEN 40 ELSE NULL END THEN + 21 + 49 + + 99 + + ( + MIN( ALL COALESCE ( - 40, 25 * + 14 * 49 / + + 81 ) ) ) WHEN COALESCE ( 96, - 80 + 29 ) / - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - CASE + 85 WHEN + + CASE - COUNT ( * ) WHEN - 22 + - + ( - + 33 ) - 52 THEN 40 ELSE NULL END THEN + 21 + 49 + + 99 + + ( + MIN ( ALL COALESCE ( - 40, 25 * + 14 * 49 / + + 81 ) ) ) WHEN COALESCE ( 96, - 80 + 29 ) / - COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - CASE 41 WHEN - + 97 THEN - 27 END
----
NULL

query I rowsort
SELECT + 2 * - 26 + - ( 73 )
----
-125

query I rowsort
SELECT 22 * + 89 AS col0
----
1958

query I rowsort
SELECT - 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT 65 * 13 + 87 - + COUNT( * )
----
931

skipif mysql # not compatible
query I rowsort label-4742
SELECT 65 * 13 + 87 - + COUNT ( * )
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL SUM( + 51 ) * - 46
----
-2346

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL SUM ( + 51 ) * - 46
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL COUNT( ALL 16 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL COUNT ( ALL 16 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT ALL COUNT( * ) AS col1, COUNT( * ) * - 74 AS col2
----
1
-74

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) * - 74 AS col2
----
1
-74

query I rowsort
SELECT 21 + + + 85 col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL - COUNT( * ) + COUNT( * ) * - + COUNT( 78 ) - + + 75
----
-77

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - COUNT ( * ) + COUNT ( * ) * - + COUNT ( 78 ) - + + 75
----
-77

query I rowsort
SELECT 31 + - + 37
----
-6

query I rowsort
SELECT ALL 43 + + 38 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT 9 AS col1, - SUM( ALL + 40 ) AS col0
----
9
-40

skipif mysql # not compatible
query II rowsort label-4750
SELECT 9 AS col1, - SUM ( ALL + 40 ) AS col0
----
9
-40

query I rowsort
SELECT 46 + 31 AS col2
----
77

query I rowsort
SELECT 56 + 44 + 62 * + + 64 AS col1
----
4068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4753
SELECT 27 * 69 * + COUNT( * ) AS col0, 45 + - MAX( DISTINCT - 77 ) * CAST( 61 AS SIGNED )
----
1863
4742

skipif mysql # not compatible
query II rowsort label-4753
SELECT 27 * 69 * + COUNT ( * ) AS col0, 45 + - MAX ( DISTINCT - 77 ) * CAST ( 61 AS INTEGER )
----
1863
4742

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - 94 + - MAX( DISTINCT 88 )
----
-182

skipif mysql # not compatible
query I rowsort label-4754
SELECT - 94 + - MAX ( DISTINCT 88 )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL + MIN( + 54 ) + + 63 + - COUNT( * ) * - 15
----
132

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + MIN ( + 54 ) + + 63 + - COUNT ( * ) * - 15
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT 5 + + COALESCE ( + + 7, - 55 + COUNT( * ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4756
SELECT 5 + + COALESCE ( + + 7, - 55 + COUNT ( * ) ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4757
SELECT DISTINCT - + 70 DIV - - COALESCE ( ( + 85 ), - + 51 + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - + 70 / - - COALESCE ( ( + 85 ), - + 51 + - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - + 18 + + COUNT( * ) * + - 18 col0
----
-36

skipif mysql # not compatible
query I rowsort label-4758
SELECT - + 18 + + COUNT ( * ) * + - 18 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL - COUNT( * ) * + 80
----
-80

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - COUNT ( * ) * + 80
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4760
SELECT - - NULLIF ( 30, - 55 - - AVG ( ALL 26 ) ) * 55, - COUNT( * ) - + COUNT( * ) DIV - 89 AS col1
----
1650
-1

skipif mysql # not compatible
query II rowsort label-4760
SELECT - - NULLIF ( 30, - 55 - - AVG ( ALL 26 ) ) * 55, - COUNT ( * ) - + COUNT ( * ) / - 89 AS col1
----
1650
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + 38 - 62 + ( + 67 ) - - COUNT( * ) * + 79 + - 79 + + - 22 + - 52 * - 93
----
4857

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 38 - 62 + ( + 67 ) - - COUNT ( * ) * + 79 + - 79 + + - 22 + - 52 * - 93
----
4857

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4762
SELECT + ( + - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT + ( + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - 58 - + MIN( + ( 92 ) )
----
-150

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - 58 - + MIN ( + ( 92 ) )
----
-150

query I rowsort
SELECT ALL + - 52
----
-52

query II rowsort
SELECT + 37 AS col1, 82
----
37
82

query II rowsort
SELECT + + 5 AS col0, - 27 + + + 65 + + 65 AS col2
----
5
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - 36 * - 15 + 22 * COUNT( * ) AS col2
----
562

skipif mysql # not compatible
query I rowsort label-4767
SELECT - 36 * - 15 + 22 * COUNT ( * ) AS col2
----
562

query I rowsort
SELECT + 10 + + 28
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT + - 53, + COUNT( DISTINCT - 5 ) * MAX( + + 23 ) * - 90 * + 99 AS col0
----
-53
-204930

skipif mysql # not compatible
query II rowsort label-4769
SELECT + - 53, + COUNT ( DISTINCT - 5 ) * MAX ( + + 23 ) * - 90 * + 99 AS col0
----
-53
-204930

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT - COUNT( * ) AS col1, 64
----
-1
64

skipif mysql # not compatible
query II rowsort label-4770
SELECT - COUNT ( * ) AS col1, 64
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + + 80 * - COUNT( * ) + ( + CASE - 26 WHEN COUNT( * ) THEN NULL ELSE - 98 END )
----
-178

skipif mysql # not compatible
query I rowsort label-4771
SELECT + + 80 * - COUNT ( * ) + ( + CASE - 26 WHEN COUNT ( * ) THEN NULL ELSE - 98 END )
----
-178

query I rowsort
SELECT DISTINCT + - 37 AS col2
----
-37

query I rowsort
SELECT + + ( 54 ) + + + 85 AS col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4774
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4774
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) AS col2
----
NULL
-1

query I rowsort
SELECT + - 51 * + - 1
----
51

query I rowsort
SELECT + 62 + + 24
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT 68 * - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT 68 * - COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + SUM( + + 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4778
SELECT + SUM ( + + 57 ) AS col1
----
57

query I rowsort
SELECT + ( 85 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT + 9 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 9 / + 85
----
0

query I rowsort
SELECT 69 * + 75 + 61
----
5236

query I rowsort
SELECT ALL - 68 * - 52 + - 82 + + 77 + - ( + - 42 ) AS col2
----
3573

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - 91 + + CASE 78 WHEN 95 + - - 84 * - COUNT( * ) - + - 70 - + + 24 * - ( + 41 ) THEN - - 43 * - 96 ELSE NULL END + - 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT - 91 + + CASE 78 WHEN 95 + - - 84 * - COUNT ( * ) - + - 70 - + + 24 * - ( + 41 ) THEN - - 43 * - 96 ELSE NULL END + - 73 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT + NULLIF ( - 23, - - 38 ) col2
----
-23

query I rowsort
SELECT DISTINCT 23 * + 85 + 40
----
1995

query I rowsort
SELECT ALL - 70 + 65 + + + 80 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + 19 * COUNT( * ) * - CASE AVG ( + + 61 ) WHEN - - 27 THEN NULL WHEN 6 - 92 THEN COUNT( * ) END * - 62 * - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 19 * COUNT ( * ) * - CASE AVG ( + + 61 ) WHEN - - 27 THEN NULL WHEN 6 - 92 THEN COUNT ( * ) END * - 62 * - 24 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT - 25 * - - CASE + - 31 WHEN - ( 55 ) + - 5 THEN - - 94 END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT - 25 * - - CASE + - 31 WHEN - ( 55 ) + - 5 THEN - - 94 END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( + 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT - COALESCE ( COUNT( * ), + - 17, - 44 ) * + 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - COALESCE ( COUNT ( * ), + - 17, - 44 ) * + 46 AS col0
----
-46

query I rowsort
SELECT ALL + 71 + - + 33
----
38

query II rowsort
SELECT + 13 - 97, - 73 AS col0
----
-84
-73

query I rowsort
SELECT - 89 * + 52 AS col0
----
-4628

query I rowsort
SELECT ALL - - 17 * ( + 3 )
----
51

query I rowsort
SELECT - 53 * - 34 AS col0
----
1802

query I rowsort
SELECT + ( + 83 ) + + 4
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4798
SELECT - 11 + - 95, + 50 * - CAST( + ( + - 25 ) AS SIGNED ) + - 61 AS col0
----
-106
1189

skipif mysql # not compatible
query II rowsort label-4798
SELECT - 11 + - 95, + 50 * - CAST ( + ( + - 25 ) AS INTEGER ) + - 61 AS col0
----
-106
1189

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT - - 96 * COUNT( * ), 90 AS col1
----
96
90

skipif mysql # not compatible
query II rowsort label-4799
SELECT - - 96 * COUNT ( * ), 90 AS col1
----
96
90

query I rowsort
SELECT - + 90 * 35 + 66 AS col0
----
-3084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL - CASE + ( + 61 ) WHEN + - 1 THEN - - 40 WHEN - + 37 + - AVG ( + - 89 ) THEN + 45 * + - ( - CASE + 70 WHEN 5 * - 21 THEN + 40 / + 37 + 11 WHEN CAST( + 38 AS SIGNED ) * - COUNT( - 54 ) THEN + 35 END ) + + 3 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - CASE + ( + 61 ) WHEN + - 1 THEN - - 40 WHEN - + 37 + - AVG ( + - 89 ) THEN + 45 * + - ( - CASE + 70 WHEN 5 * - 21 THEN + 40 / + 37 + 11 WHEN CAST ( + 38 AS INTEGER ) * - COUNT ( - 54 ) THEN + 35 END ) + + 3 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT - + 21 * 33 - + 19 DIV 23 * - 71 AS col2
----
-693

skipif mysql # not compatible
query I rowsort label-4802
SELECT - + 21 * 33 - + 19 / 23 * - 71 AS col2
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - - COUNT( * ) + - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4803
SELECT - - COUNT ( * ) + - 0 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL - + COUNT( * ) * + 86
----
-86

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - + COUNT ( * ) * + 86
----
-86

query I rowsort
SELECT - 69 * - - 29 col2
----
-2001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT 9 * + ( - CAST( 78 AS SIGNED ) ) AS col0
----
-702

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT 9 * + ( - CAST ( 78 AS INTEGER ) ) AS col0
----
-702

query I rowsort
SELECT + 78 col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - NULLIF ( + - 6, COUNT( * ) ) * - ( + 2 ) + - 79 col1
----
-91

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - NULLIF ( + - 6, COUNT ( * ) ) * - ( + 2 ) + - 79 col1
----
-91

query I rowsort
SELECT - + 94 * 89 + 68 + ( + 51 ) AS col2
----
-8247

query I rowsort
SELECT ( - 65 )
----
-65

query I rowsort
SELECT ( + - 84 ) AS col0
----
-84

query I rowsort
SELECT + ( + 84 )
----
84

query I rowsort
SELECT - 3 * - 85 * + - 70
----
-17850

query I rowsort
SELECT ALL + 76 col0
----
76

query I rowsort
SELECT ( 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + 8 * - COUNT( * ) + - 82 * 89 AS col1
----
-7306

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + 8 * - COUNT ( * ) + - 82 * 89 AS col1
----
-7306

query I rowsort
SELECT + 73 - ( + 73 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + ( - COALESCE ( + 16, + 27 * - ( + - COUNT( + NULLIF ( COALESCE ( - 44, - + 59 ), 1 ) ) ) + + 51 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-4818
SELECT + ( - COALESCE ( + 16, + 27 * - ( + - COUNT ( + NULLIF ( COALESCE ( - 44, - + 59 ), 1 ) ) ) + + 51 ) )
----
-16

query I rowsort
SELECT - 56 * - + 58 - 23 col1
----
3225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT ALL COUNT( * ) * 82 DIV - - 81
----
1

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL COUNT ( * ) * 82 / - - 81
----
1

query I rowsort
SELECT + 37 * + NULLIF ( + 57, - 45 * 96 + 57 ) AS col2
----
2109

query I rowsort
SELECT + NULLIF ( - - 7, 29 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT CASE - COALESCE ( + COALESCE ( + + 93, 51 * + + 56 * - 18 + + CAST( + 11 AS SIGNED ) - - + COUNT( * ) + + ( 40 ) + + - 96 ), - SUM( - ( - 31 ) ) + - COUNT( * ) ) WHEN 79 + 59 + + 60 THEN + 79 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT CASE - COALESCE ( + COALESCE ( + + 93, 51 * + + 56 * - 18 + + CAST ( + 11 AS INTEGER ) - - + COUNT ( * ) + + ( 40 ) + + - 96 ), - SUM ( - ( - 31 ) ) + - COUNT ( * ) ) WHEN 79 + 59 + + 60 THEN + 79 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 71 - 88 AS col1
----
-17

query I rowsort
SELECT 34 + + + 95
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT ALL + NULLIF ( - 41, CAST( + - 39 AS SIGNED ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + NULLIF ( - 41, CAST ( + - 39 AS INTEGER ) ) AS col1
----
-41

query I rowsort
SELECT 11 + + 53
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4828
SELECT + CASE COUNT( * ) WHEN - 32 - - 39 * - MIN( DISTINCT - CAST( 21 AS SIGNED ) ) THEN + 97 * + 69 + - 25 * - - 32 + + - 90 + + + 52 ELSE NULL END * + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT + CASE COUNT ( * ) WHEN - 32 - - 39 * - MIN ( DISTINCT - CAST ( 21 AS INTEGER ) ) THEN + 97 * + 69 + - 25 * - - 32 + + - 90 + + + 52 ELSE NULL END * + + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4829
SELECT + CASE + COALESCE ( + 50, + 47, - - 44 DIV - 42 - - + 92 - 26, - 93 * + 42 + - 95 + + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 51 ) WHEN - + COUNT( * ) * + ( + + 46 ) THEN NULL ELSE + 99 DIV - ( - + COALESCE ( - + 4, 26, 80 ) ) - + 98 END + - 39 + - 4 AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-4829
SELECT + CASE + COALESCE ( + 50, + 47, - - 44 / - 42 - - + 92 - 26, - 93 * + 42 + - 95 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 51 ) WHEN - + COUNT ( * ) * + ( + + 46 ) THEN NULL ELSE + 99 / - ( - + COALESCE ( - + 4, 26, 80 ) ) - + 98 END + - 39 + - 4 AS col0
----
-165

query I rowsort
SELECT - ( - + 79 )
----
79

query I rowsort
SELECT ALL - 55 * - 43 AS col0
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT 34 * - - NULLIF ( COUNT( * ), COUNT( * ) ) * + + 3 + + - 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT 34 * - - NULLIF ( COUNT ( * ), COUNT ( * ) ) * + + 3 + + - 73 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + COUNT( 84 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4833
SELECT + COUNT ( 84 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT SUM( ALL - - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT SUM ( ALL - - 97 )
----
97

query I rowsort
SELECT ALL 14 * + + 62
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT COUNT( * ) * + ( - 54 ) + ( + + MIN( + 30 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( * ) * + ( - 54 ) + ( + + MIN ( + 30 ) )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT 93 DIV MIN( ALL + - 20 )
----
-4

skipif mysql # not compatible
query I rowsort label-4837
SELECT 93 / MIN ( ALL + - 20 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + 90 * + 6 * 34 + COALESCE ( - 68, + 63 * + 29, COUNT( * ) ) + 16 + + + ( + + 47 ) AS col2
----
18355

skipif mysql # not compatible
query I rowsort label-4838
SELECT + 90 * + 6 * 34 + COALESCE ( - 68, + 63 * + 29, COUNT ( * ) ) + 16 + + + ( + + 47 ) AS col2
----
18355

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - MAX( 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4839
SELECT - MAX ( 84 )
----
-84

query I rowsort
SELECT DISTINCT 9 + + 89 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT 6 * COALESCE ( - 11, - 23 ) * + COALESCE ( - 61, + - 94 + + + COUNT( 91 ) ) + + + 2 - - - 71
----
3957

skipif mysql # not compatible
query I rowsort label-4841
SELECT 6 * COALESCE ( - 11, - 23 ) * + COALESCE ( - 61, + - 94 + + + COUNT ( 91 ) ) + + + 2 - - - 71
----
3957

query I rowsort
SELECT ALL + 15 + - 42
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT ALL CAST( + + 6 AS SIGNED ) + 31 * 38 AS col0
----
1184

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL CAST ( + + 6 AS INTEGER ) + 31 * 38 AS col0
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL COUNT( * ) * 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL COUNT ( * ) * 51 AS col2
----
51

query I rowsort
SELECT 37 + - - 5 * - + 72 AS col2
----
-323

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT DISTINCT - ( + + 32 ) * - + 38 * + 20, COALESCE ( 68, + COALESCE ( - COUNT( * ), - + 79 ) * + 11 + - 3, - 50 ) + - + 48 AS col2
----
24320
20

skipif mysql # not compatible
query II rowsort label-4846
SELECT DISTINCT - ( + + 32 ) * - + 38 * + 20, COALESCE ( 68, + COALESCE ( - COUNT ( * ), - + 79 ) * + 11 + - 3, - 50 ) + - + 48 AS col2
----
24320
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4847
SELECT ALL + 70 - + 57 AS col0, COUNT( * ) AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-4847
SELECT ALL + 70 - + 57 AS col0, COUNT ( * ) AS col0
----
13
1

query I rowsort
SELECT 43 * - 17 + - 27 * - 49 * + 47 AS col1
----
61450

query I rowsort
SELECT 27 * + 88
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT DISTINCT + 25 * + - CAST( - + 63 AS SIGNED ) AS col1
----
1575

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT + 25 * + - CAST ( - + 63 AS INTEGER ) AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL - ( - 94 ) - + ( - NULLIF ( + + 8, - 57 * - COUNT( * ) ) ) + - - ( + 64 )
----
166

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - ( - 94 ) - + ( - NULLIF ( + + 8, - 57 * - COUNT ( * ) ) ) + - - ( + 64 )
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - ( + COUNT( - + 20 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4852
SELECT - ( + COUNT ( - + 20 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT - COUNT( * ), 25 AS col0
----
-1
25

skipif mysql # not compatible
query II rowsort label-4853
SELECT - COUNT ( * ), 25 AS col0
----
-1
25

query II rowsort
SELECT ALL 44 AS col1, - 95 * + 94 AS col0
----
44
-8930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4855
SELECT - 56, + CAST( NULL AS SIGNED ) col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-4855
SELECT - 56, + CAST ( NULL AS INTEGER ) col1
----
-56
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4856
SELECT - 72 DIV - - CAST( 40 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 72 / - - CAST ( 40 AS INTEGER ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4857
SELECT ALL 28, 76 DIV - 42 AS col0
----
28
-1

skipif mysql # not compatible
query II rowsort label-4857
SELECT ALL 28, 76 / - 42 AS col0
----
28
-1

query I rowsort
SELECT ALL 59 + 95 AS col2
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT ALL 99 * SUM( DISTINCT + + ( - - 72 ) ) AS col2, + 94 * + 74 AS col0
----
7128
6956

skipif mysql # not compatible
query II rowsort label-4859
SELECT ALL 99 * SUM ( DISTINCT + + ( - - 72 ) ) AS col2, + 94 * + 74 AS col0
----
7128
6956

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT - 57 AS col2, MIN( + 8 ) AS col2
----
-57
8

skipif mysql # not compatible
query II rowsort label-4860
SELECT - 57 AS col2, MIN ( + 8 ) AS col2
----
-57
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + ( - 34 ) + CAST( NULL AS SIGNED ) + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + ( - 34 ) + CAST ( NULL AS INTEGER ) + + 15 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - COUNT( * ) * + 96 + + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + 96 + + 17 AS col2
----
NULL

query I rowsort
SELECT 15 * - 57
----
-855

query I rowsort
SELECT + 95 + 98 + 56 * + + 96 AS col1
----
5569

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT SUM( DISTINCT - 8 ) - + 85 + + 59 * - COUNT( * )
----
-152

skipif mysql # not compatible
query I rowsort label-4865
SELECT SUM ( DISTINCT - 8 ) - + 85 + + 59 * - COUNT ( * )
----
-152

query II rowsort
SELECT - 63 AS col1, - 75 + 53 AS col1
----
-63
-22

query II rowsort
SELECT 24, 27 * + 27 AS col0
----
24
729

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - - COUNT( + + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-4868
SELECT - - COUNT ( + + 59 )
----
1

query II rowsort
SELECT + 63 AS col2, + 26 - - - 60 * - 38 AS col2
----
63
2306

onlyif mysql # aggregate syntax: 
query II rowsort label-4870
SELECT ALL + COUNT( * ) col1, - 64 AS col2
----
1
-64

skipif mysql # not compatible
query II rowsort label-4870
SELECT ALL + COUNT ( * ) col1, - 64 AS col2
----
1
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4871
SELECT - 97 AS col1, + COUNT( * ) * - 27 - + 84 * 85 AS col2
----
-97
-7167

skipif mysql # not compatible
query II rowsort label-4871
SELECT - 97 AS col1, + COUNT ( * ) * - 27 - + 84 * 85 AS col2
----
-97
-7167

query I rowsort
SELECT DISTINCT - 81 + 64
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT 20 DIV - COUNT( - 4 ) + 96 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4873
SELECT 20 / - COUNT ( - 4 ) + 96 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL - COUNT( + COALESCE ( + + 4, 98 * + ( - 57 ) + - - 65 ) ) * 7 * 22 + + ( + + 74 )
----
-80

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - COUNT ( + COALESCE ( + + 4, 98 * + ( - 57 ) + - - 65 ) ) * 7 * 22 + + ( + + 74 )
----
-80

query I rowsort
SELECT 31 * + ( + - 71 )
----
-2201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4876
SELECT ALL NULLIF ( - - NULLIF ( 39, MAX( ALL 85 ) ), - 49 * - + COUNT( DISTINCT - 0 ) * - + 11 + + COALESCE ( - CAST( + 40 AS SIGNED ), 5 ) + + - 71 + - 98 ) * + + ( + 92 ) AS col2, CASE + 79 WHEN 37 - - 56 - - 70 THEN - + 67 WHEN + + 56 * MIN( 99 ) * - + 86 * - + COUNT( * ) + + + COUNT( DISTINCT - 62 ) THEN NULL ELSE NULL END * ( - 62 ) + COUNT( * ) AS col2
----
3588
NULL

skipif mysql # not compatible
query II rowsort label-4876
SELECT ALL NULLIF ( - - NULLIF ( 39, MAX ( ALL 85 ) ), - 49 * - + COUNT ( DISTINCT - 0 ) * - + 11 + + COALESCE ( - CAST ( + 40 AS INTEGER ), 5 ) + + - 71 + - 98 ) * + + ( + 92 ) AS col2, CASE + 79 WHEN 37 - - 56 - - 70 THEN - + 67 WHEN + + 56 * MIN ( 99 ) * - + 86 * - + COUNT ( * ) + + + COUNT ( DISTINCT - 62 ) THEN NULL ELSE NULL END * ( - 62 ) + COUNT ( * ) AS col2
----
3588
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT MAX( + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4877
SELECT MAX ( + 98 ) AS col2
----
98

query II rowsort
SELECT ALL - 43 * 4 - + 39 col0, - 33 col0
----
-211
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4879
SELECT CAST( NULL AS SIGNED ) * - MIN( DISTINCT + 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT + 67 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT DISTINCT + 66 DIV - 78 * + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + 66 / - 78 * + 76 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4881
SELECT ALL + CASE + 29 WHEN MAX( ALL + - 89 ) THEN NULL WHEN ( COUNT( * ) ) * + 25 + 62 + AVG ( ALL - CAST( - ( 70 ) AS DECIMAL ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + CASE + 29 WHEN MAX ( ALL + - 89 ) THEN NULL WHEN ( COUNT ( * ) ) * + 25 + 62 + AVG ( ALL - CAST ( - ( 70 ) AS REAL ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 39 * - 98 AS col0
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - MIN( + - 64 ) - - 25 + - 14
----
75

skipif mysql # not compatible
query I rowsort label-4883
SELECT - MIN ( + - 64 ) - - 25 + - 14
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4884
SELECT - 19 DIV + 98, - 16 * 44 col1
----
0
-704

skipif mysql # not compatible
query II rowsort label-4884
SELECT - 19 / + 98, - 16 * 44 col1
----
0
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - 30 + SUM( ALL + 13 )
----
-17

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 30 + SUM ( ALL + 13 )
----
-17

query I rowsort
SELECT 76 * + 99 - + 7
----
7517

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT - COUNT( * ) + + - 50 col0
----
-51

skipif mysql # not compatible
query I rowsort label-4887
SELECT - COUNT ( * ) + + - 50 col0
----
-51

query I rowsort
SELECT - 11 col2
----
-11

query II rowsort
SELECT - 86 + 55, + ( - 65 ) AS col1
----
-31
-65

query II rowsort
SELECT ALL + 39 + + - 40 AS col0, 71 + + 14 AS col0
----
-1
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT + - 27 * - 60 * - - 69 + 57 + 63 + + + ( + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT + - 27 * - 60 * - - 69 + 57 + 63 + + + ( + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + ( - COALESCE ( + 39, 73 * + 11, - - 33 * 34 ) )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT ALL + 78 + - - COALESCE ( + 61, 41 DIV + + AVG ( DISTINCT 14 ) * - + 58 * - 95 )
----
139

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL + 78 + - - COALESCE ( + 61, 41 / + + AVG ( DISTINCT 14 ) * - + 58 * - 95 )
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-4894
SELECT DISTINCT + SUM( - - 65 ) AS col0, - 34 - + 60 + - 92
----
65
-186

skipif mysql # not compatible
query II rowsort label-4894
SELECT DISTINCT + SUM ( - - 65 ) AS col0, - 34 - + 60 + - 92
----
65
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4895
SELECT ALL - + 43 + - NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) + + 68 ), 9 * 65 col0
----
NULL
585

skipif mysql # not compatible
query II rowsort label-4895
SELECT ALL - + 43 + - NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) + + 68 ), 9 * 65 col0
----
NULL
585

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT + COUNT( * ) + - ( - - 12 )
----
-11

skipif mysql # not compatible
query I rowsort label-4896
SELECT + COUNT ( * ) + - ( - - 12 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4897
SELECT - 93 DIV COUNT( * ) + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-4897
SELECT - 93 / COUNT ( * ) + + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL 33 + - ( + - NULLIF ( + - NULLIF ( 83, + - 56 ), + + 47 / ( + MIN( DISTINCT + 90 ) ) + + + 14 ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL 33 + - ( + - NULLIF ( + - NULLIF ( 83, + - 56 ), + + 47 / ( + MIN ( DISTINCT + 90 ) ) + + + 14 ) ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - SUM( 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4899
SELECT - SUM ( 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + MIN( ALL 50 ) + 61 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-4900
SELECT + MIN ( ALL 50 ) + 61 AS col2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-4901
SELECT CAST ( 12 AS INTEGER )
----
12

query I rowsort
SELECT + + 57 * 79 AS col0
----
4503

query I rowsort
SELECT + - 82 * + - 98 * - - 56 * - 39 * 51
----
-895081824

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL MIN( + 65 ) * - - 88 col2
----
5720

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL MIN ( + 65 ) * - - 88 col2
----
5720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4905
SELECT + 33 * 37 * + 32 col0, 87 DIV - - 44 DIV - + COUNT( * )
----
39072
-1

skipif mysql # not compatible
query II rowsort label-4905
SELECT + 33 * 37 * + 32 col0, 87 / - - 44 / - + COUNT ( * )
----
39072
-1

query I rowsort
SELECT + 3 * + + CASE + 19 WHEN ( - 83 ) * 33 THEN 29 * + 28 - 27 WHEN - + 95 * - + 17 * + 21 * + + 83 * - 3 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + COUNT( * ) * - - 23
----
23

skipif mysql # not compatible
query I rowsort label-4907
SELECT + COUNT ( * ) * - - 23
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT CAST( - + 62 AS SIGNED ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4908
SELECT CAST ( - + 62 AS INTEGER ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT - 44 * + - 23 + - CAST( - 8 AS SIGNED )
----
1020

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 44 * + - 23 + - CAST ( - 8 AS INTEGER )
----
1020

query I rowsort
SELECT ( + 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + 14 + - MAX( DISTINCT 81 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 14 + - MAX ( DISTINCT 81 ) AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT - AVG ( - - 54 ) * - - COUNT( * ) - 66 - - CAST( NULL AS SIGNED ) * - 35 * - - 44 + - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT - AVG ( - - 54 ) * - - COUNT ( * ) - 66 - - CAST ( NULL AS INTEGER ) * - 35 * - - 44 + - + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4913
SELECT COUNT( DISTINCT - - 18 ) DIV - 8 + + 98 - + - 46
----
144

skipif mysql # not compatible
query I rowsort label-4913
SELECT COUNT ( DISTINCT - - 18 ) / - 8 + + 98 - + - 46
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT ( + - CAST( - ( + COUNT( * ) ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4914
SELECT ( + - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT + ( + 71 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT - COUNT( * ) + - CAST( 92 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4916
SELECT - COUNT ( * ) + - CAST ( 92 AS INTEGER ) AS col2
----
-93

query I rowsort
SELECT + ( + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4918
SELECT - COUNT( * ) AS col1, 56 * + 0 + 3
----
-1
3

skipif mysql # not compatible
query II rowsort label-4918
SELECT - COUNT ( * ) AS col1, 56 * + 0 + 3
----
-1
3

query I rowsort
SELECT + + 12 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT - + SUM( DISTINCT + 60 ) * + MIN( + CAST( NULL AS SIGNED ) ) * 43 + + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT - + SUM ( DISTINCT + 60 ) * + MIN ( + CAST ( NULL AS INTEGER ) ) * 43 + + 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT ALL + COUNT( * ) * + 94 + + COUNT( * ) DIV + 82 * 73 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + COUNT ( * ) * + 94 + + COUNT ( * ) / + 82 * 73 AS col2
----
94

query I rowsort
SELECT ALL + + 58 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT 41 * - ( + 73 ) + NULLIF ( - CAST( - + COUNT( * ) AS SIGNED ), ( - ( - - 59 ) ) / 85 + + + 82 ) + ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT 41 * - ( + 73 ) + NULLIF ( - CAST ( - + COUNT ( * ) AS INTEGER ), ( - ( - - 59 ) ) / 85 + + + 82 ) + ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + - SUM( ALL + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + - SUM ( ALL + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT 35 AS col0, - COUNT( - 93 ) + + + 71
----
35
70

skipif mysql # not compatible
query II rowsort label-4925
SELECT 35 AS col0, - COUNT ( - 93 ) + + + 71
----
35
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT ALL + + 78 * SUM( DISTINCT - + 29 ) DIV 79 + + 50
----
22

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + + 78 * SUM ( DISTINCT - + 29 ) / 79 + + 50
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT - + 61 - + + COUNT( * ) * - 10 * + CAST( NULL AS SIGNED ) + - + 38 + - COUNT( * ) * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT - + 61 - + + COUNT ( * ) * - 10 * + CAST ( NULL AS INTEGER ) + - + 38 + - COUNT ( * ) * + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT ALL + - COUNT( - CAST( NULL AS SIGNED ) ) * + - COUNT( * ) * - MAX( ALL ( - 90 ) ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL + - COUNT ( - CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) * - MAX ( ALL ( - 90 ) ) + COUNT ( * )
----
1

query I rowsort
SELECT - - 86 - + 37 + 6 * - - 84
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL + ( - - 80 ) - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + ( - - 80 ) - - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4931
SELECT DISTINCT - + 36 * + + 17 + + 14 DIV - + 97 AS col1, - 42 * - 88 * MAX( - 66 )
----
-612
-243936

skipif mysql # not compatible
query II rowsort label-4931
SELECT DISTINCT - + 36 * + + 17 + + 14 / - + 97 AS col1, - 42 * - 88 * MAX ( - 66 )
----
-612
-243936

query II rowsort
SELECT DISTINCT + 11 AS col0, - 88 * 31
----
11
-2728

query I rowsort
SELECT - 36 * + 15 * - ( + 60 )
----
32400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT - 3 + + - 94 + COUNT( * ) + - + 20 + ( + SUM( ALL - - ( + 9 ) ) ) DIV 1 * COUNT( ALL - ( + 17 ) ) * + 16 * + + 23 AS col2
----
3196

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 3 + + - 94 + COUNT ( * ) + - + 20 + ( + SUM ( ALL - - ( + 9 ) ) ) / 1 * COUNT ( ALL - ( + 17 ) ) * + 16 * + + 23 AS col2
----
3196

query I rowsort
SELECT + 9 - - 7
----
16

query I rowsort
SELECT - 21 * 87
----
-1827

query II rowsort
SELECT - ( + 60 ) AS col1, - ( - 91 ) * + 60
----
-60
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - MAX( DISTINCT - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4938
SELECT - MAX ( DISTINCT - 22 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT 30 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-4939
SELECT 30 / - - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT 37 * - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4940
SELECT 37 * - - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4941
SELECT COUNT( * ) + + COUNT( * ) AS col2, - 32 * - 15 + 56 DIV 39 AS col1
----
2
481

skipif mysql # not compatible
query II rowsort label-4941
SELECT COUNT ( * ) + + COUNT ( * ) AS col2, - 32 * - 15 + 56 / 39 AS col1
----
2
481

query I rowsort
SELECT DISTINCT - 66 * - 54
----
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL - CAST( COUNT( DISTINCT + - 60 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - CAST ( COUNT ( DISTINCT + - 60 ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT 56 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT 56 / - 59 AS col0
----
0

query I rowsort
SELECT DISTINCT - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT COUNT( * ) + - SUM( + 16 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4946
SELECT COUNT ( * ) + - SUM ( + 16 ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT ALL 1 DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL 1 / - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT 46 DIV 94 DIV - 1 * - - MAX( ( - 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT 46 / 94 / - 1 * - - MAX ( ( - 95 ) )
----
0

query I rowsort
SELECT 91 * + - 65 AS col2
----
-5915

query I rowsort
SELECT 13 * 80 * - ( - 8 ) - + - 26
----
8346

query I rowsort
SELECT 11 + + 72 * + 69
----
4979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT - - COALESCE ( + 77, + 24 * - 49 DIV + 54 * + + ( + + MIN( DISTINCT + COALESCE ( - + 76, + NULLIF ( - 34, 17 DIV + 78 * 81 + + 28 ), + 39 + + - 43 + - 30 + - 76 * + + 80 ) ) ) + + + 1 - - - 94 + + + 89 * CAST( NULL AS SIGNED ), + - 12 * + + NULLIF ( + 33, + 77 ) )
----
77

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT - - COALESCE ( + 77, + 24 * - 49 / + 54 * + + ( + + MIN ( DISTINCT + COALESCE ( - + 76, + NULLIF ( - 34, 17 / + 78 * 81 + + 28 ), + 39 + + - 43 + - 30 + - 76 * + + 80 ) ) ) + + + 1 - - - 94 + + + 89 * CAST ( NULL AS INTEGER ), + - 12 * + + NULLIF ( + 33, + 77 ) )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT ALL 51 + + + 35 AS col1, 4 * + - COUNT( * ) + + - 24 + 67 * + + NULLIF ( NULLIF ( + ( COUNT( * ) ), + - 74 + ( + MAX( ALL 32 ) ) - 98 ), - 11 * - 6 * + 29 * + + 64 + 53 + - 46 / 73 + 89 + + 89 - 80 * 5 + - 80 )
----
86
39

skipif mysql # not compatible
query II rowsort label-4953
SELECT ALL 51 + + + 35 AS col1, 4 * + - COUNT ( * ) + + - 24 + 67 * + + NULLIF ( NULLIF ( + ( COUNT ( * ) ), + - 74 + ( + MAX ( ALL 32 ) ) - 98 ), - 11 * - 6 * + 29 * + + 64 + 53 + - 46 / 73 + 89 + + 89 - 80 * 5 + - 80 )
----
86
39

query I rowsort
SELECT DISTINCT - 89 + - CASE 88 WHEN - - 41 + - 55 THEN NULL WHEN 75 THEN + 41 ELSE 40 END AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + COUNT( * ) + + 9
----
10

skipif mysql # not compatible
query I rowsort label-4955
SELECT + COUNT ( * ) + + 9
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4956
SELECT 51 * - 46 - + 19 + + COALESCE ( + 92, + 69 DIV - 92 + - 77, - 88 ) + SUM( - 78 ) - 55 * 32 * 44 * COUNT( * ) * - 17 * - 54, 71 DIV + 32 * COUNT( * ) AS col0
----
-71092271
2

skipif mysql # not compatible
query II rowsort label-4956
SELECT 51 * - 46 - + 19 + + COALESCE ( + 92, + 69 / - 92 + - 77, - 88 ) + SUM ( - 78 ) - 55 * 32 * 44 * COUNT ( * ) * - 17 * - 54, 71 / + 32 * COUNT ( * ) AS col0
----
-71092271
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT 83 + + - COALESCE ( - 97, - 13 * + ( - COUNT( * ) ) ) + 28 + + 42 * + 90 + - - ( - - 75 ) + - COUNT( * ) DIV + + 42 * + 49 * 11 AS col0
----
4063

skipif mysql # not compatible
query I rowsort label-4957
SELECT 83 + + - COALESCE ( - 97, - 13 * + ( - COUNT ( * ) ) ) + 28 + + 42 * + 90 + - - ( - - 75 ) + - COUNT ( * ) / + + 42 * + 49 * 11 AS col0
----
4063

query I rowsort
SELECT + 31 + 68 * + - 64
----
-4321

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT ALL - 96 - 69 * + SUM( 24 ), 75 col1
----
-1752
75

skipif mysql # not compatible
query II rowsort label-4959
SELECT ALL - 96 - 69 * + SUM ( 24 ), 75 col1
----
-1752
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL + COALESCE ( + MAX( - 41 ), + + COALESCE ( COALESCE ( CAST( 6 AS SIGNED ), + ( + 66 ) ), SUM( - 17 ) ) + + 53 * 35, - ( 48 ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + COALESCE ( + MAX ( - 41 ), + + COALESCE ( COALESCE ( CAST ( 6 AS INTEGER ), + ( + 66 ) ), SUM ( - 17 ) ) + + 53 * 35, - ( 48 ) ) AS col0
----
-41

query I rowsort
SELECT DISTINCT - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL MAX( ALL - 71 ) - 45
----
-116

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL MAX ( ALL - 71 ) - 45
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT MAX( + 47 ) * - 77 * - 60 AS col2
----
217140

skipif mysql # not compatible
query I rowsort label-4963
SELECT MAX ( + 47 ) * - 77 * - 60 AS col2
----
217140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4964
SELECT - CAST( NULL AS DECIMAL ) + - 66 * + 66 / 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT - CAST ( NULL AS REAL ) + - 66 * + 66 / 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT DISTINCT - NULLIF ( - CAST( NULL AS SIGNED ), + + SUM( - 36 ) + + - 46 ) - + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - NULLIF ( - CAST ( NULL AS INTEGER ), + + SUM ( - 36 ) + + - 46 ) - + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT + 73 + - COALESCE ( ( 58 ), + - 46 DIV - COUNT( * ), - 73 * + - 77 )
----
15

skipif mysql # not compatible
query I rowsort label-4966
SELECT + 73 + - COALESCE ( ( 58 ), + - 46 / - COUNT ( * ), - 73 * + - 77 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + COALESCE ( COUNT( * ), 57 * 15 - 96 ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-4967
SELECT + COALESCE ( COUNT ( * ), 57 * 15 - 96 ) + - 96
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + - 71 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + - 71 * COUNT ( * )
----
-71

query I rowsort
SELECT ( + 90 ) * + 41 * + + 17 col2
----
62730

query I rowsort
SELECT 47 * + 99 AS col1
----
4653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT 50 + - - CAST( - - 95 AS SIGNED ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-4971
SELECT 50 + - - CAST ( - - 95 AS INTEGER ) AS col2
----
145

query I rowsort
SELECT 21 * + + 16
----
336

query I rowsort
SELECT 56 * + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - ( COUNT( * ) ) * - 88 - - - 54 + - - ( - - 73 ) + - 19 col0
----
88

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - ( COUNT ( * ) ) * - 88 - - - 54 + - - ( - - 73 ) + - 19 col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL 55 + - - 41 + 53 * + CAST( 11 AS SIGNED ) * COUNT( * ) AS col0
----
679

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL 55 + - - 41 + 53 * + CAST ( 11 AS INTEGER ) * COUNT ( * ) AS col0
----
679

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT 36 * CASE - 2 WHEN ( 53 ) THEN 5 * - 11 * - COUNT( * ) + + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT 36 * CASE - 2 WHEN ( 53 ) THEN 5 * - 11 * - COUNT ( * ) + + 68 END
----
NULL

query I rowsort
SELECT DISTINCT - 35 + 79 AS col0
----
44

query I rowsort
SELECT 84 * + 85
----
7140

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT COUNT( * ) AS col2, - 13
----
1
-13

skipif mysql # not compatible
query II rowsort label-4979
SELECT COUNT ( * ) AS col2, - 13
----
1
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4980
SELECT ALL + 17 + + ( MAX( + CAST( ( - + 58 ) AS SIGNED ) ) ) AS col1, 68 AS col2
----
-41
68

skipif mysql # not compatible
query II rowsort label-4980
SELECT ALL + 17 + + ( MAX ( + CAST ( ( - + 58 ) AS INTEGER ) ) ) AS col1, 68 AS col2
----
-41
68

query I rowsort
SELECT 62 + + 1 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT + 45 + - + 58 - + 11 - + 65 * - + 15 * - COUNT( * )
----
-999

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + 45 + - + 58 - + 11 - + 65 * - + 15 * - COUNT ( * )
----
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT 74 - + ( 82 ) - + - COUNT( * ) * + 79 * - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4983
SELECT 74 - + ( 82 ) - + - COUNT ( * ) * + 79 * - COUNT ( * ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL - + COUNT( * ) + 11 * - ( + COUNT( * ) ) + 33
----
21

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - + COUNT ( * ) + 11 * - ( + COUNT ( * ) ) + 33
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - SUM( DISTINCT - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4985
SELECT - SUM ( DISTINCT - 50 )
----
50

query I rowsort
SELECT ALL - 60 + 62
----
2

query I rowsort
SELECT ALL - + 63 AS col0
----
-63

query II rowsort
SELECT ( + 96 ) + 15 AS col2, 70 AS col1
----
111
70

query I rowsort
SELECT ALL - ( 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - 29 + - CASE + - 61 WHEN + 52 THEN + + ( - 55 ) / + + 60 / - - 88 / - + 11 * - + COUNT( + - 28 ) * + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT - 29 + - CASE + - 61 WHEN + 52 THEN + + ( - 55 ) / + + 60 / - - 88 / - + 11 * - + COUNT ( + - 28 ) * + 87 END
----
NULL

query I rowsort
SELECT DISTINCT + 66 - 89 + 80 * + - 25
----
-2023

query I rowsort
SELECT DISTINCT - + 47 AS col1
----
-47

query I rowsort
SELECT ALL + 33 * - 95
----
-3135

query I rowsort
SELECT DISTINCT - ( 88 ) AS col2
----
-88

query I rowsort
SELECT ALL - + ( - 85 ) AS col0
----
85

query I rowsort
SELECT DISTINCT 70 * + NULLIF ( + 35, - 50 ) AS col0
----
2450

query I rowsort
SELECT ALL - ( - 5 ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT 9 * + 62 + + + CAST( NULL AS SIGNED ) * 74 * 10 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT 9 * + 62 + + + CAST ( NULL AS INTEGER ) * 74 * 10 + - 35
----
NULL

query I rowsort
SELECT - + ( + - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - COUNT( * ) * - 62 col0
----
62

skipif mysql # not compatible
query I rowsort label-5000
SELECT - COUNT ( * ) * - 62 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + 74 - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5001
SELECT + 74 - COUNT ( * )
----
73

query II rowsort
SELECT DISTINCT 69 AS col0, + 98 * + 98 AS col1
----
69
9604

onlyif mysql # aggregate syntax: 
query II rowsort label-5003
SELECT DISTINCT 21 AS col2, 1 * - ( - - SUM( ALL - ( + COALESCE ( + 43, ( - 80 ) * - 87 + - + 19 ) ) ) )
----
21
43

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT 21 AS col2, 1 * - ( - - SUM ( ALL - ( + COALESCE ( + 43, ( - 80 ) * - 87 + - + 19 ) ) ) )
----
21
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT ALL + 21 DIV - - 73 col0
----
0

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL + 21 / - - 73 col0
----
0

query II rowsort
SELECT ALL 27 AS col1, 93 AS col0
----
27
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT DISTINCT ( - 80 ) DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT ( - 80 ) / + 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT - 48 + 91 + - 32 + + CAST( 86 AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT - 48 + 91 + - 32 + + CAST ( 86 AS INTEGER ) AS col1
----
97

query I rowsort
SELECT ALL 26 * + ( - 16 )
----
-416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT + COUNT( * ) DIV - - 31 DIV - COUNT( * ) * - 3
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT + COUNT ( * ) / - - 31 / - COUNT ( * ) * - 3
----
0

query I rowsort
SELECT + 90 + + 30
----
120

query I rowsort
SELECT - NULLIF ( - 10, NULLIF ( + + 23, 53 * - - 78 ) ) AS col1
----
10

query II rowsort
SELECT DISTINCT - 49 + + 27 AS col0, - 60
----
-22
-60

query I rowsort
SELECT ALL + 94 + + ( - 52 ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT - CASE ( + 58 ) WHEN - + CAST( NULL AS SIGNED ) + 90 THEN + - 73 / + - 20 * + COUNT( * ) * + - 37 WHEN - 25 / COUNT( * ) + + 6 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT - CASE ( + 58 ) WHEN - + CAST ( NULL AS INTEGER ) + 90 THEN + - 73 / + - 20 * + COUNT ( * ) * + - 37 WHEN - 25 / COUNT ( * ) + + 6 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - 31 + + 43 + + NULLIF ( + + MIN( DISTINCT 52 ), + 5 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - 31 + + 43 + + NULLIF ( + + MIN ( DISTINCT 52 ), + 5 ) col1
----
64

query I rowsort
SELECT ALL 66 * - - 15 * + 49 AS col2
----
48510

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - COUNT( ALL + 40 ) * - 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5017
SELECT - COUNT ( ALL + 40 ) * - 27 AS col2
----
27

query I rowsort
SELECT ALL 83 + 98 * 35 * - 53
----
-181707

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ( + COUNT( 98 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5019
SELECT ( + COUNT ( 98 ) ) AS col0
----
1

query I rowsort
SELECT ALL 49 * 87 + - 1 AS col1
----
4262

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - CASE + - ( + 15 ) WHEN 17 * - 52 * + 36 THEN - 76 * - MAX( - 94 ) ELSE - COALESCE ( - 99, 40 ) * + - 89 + 87 END * - 34 AS col1
----
-296616

skipif mysql # not compatible
query I rowsort label-5021
SELECT - CASE + - ( + 15 ) WHEN 17 * - 52 * + 36 THEN - 76 * - MAX ( - 94 ) ELSE - COALESCE ( - 99, 40 ) * + - 89 + 87 END * - 34 AS col1
----
-296616

onlyif mysql # aggregate syntax: 
query II rowsort label-5022
SELECT DISTINCT + 15, COUNT( DISTINCT - 29 ) AS col2
----
15
1

skipif mysql # not compatible
query II rowsort label-5022
SELECT DISTINCT + 15, COUNT ( DISTINCT - 29 ) AS col2
----
15
1

query I rowsort
SELECT - 17 + - 80 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5024
SELECT + + 20, + CASE + CASE + 78 WHEN + COUNT( * ) THEN NULL WHEN + + 12 THEN NULL WHEN 62 * - - 77 THEN 11 ELSE NULL END WHEN + + NULLIF ( - - 2, + - COUNT( * ) + - 84 - - CAST( 45 AS SIGNED ) * + 29 ) * 40 + + 23 + - 74 * + 44 THEN - 89 * + 34 END AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5024
SELECT + + 20, + CASE + CASE + 78 WHEN + COUNT ( * ) THEN NULL WHEN + + 12 THEN NULL WHEN 62 * - - 77 THEN 11 ELSE NULL END WHEN + + NULLIF ( - - 2, + - COUNT ( * ) + - 84 - - CAST ( 45 AS INTEGER ) * + 29 ) * 40 + + 23 + - 74 * + 44 THEN - 89 * + 34 END AS col2
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - - COUNT( * ) * 94 - - 50
----
144

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - - COUNT ( * ) * 94 - - 50
----
144

query I rowsort
SELECT + - 96 * - 51 - - 53
----
4949

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5027
SELECT - 57 * - - 42, 46 DIV COUNT( * ) AS col1
----
-2394
46

skipif mysql # not compatible
query II rowsort label-5027
SELECT - 57 * - - 42, 46 / COUNT ( * ) AS col1
----
-2394
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT ALL + + 5 DIV - - 61 - + + 88 DIV - 2 + + COUNT( ALL + 82 )
----
45

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + + 5 / - - 61 - + + 88 / - 2 + + COUNT ( ALL + 82 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT - + COUNT( ALL 99 ) + + 3 * 99 / + 73 + - 32 + + 53 * - + CASE CAST( - 44 AS SIGNED ) WHEN + - 3 THEN + 36 WHEN - 49 THEN - 76 END * - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT - + COUNT ( ALL 99 ) + + 3 * 99 / + 73 + - 32 + + 53 * - + CASE CAST ( - 44 AS INTEGER ) WHEN + - 3 THEN + 36 WHEN - 49 THEN - 76 END * - 22 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL + COUNT( 41 ) * - 62 - - 53
----
-9

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + COUNT ( 41 ) * - 62 - - 53
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5031
SELECT - - CAST( + 81 AS SIGNED ) + - COUNT( * ) + - - ( + - 9 ) DIV 7 + - - 18 * + 60 AS col2
----
1159

skipif mysql # not compatible
query I rowsort label-5031
SELECT - - CAST ( + 81 AS INTEGER ) + - COUNT ( * ) + - - ( + - 9 ) / 7 + - - 18 * + 60 AS col2
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT - + CASE - 11 WHEN + 0 THEN COALESCE ( + COALESCE ( + 21, + 9 * 89, - - 24 * + + 38 + 72 + - + 48 ), - 50 * - 55 ) * COUNT( * ) + 78 WHEN - 31 + COUNT( * ) THEN 87 WHEN + - ( + 94 ) THEN NULL ELSE NULL END * - 79 + - 30 + - 31 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT - + CASE - 11 WHEN + 0 THEN COALESCE ( + COALESCE ( + 21, + 9 * 89, - - 24 * + + 38 + 72 + - + 48 ), - 50 * - 55 ) * COUNT ( * ) + 78 WHEN - 31 + COUNT ( * ) THEN 87 WHEN + - ( + 94 ) THEN NULL ELSE NULL END * - 79 + - 30 + - 31 * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - - 13 + + 56 * + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5033
SELECT - - 13 + + 56 * + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - - 95 * - 48 + 94 * - 73 + + 28 - COUNT( * ) AS col0
----
-11395

skipif mysql # not compatible
query I rowsort label-5034
SELECT - - 95 * - 48 + 94 * - 73 + + 28 - COUNT ( * ) AS col0
----
-11395

query I rowsort
SELECT - 0 * + 86 - - 65 col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT - 55 * COUNT( * ) + - + CAST( NULL AS SIGNED ) * - + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT - 55 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * - + 9 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT - 60 * - + 3 + - + 94 + + 14 * - 42 - 81 + - - 32 * 41 DIV + 23 AS col1
----
-526

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 60 * - + 3 + - + 94 + + 14 * - 42 - 81 + - - 32 * 41 / + 23 AS col1
----
-526

query I rowsort
SELECT + 29 + + + 60 col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL 99 DIV - - 67 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL 99 / - - 67 AS col2
----
1

query I rowsort
SELECT DISTINCT + - 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT - COUNT( - - 84 ) * + - 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5041
SELECT - COUNT ( - - 84 ) * + - 99 AS col0
----
99

query I rowsort
SELECT - + 58 * + 80 + + 84 + + 94
----
-4462

query I rowsort
SELECT DISTINCT + 45 * + 10 + + + 56
----
506

query I rowsort
SELECT - NULLIF ( + 40, + 93 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + COUNT( * ) + + 26 * - CASE + 88 WHEN 29 * + 69 + - COUNT( * ) + + 65 + - + 44 - - + 12 * - 58 THEN - - COUNT( * ) - - 38 END - + ( + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT + COUNT ( * ) + + 26 * - CASE + 88 WHEN 29 * + 69 + - COUNT ( * ) + + 65 + - + 44 - - + 12 * - 58 THEN - - COUNT ( * ) - - 38 END - + ( + 8 )
----
NULL

query I rowsort
SELECT ALL ( - 24 ) + 73 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5047
SELECT - ( + CASE + 28 WHEN + 40 THEN - - COUNT( * ) WHEN - COUNT( * ) * + 11 THEN 21 + 39 WHEN + - CASE - - 17 WHEN + CAST( 2 AS DECIMAL ) THEN - + 2 ELSE - + 10 END THEN 65 * + 35 WHEN SUM( - 51 ) * 45 + + + 51 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT - ( + CASE + 28 WHEN + 40 THEN - - COUNT ( * ) WHEN - COUNT ( * ) * + 11 THEN 21 + 39 WHEN + - CASE - - 17 WHEN + CAST ( 2 AS REAL ) THEN - + 2 ELSE - + 10 END THEN 65 * + 35 WHEN SUM ( - 51 ) * 45 + + + 51 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT + ( - 19 ) + + 43 DIV - 14 + 27 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5048
SELECT + ( - 19 ) + + 43 / - 14 + 27 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT - CAST( + 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5049
SELECT - CAST ( + 30 AS INTEGER ) AS col2
----
-30

query I rowsort
SELECT DISTINCT 20 + + + 91
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT + ( COUNT( * ) ) * + + 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5051
SELECT + ( COUNT ( * ) ) * + + 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT ALL MAX( DISTINCT 29 ) AS col2, COUNT( * ) * - 33 AS col1
----
29
-33

skipif mysql # not compatible
query II rowsort label-5052
SELECT ALL MAX ( DISTINCT 29 ) AS col2, COUNT ( * ) * - 33 AS col1
----
29
-33

query I rowsort
SELECT + 30 * 79
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL MAX( - COALESCE ( + 76, + ( - 55 ) * - 20 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL MAX ( - COALESCE ( + 76, + ( - 55 ) * - 20 ) )
----
-76

query I rowsort
SELECT - ( - + 46 ) AS col0
----
46

query I rowsort
SELECT - 24 + + 1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT + 33 - MAX( DISTINCT - + 26 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + 33 - MAX ( DISTINCT - + 26 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + 14 * - - ( MAX( DISTINCT + ( + 72 ) ) ) * + + 56 AS col0
----
56448

skipif mysql # not compatible
query I rowsort label-5058
SELECT + 14 * - - ( MAX ( DISTINCT + ( + 72 ) ) ) * + + 56 AS col0
----
56448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5059
SELECT 63 DIV - 71 * + - 71 + + 97 + - 19 * + 37 - - 83 + CAST( + + COUNT( - 70 ) AS SIGNED ) - - 63 * + 33 + - ( + + 39 ) DIV - 42 - - - ( + 70 ) AS col0
----
1487

skipif mysql # not compatible
query I rowsort label-5059
SELECT 63 / - 71 * + - 71 + + 97 + - 19 * + 37 - - 83 + CAST ( + + COUNT ( - 70 ) AS INTEGER ) - - 63 * + 33 + - ( + + 39 ) / - 42 - - - ( + 70 ) AS col0
----
1487

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - MAX( ALL - - ( - - 80 ) ) * 66 + NULLIF ( - 3, ( + 8 ) / - - 17 )
----
-5283

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - MAX ( ALL - - ( - - 80 ) ) * 66 + NULLIF ( - 3, ( + 8 ) / - - 17 )
----
-5283

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + MAX( - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-5061
SELECT + MAX ( - - 16 )
----
16

query I rowsort
SELECT DISTINCT + - 76 AS col0
----
-76

query III rowsort
SELECT 3 * + 20 + - 37, - 34 * 88 AS col2, 26 AS col2
----
23
-2992
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5064
SELECT ALL + 39 * - - 14 + - - 86 - - - 74 + ( - ( COALESCE ( - 46, - 40 ) ) ) + + 96 - COUNT( + - ( + + 46 ) ) * + 31 DIV + + 58 + + - ( + + COUNT( * ) ) * + 77 * - 11 + SUM( + - 4 ) + + 26, - NULLIF ( + - 3, 49 ) AS col2
----
1569
3

skipif mysql # not compatible
query II rowsort label-5064
SELECT ALL + 39 * - - 14 + - - 86 - - - 74 + ( - ( COALESCE ( - 46, - 40 ) ) ) + + 96 - COUNT ( + - ( + + 46 ) ) * + 31 / + + 58 + + - ( + + COUNT ( * ) ) * + 77 * - 11 + SUM ( + - 4 ) + + 26, - NULLIF ( + - 3, 49 ) AS col2
----
1569
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT - 91 * + 81 AS col0, - 1 * - COUNT( * )
----
-7371
1

skipif mysql # not compatible
query II rowsort label-5065
SELECT - 91 * + 81 AS col0, - 1 * - COUNT ( * )
----
-7371
1

query I rowsort
SELECT ALL + - 61 AS col0
----
-61

query I rowsort
SELECT + 31 * + ( - + 90 ) AS col2
----
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - - COUNT( * ) * - 88 + - COUNT( DISTINCT + 26 )
----
-89

skipif mysql # not compatible
query I rowsort label-5068
SELECT - - COUNT ( * ) * - 88 + - COUNT ( DISTINCT + 26 )
----
-89

query I rowsort
SELECT ALL + + 70 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT - 73 * 94 * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT - 73 * 94 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - + ( + + 4 ) AS col1, - 23 * + - 44 + + 70
----
-4
1082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT 29 / - CAST( - + 16 AS SIGNED ) - CASE - 93 WHEN 42 * - 76 + - + COUNT( * ) + + 6 + - - 65 + - 66 * - 76 THEN + ( - 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT 29 / - CAST ( - + 16 AS INTEGER ) - CASE - 93 WHEN 42 * - 76 + - + COUNT ( * ) + + 6 + - - 65 + - 66 * - 76 THEN + ( - 79 ) END
----
NULL

query I rowsort
SELECT + 27 * 15
----
405

query II rowsort
SELECT DISTINCT + + 23 + 36 AS col0, + 95 AS col1
----
59
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT DISTINCT - - 52 * + 35 + + 27 * 19 * + - CAST( NULL AS SIGNED ) * 90 + - ( - 56 ) + NULLIF ( CAST( NULL AS SIGNED ), + + 76 - 6 ) + 60 * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - - 52 * + 35 + + 27 * 19 * + - CAST ( NULL AS INTEGER ) * 90 + - ( - 56 ) + NULLIF ( CAST ( NULL AS INTEGER ), + + 76 - 6 ) + 60 * - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL + + 89 + - + COUNT( * ) * - 12 * - 36 AS col2
----
-343

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + + 89 + - + COUNT ( * ) * - 12 * - 36 AS col2
----
-343

query I rowsort
SELECT ALL + 21 + - 78
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT 50 * + CAST( + ( - 19 ) AS SIGNED )
----
-950

skipif mysql # not compatible
query I rowsort label-5078
SELECT 50 * + CAST ( + ( - 19 ) AS INTEGER )
----
-950

query I rowsort
SELECT ALL 38 + - + 1
----
37

query II rowsort
SELECT + 16 AS col0, + 77 * - 53
----
16
-4081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL - NULLIF ( - + 55, + - 21 ) * - 74 - 14 + - CAST( NULL AS SIGNED ) + 25 + - 92 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL - NULLIF ( - + 55, + - 21 ) * - 74 - 14 + - CAST ( NULL AS INTEGER ) + 25 + - 92 * - COUNT ( * )
----
NULL

query I rowsort
SELECT 30 - + 21 col0
----
9

query II rowsort
SELECT 18 AS col0, 59 AS col0
----
18
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT MAX( ALL 54 ) * + 81 * + 4 + + - COUNT( * ) * - ( 66 ) * - COALESCE ( 30, - CAST( NULL AS SIGNED ) ) + - 80 + - 27 + 52 * + - 98 + + 53 AS col2
----
10366

skipif mysql # not compatible
query I rowsort label-5084
SELECT MAX ( ALL 54 ) * + 81 * + 4 + + - COUNT ( * ) * - ( 66 ) * - COALESCE ( 30, - CAST ( NULL AS INTEGER ) ) + - 80 + - 27 + 52 * + - 98 + + 53 AS col2
----
10366

query I rowsort
SELECT 75 * - + 73
----
-5475

query I rowsort
SELECT 81 + - 27
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT CASE + 57 WHEN COUNT( * ) + + + 79 THEN + MAX( ALL - 71 ) ELSE NULL END * - 14 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT CASE + 57 WHEN COUNT ( * ) + + + 79 THEN + MAX ( ALL - 71 ) ELSE NULL END * - 14 + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5088
SELECT 34 AS col2, - COUNT( * ) - - 16 AS col1
----
34
15

skipif mysql # not compatible
query II rowsort label-5088
SELECT 34 AS col2, - COUNT ( * ) - - 16 AS col1
----
34
15

query II rowsort
SELECT - 82 col2, ( 66 ) AS col2
----
-82
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5090
SELECT ALL 34 AS col1, + COUNT( * ) * 10 AS col0
----
34
10

skipif mysql # not compatible
query II rowsort label-5090
SELECT ALL 34 AS col1, + COUNT ( * ) * 10 AS col0
----
34
10

query I rowsort
SELECT DISTINCT + 49 + + + 31 + 22
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT DISTINCT - 86 + + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - 86 + + COUNT ( * )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT ALL + 31 - + 24 DIV - ( 33 ) * + 26 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL + 31 - + 24 / - ( 33 ) * + 26 AS col0
----
31

query I rowsort
SELECT 84 + - - 48
----
132

query II rowsort
SELECT - 48 AS col0, 39
----
-48
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT 64 + NULLIF ( + 35, - 43 ) - - COUNT( * ) * + NULLIF ( 6, + - 57 )
----
105

skipif mysql # not compatible
query I rowsort label-5096
SELECT 64 + NULLIF ( + 35, - 43 ) - - COUNT ( * ) * + NULLIF ( 6, + - 57 )
----
105

query I rowsort
SELECT 0 * 81
----
0

query I rowsort
SELECT 74 + 65 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5099
SELECT - 59 col1, - COUNT( * ) * CAST( 63 AS SIGNED ) AS col0
----
-59
-63

skipif mysql # not compatible
query II rowsort label-5099
SELECT - 59 col1, - COUNT ( * ) * CAST ( 63 AS INTEGER ) AS col0
----
-59
-63

query II rowsort
SELECT 85 AS col1, NULLIF ( + ( COALESCE ( - 97, + + NULLIF ( + COALESCE ( - + 79, + + 36 ), - 64 ) ) ), + NULLIF ( 2, - + 60 / - 87 ) )
----
85
-97

query I rowsort
SELECT 19 - 37 AS col0
----
-18

query I rowsort
SELECT ALL - 29 - - 98 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT 3 * COUNT( * ) * - MIN( - + 36 ) * 40 + ( 93 ) AS col1
----
4413

skipif mysql # not compatible
query I rowsort label-5103
SELECT 3 * COUNT ( * ) * - MIN ( - + 36 ) * 40 + ( 93 ) AS col1
----
4413

query I rowsort
SELECT + 82 * - 45 AS col1
----
-3690

query I rowsort
SELECT DISTINCT - + 88 * 60 col1
----
-5280

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT DISTINCT COUNT( * ) col1, 2 * + + ( + 81 ) AS col0
----
1
162

skipif mysql # not compatible
query II rowsort label-5106
SELECT DISTINCT COUNT ( * ) col1, 2 * + + ( + 81 ) AS col0
----
1
162

query I rowsort
SELECT 95 + 92
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL - - COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL - - 92 AS col1
----
92

query I rowsort
SELECT + 1 + + 88 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT - 29 * - 71 + + CAST( + + 60 AS SIGNED )
----
2119

skipif mysql # not compatible
query I rowsort label-5111
SELECT - 29 * - 71 + + CAST ( + + 60 AS INTEGER )
----
2119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5112
SELECT ALL - CASE + - 21 WHEN + ( + 71 ) THEN 45 DIV COUNT( * ) + - - 75 + - COUNT( + 5 ) WHEN - COUNT( DISTINCT - + 11 ) * 80 THEN NULL ELSE - 7 END * - + 2 * + + 61 AS col2
----
-854

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL - CASE + - 21 WHEN + ( + 71 ) THEN 45 / COUNT ( * ) + - - 75 + - COUNT ( + 5 ) WHEN - COUNT ( DISTINCT - + 11 ) * 80 THEN NULL ELSE - 7 END * - + 2 * + + 61 AS col2
----
-854

query II rowsort
SELECT ALL - + 59, - 34 + + 27 AS col2
----
-59
-7

query I rowsort
SELECT 52 * 36 AS col1
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - - 58 * + 43 - + COUNT( + 13 ) col1
----
2493

skipif mysql # not compatible
query I rowsort label-5115
SELECT - - 58 * + 43 - + COUNT ( + 13 ) col1
----
2493

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT SUM( ALL - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-5116
SELECT SUM ( ALL - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL - ( - COUNT( * ) ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL - ( - COUNT ( * ) ) + 53
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT 30 DIV 68 + - - 42 * + 43 + - - 46 - - NULLIF ( + 29, - 41 * + 71 ) * COALESCE ( 76, - COUNT( * ) * 51 * 12 ) * + COUNT( * ) + 14 AS col0
----
4070

skipif mysql # not compatible
query I rowsort label-5118
SELECT 30 / 68 + - - 42 * + 43 + - - 46 - - NULLIF ( + 29, - 41 * + 71 ) * COALESCE ( 76, - COUNT ( * ) * 51 * 12 ) * + COUNT ( * ) + 14 AS col0
----
4070

query I rowsort
SELECT ALL - - ( - - ( + 22 ) ) + 35 * - 41 AS col0
----
-1413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5120
SELECT ALL 34 + + CASE - - 86 WHEN 23 - + COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) * - COUNT( * ) THEN - - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL 34 + + CASE - - 86 WHEN 23 - + COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN - - 73 END
----
NULL

query I rowsort
SELECT DISTINCT - 33 * - 56
----
1848

query I rowsort
SELECT ALL + 70 + + + 36
----
106

query II rowsort
SELECT - 47 col0, 44 AS col2
----
-47
44

query I rowsort
SELECT DISTINCT - + CASE - + 13 WHEN + 47 + + NULLIF ( 38, + 48 / + + 97 * + 62 ) THEN - 49 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 9 + - - ( + 89 )
----
98

query I rowsort
SELECT 30 + + ( - 4 ) AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT 62 * + COUNT( * ) * + - 81 - - + 80 DIV + 40 AS col1
----
-5020

skipif mysql # not compatible
query I rowsort label-5127
SELECT 62 * + COUNT ( * ) * + - 81 - - + 80 / + 40 AS col1
----
-5020

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ( + COUNT( * ) ) + ( 87 ) - - + 91
----
179

skipif mysql # not compatible
query I rowsort label-5128
SELECT ( + COUNT ( * ) ) + ( 87 ) - - + 91
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT 75 + + 75 / COUNT( * ) + - - 61 + + + 20 * + CAST( NULL AS SIGNED ) + + 24 + + ( + COUNT( * ) ) * + MAX( DISTINCT + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT 75 + + 75 / COUNT ( * ) + - - 61 + + + 20 * + CAST ( NULL AS INTEGER ) + + 24 + + ( + COUNT ( * ) ) * + MAX ( DISTINCT + 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT 85 + + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5130
SELECT 85 + + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT ALL + 35 - + - 15 + - 29 * 95 AS col1, - 66 * + + SUM( ALL - - 51 ) AS col1
----
-2705
-3366

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL + 35 - + - 15 + - 29 * 95 AS col1, - 66 * + + SUM ( ALL - - 51 ) AS col1
----
-2705
-3366

query I rowsort
SELECT + ( - 87 ) * 20 + NULLIF ( + 6, - 85 - + + 4 )
----
-1734

query I rowsort
SELECT ALL - 72 * + 13 AS col0
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT 75 + - COALESCE ( + + 79, - + 67 * COUNT( * ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5134
SELECT 75 + - COALESCE ( + + 79, - + 67 * COUNT ( * ) ) AS col0
----
-4

query I rowsort
SELECT 81 * - - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT ALL + 0 - + - COUNT( * ) * 28 - - + 72 AS col0, + 37 + - 85 + + 14
----
100
-34

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL + 0 - + - COUNT ( * ) * 28 - - + 72 AS col0, + 37 + - 85 + + 14
----
100
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL - 73 * - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - 73 * - COUNT ( * )
----
73

query I rowsort
SELECT DISTINCT + 18 - 94 + + - 22 col0
----
-98

query I rowsort
SELECT 71 + + 74 + + + 95 AS col1
----
240

query I rowsort
SELECT 14 col2
----
14

query II rowsort
SELECT 9 + - 89 AS col1, - 32 AS col0
----
-80
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT MIN( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT MIN ( - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT MAX( DISTINCT 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT MAX ( DISTINCT 31 ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT - 33 + + + ( - 98 ) DIV - COALESCE ( - 32, - + 90 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5144
SELECT - 33 + + + ( - 98 ) / - COALESCE ( - 32, - + 90 ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL CASE + + CAST( NULL AS SIGNED ) WHEN + 70 * 97 + - 71 THEN CAST( + + COUNT( * ) AS SIGNED ) ELSE NULL END * + 49 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL CASE + + CAST ( NULL AS INTEGER ) WHEN + 70 * 97 + - 71 THEN CAST ( + + COUNT ( * ) AS INTEGER ) ELSE NULL END * + 49 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT ALL - + 85 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - + 85 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( + - 86 ) * - 65 * - 6 AS col2
----
-33540

query I rowsort
SELECT DISTINCT - 89 * + + 94
----
-8366

query I rowsort
SELECT - COALESCE ( - 73, + 74 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT COALESCE ( - + 89, + 71 * + 61 * + CAST( NULL AS SIGNED ) ) + + 72 col1
----
-17

skipif mysql # not compatible
query I rowsort label-5150
SELECT COALESCE ( - + 89, + 71 * + 61 * + CAST ( NULL AS INTEGER ) ) + + 72 col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL COUNT ( * ) + - 76
----
-75

query II rowsort
SELECT - 22 + - 44 col2, + 46
----
-66
46

query I rowsort
SELECT ALL + + NULLIF ( 23, - + 45 ) * - - ( 97 ) + + 32 AS col1
----
2263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL + NULLIF ( 19, + CAST( - - MIN( + 80 ) AS SIGNED ) + COALESCE ( - 63, + 35 * + 58 * - - CAST( - 48 AS SIGNED ) * - ( - - 76 ) * - 57 + COUNT( * ) * + + COUNT( * ), + + 61, + 88 * - 10 + + 9 + + CAST( - + 43 AS SIGNED ) * - NULLIF ( + 31, - 72 + + 78 ) + + COUNT( * ) ) * + + 5 ) * + - 84 + - - 34 AS col0
----
-1562

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + NULLIF ( 19, + CAST ( - - MIN ( + 80 ) AS INTEGER ) + COALESCE ( - 63, + 35 * + 58 * - - CAST ( - 48 AS INTEGER ) * - ( - - 76 ) * - 57 + COUNT ( * ) * + + COUNT ( * ), + + 61, + 88 * - 10 + + 9 + + CAST ( - + 43 AS INTEGER ) * - NULLIF ( + 31, - 72 + + 78 ) + + COUNT ( * ) ) * + + 5 ) * + - 84 + - - 34 AS col0
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL - + 18 * MIN( 10 ) + + 79 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - + 18 * MIN ( 10 ) + + 79 AS col0
----
-101

query I rowsort
SELECT ALL ( + ( + 30 ) ) * - 2 + - - 5 AS col0
----
-55

query I rowsort
SELECT DISTINCT + ( + - 92 ) AS col0
----
-92

query II rowsort
SELECT ALL 6 * 35, - 35 AS col0
----
210
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT ALL - COUNT( * ) DIV + 60 * ( - - 70 ) * CASE + 54 WHEN + 16 + - + COUNT( * ) THEN NULL ELSE ( - 74 ) END DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - COUNT ( * ) / + 60 * ( - - 70 ) * CASE + 54 WHEN + 16 + - + COUNT ( * ) THEN NULL ELSE ( - 74 ) END / 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT + - 24 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT + - 24 / - 50
----
0

query I rowsort
SELECT + + NULLIF ( - + 52, 48 ) + + 78 + - + 53
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT ALL 9 * CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL 9 * CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5163
SELECT + MAX( + 65 ) DIV + COALESCE ( - - 3, SUM( ALL - - 33 ) + + COUNT( * ) - + 77 * - 40 * + + 10 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5163
SELECT + MAX ( + 65 ) / + COALESCE ( - - 3, SUM ( ALL - - 33 ) + + COUNT ( * ) - + 77 * - 40 * + + 10 ) AS col2
----
21

query I rowsort
SELECT DISTINCT 97 * + - 57 * - + 4 col0
----
22116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT + 61 * - + 9 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT + 61 * - + 9 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - 3 ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5167
SELECT ALL 19 * MIN( + + CAST( ( - 7 ) AS SIGNED ) ), + 10 * 26 AS col2
----
-133
260

skipif mysql # not compatible
query II rowsort label-5167
SELECT ALL 19 * MIN ( + + CAST ( ( - 7 ) AS INTEGER ) ), + 10 * 26 AS col2
----
-133
260

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - COUNT( * ) * 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5168
SELECT - COUNT ( * ) * 48 AS col1
----
-48

query I rowsort
SELECT + ( 55 ) + ( 47 ) * - ( - 72 ) - + 19 AS col0
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL MAX( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL MAX ( 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5171
SELECT ( + - 59 ) * 86 + + 99 + + CASE - 56 WHEN + - 96 THEN + COALESCE ( + + 89, 91 + 36 + + ( + 96 ) - + - 93 ) / ( + 10 ) ELSE NULL END + COALESCE ( - 69, - 56 + - + 86, - + MAX( - CAST( NULL AS DECIMAL ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT ( + - 59 ) * 86 + + 99 + + CASE - 56 WHEN + - 96 THEN + COALESCE ( + + 89, 91 + 36 + + ( + 96 ) - + - 93 ) / ( + 10 ) ELSE NULL END + COALESCE ( - 69, - 56 + - + 86, - + MAX ( - CAST ( NULL AS REAL ) ) ) col2
----
NULL

query I rowsort
SELECT - 1 * - 92 AS col1
----
92

query I rowsort
SELECT ALL COALESCE ( + 32, + + 38 * + 82 + - + 17 - - 8 )
----
32

query I rowsort
SELECT ALL + 42 * + 80 AS col1
----
3360

query I rowsort
SELECT - 65 * + ( + 70 ) AS col2
----
-4550

query I rowsort
SELECT - 24 + 95
----
71

query I rowsort
SELECT ALL CASE - 61 WHEN 87 THEN 37 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 67 AS col1, - 53
----
-67
-53

query I rowsort
SELECT ALL - - 33 + 64
----
97

query I rowsort
SELECT + + 71 + + 63 AS col1
----
134

query I rowsort
SELECT - - 91 - + 26 AS col0
----
65

query II rowsort
SELECT ALL - 45, + 83 AS col0
----
-45
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT - 67 DIV + 9 + + + 26 DIV 39 + - 55
----
-62