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

skipif mysql # not compatible
query I rowsort label-5183
SELECT - 67 / + 9 + + + 26 / 39 + - 55
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-5184
SELECT - - 88 * 62 DIV 9 AS col2, - 39 * + 85
----
606
-3315

skipif mysql # not compatible
query II rowsort label-5184
SELECT - - 88 * 62 / 9 AS col2, - 39 * + 85
----
606
-3315

query I rowsort
SELECT DISTINCT - 83 + - 59 * 22 AS col2
----
-1381

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

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

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

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

query I rowsort
SELECT ALL - 44 * + 74
----
-3256

query I rowsort
SELECT - COALESCE ( - 72, 71 - 96 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-5190
SELECT ALL - 70 DIV 80 + - 10 * - 76 + - 99 AS col0, 76
----
661
76

skipif mysql # not compatible
query II rowsort label-5190
SELECT ALL - 70 / 80 + - 10 * - 76 + - 99 AS col0, 76
----
661
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT + 34 / + 74 + + + 12 * 66 * - + 31 + - - CAST( NULL AS SIGNED ) * - 81 * - 74 * 99 + + 41 + COUNT( DISTINCT + + 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + 34 / + 74 + + + 12 * 66 * - + 31 + - - CAST ( NULL AS INTEGER ) * - 81 * - 74 * 99 + + 41 + COUNT ( DISTINCT + + 55 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL + COUNT( ALL + - 29 ) * + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + COUNT ( ALL + - 29 ) * + - 26
----
-26

query I rowsort
SELECT - 82 * - 62 + + - 41 * - + 14 AS col1
----
5658

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT + 95 DIV - + 64 + 88 * - - 87
----
7655

skipif mysql # not compatible
query I rowsort label-5194
SELECT + 95 / - + 64 + 88 * - - 87
----
7655

query II rowsort
SELECT ALL + 20 AS col0, - 60
----
20
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5196
SELECT + 61 DIV + 51 + - COUNT( * ) + - 87 DIV - - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5196
SELECT + 61 / + 51 + - COUNT ( * ) + - 87 / - - COUNT ( * ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT ALL ( + 99 ) DIV + - 14 - - + 94
----
87

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL ( + 99 ) / + - 14 - - + 94
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT ALL COUNT( * ) DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL COUNT ( * ) / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + 73 * + 56 + - COUNT( * )
----
4087

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 73 * + 56 + - COUNT ( * )
----
4087

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

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

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + - ( - + 56 ), + 69 ) * - 43 AS col1
----
-2408

query II rowsort
SELECT ALL + 54 AS col2, 36 * - 97
----
54
-3492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT ( 40 ) * + CAST( - + 90 AS SIGNED ) + - 70
----
-3670

skipif mysql # not compatible
query I rowsort label-5205
SELECT ( 40 ) * + CAST ( - + 90 AS INTEGER ) + - 70
----
-3670

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + MAX( DISTINCT - 50 ) * 68 + - 81 * 93 AS col1
----
-10933

skipif mysql # not compatible
query I rowsort label-5206
SELECT + MAX ( DISTINCT - 50 ) * 68 + - 81 * 93 AS col1
----
-10933

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL MAX( DISTINCT 89 ) * ( 72 )
----
6408

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL MAX ( DISTINCT 89 ) * ( 72 )
----
6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL COALESCE ( NULLIF ( - SUM( - + ( - 25 ) ), CAST( NULL AS SIGNED ) ), - + 7 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL COALESCE ( NULLIF ( - SUM ( - + ( - 25 ) ), CAST ( NULL AS INTEGER ) ), - + 7 ) col1
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-5209
SELECT + 65 DIV + - 90 AS col1, + 54
----
0
54

skipif mysql # not compatible
query II rowsort label-5209
SELECT + 65 / + - 90 AS col1, + 54
----
0
54

query I rowsort
SELECT + 42 * 21
----
882

query I rowsort
SELECT ALL - 34 * + - 58 + + 72 * + ( 76 ) * - 63 AS col0
----
-342764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5212
SELECT + ( - ( - - COALESCE ( + 43, 31 * + 57 * + - 91 + + 48, - + COUNT( * ), - NULLIF ( - 78, - + 20 ) ) ) ) + 10 + + COUNT( * ) + + + 75 * - 3 + ( 49 ) * + 68 * - + CAST( - - COUNT( * ) AS SIGNED )
----
-3589

skipif mysql # not compatible
query I rowsort label-5212
SELECT + ( - ( - - COALESCE ( + 43, 31 * + 57 * + - 91 + + 48, - + COUNT ( * ), - NULLIF ( - 78, - + 20 ) ) ) ) + 10 + + COUNT ( * ) + + + 75 * - 3 + ( 49 ) * + 68 * - + CAST ( - - COUNT ( * ) AS INTEGER )
----
-3589

query I rowsort
SELECT ALL 35 col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT DISTINCT + 31 + + + 52 + + 78 + - 24 * ( 31 ) * 9 + - 37 - - 5 / 29 * - CASE + ( - 92 ) WHEN - + ( 66 ) THEN COUNT( * ) * + COALESCE ( - 90, - CAST( NULL AS SIGNED ) + - + 91 * + 31 * SUM( 39 ) ) WHEN + COUNT( * ) + MIN( 28 ) THEN NULL WHEN ( + MIN( - 58 ) ) * + 12 + - + 19 + - 21 + + - COUNT( * ) + + 36 + + + CAST( NULL AS SIGNED ) * NULLIF ( + 29, + + 49 ) * - + 92 * + 36 * + 78 THEN - 68 * + 63 END * COUNT( * ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + 31 + + + 52 + + 78 + - 24 * ( 31 ) * 9 + - 37 - - 5 / 29 * - CASE + ( - 92 ) WHEN - + ( 66 ) THEN COUNT ( * ) * + COALESCE ( - 90, - CAST ( NULL AS INTEGER ) + - + 91 * + 31 * SUM ( 39 ) ) WHEN + COUNT ( * ) + MIN ( 28 ) THEN NULL WHEN ( + MIN ( - 58 ) ) * + 12 + - + 19 + - 21 + + - COUNT ( * ) + + 36 + + + CAST ( NULL AS INTEGER ) * NULLIF ( + 29, + + 49 ) * - + 92 * + 36 * + 78 THEN - 68 * + 63 END * COUNT ( * ) + - 52
----
NULL

query I rowsort
SELECT 70 + - 7 col2
----
63

query II rowsort
SELECT - - 1 AS col0, 66 - - 7 AS col0
----
1
73

query I rowsort
SELECT ALL + 40 + + 24 AS col2
----
64

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

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

query I rowsort
SELECT DISTINCT - 9 col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL + + NULLIF ( - CAST( - - 77 AS SIGNED ), - - 56 ) * 47 AS col0
----
-3619

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + + NULLIF ( - CAST ( - - 77 AS INTEGER ), - - 56 ) * 47 AS col0
----
-3619

query I rowsort
SELECT ALL + 57 + - 15 + + 29 AS col2
----
71

query I rowsort
SELECT - - 29 col0
----
29

query II rowsort
SELECT - 53 col0, 2 AS col0
----
-53
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5225
SELECT DISTINCT - - 13 - - - 71 + 85 + + - 52 + + COUNT( DISTINCT 28 ) * + + 79 * + + CAST( NULL AS SIGNED ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT - - 13 - - - 71 + 85 + + - 52 + + COUNT ( DISTINCT 28 ) * + + 79 * + + CAST ( NULL AS INTEGER ) * 24
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT + 32 AS col2, + 88 + COUNT( * )
----
32
89

skipif mysql # not compatible
query II rowsort label-5227
SELECT + 32 AS col2, + 88 + COUNT ( * )
----
32
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL - COALESCE ( + 89, - + 91, COUNT( * ) + + 99 )
----
-89

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - COALESCE ( + 89, - + 91, COUNT ( * ) + + 99 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT + CAST( NULL AS SIGNED ) * - COALESCE ( 73, + + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT + CAST ( NULL AS INTEGER ) * - COALESCE ( 73, + + 71 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5230
SELECT DISTINCT + 10 * 20 DIV 8 * - 26, 89 + + 13 + + 2 + CAST( NULL AS SIGNED ) AS col1
----
-650
NULL

skipif mysql # not compatible
query II rowsort label-5230
SELECT DISTINCT + 10 * 20 / 8 * - 26, 89 + + 13 + + 2 + CAST ( NULL AS INTEGER ) AS col1
----
-650
NULL

query II rowsort
SELECT ALL - + 94 AS col1, + NULLIF ( ( + 72 ), + ( - 10 ) )
----
-94
72

query I rowsort
SELECT DISTINCT - NULLIF ( + 56, 14 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT DISTINCT - 31 DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT - 31 / 65 AS col0
----
0

query I rowsort
SELECT ALL - ( COALESCE ( - - 59, + 42 + + - 91 + - 37 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT MIN( ALL + 67 ) * - MIN( DISTINCT + + 85 ) AS col2
----
-5695

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT MIN ( ALL + 67 ) * - MIN ( DISTINCT + + 85 ) AS col2
----
-5695

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

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

query I rowsort
SELECT DISTINCT + 59 * + 95
----
5605

query I rowsort
SELECT 84 * - + 83
----
-6972

query I rowsort
SELECT ALL + 69 * + + 20 AS col1
----
1380

query I rowsort
SELECT DISTINCT + 51 * - ( 55 )
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL ( 2 ) + - 55 / - - 47 * - CASE 11 WHEN + 68 THEN + + 10 ELSE NULL END * - ( + 64 ) + + 35 + 96 + COUNT( * ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL ( 2 ) + - 55 / - - 47 * - CASE 11 WHEN + 68 THEN + + 10 ELSE NULL END * - ( + 64 ) + + 35 + 96 + COUNT ( * ) * 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5242
SELECT NULLIF ( + 15, - - 65 ) * + COALESCE ( + 20, + MIN( DISTINCT 47 ) - - - 38 ) * - CAST( 32 AS SIGNED ) AS col1, + 79 - + - 87
----
-9600
166

skipif mysql # not compatible
query II rowsort label-5242
SELECT NULLIF ( + 15, - - 65 ) * + COALESCE ( + 20, + MIN ( DISTINCT 47 ) - - - 38 ) * - CAST ( 32 AS INTEGER ) AS col1, + 79 - + - 87
----
-9600
166

query I rowsort
SELECT DISTINCT 54 + 68 * 41 * + - 27
----
-75222

query I rowsort
SELECT 89 + + 21 AS col1
----
110

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

skipif mysql # not compatible
query I rowsort label-5245
SELECT 34 * - COUNT ( * )
----
-34

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

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + COUNT ( * ) / + - 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + ( - ( - NULLIF ( 80, + 56 + + ( - + COUNT( * ) ) + 69 * - 73 ) ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5247
SELECT + ( - ( - NULLIF ( 80, + 56 + + ( - + COUNT ( * ) ) + 69 * - 73 ) ) ) AS col1
----
80

query I rowsort
SELECT ALL + 69 + - 58
----
11

query I rowsort
SELECT 72 * + - NULLIF ( - - 32, 43 )
----
-2304

query I rowsort
SELECT + 92 - - 60
----
152

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

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

query II rowsort
SELECT 65 + 1 AS col0, 55 * ( - - 83 ) AS col2
----
66
4565

query I rowsort
SELECT ALL 76 - - 27 AS col2
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT ALL MAX( + - 36 ) - 76 - - 61
----
-51

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL MAX ( + - 36 ) - 76 - - 61
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT - CAST( + - 41 AS SIGNED ) + - SUM( + 20 )
----
21

skipif mysql # not compatible
query I rowsort label-5256
SELECT - CAST ( + - 41 AS INTEGER ) + - SUM ( + 20 )
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT + CASE + 70 WHEN - + 1 + - - 94 * - 25 * + 84 / - 82 THEN - CASE + AVG ( DISTINCT - - 46 ) WHEN 96 THEN - + 13 * CASE - ( - + NULLIF ( 14, + - 35 * 59 + - - 91 + + 2 * + 23 ) ) WHEN 32 THEN NULL WHEN + + 59 + 4 * - - 73 * + 64 - - 76 * COUNT( * ) THEN NULL ELSE 59 END / + - 52 + + COUNT( * ) * + 1 WHEN 64 THEN NULL END WHEN 51 THEN NULL WHEN - CASE - 69 WHEN + - 12 THEN NULL WHEN - 14 + - + 55 THEN - 9 ELSE + + 27 END THEN - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT + CASE + 70 WHEN - + 1 + - - 94 * - 25 * + 84 / - 82 THEN - CASE + AVG ( DISTINCT - - 46 ) WHEN 96 THEN - + 13 * CASE - ( - + NULLIF ( 14, + - 35 * 59 + - - 91 + + 2 * + 23 ) ) WHEN 32 THEN NULL WHEN + + 59 + 4 * - - 73 * + 64 - - 76 * COUNT ( * ) THEN NULL ELSE 59 END / + - 52 + + COUNT ( * ) * + 1 WHEN 64 THEN NULL END WHEN 51 THEN NULL WHEN - CASE - 69 WHEN + - 12 THEN NULL WHEN - 14 + - + 55 THEN - 9 ELSE + + 27 END THEN - 74 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL SUM( - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL SUM ( - 62 ) AS col0
----
-62

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

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - ( + CAST ( - + 53 AS INTEGER ) ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT 13 + 81 + + - 35 + + + 23 + NULLIF ( - + 11, + 32 - 69 ) / + 49 * + + 75 * - - 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT 13 + 81 + + - 35 + + + 23 + NULLIF ( - + 11, + 32 - 69 ) / + 49 * + + 75 * - - 68 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 1 * - 59 * + - 28 AS col2
----
-1652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT 44 * CAST( COALESCE ( 0, + 81 * + - 73 + + - 97 - + 92, ( - 63 ) ) AS SIGNED ) * + CASE + - 27 WHEN - 75 THEN NULL WHEN - 39 + - 96 THEN NULL ELSE + NULLIF ( - + 77, 59 * + 25 + - MAX( ALL 16 ) + - - 19 + + - ( COUNT( * ) ) ) + + + COUNT( * ) + 64 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT 44 * CAST ( COALESCE ( 0, + 81 * + - 73 + + - 97 - + 92, ( - 63 ) ) AS INTEGER ) * + CASE + - 27 WHEN - 75 THEN NULL WHEN - 39 + - 96 THEN NULL ELSE + NULLIF ( - + 77, 59 * + 25 + - MAX ( ALL 16 ) + - - 19 + + - ( COUNT ( * ) ) ) + + + COUNT ( * ) + 64 END AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT ALL 44 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL 44 / - 79
----
0

query II rowsort
SELECT - 63 AS col0, + 42
----
-63
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT + 65 * 80 - MIN( 51 )
----
5149

skipif mysql # not compatible
query I rowsort label-5266
SELECT + 65 * 80 - MIN ( 51 )
----
5149

query I rowsort
SELECT ALL 97 * 39 AS col2
----
3783

query I rowsort
SELECT 65 + + - 16
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT COUNT( * ) AS col0, + 75 + - 21 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-5269
SELECT COUNT ( * ) AS col0, + 75 + - 21 AS col1
----
1
54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT DISTINCT 58 * 22 * + 89 + COALESCE ( + 33, COUNT( * ) DIV + - 49 * 2, ( 18 ) * + + 6 - - 8 + + 47 * 83 ) * - 66 * - - COUNT( * )
----
111386

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT 58 * 22 * + 89 + COALESCE ( + 33, COUNT ( * ) / + - 49 * 2, ( 18 ) * + + 6 - - 8 + + 47 * 83 ) * - 66 * - - COUNT ( * )
----
111386

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

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL - CAST ( + ( - 36 ) AS INTEGER )
----
36

query I rowsort
SELECT ALL - 90 * + 66 + 18 + 63
----
-5859

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT ALL + COUNT( * ) * + 29 DIV - - 54 + - 26 * + 74 * - MIN( ALL 67 ) + - + 12 + 38 + + + 69
----
129003

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + COUNT ( * ) * + 29 / - - 54 + - 26 * + 74 * - MIN ( ALL 67 ) + - + 12 + 38 + + + 69
----
129003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT - 65 * + - CAST( 55 AS SIGNED ) * - - 66 AS col1
----
235950

skipif mysql # not compatible
query I rowsort label-5277
SELECT - 65 * + - CAST ( 55 AS INTEGER ) * - - 66 AS col1
----
235950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5278
SELECT + 71 + - 90 + - 80 * 40 AS col1, + 34 - - - COALESCE ( - 49, - - ( ( 55 ) ) ) + - + COUNT( * ) + - + 54 + 2 DIV - - 73 * 59 * - 95 + + 91 * 2 * 26 * - 79 col2
----
-3219
-373800

skipif mysql # not compatible
query II rowsort label-5278
SELECT + 71 + - 90 + - 80 * 40 AS col1, + 34 - - - COALESCE ( - 49, - - ( ( 55 ) ) ) + - + COUNT ( * ) + - + 54 + 2 / - - 73 * 59 * - 95 + + 91 * 2 * 26 * - 79 col2
----
-3219
-373800

query I rowsort
SELECT + - 3 + - 16 * + 15
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT - - COUNT( * ) * + + 96 * - 72 AS col2
----
-6912

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT - - COUNT ( * ) * + + 96 * - 72 AS col2
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT - - 84 * + - 80 - - CASE 97 WHEN 82 THEN + 39 / - 27 WHEN + COUNT( * ) THEN - - 52 + - + 77 ELSE NULL END - - - COUNT( * ) + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT - - 84 * + - 80 - - CASE 97 WHEN 82 THEN + 39 / - 27 WHEN + COUNT ( * ) THEN - - 52 + - + 77 ELSE NULL END - - - COUNT ( * ) + - 17
----
NULL

query I rowsort
SELECT - - 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT - + NULLIF ( - 9, 4 * + 35 * - - MAX( - - 40 ) + - - 1 + - + 75 ) * + 63 * + 5
----
2835

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT - + NULLIF ( - 9, 4 * + 35 * - - MAX ( - - 40 ) + - - 1 + - + 75 ) * + 63 * + 5
----
2835

onlyif mysql # DIV for integer division: 
query II rowsort label-5284
SELECT DISTINCT 15 AS col1, ( 53 ) + - 85 * + 44 DIV 11
----
15
-287

skipif mysql # not compatible
query II rowsort label-5284
SELECT DISTINCT 15 AS col1, ( 53 ) + - 85 * + 44 / 11
----
15
-287

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

query I rowsort
SELECT + + 77 + + - 95 * + 27 * + 7 - - 68 AS col1
----
-17810

query I rowsort
SELECT + - 2 + - + 52 * + 62 + 17
----
-3209

query I rowsort
SELECT ALL + 96 * + 47 AS col2
----
4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT - + CAST( + 77 AS SIGNED ) * + 14
----
-1078

skipif mysql # not compatible
query I rowsort label-5289
SELECT - + CAST ( + 77 AS INTEGER ) * + 14
----
-1078

query I rowsort
SELECT + 49 * + + 24 + - 52 AS col1
----
1124

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT + 93 * COALESCE ( 49, - COUNT( DISTINCT + 98 ), COUNT( * ) ) AS col1
----
4557

skipif mysql # not compatible
query I rowsort label-5291
SELECT + 93 * COALESCE ( 49, - COUNT ( DISTINCT + 98 ), COUNT ( * ) ) AS col1
----
4557

query I rowsort
SELECT ALL 32 * + 90
----
2880

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT + 15 + - COUNT( * ) + 83 AS col2, - 63
----
97
-63

skipif mysql # not compatible
query II rowsort label-5293
SELECT + 15 + - COUNT ( * ) + 83 AS col2, - 63
----
97
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT - MIN( ALL - - 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-5295
SELECT - MIN ( ALL - - 82 ) col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - MIN( DISTINCT 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5296
SELECT - MIN ( DISTINCT 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - SUM( + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-5297
SELECT - SUM ( + 92 )
----
-92

query I rowsort
SELECT + 9 + + - 91 + + ( - 99 ) * + + 38
----
-3844

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

skipif mysql # not compatible
query I rowsort label-5299
SELECT - ( + - MAX ( + 71 ) )
----
71

query I rowsort
SELECT + 79 * 11 * + - 34
----
-29546

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + 85 + + COUNT( * ) + 57 * 15
----
941

skipif mysql # not compatible
query I rowsort label-5301
SELECT + 85 + + COUNT ( * ) + 57 * 15
----
941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL 91 + - CASE ( 37 ) WHEN - 88 + 99 THEN NULL WHEN - + 80 / - 99 + - 2 + + + 81 * + + 56 * - CAST( - 86 AS SIGNED ) + - 53 THEN + COUNT( * ) - + ( + - COUNT( * ) ) + ( - 41 ) + - COUNT( * ) WHEN CASE + 28 WHEN 8 * + + 91 THEN + MIN( - 86 ) WHEN + COUNT( 55 ) THEN NULL END THEN - COUNT( * ) * - 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL 91 + - CASE ( 37 ) WHEN - 88 + 99 THEN NULL WHEN - + 80 / - 99 + - 2 + + + 81 * + + 56 * - CAST ( - 86 AS INTEGER ) + - 53 THEN + COUNT ( * ) - + ( + - COUNT ( * ) ) + ( - 41 ) + - COUNT ( * ) WHEN CASE + 28 WHEN 8 * + + 91 THEN + MIN ( - 86 ) WHEN + COUNT ( 55 ) THEN NULL END THEN - COUNT ( * ) * - 58 ELSE NULL END
----
NULL

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

query I rowsort
SELECT ( - 86 )
----
-86

query I rowsort
SELECT + COALESCE ( ( + + 36 ), + 35 )
----
36

query I rowsort
SELECT + 49 * - - 71 AS col2
----
3479

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL 54 DIV - 78 + - + 84 DIV ( + 73 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL 54 / - 78 + - + 84 / ( + 73 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5308
SELECT + ( - COUNT( * ) ) AS col1, - ( 26 ) * + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5308
SELECT + ( - COUNT ( * ) ) AS col1, - ( 26 ) * + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT ALL - COUNT( ALL + 54 ) * - + 50 DIV - - MIN( ALL + 7 ) * - COUNT( * ) + - 15 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - COUNT ( ALL + 54 ) * - + 50 / - - MIN ( ALL + 7 ) * - COUNT ( * ) + - 15 AS col2
----
-22

query I rowsort
SELECT ( - 42 ) col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5311
SELECT - 19 * COALESCE ( - - ( 53 ), - COUNT( * ) + 39 DIV - + 72, 32 + + 99 + + + 11 DIV 63 ) * 94, - 10 + COUNT( * ) * ( + ( 94 ) ) AS col2
----
-94658
84

skipif mysql # not compatible
query II rowsort label-5311
SELECT - 19 * COALESCE ( - - ( 53 ), - COUNT ( * ) + 39 / - + 72, 32 + + 99 + + + 11 / 63 ) * 94, - 10 + COUNT ( * ) * ( + ( 94 ) ) AS col2
----
-94658
84

query I rowsort
SELECT DISTINCT 24 * + ( - 47 )
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL + COUNT( DISTINCT NULLIF ( - 95, - COALESCE ( - 51, - 20 ) * - + 73 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL + COUNT ( DISTINCT NULLIF ( - 95, - COALESCE ( - 51, - 20 ) * - + 73 ) )
----
1

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

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

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

query I rowsort
SELECT + 83 * - 99 AS col1
----
-8217

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT ALL + - NULLIF ( - 11, COUNT( * ) ) DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + - NULLIF ( - 11, COUNT ( * ) ) / - 72 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5319
SELECT ALL - 33 * + COUNT( DISTINCT - - CAST( + + 86 AS SIGNED ) ) + + 66 + 57 - + 95 AS col0, 62 DIV + 41 + - COUNT( * ) AS col2
----
-5
0

skipif mysql # not compatible
query II rowsort label-5319
SELECT ALL - 33 * + COUNT ( DISTINCT - - CAST ( + + 86 AS INTEGER ) ) + + 66 + 57 - + 95 AS col0, 62 / + 41 + - COUNT ( * ) AS col2
----
-5
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT + COUNT( * ) DIV + 89 - + 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT + COUNT ( * ) / + 89 - + 21 AS col0
----
-21

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

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

query I rowsort
SELECT + + 86 + - - 56
----
142

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT COUNT( * ) * - NULLIF ( - 82, + + 32 + - NULLIF ( - 19, + - 89 * + ( + 26 ) * 63 * - + ( - - 68 ) ) + - + 84 ) + + - 57 + + 0 DIV + 51
----
25

skipif mysql # not compatible
query I rowsort label-5325
SELECT COUNT ( * ) * - NULLIF ( - 82, + + 32 + - NULLIF ( - 19, + - 89 * + ( + 26 ) * 63 * - + ( - - 68 ) ) + - + 84 ) + + - 57 + + 0 / + 51
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT - COALESCE ( + + 36, + 84 DIV - - 20 ) + - 87 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-5326
SELECT - COALESCE ( + + 36, + 84 / - - 20 ) + - 87 AS col2
----
-123

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT DISTINCT - NULLIF ( + - 19, + + CAST( NULL AS SIGNED ) + 90 * - 81 ) * - + ( - 37 ) + - 0 - + 39 + 80
----
744

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - NULLIF ( + - 19, + + CAST ( NULL AS INTEGER ) + 90 * - 81 ) * - + ( - 37 ) + - 0 - + 39 + 80
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT - - 79 * + SUM( + 79 ) * + NULLIF ( + 93, + + 94 + 28 ) - - 44 AS col1
----
580457

skipif mysql # not compatible
query I rowsort label-5330
SELECT - - 79 * + SUM ( + 79 ) * + NULLIF ( + 93, + + 94 + 28 ) - - 44 AS col1
----
580457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT - 52 * - + 64 / + - 78 + CAST( NULL AS SIGNED ) * + 18 / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT - 52 * - + 64 / + - 78 + CAST ( NULL AS INTEGER ) * + 18 / + 98
----
NULL

query I rowsort
SELECT - 79 col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT - COUNT( DISTINCT + 47 ) + + - 85
----
-86

skipif mysql # not compatible
query I rowsort label-5333
SELECT - COUNT ( DISTINCT + 47 ) + + - 85
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT COUNT( * ) * - 53 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT COUNT ( * ) * - 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT + 27 + ( - SUM( 36 ) ) + - + 56 + 57
----
-8

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + 27 + ( - SUM ( 36 ) ) + - + 56 + 57
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT + 49 DIV + COUNT( * ) col0
----
49

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 49 / + COUNT ( * ) col0
----
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL 37 + - 40 + - + MAX( DISTINCT - 15 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL 37 + - 40 + - + MAX ( DISTINCT - 15 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT ALL COUNT( DISTINCT - - ( - + NULLIF ( - 87, + 45 ) ) ) AS col2, 34 AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-5339
SELECT ALL COUNT ( DISTINCT - - ( - + NULLIF ( - 87, + 45 ) ) ) AS col2, 34 AS col1
----
1
34

query I rowsort
SELECT - ( - 86 )
----
86

query I rowsort
SELECT - 18 * + 24 * - 99 - + 53
----
42715

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

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL 84 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT COUNT( * ) DIV + 8 - - 5 * + 93 + - 89 + - 92 * + 40 AS col2
----
-3304

skipif mysql # not compatible
query I rowsort label-5343
SELECT COUNT ( * ) / + 8 - - 5 * + 93 + - 89 + - 92 * + 40 AS col2
----
-3304

query I rowsort
SELECT DISTINCT 6 - - - ( 79 ) AS col0
----
-73

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

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

query I rowsort
SELECT ALL 41 - + 21 + + + 43 * + + 41 * - 47 col0
----
-82841

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL 65 * + 53 - + 38 * COUNT( * ) + 26 AS col1
----
3433

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL 65 * + 53 - + 38 * COUNT ( * ) + 26 AS col1
----
3433

query I rowsort
SELECT 81 * 60
----
4860

query I rowsort
SELECT 40 + 96
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL - - CASE + + 94 WHEN - 70 + - 85 - + ( + 63 ) * + 79 + 52 + - + COUNT( * ) + - ( - 32 ) THEN NULL WHEN 62 THEN COUNT( * ) WHEN 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - - CASE + + 94 WHEN - 70 + - 85 - + ( + 63 ) * + 79 + 52 + - + COUNT ( * ) + - ( - 32 ) THEN NULL WHEN 62 THEN COUNT ( * ) WHEN 7 THEN NULL ELSE NULL END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT 26 * + 61 + - COUNT( * ) + + 90
----
1675

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT 26 * + 61 + - COUNT ( * ) + + 90
----
1675

query I rowsort
SELECT 50 * + + 41 + + 50
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + 88 * - COUNT( * ) * COUNT( * ) + + + 30 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5357
SELECT + 88 * - COUNT ( * ) * COUNT ( * ) + + + 30 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL + + 17 * - - COUNT( * ) * + CASE + 97 WHEN - COUNT( * ) / - - 35 + + 34 THEN - 47 * - NULLIF ( COUNT( * ), - COUNT( * ) + - 44 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + + 17 * - - COUNT ( * ) * + CASE + 97 WHEN - COUNT ( * ) / - - 35 + + 34 THEN - 47 * - NULLIF ( COUNT ( * ), - COUNT ( * ) + - 44 ) END col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL - + COUNT ( * ) + - 38 AS col1
----
-39

query I rowsort
SELECT 29 + 54
----
83

query II rowsort
SELECT + 85 AS col0, + 16 * + 87
----
85
1392

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

query I rowsort
SELECT - 38 * - 82
----
3116

query I rowsort
SELECT ALL + 23 + - 25
----
-2

query II rowsort
SELECT DISTINCT 10 AS col0, 18
----
10
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + COUNT( * ) + - 12 + + ( - 81 ) * + - 48 * - 15 - + + 86 AS col0
----
-58417

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + COUNT ( * ) + - 12 + + ( - 81 ) * + - 48 * - 15 - + + 86 AS col0
----
-58417

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT DISTINCT 79 + + + COUNT( * ) AS col2, + 86 AS col0
----
80
86

skipif mysql # not compatible
query II rowsort label-5367
SELECT DISTINCT 79 + + + COUNT ( * ) AS col2, + 86 AS col0
----
80
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL + MAX( ALL + 59 ) + - 59
----
0

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + MAX ( ALL + 59 ) + - 59
----
0

query II rowsort
SELECT - 27 AS col1, + 58 AS col1
----
-27
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5372
SELECT DISTINCT 32 AS col2, COUNT( * ) - - 37 AS col2
----
32
38

skipif mysql # not compatible
query II rowsort label-5372
SELECT DISTINCT 32 AS col2, COUNT ( * ) - - 37 AS col2
----
32
38

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

skipif mysql # not compatible
query I rowsort label-5373
SELECT COUNT ( * ) * ( - 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5374
SELECT ALL CAST( - COALESCE ( 71, + COUNT( * ) / - + 10 - - - 62 * + 70 ) AS SIGNED ) * + - 11 + + 9
----
790

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL CAST ( - COALESCE ( 71, + COUNT ( * ) / - + 10 - - - 62 * + 70 ) AS INTEGER ) * + - 11 + + 9
----
790

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

skipif mysql # not compatible
query I rowsort label-5375
SELECT COUNT ( * ) / - - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT 89 * ( - 45 ) * NULLIF ( COUNT( DISTINCT + 34 ), + 17 ) + 67 + - + 85 * + 49 * - + 70 AS col1
----
287612

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT 89 * ( - 45 ) * NULLIF ( COUNT ( DISTINCT + 34 ), + 17 ) + 67 + - + 85 * + 49 * - + 70 AS col1
----
287612

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL 47 * - + 17 * + 38 * + COUNT( * )
----
-30362

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL 47 * - + 17 * + 38 * + COUNT ( * )
----
-30362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT DISTINCT - CASE 16 WHEN + COUNT( * ) THEN - - MAX( 29 ) / - + 28 + + - 49 WHEN - NULLIF ( + 69, - 69 + CASE - 86 WHEN + - AVG ( DISTINCT + + 88 ) * - CASE - CAST( - 62 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN + 74 * - - COUNT( * ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) END * + - 63 THEN + + COUNT( * ) * - - 79 * - + COUNT( * ) + 28 ELSE NULL END ) * - 13 - + COUNT( * ) - + COUNT( * ) * - 56 * - + 67 THEN + 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - CASE 16 WHEN + COUNT ( * ) THEN - - MAX ( 29 ) / - + 28 + + - 49 WHEN - NULLIF ( + 69, - 69 + CASE - 86 WHEN + - AVG ( DISTINCT + + 88 ) * - CASE - CAST ( - 62 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN + 74 * - - COUNT ( * ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) END * + - 63 THEN + + COUNT ( * ) * - - 79 * - + COUNT ( * ) + 28 ELSE NULL END ) * - 13 - + COUNT ( * ) - + COUNT ( * ) * - 56 * - + 67 THEN + 16 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5379
SELECT 50 DIV 70 * + 16 * 32 * 23
----
0

skipif mysql # not compatible
query I rowsort label-5379
SELECT 50 / 70 * + 16 * 32 * 23
----
0

query I rowsort
SELECT ALL + - 65 * 73 AS col2
----
-4745

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - + 53 * - 86 - - + COUNT( * )
----
4559

skipif mysql # not compatible
query I rowsort label-5381
SELECT - + 53 * - 86 - - + COUNT ( * )
----
4559

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

query II rowsort
SELECT + + 18, - 92 AS col2
----
18
-92

query II rowsort
SELECT + 61 col1, 4
----
61
4

query I rowsort
SELECT ALL - NULLIF ( + - 65, 56 * - 35 * 73 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + + ( - + NULLIF ( + - 24, ( - 55 ) * - 10 * + COUNT( * ) * 43 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5386
SELECT + + ( - + NULLIF ( + - 24, ( - 55 ) * - 10 * + COUNT ( * ) * 43 ) ) AS col2
----
24

query I rowsort
SELECT 65 * 9 - + 24 col2
----
561

query II rowsort
SELECT + + 8 col2, 64 * + 92 + - 3 AS col2
----
8
5885

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5389
SELECT ALL - + CAST( + - CASE 75 WHEN - COALESCE ( 72, ( + AVG ( DISTINCT + 43 ) ) * + + 46 + 39 + + 32 / 37 ) THEN - COALESCE ( COALESCE ( 27, - MAX( DISTINCT 40 ) ), 16 * + 44 ) END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - + CAST ( + - CASE 75 WHEN - COALESCE ( 72, ( + AVG ( DISTINCT + 43 ) ) * + + 46 + 39 + + 32 / 37 ) THEN - COALESCE ( COALESCE ( 27, - MAX ( DISTINCT 40 ) ), 16 * + 44 ) END AS REAL ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5390
SELECT + COUNT ( * ) - + - 76 AS col2
----
77

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

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

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

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

query I rowsort
SELECT - 68 * 98 + - 4 + - + 45 * + 25 + 44
----
-7749

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT ALL 56 + + MAX( DISTINCT + 4 ) DIV NULLIF ( ( - - 74 ), - + MIN( 34 ) ) + 85 + + 77 DIV + 79 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL 56 + + MAX ( DISTINCT + 4 ) / NULLIF ( ( - - 74 ), - + MIN ( 34 ) ) + 85 + + 77 / + 79 AS col1
----
141

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT - 9 - 73 DIV + - 82 * - - 65
----
-9

skipif mysql # not compatible
query I rowsort label-5397
SELECT - 9 - 73 / + - 82 * - - 65
----
-9

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

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

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

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

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

query I rowsort
SELECT ALL 1 + - 87 * + 50 AS col2
----
-4349

query I rowsort
SELECT ALL - 33 + 75
----
42

query II rowsort
SELECT ALL 38 * + + 82 col1, 91
----
3116
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT - 64 + - 96 * MAX( ALL - 92 ) col1
----
8768

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - 64 + - 96 * MAX ( ALL - 92 ) col1
----
8768

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT 3 + + - COUNT( * ) - 24 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5405
SELECT 3 + + - COUNT ( * ) - 24 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT ALL - 55 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - 55 / - 98
----
0

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

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL COUNT ( DISTINCT + 78 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - 78 * - COUNT( - + 27 )
----
78

skipif mysql # not compatible
query I rowsort label-5408
SELECT - 78 * - COUNT ( - + 27 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT - 47 - + 8 * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - 47 - + 8 * COUNT ( * )
----
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT + CAST( - 71 AS SIGNED ) * + 34 + - 26 + - 29
----
-2469

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + CAST ( - 71 AS INTEGER ) * + 34 + - 26 + - 29
----
-2469

query II rowsort
SELECT - 60 - - 52 col2, + COALESCE ( + 56, - - COALESCE ( + 15, + 25, - 37 + + 48 + - 6 * - 51 * - + 70 * - 8 - - 17 ) ) AS col1
----
-8
56

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

query I rowsort
SELECT ALL ( - 79 ) * 6
----
-474

query II rowsort
SELECT ALL NULLIF ( + + NULLIF ( + + 6, 95 / - 99 + 83 + - 60 * - 27 * AVG ( + 68 ) * 9 ), - 18 * - 91 ), 4 AS col0
----
6
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT + 83 * - MIN( + 85 ), 6 AS col1
----
-7055
6

skipif mysql # not compatible
query II rowsort label-5416
SELECT + 83 * - MIN ( + 85 ), 6 AS col1
----
-7055
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - 88 * - COUNT( * ) * 44
----
3872

skipif mysql # not compatible
query I rowsort label-5417
SELECT - 88 * - COUNT ( * ) * 44
----
3872

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT 84 DIV + 65 - 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5418
SELECT 84 / + 65 - 83 AS col2
----
-82

query I rowsort
SELECT ( 53 ) col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5420
SELECT + ( + - MAX( - 54 ) ) DIV - 43 - MAX( DISTINCT + ( - - 89 ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5420
SELECT + ( + - MAX ( - 54 ) ) / - 43 - MAX ( DISTINCT + ( - - 89 ) ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT - 42 * - 36 + COUNT( * ) + - CAST( - + 40 AS SIGNED ) + + COUNT( * )
----
1554

skipif mysql # not compatible
query I rowsort label-5421
SELECT - 42 * - 36 + COUNT ( * ) + - CAST ( - + 40 AS INTEGER ) + + COUNT ( * )
----
1554

query I rowsort
SELECT + + ( - 38 ) * - - 60 + - 30
----
-2310

query I rowsort
SELECT ALL + 62 * + 94 * + 79 + + - 80
----
460332

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT - COALESCE ( - 33, COUNT( * ) ) + 32 + - MAX( DISTINCT - + 71 ) * - COUNT( * ), - NULLIF ( 59, + - ( - 95 ) ) AS col0
----
-6
-59

skipif mysql # not compatible
query II rowsort label-5424
SELECT - COALESCE ( - 33, COUNT ( * ) ) + 32 + - MAX ( DISTINCT - + 71 ) * - COUNT ( * ), - NULLIF ( 59, + - ( - 95 ) ) AS col0
----
-6
-59

query I rowsort
SELECT ALL 83 * 59 AS col0
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - 66 * + 22 + - - MAX( DISTINCT 59 )
----
-1393

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 66 * + 22 + - - MAX ( DISTINCT 59 )
----
-1393

query II rowsort
SELECT - - 97 * + 43 + + + 65 + - 88 * 57 + 7 + + - 79 * + 61 AS col0, - 44
----
-5592
-44

query I rowsort
SELECT + COALESCE ( 14, - 93 ) col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - + 22 * + 50 + 54 + + 46 + - COUNT( * ) AS col1
----
-1001

skipif mysql # not compatible
query I rowsort label-5429
SELECT - + 22 * + 50 + 54 + + 46 + - COUNT ( * ) AS col1
----
-1001

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

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

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

query I rowsort
SELECT DISTINCT ( + 90 ) * - 44 + - 79
----
-4039

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT ALL + - MAX( 46 ), 69 AS col2
----
-46
69

skipif mysql # not compatible
query II rowsort label-5433
SELECT ALL + - MAX ( 46 ), 69 AS col2
----
-46
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT MIN( + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5435
SELECT MIN ( + 64 )
----
64

query I rowsort
SELECT - 97 * + - 73 AS col1
----
7081

query I rowsort
SELECT + 2 * + 68
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT - 14 + - 56 + - - 16 * - MAX( + 11 ) * - SUM( + ( - 18 ) ) + - + 3
----
-3241

skipif mysql # not compatible
query I rowsort label-5438
SELECT - 14 + - 56 + - - 16 * - MAX ( + 11 ) * - SUM ( + ( - 18 ) ) + - + 3
----
-3241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT - ( 34 ) - - CAST( - 60 AS SIGNED ) + + + 25
----
-69

skipif mysql # not compatible
query I rowsort label-5439
SELECT - ( 34 ) - - CAST ( - 60 AS INTEGER ) + + + 25
----
-69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT + 55 DIV + + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT + 55 / + + 74 AS col1
----
0

query I rowsort
SELECT DISTINCT 90 * + 80 AS col2
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL COUNT( DISTINCT - - 3 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL COUNT ( DISTINCT - - 3 ) col1
----
1

query I rowsort
SELECT + 60 + 49 - + + 30
----
79

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

query II rowsort
SELECT DISTINCT 85 AS col2, COALESCE ( 74, - + 38 + + + 21, - 59 + + 58 + - - 37 )
----
85
74

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

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT - 16 / - - COUNT ( * )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT DISTINCT - 7 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - 7 / 58
----
0

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

skipif mysql # not compatible
query I rowsort label-5449
SELECT + 83 / - 60
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT + 89 DIV + + 65
----
1

skipif mysql # not compatible
query I rowsort label-5450
SELECT + 89 / + + 65
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5452
SELECT - COUNT( * ) + NULLIF ( - 9, 8 / + 46 + CASE CASE - 82 WHEN 79 THEN - 77 WHEN + + NULLIF ( + - 26, + 19 ) * + 27 THEN + 49 WHEN + - 14 THEN + - 90 + 61 / - CAST( NULL AS SIGNED ) + + 40 + MAX( ALL 73 ) + 71 * - - 63 + + 63 END WHEN + + MAX( - + 54 ) + - + NULLIF ( + 41, - 76 * + 37 * 42 ) + + 51 THEN + COUNT( * ) + + 10 ELSE NULL END ) - + ( + - 36 ) * + 95 * - + COUNT( * ) + 62
----
-3368

skipif mysql # not compatible
query I rowsort label-5452
SELECT - COUNT ( * ) + NULLIF ( - 9, 8 / + 46 + CASE CASE - 82 WHEN 79 THEN - 77 WHEN + + NULLIF ( + - 26, + 19 ) * + 27 THEN + 49 WHEN + - 14 THEN + - 90 + 61 / - CAST ( NULL AS INTEGER ) + + 40 + MAX ( ALL 73 ) + 71 * - - 63 + + 63 END WHEN + + MAX ( - + 54 ) + - + NULLIF ( + 41, - 76 * + 37 * 42 ) + + 51 THEN + COUNT ( * ) + + 10 ELSE NULL END ) - + ( + - 36 ) * + 95 * - + COUNT ( * ) + 62
----
-3368

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

query I rowsort
SELECT - 82 + + 67
----
-15

query I rowsort
SELECT ALL + 42 + 41 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - SUM( + 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5456
SELECT - SUM ( + 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT DISTINCT + 22 DIV - ( 10 ) - - NULLIF ( 49, ( - + 89 ) ) + COUNT( * ) + - - 29 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + 22 / - ( 10 ) - - NULLIF ( 49, ( - + 89 ) ) + COUNT ( * ) + - - 29 AS col0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - + COUNT( * ) * CASE COALESCE ( - 13, 44 * + 96 ) WHEN - - 99 THEN - - 17 / 90 + - + 22 WHEN 37 * - 83 THEN NULL END * - COALESCE ( COALESCE ( + COALESCE ( + 78, + + 59 ), 24 ), - - 42 ) - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT - + COUNT ( * ) * CASE COALESCE ( - 13, 44 * + 96 ) WHEN - - 99 THEN - - 17 / 90 + - + 22 WHEN 37 * - 83 THEN NULL END * - COALESCE ( COALESCE ( + COALESCE ( + 78, + + 59 ), 24 ), - - 42 ) - 96 AS col0
----
NULL

query II rowsort
SELECT + NULLIF ( - - 25, 69 / - 43 ) AS col2, - 62 col2
----
25
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT + ( CASE + - 83 WHEN COUNT( * ) - 21 THEN NULL WHEN + + COUNT( * ) * - - 4 THEN + - ( - NULLIF ( + 31, + - CAST( NULL AS SIGNED ) * - COALESCE ( - - 33, - 42, 42 ) + - 1 ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT + ( CASE + - 83 WHEN COUNT ( * ) - 21 THEN NULL WHEN + + COUNT ( * ) * - - 4 THEN + - ( - NULLIF ( + 31, + - CAST ( NULL AS INTEGER ) * - COALESCE ( - - 33, - 42, 42 ) + - 1 ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + 10 * COUNT( * ) - 78 + - - 21 * - 15 * - + 97 + + + 60 + + - ( 10 ) col1
----
30537

skipif mysql # not compatible
query I rowsort label-5463
SELECT + 10 * COUNT ( * ) - 78 + - - 21 * - 15 * - + 97 + + + 60 + + - ( 10 ) col1
----
30537

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5464
SELECT - - 51 DIV - CAST( 56 AS SIGNED ), 38 * + - 99 * + 50 col0
----
0
-188100

skipif mysql # not compatible
query II rowsort label-5464
SELECT - - 51 / - CAST ( 56 AS INTEGER ), 38 * + - 99 * + 50 col0
----
0
-188100

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - MIN( - 22 ) * + + 2 * - 34
----
-1496

skipif mysql # not compatible
query I rowsort label-5465
SELECT - MIN ( - 22 ) * + + 2 * - 34
----
-1496

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT ALL + 85 DIV + - 15 + - 60 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + 85 / + - 15 + - 60 AS col0
----
-65

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT ALL - + ( + - COUNT( * ) ) * + 7 * - 34 AS col1, + CASE - 54 WHEN COUNT( DISTINCT + 17 ) THEN NULLIF ( + 74, 16 * + ( 12 ) * + COUNT( * ) ) ELSE NULL END
----
-238
NULL

skipif mysql # not compatible
query II rowsort label-5469
SELECT ALL - + ( + - COUNT ( * ) ) * + 7 * - 34 AS col1, + CASE - 54 WHEN COUNT ( DISTINCT + 17 ) THEN NULLIF ( + 74, 16 * + ( 12 ) * + COUNT ( * ) ) ELSE NULL END
----
-238
NULL

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

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - - 88 / - + COUNT ( * ) / - 1
----
88

query I rowsort
SELECT + COALESCE ( 45, + 27 + ( - 56 ) ) AS col1
----
45

query II rowsort
SELECT DISTINCT - - 6 AS col0, + 22 + 76 + + 69 + + 32 * + 78 AS col1
----
6
2663

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5473
SELECT ( + AVG ( ALL + 36 ) ) + + CAST( 86 AS DECIMAL ) + + - 73 * 67 + + CASE - 80 WHEN + 31 + 77 THEN + COUNT( + 20 ) + + - 70 WHEN 86 THEN + - NULLIF ( - 20, COALESCE ( + 31, + - 49 + + 85 - - - MAX( ALL - 52 ) ) * - 21 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT ( + AVG ( ALL + 36 ) ) + + CAST ( 86 AS REAL ) + + - 73 * 67 + + CASE - 80 WHEN + 31 + 77 THEN + COUNT ( + 20 ) + + - 70 WHEN 86 THEN + - NULLIF ( - 20, COALESCE ( + 31, + - 49 + + 85 - - - MAX ( ALL - 52 ) ) * - 21 ) ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5474
SELECT 19 * 47 DIV + + 14
----
63

skipif mysql # not compatible
query I rowsort label-5474
SELECT 19 * 47 / + + 14
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT 93 + - - COALESCE ( - 84, + 43 ) * + AVG ( - 52 ) * - + CAST( NULL AS SIGNED ) + + 58 + - + 38 * - AVG ( ALL 93 ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT 93 + - - COALESCE ( - 84, + 43 ) * + AVG ( - 52 ) * - + CAST ( NULL AS INTEGER ) + + 58 + - + 38 * - AVG ( ALL 93 ) * + 38
----
NULL

query I rowsort
SELECT 28 * - 79 * + + 18
----
-39816

onlyif mysql # aggregate syntax: 
query II rowsort label-5477
SELECT - 90 * - 77 * - 1 + + COUNT( * ) + 6 AS col1, 21
----
-6923
21

skipif mysql # not compatible
query II rowsort label-5477
SELECT - 90 * - 77 * - 1 + + COUNT ( * ) + 6 AS col1, 21
----
-6923
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT COUNT( * ) - - + 2 * + + 45 DIV - 7
----
-11

skipif mysql # not compatible
query I rowsort label-5478
SELECT COUNT ( * ) - - + 2 * + + 45 / - 7
----
-11

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

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

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

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

query I rowsort
SELECT 37 + + 80 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL 7 * MAX( - 24 ) AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL 7 * MAX ( - 24 ) AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT 44 * 3 * + + MAX( DISTINCT + 53 ) AS col1
----
6996

skipif mysql # not compatible
query I rowsort label-5483
SELECT 44 * 3 * + + MAX ( DISTINCT + 53 ) AS col1
----
6996

query I rowsort
SELECT ALL 24 * 66
----
1584

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

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

query I rowsort
SELECT 50 - - 76
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + COUNT( * ) + + 42
----
43

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + COUNT ( * ) + + 42
----
43

query II rowsort
SELECT + 98 - + + 59 + - + 40 * + - 53 AS col0, - 7 col1
----
2159
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT + ( COALESCE ( + 82, 96 * ( 91 ), - 78 + - - 38, + + CASE 87 WHEN - NULLIF ( - 62, + 92 + 94 + - 41 ) THEN NULL WHEN + 86 THEN 54 + - COUNT( * ) END ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT + ( COALESCE ( + 82, 96 * ( 91 ), - 78 + - - 38, + + CASE 87 WHEN - NULLIF ( - 62, + 92 + 94 + - 41 ) THEN NULL WHEN + 86 THEN 54 + - COUNT ( * ) END ) ) AS col1
----
82

query I rowsort
SELECT + 12 + - 27 AS col0
----
-15

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

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - COUNT ( * ) + - 42 AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5492
SELECT ALL - COALESCE ( + NULLIF ( - ( - 27 ), 90 + - 38 + + + 30 + - 32 - 92 ), - + ( - + COALESCE ( + + 28, + + 26 * + 87 * - 45 + + - MAX( 26 ) DIV + 42 ) ) ) DIV ( - 11 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - COALESCE ( + NULLIF ( - ( - 27 ), 90 + - 38 + + + 30 + - 32 - 92 ), - + ( - + COALESCE ( + + 28, + + 26 * + 87 * - 45 + + - MAX ( 26 ) / + 42 ) ) ) / ( - 11 ) col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT 70 * - CAST( + COALESCE ( + - 40, - + 57 + + + 39, + - 74 * - - 7, - SUM( 78 ) + 75 / + COUNT( * ) ) AS SIGNED ) AS col1
----
2800

skipif mysql # not compatible
query I rowsort label-5493
SELECT 70 * - CAST ( + COALESCE ( + - 40, - + 57 + + + 39, + - 74 * - - 7, - SUM ( 78 ) + 75 / + COUNT ( * ) ) AS INTEGER ) AS col1
----
2800

query I rowsort
SELECT - 48 - - 47 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5495
SELECT ALL COALESCE ( - - 46, - SUM( - - 19 ) + - 22 - 80, + 8 DIV + 14 - - 65 + + - 21 * - 71 * 73 ) DIV 19 + 16 + + + 5 * - - 96 col1
----
498

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL COALESCE ( - - 46, - SUM ( - - 19 ) + - 22 - 80, + 8 / + 14 - - 65 + + - 21 * - 71 * 73 ) / 19 + 16 + + + 5 * - - 96 col1
----
498

query I rowsort
SELECT 50 * + 72 + + + 9 AS col0
----
3609

query II rowsort
SELECT ALL - 95 - - 39, - 0 AS col2
----
-56
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT + 82 DIV + 65 + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-5498
SELECT + 82 / + 65 + - 44
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5499
SELECT ALL - COUNT( * ) * + CASE - 22 WHEN - 53 THEN 2 WHEN - 54 THEN NULL ELSE + COUNT( ALL - - ( 82 ) ) + - 2 END * 93 + + COALESCE ( 74, + + NULLIF ( - 9, - + 36 + + - 34 - - 16 ) ) DIV 81, 38 + + - 65 * + + 58 col0
----
93
-3732

skipif mysql # not compatible
query II rowsort label-5499
SELECT ALL - COUNT ( * ) * + CASE - 22 WHEN - 53 THEN 2 WHEN - 54 THEN NULL ELSE + COUNT ( ALL - - ( 82 ) ) + - 2 END * 93 + + COALESCE ( 74, + + NULLIF ( - 9, - + 36 + + - 34 - - 16 ) ) / 81, 38 + + - 65 * + + 58 col0
----
93
-3732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT CASE 63 WHEN - - 15 + 34 + 50 THEN NULL WHEN - - ( - 93 ) THEN NULL WHEN 30 THEN + 83 * - 61 END + + 26 + + CAST( - - 55 AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT CASE 63 WHEN - - 15 + 34 + 50 THEN NULL WHEN - - ( - 93 ) THEN NULL WHEN 30 THEN + 83 * - 61 END + + 26 + + CAST ( - - 55 AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 34 - + 66
----
-32

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

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

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

query I rowsort
SELECT + 49 / - 49 * - + 18 + ( + CASE 83 WHEN 46 THEN + - 76 + + 26 + + 55 END )
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT 18 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT 18 / 44
----
0

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

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

query I rowsort
SELECT DISTINCT + ( + + 26 ) * 47 AS col2
----
1222

query II rowsort
SELECT ALL - 99, 13 AS col0
----
-99
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT 24 * + 75 + 54 AS col0, NULLIF ( NULLIF ( - ( - ( - COUNT( * ) ) ), + 46 * - 39 ), COUNT( * ) ) * + 25 * + 73
----
1854
-1825

skipif mysql # not compatible
query II rowsort label-5511
SELECT 24 * + 75 + 54 AS col0, NULLIF ( NULLIF ( - ( - ( - COUNT ( * ) ) ), + 46 * - 39 ), COUNT ( * ) ) * + 25 * + 73
----
1854
-1825

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT ALL + 34 DIV - - 64
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + 34 / - - 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT 44 DIV - 11 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5513
SELECT 44 / - 11 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT DISTINCT + COUNT( * ) * + SUM( DISTINCT - 48 ) AS col1, - 38
----
-48
-38

skipif mysql # not compatible
query II rowsort label-5514
SELECT DISTINCT + COUNT ( * ) * + SUM ( DISTINCT - 48 ) AS col1, - 38
----
-48
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5515
SELECT ALL - CAST( 49 AS SIGNED ) + + 20, COUNT( * ) + + 55 AS col1
----
-29
56

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL - CAST ( 49 AS INTEGER ) + + 20, COUNT ( * ) + + 55 AS col1
----
-29
56

query I rowsort
SELECT 24 + - 6
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT 34 DIV + 91 * + 83
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT 34 / + 91 * + 83
----
0

query I rowsort
SELECT 79 + - - 14 * + + 95 * + + 56
----
74559

query I rowsort
SELECT ALL + 71 + 76 AS col2
----
147

query II rowsort
SELECT - 97 AS col1, + 15
----
-97
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5521
SELECT 69 + - 2 + - 51 + + - 37 * 8 * + - 86 * - COUNT( * ) * - - 66 DIV COUNT( * ) AS col1
----
-1680080

skipif mysql # not compatible
query I rowsort label-5521
SELECT 69 + - 2 + - 51 + + - 37 * 8 * + - 86 * - COUNT ( * ) * - - 66 / COUNT ( * ) AS col1
----
-1680080

query I rowsort
SELECT ALL + 26 + 14 AS col2
----
40

query I rowsort
SELECT DISTINCT 52 * + 44
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL CASE - COUNT( * ) WHEN + 61 THEN 56 * - 48 ELSE - 82 END
----
-82

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL CASE - COUNT ( * ) WHEN + 61 THEN 56 * - 48 ELSE - 82 END
----
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT CASE 47 WHEN - 58 + 31 THEN + 73 / + 27 END + CASE + AVG ( CAST( - 42 AS SIGNED ) ) WHEN 37 * + 85 THEN NULL WHEN 11 THEN 54 + 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT CASE 47 WHEN - 58 + 31 THEN + 73 / + 27 END + CASE + AVG ( CAST ( - 42 AS INTEGER ) ) WHEN 37 * + 85 THEN NULL WHEN 11 THEN 54 + 21 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 16 * - 11 AS col2
----
-176

query I rowsort
SELECT ALL 75 - + 26 AS col0
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT MIN( 90 ) * 45 AS col0
----
4050

skipif mysql # not compatible
query I rowsort label-5530
SELECT MIN ( 90 ) * 45 AS col0
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL NULLIF ( + 35, 51 + - MAX( ALL 36 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL NULLIF ( + 35, 51 + - MAX ( ALL 36 ) ) AS col1
----
35

query I rowsort
SELECT DISTINCT + 82 * 77 col2
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL COUNT( * ) * - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL COUNT ( * ) * - 95 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT CASE ( 85 ) WHEN 94 THEN 44 + - 72 WHEN + 56 THEN CAST( NULL AS SIGNED ) ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5534
SELECT CASE ( 85 ) WHEN 94 THEN 44 + - 72 WHEN + 56 THEN CAST ( NULL AS INTEGER ) ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - SUM( + 3 ) - COUNT( * ) * - 78
----
75

skipif mysql # not compatible
query I rowsort label-5535
SELECT - SUM ( + 3 ) - COUNT ( * ) * - 78
----
75

query I rowsort
SELECT + 3 * NULLIF ( - 76, - ( + 20 ) ) AS col2
----
-228

query I rowsort
SELECT + 62 * - 53
----
-3286

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + 39 * COUNT( * ) - 33 * 70
----
-2271

skipif mysql # not compatible
query I rowsort label-5538
SELECT + 39 * COUNT ( * ) - 33 * 70
----
-2271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT + 91 DIV + COALESCE ( - 11, + COUNT( * ) + - 92 * 2, + COUNT( * ) - 44 )
----
-8

skipif mysql # not compatible
query I rowsort label-5539
SELECT + 91 / + COALESCE ( - 11, + COUNT ( * ) + - 92 * 2, + COUNT ( * ) - 44 )
----
-8

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

query I rowsort
SELECT - ( 14 ) * 91 + 41
----
-1233

query I rowsort
SELECT + 20 - 67 col1
----
-47

query I rowsort
SELECT + 37 * - 51 AS col0
----
-1887

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5544
SELECT COUNT( * ) * COUNT( DISTINCT 4 ) - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT COUNT ( * ) * COUNT ( DISTINCT 4 ) - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + 84 + 7 AS col2
----
91

query I rowsort
SELECT ALL + 68 * - ( 29 ) + 80
----
-1892

query I rowsort
SELECT + 1 * + 17 AS col0
----
17

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

skipif mysql # not compatible
query I rowsort label-5548
SELECT 39 * COUNT ( * ) + 92 AS col0
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT + NULLIF ( 75, ( + CAST( NULL AS SIGNED ) ) * 24 ) col0
----
75

skipif mysql # not compatible
query I rowsort label-5549
SELECT + NULLIF ( 75, ( + CAST ( NULL AS INTEGER ) ) * 24 ) col0
----
75

query I rowsort
SELECT - 43 * 57 + 25 AS col0
----
-2426

query I rowsort
SELECT - ( 82 ) - 99
----
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL + NULLIF ( 26, CAST( NULL AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + NULLIF ( 26, CAST ( NULL AS INTEGER ) )
----
26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT + 85 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + 85 / 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL NULLIF ( + MIN( 38 ), + 34 + COUNT( * ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL NULLIF ( + MIN ( 38 ), + 34 + COUNT ( * ) ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT CASE ( 35 ) WHEN 55 THEN COUNT( * ) END + + COUNT( * ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT CASE ( 35 ) WHEN 55 THEN COUNT ( * ) END + + COUNT ( * ) * 60
----
NULL

query I rowsort
SELECT DISTINCT - 12 + 28
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - SUM( ALL 85 ) + 89 col1
----
4

skipif mysql # not compatible
query I rowsort label-5558
SELECT - SUM ( ALL 85 ) + 89 col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT DISTINCT - 85 DIV + 52
----
-1

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - 85 / + 52
----
-1

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

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

query I rowsort
SELECT + 38 * 98 AS col1
----
3724

query I rowsort
SELECT - 7 * 87
----
-609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT ALL - COALESCE ( + COUNT( * ), COUNT( * ), 32 DIV + COUNT( 79 * - 16 ) ) * + 38
----
-38

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - COALESCE ( + COUNT ( * ), COUNT ( * ), 32 / + COUNT ( 79 * - 16 ) ) * + 38
----
-38

query I rowsort
SELECT - - 14 + - 85 * - 5
----
439

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT - - 8 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-5565
SELECT - - 8 / + 88
----
0

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

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

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

query I rowsort
SELECT - - 64 * 66
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - 83 - - COUNT( * ) * 64
----
-19

skipif mysql # not compatible
query I rowsort label-5569
SELECT - 83 - - COUNT ( * ) * 64
----
-19

query I rowsort
SELECT - 96 + - 99
----
-195

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

query I rowsort
SELECT - 10 + - ( ( 11 ) )
----
-21

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

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

query I rowsort
SELECT + + 7 * 82 AS col1
----
574

query I rowsort
SELECT - + 37 + 58 col0
----
21

query I rowsort
SELECT - + 15 * 10 + + 54
----
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + + COALESCE ( + 47, + CASE 30 WHEN + 84 THEN ( + COUNT( * ) ) ELSE NULL END * 33, - COUNT( * ) + 57 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + + COALESCE ( + 47, + CASE 30 WHEN + 84 THEN ( + COUNT ( * ) ) ELSE NULL END * 33, - COUNT ( * ) + 57 ) AS col2
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - 23 * 81 + + CASE - 70 WHEN COUNT( * ) THEN NULLIF ( NULLIF ( COUNT( * ), 24 ), - 24 + 41 ) + + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT - 23 * 81 + + CASE - 70 WHEN COUNT ( * ) THEN NULLIF ( NULLIF ( COUNT ( * ), 24 ), - 24 + 41 ) + + 43 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT ALL - 67 DIV 19 * - 44 + 98
----
230

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - 67 / 19 * - 44 + 98
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + 96 + SUM( ALL + 30 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-5582
SELECT + 96 + SUM ( ALL + 30 ) AS col1
----
126

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

query I rowsort
SELECT ( - 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5585
SELECT ALL + 41 * - + 14 * + 4 + + 24 DIV + CAST( 25 AS SIGNED )
----
-2296

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL + 41 * - + 14 * + 4 + + 24 / + CAST ( 25 AS INTEGER )
----
-2296

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT + 78 + - ( CASE COUNT( * ) WHEN 27 THEN + 36 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT + 78 + - ( CASE COUNT ( * ) WHEN 27 THEN + 36 END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT + 37 DIV + ( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-5588
SELECT + 37 / + ( 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + 42 + MIN( DISTINCT 87 ) - + ( - CASE 20 WHEN - 26 * - 99 + COUNT( * ) THEN + 27 * + 54 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT + 42 + MIN ( DISTINCT 87 ) - + ( - CASE 20 WHEN - 26 * - 99 + COUNT ( * ) THEN + 27 * + 54 END ) AS col0
----
NULL

query I rowsort
SELECT ( 84 ) AS col0
----
84

query I rowsort
SELECT 99 * + 18 + - 88
----
1694

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL + COALESCE ( + 78, - COUNT( * ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + COALESCE ( + 78, - COUNT ( * ) ) AS col0
----
78

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

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

query I rowsort
SELECT ALL 6 * + ( 52 )
----
312

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

query I rowsort
SELECT - 1 + + 53 AS col0
----
52

query I rowsort
SELECT DISTINCT + 84 * + - 47 - - 12
----
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT - COUNT( * ) + 96 + ( + 53 ) * + 44 * 22 AS col1
----
51399

skipif mysql # not compatible
query I rowsort label-5599
SELECT - COUNT ( * ) + 96 + ( + 53 ) * + 44 * 22 AS col1
----
51399

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

query I rowsort
SELECT + 67 + 99 * 29
----
2938

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5605
SELECT ALL CASE 19 WHEN - COUNT( ALL 80 ) * ( - 66 * - 97 ) THEN CAST( + COUNT( * ) AS DECIMAL ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL CASE 19 WHEN - COUNT ( ALL 80 ) * ( - 66 * - 97 ) THEN CAST ( + COUNT ( * ) AS REAL ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL - + 96 * - MIN( + ( 51 ) ) + 90
----
4986

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - + 96 * - MIN ( + ( 51 ) ) + 90
----
4986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT ALL - + MAX( ALL - 26 ) DIV 2 col0
----
13

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - + MAX ( ALL - 26 ) / 2 col0
----
13

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5609
SELECT - - CASE + CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN NULL ELSE 3 END AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5609
SELECT - - CASE + CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN NULL ELSE 3 END AS col2
----
3

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

query I rowsort
SELECT ALL + + 67 * - + 66 * 89 AS col2
----
-393558

query I rowsort
SELECT + 74 * + 84 AS col2
----
6216

query I rowsort
SELECT - + 50 col2
----
-50

query I rowsort
SELECT 66 * - + 66 AS col2
----
-4356

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

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL 57 + - + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT DISTINCT + 53 + + ( - 10 ) AS col0
----
43

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

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

query I rowsort
SELECT DISTINCT - 73 + 14 + 14 * 98 AS col2
----
1313

query I rowsort
SELECT 38 * + - 14
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL + ( - MAX( ( 49 ) ) ) + + 40 * 81
----
3191

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + ( - MAX ( ( 49 ) ) ) + + 40 * 81
----
3191

query I rowsort
SELECT 63 * - - ( 86 ) AS col0
----
5418

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

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 79
----
NULL

query II rowsort
SELECT + 72 AS col0, - 88
----
72
-88

query I rowsort
SELECT DISTINCT 7 * + 97
----
679

query I rowsort
SELECT DISTINCT + ( + 98 ) + - + 30
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL 1 - + - MAX( + - 91 ) + CASE 44 WHEN - 75 * AVG ( + 30 ) THEN NULL WHEN + COUNT( * ) THEN NULL WHEN AVG ( DISTINCT - NULLIF ( 38, + 86 ) ) THEN - NULLIF ( + MIN( ALL - 89 ), + 40 + 47 * NULLIF ( COUNT( * ), - COUNT( * ) * 24 ) ) + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL 1 - + - MAX ( + - 91 ) + CASE 44 WHEN - 75 * AVG ( + 30 ) THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN AVG ( DISTINCT - NULLIF ( 38, + 86 ) ) THEN - NULLIF ( + MIN ( ALL - 89 ), + 40 + 47 * NULLIF ( COUNT ( * ), - COUNT ( * ) * 24 ) ) + 43 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT + 48 * - + 11 - - + 10 DIV 84
----
-528

skipif mysql # not compatible
query I rowsort label-5627
SELECT + 48 * - + 11 - - + 10 / 84
----
-528

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT - 85 * + COUNT( * ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - 85 * + COUNT ( * ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ( - + COUNT( * ) ) * + COUNT( ALL 37 ) + + 79 * + 22
----
1737

skipif mysql # not compatible
query I rowsort label-5630
SELECT ( - + COUNT ( * ) ) * + COUNT ( ALL 37 ) + + 79 * + 22
----
1737

query II rowsort
SELECT ALL - 43 AS col1, - 2 AS col1
----
-43
-2

query I rowsort
SELECT 78 * + 31 col2
----
2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5633
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - + 35 + - 59 * CAST( + 15 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - + 35 + - 59 * CAST ( + 15 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT COUNT( * ) * + 34 + - 74 * 96
----
-7070

skipif mysql # not compatible
query I rowsort label-5634
SELECT COUNT ( * ) * + 34 + - 74 * 96
----
-7070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) - 27 + 70 / + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) - 27 + 70 / + 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT ALL 59 DIV COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL 59 / COUNT ( * ) col2
----
59

query I rowsort
SELECT 68 * - - 19
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT DISTINCT + 69 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT + 69 / + 95
----
0

query I rowsort
SELECT DISTINCT - - 3 - - 64 AS col2
----
67

query I rowsort
SELECT - NULLIF ( 40, + 79 + + NULLIF ( 24, + 79 * + 53 + 72 ) * - 36 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL + MAX( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + MAX ( DISTINCT 23 )
----
23

query I rowsort
SELECT + - 21 * + - 33 + + 4 AS col2
----
697

query I rowsort
SELECT + NULLIF ( + - 23, + + 78 ) * + 34
----
-782

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT 84 * - - COUNT( ALL - 32 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT 84 * - - COUNT ( ALL - 32 ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT 88 + - 79 + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-5646
SELECT 88 + - 79 + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5647
SELECT - 72 DIV + CAST( - 96 AS SIGNED ) * 55 - - 7 * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-5647
SELECT - 72 / + CAST ( - 96 AS INTEGER ) * 55 - - 7 * - COUNT ( * )
----
-7

query I rowsort
SELECT DISTINCT - COALESCE ( + 13, + ( 12 ) )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5649
SELECT ( - 63 ) + + CASE CAST( 26 AS SIGNED ) WHEN + 85 + + 5 * + COUNT( * ) THEN 51 ELSE NULL END + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT ( - 63 ) + + CASE CAST ( 26 AS INTEGER ) WHEN + 85 + + 5 * + COUNT ( * ) THEN 51 ELSE NULL END + 73
----
NULL

query I rowsort
SELECT ALL - 70 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT MAX( + 2 ) + - 91 - - ( - ( - COUNT( * ) ) + COUNT( * ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT MAX ( + 2 ) + - 91 - - ( - ( - COUNT ( * ) ) + COUNT ( * ) ) AS col1
----
-87

query II rowsort
SELECT 76 AS col0, + 71
----
76
71

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

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

query I rowsort
SELECT 18 + + 78
----
96

query I rowsort
SELECT 63 - 82 + - 4 AS col0
----
-23

query I rowsort
SELECT 73 + - 78
----
-5

query I rowsort
SELECT DISTINCT - 14 col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL 56 * - + 20 * 23 * + + COUNT( * ) * 55 - 74 AS col2
----
-1416874

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL 56 * - + 20 * 23 * + + COUNT ( * ) * 55 - 74 AS col2
----
-1416874

query I rowsort
SELECT 72 + - + NULLIF ( - - 32, + 32 ) / ( 75 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + + 99, 77, 86, - 55 - 96 ) * 28 + + 11 AS col0
----
2783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5661
SELECT 52 * - + COUNT( * ) DIV 67 * - - 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT 52 * - + COUNT ( * ) / 67 * - - 53 AS col0
----
0

query I rowsort
SELECT 88 * - 55 AS col0
----
-4840

query I rowsort
SELECT NULLIF ( - + 84, + 9 ) * - CASE 97 WHEN + ( 12 ) THEN NULL WHEN 93 THEN + 17 ELSE NULL END * 58 + + 72 + + 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT + 31 * + COUNT( * ) + + + 80 + + 17 DIV - 19 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 31 * + COUNT ( * ) + + + 80 + + 17 / - 19 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT DISTINCT - 54 * - COUNT( * ) * 5 * + + 57 AS col1
----
15390

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT - 54 * - COUNT ( * ) * 5 * + + 57 AS col1
----
15390

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT 78 * CASE + 58 WHEN 74 THEN + MIN( ALL - 55 ) WHEN ( 39 ) + 60 THEN - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT 78 * CASE + 58 WHEN 74 THEN + MIN ( ALL - 55 ) WHEN ( 39 ) + 60 THEN - 51 END
----
NULL

query I rowsort
SELECT ALL + 36 * - - 55 AS col2
----
1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5668
SELECT DISTINCT + + 63 DIV 24 + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + + 63 / 24 + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5669
SELECT + COUNT( + + 20 ) * - 35 DIV - + 34 DIV - ( COUNT( * ) ) + 11 * SUM( DISTINCT + 31 )
----
340

skipif mysql # not compatible
query I rowsort label-5669
SELECT + COUNT ( + + 20 ) * - 35 / - + 34 / - ( COUNT ( * ) ) + 11 * SUM ( DISTINCT + 31 )
----
340

query I rowsort
SELECT DISTINCT + - 89
----
-89

query I rowsort
SELECT ALL + + 88 * + 64 - - 95
----
5727

query I rowsort
SELECT ALL + 47 + + 87 * - 88 * 56 col2
----
-428689

query I rowsort
SELECT + - 31 * 22 * - 28 - 72 + 61 AS col2
----
19085

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT - 29 * + CASE + 74 WHEN + 64 * - ( + 15 / + 23 + 67 ) THEN 70 END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT - 29 * + CASE + 74 WHEN + 64 * - ( + 15 / + 23 + 67 ) THEN 70 END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + + COALESCE ( + SUM( + + 94 ), - + 88 ) + + COUNT( * ) * - 81
----
13

skipif mysql # not compatible
query I rowsort label-5675
SELECT + + COALESCE ( + SUM ( + + 94 ), - + 88 ) + + COUNT ( * ) * - 81
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT - - 50 * COUNT( * ) + 26 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5676
SELECT - - 50 * COUNT ( * ) + 26 AS col2
----
76

query I rowsort
SELECT + - 44 + - + 41
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + + 58 * + MIN( ALL + - 56 ) + - 94 AS col1
----
-3342

skipif mysql # not compatible
query I rowsort label-5678
SELECT + + 58 * + MIN ( ALL + - 56 ) + - 94 AS col1
----
-3342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5679
SELECT DISTINCT + 53 DIV - COALESCE ( + CASE - 19 WHEN - 4 * - 31 THEN COUNT( - 50 ) * + ( + 49 ) WHEN - 92 THEN NULL END, - 58 * - CAST( + 81 * COUNT( * ) AS SIGNED ) ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + 53 / - COALESCE ( + CASE - 19 WHEN - 4 * - 31 THEN COUNT ( - 50 ) * + ( + 49 ) WHEN - 92 THEN NULL END, - 58 * - CAST ( + 81 * COUNT ( * ) AS INTEGER ) ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT COALESCE ( 5, - COUNT( 7 ) ) * - 84 AS col1
----
-420

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT COALESCE ( 5, - COUNT ( 7 ) ) * - 84 AS col1
----
-420

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

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 62 + 27
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT - COUNT( * ) * - CASE - 90 WHEN + + CAST( NULL AS SIGNED ) THEN + 66 + - 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT - COUNT ( * ) * - CASE - 90 WHEN + + CAST ( NULL AS INTEGER ) THEN + 66 + - 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + + 18 + + 24 - COUNT( * ) + - COUNT( * ) + + 29
----
69

skipif mysql # not compatible
query I rowsort label-5684
SELECT + + 18 + + 24 - COUNT ( * ) + - COUNT ( * ) + + 29
----
69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT + 67 + + CAST( + + ( 51 ) AS SIGNED ) * + 97
----
5014

skipif mysql # not compatible
query I rowsort label-5686
SELECT + 67 + + CAST ( + + ( 51 ) AS INTEGER ) * + 97
----
5014

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - NULLIF ( 50, + - 79 + - 95 ) + - + 84 - + 10 * COUNT( * ) * + 8 AS col2
----
-214

skipif mysql # not compatible
query I rowsort label-5687
SELECT - NULLIF ( 50, + - 79 + - 95 ) + - + 84 - + 10 * COUNT ( * ) * + 8 AS col2
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT DISTINCT CASE + 2 WHEN COUNT( * ) + + + CASE - 3 WHEN 1 THEN + AVG ( ALL + 46 ) WHEN - COUNT( ALL 29 ) * 94 THEN NULL WHEN - 68 THEN - 11 END + SUM( DISTINCT + 94 ) THEN NULL WHEN - AVG ( ALL - 65 ) + MAX( + ( + 23 ) ) THEN + 21 * + CAST( NULL AS SIGNED ) + - 70 END * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT CASE + 2 WHEN COUNT ( * ) + + + CASE - 3 WHEN 1 THEN + AVG ( ALL + 46 ) WHEN - COUNT ( ALL 29 ) * 94 THEN NULL WHEN - 68 THEN - 11 END + SUM ( DISTINCT + 94 ) THEN NULL WHEN - AVG ( ALL - 65 ) + MAX ( + ( + 23 ) ) THEN + 21 * + CAST ( NULL AS INTEGER ) + - 70 END * 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT MAX( DISTINCT + - 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT MAX ( DISTINCT + - 43 ) col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5690
SELECT ALL 68 col2, 88 + + 71 + 27 - + + 83 + 88 DIV COUNT( * ) * - 45 AS col0
----
68
-3857

skipif mysql # not compatible
query II rowsort label-5690
SELECT ALL 68 col2, 88 + + 71 + 27 - + + 83 + 88 / COUNT ( * ) * - 45 AS col0
----
68
-3857

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

query I rowsort
SELECT ALL + 39 * + 60 * 98 col1
----
229320

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5694
SELECT ALL + 8 AS col1, + CAST( NULL AS SIGNED ) / + 13 / + 61 * - CASE 95 WHEN 25 + - AVG ( ALL + CAST( NULL AS SIGNED ) ) THEN CAST( NULL AS SIGNED ) WHEN ( ( ( + 96 ) ) ) THEN NULL END / COALESCE ( ( - 89 ), 31 * + CAST( - NULLIF ( COUNT( * ), 53 * + 99 ) AS SIGNED ) + 22 ) - + COUNT( * ) AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL + 8 AS col1, + CAST ( NULL AS INTEGER ) / + 13 / + 61 * - CASE 95 WHEN 25 + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) THEN CAST ( NULL AS INTEGER ) WHEN ( ( ( + 96 ) ) ) THEN NULL END / COALESCE ( ( - 89 ), 31 * + CAST ( - NULLIF ( COUNT ( * ), 53 * + 99 ) AS INTEGER ) + 22 ) - + COUNT ( * ) AS col1
----
8
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5695
SELECT - CAST( + ( - - 10 ) AS SIGNED ) DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5695
SELECT - CAST ( + ( - - 10 ) AS INTEGER ) / - 66 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT COUNT( * ) DIV + 84 * - 34 + + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-5696
SELECT COUNT ( * ) / + 84 * - 34 + + - 9
----
-9

query I rowsort
SELECT + ( NULLIF ( 70, + ( - 56 ) + 64 ) ) col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5698
SELECT + CAST( NULL AS DECIMAL ) / + + COALESCE ( + 96, - + CASE + 82 WHEN + 53 + + 98 THEN NULL WHEN COUNT( * ) THEN - ( COUNT( * ) ) * + ( 59 + - ( - 56 ) ) - + ( 49 ) END, ( COUNT( * ) ) * 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT + CAST ( NULL AS REAL ) / + + COALESCE ( + 96, - + CASE + 82 WHEN + 53 + + 98 THEN NULL WHEN COUNT ( * ) THEN - ( COUNT ( * ) ) * + ( 59 + - ( - 56 ) ) - + ( 49 ) END, ( COUNT ( * ) ) * 4 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - COUNT( * ) - CASE - - 14 WHEN SUM( 88 ) THEN - COALESCE ( COUNT( * ), 0 * ( + 63 ) ) * 74 + 29 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT - COUNT ( * ) - CASE - - 14 WHEN SUM ( 88 ) THEN - COALESCE ( COUNT ( * ), 0 * ( + 63 ) ) * 74 + 29 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL 23 * - + 6
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5702
SELECT DISTINCT 82 * COALESCE ( 58, COUNT( * ) DIV - 67 + COALESCE ( - 4 + 44, - 81 * - COUNT( * ) ), + CAST( - 42 AS SIGNED ) * 94 + CAST( NULL AS SIGNED ) * MAX( - 79 - 96 ) ) DIV 92
----
51

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT 82 * COALESCE ( 58, COUNT ( * ) / - 67 + COALESCE ( - 4 + 44, - 81 * - COUNT ( * ) ), + CAST ( - 42 AS INTEGER ) * 94 + CAST ( NULL AS INTEGER ) * MAX ( - 79 - 96 ) ) / 92
----
51

query I rowsort
SELECT DISTINCT 41 * - 54 AS col0
----
-2214

query I rowsort
SELECT ALL + - CASE + 70 WHEN - 42 THEN NULLIF ( - 78, - 89 ) END AS col0
----
NULL

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

query I rowsort
SELECT - 61 * 13 AS col0
----
-793

query I rowsort
SELECT + + 29 * - + 11
----
-319

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

query I rowsort
SELECT + - 70 * 22 + + + 61 AS col2
----
-1479

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT + + NULLIF ( - - COUNT( * ), - 33 ) AS col0, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-5711
SELECT + + NULLIF ( - - COUNT ( * ), - 33 ) AS col0, 93
----
1
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT ALL + - 22 * - + 89 + CAST( + 70 AS SIGNED )
----
2028

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + - 22 * - + 89 + CAST ( + 70 AS INTEGER )
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT - COUNT( ALL + + 78 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - COUNT ( ALL + + 78 ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT ALL - 55 * - SUM( - 58 ) + 80 DIV - 46 - + MIN( ALL + 61 ) * + 19
----
-4350

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - 55 * - SUM ( - 58 ) + 80 / - 46 - + MIN ( ALL + 61 ) * + 19
----
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT - COUNT( * ) * 28 DIV + - 50 + - 60 * + ( + 63 ) + - 97 col1
----
-3877

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT - COUNT ( * ) * 28 / + - 50 + - 60 * + ( + 63 ) + - 97 col1
----
-3877

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5717
SELECT + + 72 * - - 44 * - NULLIF ( - COUNT( * ), CAST( + 2 AS DECIMAL ) ) AS col0
----
3168

skipif mysql # not compatible
query I rowsort label-5717
SELECT + + 72 * - - 44 * - NULLIF ( - COUNT ( * ), CAST ( + 2 AS REAL ) ) AS col0
----
3168

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT + - 14 * 27 - 54 + 15 DIV - + 26
----
-432

skipif mysql # not compatible
query I rowsort label-5718
SELECT + - 14 * 27 - 54 + 15 / - + 26
----
-432

query I rowsort
SELECT - - 3 + + + ( 7 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT ALL 49 - - 41 AS col1, + 29 * + - 29 + + + MIN( DISTINCT + 10 ) col1
----
90
-831

skipif mysql # not compatible
query II rowsort label-5720
SELECT ALL 49 - - 41 AS col1, + 29 * + - 29 + + + MIN ( DISTINCT + 10 ) col1
----
90
-831

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

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

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

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

query I rowsort
SELECT ALL 78 * - 42
----
-3276

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5724
SELECT + CASE - 1 WHEN + MIN( - 62 ) THEN + - 99 ELSE + + 86 + CASE CAST( NULL AS DECIMAL ) WHEN 42 - + 14 THEN 40 / + 34 + ( ( SUM( DISTINCT 46 ) ) ) WHEN COUNT( * ) THEN NULL END * - 36 END + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT + CASE - 1 WHEN + MIN ( - 62 ) THEN + - 99 ELSE + + 86 + CASE CAST ( NULL AS REAL ) WHEN 42 - + 14 THEN 40 / + 34 + ( ( SUM ( DISTINCT 46 ) ) ) WHEN COUNT ( * ) THEN NULL END * - 36 END + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT + NULLIF ( - + 56, + + 38 ) * 23 * + - ( 57 ) * + 8 + NULLIF ( - COUNT( * ), 3 - + 34 ) col2
----
587327

skipif mysql # not compatible
query I rowsort label-5725
SELECT + NULLIF ( - + 56, + + 38 ) * 23 * + - ( 57 ) * + 8 + NULLIF ( - COUNT ( * ), 3 - + 34 ) col2
----
587327

query I rowsort
SELECT + ( 25 ) * 15 * + 16 * - ( 82 ) AS col0
----
-492000

query I rowsort
SELECT ALL 42 * + 85 AS col1
----
3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT + NULLIF ( MAX( - 80 ), + + CAST( - 30 AS SIGNED ) / - 28 ) + 74
----
-6

skipif mysql # not compatible
query I rowsort label-5728
SELECT + NULLIF ( MAX ( - 80 ), + + CAST ( - 30 AS INTEGER ) / - 28 ) + 74
----
-6

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

skipif mysql # not compatible
query I rowsort label-5729
SELECT + CAST ( - 85 AS INTEGER ) + + 18 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT + CASE + - 59 WHEN - CASE + + 67 WHEN + 11 * - - 6 / - CAST( NULL AS SIGNED ) + + COUNT( * ) + - 63 / CAST( 89 AS SIGNED ) THEN - 16 * 91 END + + ( COUNT( * ) ) THEN - 55 * CAST( + 4 AS SIGNED ) END * 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT + CASE + - 59 WHEN - CASE + + 67 WHEN + 11 * - - 6 / - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 63 / CAST ( 89 AS INTEGER ) THEN - 16 * 91 END + + ( COUNT ( * ) ) THEN - 55 * CAST ( + 4 AS INTEGER ) END * 52 AS col2
----
NULL

query I rowsort
SELECT + 30 + + 58 AS col1
----
88

query I rowsort
SELECT DISTINCT + 63 * - 74 * + 4 * - - 19 AS col0
----
-354312

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL 97 / - 11 + - + CASE MAX( ALL - - 63 ) WHEN COUNT( * ) * - 43 + + 81 THEN 93 + 14 WHEN - 61 + 87 THEN NULL END + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL 97 / - 11 + - + CASE MAX ( ALL - - 63 ) WHEN COUNT ( * ) * - 43 + + 81 THEN 93 + 14 WHEN - 61 + 87 THEN NULL END + 17 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT + 22 DIV + + 79 + + + ( + 89 ) DIV + 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5734
SELECT + 22 / + + 79 + + + ( + 89 ) / + 39 AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - MAX ( 23 )
----
-23

query II rowsort
SELECT ALL - 32, + 87 + + 98 AS col0
----
-32
185

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT + + MIN( ALL - - 72 ) col0, - ( - - COALESCE ( + 84, + 75 ) )
----
72
-84

skipif mysql # not compatible
query II rowsort label-5737
SELECT + + MIN ( ALL - - 72 ) col0, - ( - - COALESCE ( + 84, + 75 ) )
----
72
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + - 79 + - 87 + + 29 * COALESCE ( - 32, - 42 - - 8 ) + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + - 79 + - 87 + + 29 * COALESCE ( - 32, - 42 - - 8 ) + 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT + ( + 61 ) * + ( + COUNT( * ) ) + - 4 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5739
SELECT + ( + 61 ) * + ( + COUNT ( * ) ) + - 4 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT 37 DIV - - 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5740
SELECT 37 / - - 26 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5741
SELECT DISTINCT - MAX( - - 64 ) + - + CAST( NULL AS SIGNED ) + + - 47 + + COALESCE ( + 87, 66 / CAST( ( ( + 0 ) ) AS SIGNED ) - + 94 ) + - 65 * 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT - MAX ( - - 64 ) + - + CAST ( NULL AS INTEGER ) + + - 47 + + COALESCE ( + 87, 66 / CAST ( ( ( + 0 ) ) AS INTEGER ) - + 94 ) + - 65 * 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT ALL + + 58 + + - 47 + + 80 * + - COUNT( * ) col1, 11
----
-69
11

skipif mysql # not compatible
query II rowsort label-5742
SELECT ALL + + 58 + + - 47 + + 80 * + - COUNT ( * ) col1, 11
----
-69
11

query I rowsort
SELECT 86 * 72 + + - 68 AS col2
----
6124

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT 12 * + - MAX( ALL 29 ) * + 77
----
-26796

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT 12 * + - MAX ( ALL 29 ) * + 77
----
-26796

query I rowsort
SELECT DISTINCT + 36 + + 23 col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT ALL ( - 55 ) * + + CAST( NULL AS SIGNED ) * + + CASE - ( - COUNT( * ) ) WHEN 68 * ( 8 ) - 26 THEN NULL ELSE 22 * + CASE - 14 WHEN 17 / 86 THEN NULL ELSE + 3 * - 34 END + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL ( - 55 ) * + + CAST ( NULL AS INTEGER ) * + + CASE - ( - COUNT ( * ) ) WHEN 68 * ( 8 ) - 26 THEN NULL ELSE 22 * + CASE - 14 WHEN 17 / 86 THEN NULL ELSE + 3 * - 34 END + 60 END
----
NULL

query I rowsort
SELECT 63 + - 72 * + - 26 AS col1
----
1935

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

query II rowsort
SELECT + - 66, 50 + 44 AS col2
----
-66
94

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

query I rowsort
SELECT + 18 - - + 28
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT DISTINCT 37, ( COUNT( * ) ) * + 94 AS col2
----
37
94

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT 37, ( COUNT ( * ) ) * + 94 AS col2
----
37
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - 61 * + 57 * + 24 * - 84 + + + COUNT( * ) - 90 * 56 col0
----
7004593

skipif mysql # not compatible
query I rowsort label-5753
SELECT - 61 * + 57 * + 24 * - 84 + + + COUNT ( * ) - 90 * 56 col0
----
7004593

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL + CAST( - - 4 AS SIGNED ) * - - 54
----
216

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + CAST ( - - 4 AS INTEGER ) * - - 54
----
216

query I rowsort
SELECT DISTINCT - 39 * + 55 AS col2
----
-2145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT 72 * + CASE 47 WHEN + 30 THEN 36 END * - 76 * 78 * - CAST( 32 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT 72 * + CASE 47 WHEN + 30 THEN 36 END * - 76 * 78 * - CAST ( 32 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 43 - + 25
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT 91 DIV 96 * 22 * 69 * 44
----
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT 91 / 96 * 22 * 69 * 44
----
0

query I rowsort
SELECT 62 * + 96 * - 47
----
-279744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT 68 / + 86 * CASE - 12 WHEN - 79 THEN - CAST( + 31 AS SIGNED ) + + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT 68 / + 86 * CASE - 12 WHEN - 79 THEN - CAST ( + 31 AS INTEGER ) + + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT 95 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT 95 / - 71
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT 81 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-5764
SELECT 81 / + 37
----
2

query I rowsort
SELECT ALL - 22 + + 21 AS col0
----
-1

query I rowsort
SELECT DISTINCT + 68 + + ( 81 ) col2
----
149

query I rowsort
SELECT ALL 30 * + + ( 3 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT ALL CASE - + 55 WHEN + + 66 / ( CAST( NULL AS SIGNED ) ) + + + 7 THEN 89 WHEN + 21 THEN MIN( ALL 9 ) + ( 94 ) ELSE NULL END + 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL CASE - + 55 WHEN + + 66 / ( CAST ( NULL AS INTEGER ) ) + + + 7 THEN 89 WHEN + 21 THEN MIN ( ALL 9 ) + ( 94 ) ELSE NULL END + 26 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5769
SELECT DISTINCT - 95 DIV 13 AS col0, 59 * - 95 + + 72 * + + COUNT( * ) - + COUNT( * ) AS col1
----
-7
-5534

skipif mysql # not compatible
query II rowsort label-5769
SELECT DISTINCT - 95 / 13 AS col0, 59 * - 95 + + 72 * + + COUNT ( * ) - + COUNT ( * ) AS col1
----
-7
-5534

query I rowsort
SELECT 77 + + 14 * 28 AS col2
----
469

query I rowsort
SELECT ALL - 59 + - - 79 AS col2
----
20

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

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

query I rowsort
SELECT - 65 + 72
----
7

query I rowsort
SELECT ALL 39 + - 45 col0
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT DISTINCT - 66 - COUNT( * ) * + MAX( - 33 ) * + 63 * 10 AS col0
----
20724

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - 66 - COUNT ( * ) * + MAX ( - 33 ) * + 63 * 10 AS col0
----
20724

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

skipif mysql # not compatible
query II rowsort label-5777
SELECT + - ( - COUNT ( * ) ) col0, 21
----
1
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT ( NULLIF ( + ( + COUNT( * ) ), - 35 DIV - 31 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT ( NULLIF ( + ( + COUNT ( * ) ), - 35 / - 31 ) ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5780
SELECT + 43 * COUNT( * ) + - - 61 - - 48 DIV - 70 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-5780
SELECT + 43 * COUNT ( * ) + - - 61 - - 48 / - 70 AS col1
----
104

query I rowsort
SELECT - 72 * + 6
----
-432

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

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 55 * 85 + + 66
----
-4609

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL CASE + 95 WHEN 75 - - COUNT( * ) * - - 88 * + 96 THEN + ( + 57 ) WHEN 35 + COUNT( * ) THEN 7 * 7 + 3 * 32 END * - 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL CASE + 95 WHEN 75 - - COUNT ( * ) * - - 88 * + 96 THEN + ( + 57 ) WHEN 35 + COUNT ( * ) THEN 7 * 7 + 3 * 32 END * - 61 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5785
SELECT - 39 * - 51 * + 96 * + 27 DIV - COUNT( * ) AS col1, + COUNT( DISTINCT + 29 ) + + 93
----
-5155488
94

skipif mysql # not compatible
query II rowsort label-5785
SELECT - 39 * - 51 * + 96 * + 27 / - COUNT ( * ) AS col1, + COUNT ( DISTINCT + 29 ) + + 93
----
-5155488
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL + 80 * - COUNT( * ) - + 61 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + 80 * - COUNT ( * ) - + 61 AS col0
----
-141

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

query II rowsort
SELECT DISTINCT - 64 * 80 col2, - 28 - + ( + 64 ) AS col0
----
-5120
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL MAX( ALL + + 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL MAX ( ALL + + 21 ) AS col1
----
21

query II rowsort
SELECT DISTINCT 51, - 34 + 59 * ( - 29 ) AS col2
----
51
-1745

query I rowsort
SELECT DISTINCT 32 * - - 91 col0
----
2912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT COUNT( * ) + - 26 DIV + 28 * NULLIF ( + 24, 91 + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5792
SELECT COUNT ( * ) + - 26 / + 28 * NULLIF ( + 24, 91 + - COUNT ( * ) )
----
1

query I rowsort
SELECT 46 * - + 3
----
-138

query II rowsort
SELECT ALL 10, 71 AS col0
----
10
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT 53 + - 0 + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5795
SELECT 53 + - 0 + - COUNT ( * ) AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5796
SELECT 88 - 59 * + - 77 * + 60 + - 16 * 8, + CAST( NULL AS SIGNED ) AS col2
----
272540
NULL

skipif mysql # not compatible
query II rowsort label-5796
SELECT 88 - 59 * + - 77 * + 60 + - 16 * 8, + CAST ( NULL AS INTEGER ) AS col2
----
272540
NULL

query I rowsort
SELECT ( - 75 ) + ( 95 )
----
20

query I rowsort
SELECT ALL 31 + - 64
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT 78 + + COUNT( * ) * + 85 * - - 30 + + - COUNT( - 9 ) + + 68 + + - 74 * 26 AS col1
----
771

skipif mysql # not compatible
query I rowsort label-5799
SELECT 78 + + COUNT ( * ) * + 85 * - - 30 + + - COUNT ( - 9 ) + + 68 + + - 74 * 26 AS col1
----
771

query I rowsort
SELECT DISTINCT - 9 + - + 45 * - 5 + - - 81 + - + ( - 83 ) * + 13 * - 34
----
-36389

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT 65 + + + CASE + + 93 WHEN - + ( COUNT( + 45 ) ) THEN - 10 + + 52 + - 43 WHEN - 98 + - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT 65 + + + CASE + + 93 WHEN - + ( COUNT ( + 45 ) ) THEN - 10 + + 52 + - 43 WHEN - 98 + - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL - CASE 24 WHEN + 97 / - 13 + - COUNT( * ) THEN + ( - 90 ) + - + 84 END + 42 * 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - CASE 24 WHEN + 97 / - 13 + - COUNT ( * ) THEN + ( - 90 ) + - + 84 END + 42 * 35 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT - MIN( ALL - 47 ) + + 20 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5803
SELECT - MIN ( ALL - 47 ) + + 20 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL - 18 + COUNT( - 5 ) + + 8 * + - MIN( + - 67 )
----
519

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - 18 + COUNT ( - 5 ) + + 8 * + - MIN ( + - 67 )
----
519

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL + 43 * + 42 * 54 + COUNT( * ) * + + ( - 92 ) AS col2
----
97432

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + 43 * + 42 * 54 + COUNT ( * ) * + + ( - 92 ) AS col2
----
97432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT - + CAST( + - 97 AS SIGNED ) * - 90 * - - NULLIF ( + NULLIF ( + 2, + - ( + 2 ) * 94 + 85 ), 56 ) * 21 - - 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT - + CAST ( + - 97 AS INTEGER ) * - 90 * - - NULLIF ( + NULLIF ( + 2, + - ( + 2 ) * 94 + 85 ), 56 ) * 21 - - 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL + SUM( 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL + SUM ( 82 ) AS col0
----
82

query I rowsort
SELECT ALL + 47 * 91 * - - 7 + + 4
----
29943

query I rowsort
SELECT - + 42 + + 53 - - 59
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL + - CASE 32 WHEN + 36 THEN NULL WHEN + 62 * - CASE 40 WHEN COUNT( * ) THEN - - 98 WHEN - 51 THEN NULL ELSE NULL END * 53 + + 7 + 65 THEN + 78 * 39 ELSE COUNT( * ) + 30 * + COUNT( + 40 ) END * 82 - - 7 AS col1
----
-2535

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL + - CASE 32 WHEN + 36 THEN NULL WHEN + 62 * - CASE 40 WHEN COUNT ( * ) THEN - - 98 WHEN - 51 THEN NULL ELSE NULL END * 53 + + 7 + 65 THEN + 78 * 39 ELSE COUNT ( * ) + 30 * + COUNT ( + 40 ) END * 82 - - 7 AS col1
----
-2535

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT DISTINCT + COALESCE ( - 83, - 66 * + - ( ( + 28 ) ), AVG ( ALL - 94 ) ) DIV 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT + COALESCE ( - 83, - 66 * + - ( ( + 28 ) ), AVG ( ALL - 94 ) ) / 43 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT - 73 * + 83 + SUM( DISTINCT 65 )
----
-5994

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 73 * + 83 + SUM ( DISTINCT 65 )
----
-5994

query II rowsort
SELECT + + 93 col0, + CASE - 58 WHEN - 50 THEN 85 END AS col1
----
93
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT - + NULLIF ( + 82, - + COUNT( * ) ) DIV 97 + - + COALESCE ( - 35, - 81 ) * 40 AS col0
----
1400

skipif mysql # not compatible
query I rowsort label-5817
SELECT - + NULLIF ( + 82, - + COUNT ( * ) ) / 97 + - + COALESCE ( - 35, - 81 ) * 40 AS col0
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT + CASE - - 85 WHEN - 2 * - + 57 + + 67 + MIN( - + 86 ) + - 3 * 95 THEN - 4 * 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT + CASE - - 85 WHEN - 2 * - + 57 + + 67 + MIN ( - + 86 ) + - 3 * 95 THEN - 4 * 37 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL + COUNT( ALL 2 ) * - - 55 - - - 27 + - 26 + 97 + + - 79 * - COUNT( * ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + COUNT ( ALL 2 ) * - - 55 - - - 27 + - 26 + 97 + + - 79 * - COUNT ( * ) AS col1
----
178

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

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

query II rowsort
SELECT DISTINCT + 44 AS col0, 11 + 82 col1
----
44
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5822
SELECT + 32 + - 13 DIV COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5822
SELECT + 32 + - 13 / COUNT ( * )
----
19

query II rowsort
SELECT DISTINCT + 36 AS col0, + 49 AS col2
----
36
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT ALL + - COUNT( * ), - 95 col0
----
-1
-95

skipif mysql # not compatible
query II rowsort label-5824
SELECT ALL + - COUNT ( * ), - 95 col0
----
-1
-95

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

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

query I rowsort
SELECT ALL 36 * 61 + + 45
----
2241

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5827
SELECT + CASE 59 WHEN - - CAST( 54 AS DECIMAL ) THEN + 72 WHEN - 89 * - 48 THEN NULL WHEN + + 3 THEN NULL END + + 18 + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT + CASE 59 WHEN - - CAST ( 54 AS REAL ) THEN + 72 WHEN - 89 * - 48 THEN NULL WHEN + + 3 THEN NULL END + + 18 + + 63 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT DISTINCT 84 DIV + COALESCE ( - 67, - 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT 84 / + COALESCE ( - 67, - 69 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5829
SELECT - COALESCE ( + 58, + 48 DIV + 64 * - - 40 - + - COUNT( * ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5829
SELECT - COALESCE ( + 58, + 48 / + 64 * - - 40 - + - COUNT ( * ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL 60 + + - ( + 13 ) + ( + MIN( + 36 ) ) * + 88 AS col2
----
3215

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL 60 + + - ( + 13 ) + ( + MIN ( + 36 ) ) * + 88 AS col2
----
3215

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5831
SELECT ALL 19 * - COUNT( * ), + CAST( NULL AS DECIMAL ) AS col0
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-5831
SELECT ALL 19 * - COUNT ( * ), + CAST ( NULL AS REAL ) AS col0
----
-19
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5832
SELECT + COALESCE ( - 91, + 12 DIV + - COUNT( * ) + + CAST( - NULLIF ( COUNT( * ), + 22 ) AS SIGNED ) * 8 + + 50 * MIN( - 50 + + 41 ) + - 59 * 7, 72 ) DIV 80
----
-1

skipif mysql # not compatible
query I rowsort label-5832
SELECT + COALESCE ( - 91, + 12 / + - COUNT ( * ) + + CAST ( - NULLIF ( COUNT ( * ), + 22 ) AS INTEGER ) * 8 + + 50 * MIN ( - 50 + + 41 ) + - 59 * 7, 72 ) / 80
----
-1

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

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

query I rowsort
SELECT - COALESCE ( - 78, 66 ) AS col1
----
78

query I rowsort
SELECT ALL 13 + 10 + - 49 AS col2
----
-26

query I rowsort
SELECT ALL 25 + 67
----
92

query I rowsort
SELECT ALL 83 * + 66 AS col1
----
5478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5838
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV 8 * + 57 + - 8 * + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5838
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / 8 * + 57 + - 8 * + - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5839
SELECT + 71 * - - 19 * - 98 * - + 23 AS col0, ( 31 ) * - COUNT( * ) col0
----
3040646
-31

skipif mysql # not compatible
query II rowsort label-5839
SELECT + 71 * - - 19 * - 98 * - + 23 AS col0, ( 31 ) * - COUNT ( * ) col0
----
3040646
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT ALL 77 + COUNT( * ), - 93 AS col1
----
78
-93

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL 77 + COUNT ( * ), - 93 AS col1
----
78
-93

query I rowsort
SELECT + 83 - 41 * 3 * - 2 + - 74
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5842
SELECT + ( NULLIF ( - + 60, - 38 ) ) * COUNT( * ) * CAST( 37 AS SIGNED ) + + COUNT( * ) DIV + COUNT( * ) AS col2
----
-2219

skipif mysql # not compatible
query I rowsort label-5842
SELECT + ( NULLIF ( - + 60, - 38 ) ) * COUNT ( * ) * CAST ( 37 AS INTEGER ) + + COUNT ( * ) / + COUNT ( * ) AS col2
----
-2219

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL MIN( DISTINCT + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL MIN ( DISTINCT + 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT - ( - 79 ), + SUM( DISTINCT + + 68 ) * - ( - - 55 ) - - CASE + + NULLIF ( - - 41, - SUM( DISTINCT - 85 ) ) WHEN + 39 + 83 THEN + 15 END + - COUNT( * ) AS col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-5844
SELECT - ( - 79 ), + SUM ( DISTINCT + + 68 ) * - ( - - 55 ) - - CASE + + NULLIF ( - - 41, - SUM ( DISTINCT - 85 ) ) WHEN + 39 + 83 THEN + 15 END + - COUNT ( * ) AS col2
----
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT ALL MIN( DISTINCT - 16 ) AS col1, COUNT( * ) + COUNT( * ) AS col2
----
-16
2

skipif mysql # not compatible
query II rowsort label-5845
SELECT ALL MIN ( DISTINCT - 16 ) AS col1, COUNT ( * ) + COUNT ( * ) AS col2
----
-16
2

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

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

skipif mysql # not compatible
query I rowsort label-5847
SELECT - 41 * COUNT ( * )
----
-41

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

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL - SUM ( DISTINCT + - 7 ) + 85
----
92

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

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

query I rowsort
SELECT DISTINCT 76 - + 36
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT - - COUNT( DISTINCT 33 )
----
1

skipif mysql # not compatible
query I rowsort label-5851
SELECT - - COUNT ( DISTINCT 33 )
----
1

query I rowsort
SELECT ALL + - 51 * - 98
----
4998

query I rowsort
SELECT DISTINCT - 51 col2
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL + 91 * + MAX( ALL - 2 ) AS col2
----
-182

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL + 91 * + MAX ( ALL - 2 ) AS col2
----
-182

query I rowsort
SELECT + 57 + - 29 * 41
----
-1132

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT - - 80 * COUNT( * ) + 17 col2
----
97

skipif mysql # not compatible
query I rowsort label-5857
SELECT - - 80 * COUNT ( * ) + 17 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - 63 * + NULLIF ( + COUNT( * ), - 38 ) + 66
----
3

skipif mysql # not compatible
query I rowsort label-5858
SELECT - 63 * + NULLIF ( + COUNT ( * ), - 38 ) + 66
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT - + 24 / - NULLIF ( - CASE COALESCE ( - - CAST( - CASE ( - - 23 ) WHEN + COALESCE ( - 62, + 9, + AVG ( DISTINCT + 28 ) + + 8 / 63 ) THEN NULL WHEN + 0 THEN - 99 WHEN - 49 THEN NULL END AS SIGNED ), - COUNT( * ), + 64 ) WHEN CAST( NULL AS SIGNED ) * 37 + 4 THEN - 67 WHEN + 88 THEN + 17 * + 52 WHEN 11 + - 5 * MAX( 89 * + 73 ) THEN NULL END, - 80 ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT - + 24 / - NULLIF ( - CASE COALESCE ( - - CAST ( - CASE ( - - 23 ) WHEN + COALESCE ( - 62, + 9, + AVG ( DISTINCT + 28 ) + + 8 / 63 ) THEN NULL WHEN + 0 THEN - 99 WHEN - 49 THEN NULL END AS INTEGER ), - COUNT ( * ), + 64 ) WHEN CAST ( NULL AS INTEGER ) * 37 + 4 THEN - 67 WHEN + 88 THEN + 17 * + 52 WHEN 11 + - 5 * MAX ( 89 * + 73 ) THEN NULL END, - 80 ) + 80
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5862
SELECT ALL 63 * - 23 + 33 + - 91 / 61 + - 30 * - CAST( NULL AS SIGNED ) AS col1, + 21 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-5862
SELECT ALL 63 * - 23 + 33 + - 91 / 61 + - 30 * - CAST ( NULL AS INTEGER ) AS col1, + 21 AS col1
----
NULL
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5864
SELECT DISTINCT + SUM( ALL + - 83 ) AS col2, + MIN( ALL - CAST( + + 76 AS SIGNED ) ) DIV + 33 * + COUNT( ALL + 96 ) + - - 6
----
-83
4

skipif mysql # not compatible
query II rowsort label-5864
SELECT DISTINCT + SUM ( ALL + - 83 ) AS col2, + MIN ( ALL - CAST ( + + 76 AS INTEGER ) ) / + 33 * + COUNT ( ALL + 96 ) + - - 6
----
-83
4

query I rowsort
SELECT - COALESCE ( + 72, + - 77 ) + + 71 AS col0
----
-1

query I rowsort
SELECT ALL 74 * + 70 AS col0
----
5180

query I rowsort
SELECT - 43 * + 89 AS col0
----
-3827

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT ALL 54 DIV + 26 + + - 30 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL 54 / + 26 + + - 30 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT + - COALESCE ( - 70, + 58 + MIN( + 47 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5869
SELECT + - COALESCE ( - 70, + 58 + MIN ( + 47 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT DISTINCT 32 * - COALESCE ( + COUNT( * ), - + NULLIF ( + - 41, - - AVG ( DISTINCT - 46 ) ), + 68 ) + + 34 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT 32 * - COALESCE ( + COUNT ( * ), - + NULLIF ( + - 41, - - AVG ( DISTINCT - 46 ) ), + 68 ) + + 34 AS col0
----
2

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

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

query I rowsort
SELECT ( - 7 )
----
-7

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5875
SELECT + 14 + + + 36 * 51 DIV - - 20 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-5875
SELECT + 14 + + + 36 * 51 / - - 20 AS col0
----
105

query I rowsort
SELECT DISTINCT 78 + 7 + + 1
----
86

query II rowsort
SELECT 44 AS col1, 55 + - 14 + 15 AS col2
----
44
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL COUNT( * ) + - - ( - 44 ) + + 79 * + 32
----
2485

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL COUNT ( * ) + - - ( - 44 ) + + 79 * + 32
----
2485

query I rowsort
SELECT + 32 * + + 34 - + + 32
----
1056

query I rowsort
SELECT DISTINCT + 18 + - 95
----
-77

query I rowsort
SELECT DISTINCT + 9 + 26 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5882
SELECT DISTINCT 7 + + + 29 + - COUNT( * ) * + CAST( + - 36 AS SIGNED ) + - - 27, - COUNT( * ) AS col2
----
99
-1

skipif mysql # not compatible
query II rowsort label-5882
SELECT DISTINCT 7 + + + 29 + - COUNT ( * ) * + CAST ( + - 36 AS INTEGER ) + - - 27, - COUNT ( * ) AS col2
----
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5883
SELECT 23 - ( - 38 ) * - 6 + 82 + + 64 DIV + ( + COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-5883
SELECT 23 - ( - 38 ) * - 6 + 82 + + 64 / + ( + COUNT ( * ) )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT CAST( NULL AS SIGNED ) / - + 22 * + + 43 * + 9 * - 62 * + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT CAST ( NULL AS INTEGER ) / - + 22 * + + 43 * + 9 * - 62 * + - 82
----
NULL

query I rowsort
SELECT 6 + + 29 + + - 14 * - - 16
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ( - COUNT( * ) ) * - 94 * + ( + + 54 ) + - COUNT( * ) - - + COUNT( - 76 ) AS col0
----
5076

skipif mysql # not compatible
query I rowsort label-5886
SELECT ( - COUNT ( * ) ) * - 94 * + ( + + 54 ) + - COUNT ( * ) - - + COUNT ( - 76 ) AS col0
----
5076

query I rowsort
SELECT DISTINCT + 53 * + ( - 94 )
----
-4982

query I rowsort
SELECT - 2 + - 83
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - + NULLIF ( + COUNT( DISTINCT + 20 ), 30 * NULLIF ( - COUNT( * ), + ( - 74 ) + + 85 - - 91 * 86 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5889
SELECT - + NULLIF ( + COUNT ( DISTINCT + 20 ), 30 * NULLIF ( - COUNT ( * ), + ( - 74 ) + + 85 - - 91 * 86 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT + ( 16 ) DIV + ( ( - 83 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT + ( 16 ) / + ( ( - 83 ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 58 col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5892
SELECT ALL + CASE COALESCE ( - 73, COUNT( * ) * NULLIF ( - ( + - COALESCE ( + - 11, + 83 ) ), + 84 ) * ( 80 ) + - 90 ) WHEN + NULLIF ( CAST( - CAST( - 97 AS SIGNED ) AS SIGNED ), + 95 ) * + 78 + - 55 THEN NULL ELSE 11 + 82 END
----
93

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + CASE COALESCE ( - 73, COUNT ( * ) * NULLIF ( - ( + - COALESCE ( + - 11, + 83 ) ), + 84 ) * ( 80 ) + - 90 ) WHEN + NULLIF ( CAST ( - CAST ( - 97 AS INTEGER ) AS INTEGER ), + 95 ) * + 78 + - 55 THEN NULL ELSE 11 + 82 END
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT 17 * - COUNT( - + 91 ) * + 34 + - 82 AS col1
----
-660

skipif mysql # not compatible
query I rowsort label-5893
SELECT 17 * - COUNT ( - + 91 ) * + 34 + - 82 AS col1
----
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5894
SELECT CAST( - - 92 AS SIGNED ) + - COUNT( * ) + + 61 DIV + 77
----
91

skipif mysql # not compatible
query I rowsort label-5894
SELECT CAST ( - - 92 AS INTEGER ) + - COUNT ( * ) + + 61 / + 77
----
91

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - - SUM ( 14 )
----
14

query I rowsort
SELECT DISTINCT + 46 * - - ( + + 67 ) AS col0
----
3082

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL - 43 + + - 83 + + 89 + - MIN( + + 71 ) + + 62 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - 43 + + - 83 + + 89 + - MIN ( + + 71 ) + + 62 AS col0
----
-46

query I rowsort
SELECT DISTINCT + 85 * + 90
----
7650

query I rowsort
SELECT + 19 * - 43 * - - 13 + 81
----
-10540

query I rowsort
SELECT + ( - COALESCE ( 86, + NULLIF ( 26, - 77 + - + 13 + 70 ) ) ) * + - 85 AS col2
----
7310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT - 94 DIV - COALESCE ( + COUNT( DISTINCT + 79 ), - 0 )
----
94

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 94 / - COALESCE ( + COUNT ( DISTINCT + 79 ), - 0 )
----
94

query I rowsort
SELECT + + 18 * - 16 + - ( + 25 )
----
-313

query I rowsort
SELECT DISTINCT - 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL + 22 + - + COUNT( * ) * + - 30
----
52

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + 22 + - + COUNT ( * ) * + - 30
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5909
SELECT ALL - 17, - 4 - - + CAST( NULL AS SIGNED ) * 62 AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-5909
SELECT ALL - 17, - 4 - - + CAST ( NULL AS INTEGER ) * 62 AS col0
----
-17
NULL

query I rowsort
SELECT 22 * - + 26 + - 99 * + 90 AS col1
----
-9482

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT + COALESCE ( + 79, + - 46 * - COUNT( * ) * 80 * 49 + - 54 + + COUNT( * ) + - - 88 ) * + 84 - COUNT( * ) - 8 col2
----
6627

skipif mysql # not compatible
query I rowsort label-5911
SELECT + COALESCE ( + 79, + - 46 * - COUNT ( * ) * 80 * 49 + - 54 + + COUNT ( * ) + - - 88 ) * + 84 - COUNT ( * ) - 8 col2
----
6627

query I rowsort
SELECT ALL + 22 + - 33 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5913
SELECT ALL - COUNT( DISTINCT 13 ) DIV 79 + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL - COUNT ( DISTINCT 13 ) / 79 + - 98
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT 78 DIV - 76 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5914
SELECT 78 / - 76 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT COUNT( * ) + ( 77 )
----
78

skipif mysql # not compatible
query I rowsort label-5915
SELECT COUNT ( * ) + ( 77 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT + MAX( - + 23 ) * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT + MAX ( - + 23 ) * - COUNT ( * )
----
23

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

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

query I rowsort
SELECT 32 + + 79 + - 81 AS col1
----
30

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - + CASE 33 WHEN - - 71 THEN - + 56 WHEN - SUM( DISTINCT 71 ) + + + 96 THEN NULL WHEN - - COUNT( * ) THEN 8 ELSE 37 END AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5921
SELECT - + CASE 33 WHEN - - 71 THEN - + 56 WHEN - SUM ( DISTINCT 71 ) + + + 96 THEN NULL WHEN - - COUNT ( * ) THEN 8 ELSE 37 END AS col0
----
-37

query II rowsort
SELECT 7, + 18 AS col0
----
7
18

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

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

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

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

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

query I rowsort
SELECT ALL + 39 + + 76
----
115

query I rowsort
SELECT + 89 - 98 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5928
SELECT DISTINCT CAST( - + 75 AS SIGNED ) * + + 75 + - 77, - CAST( SUM( ALL + 99 ) AS SIGNED ) col2
----
-5702
-99

skipif mysql # not compatible
query II rowsort label-5928
SELECT DISTINCT CAST ( - + 75 AS INTEGER ) * + + 75 + - 77, - CAST ( SUM ( ALL + 99 ) AS INTEGER ) col2
----
-5702
-99

query I rowsort
SELECT DISTINCT 68 + 14
----
82

query I rowsort
SELECT ALL - 47 + - 53 AS col2
----
-100

query II rowsort
SELECT - - 1, + 67 AS col1
----
1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT + 16 * - + MAX( 56 ) AS col0
----
-896

skipif mysql # not compatible
query I rowsort label-5932
SELECT + 16 * - + MAX ( 56 ) AS col0
----
-896

query I rowsort
SELECT ALL + 57 * - + 37 + - 22 * - 56 * - 18 * + - 21 * - + 27 AS col0
----
-12575901

query II rowsort
SELECT ALL - 90 AS col2, - 68 + + + 19 * + 25 AS col0
----
-90
407

query I rowsort
SELECT - COALESCE ( + 50, + 30 ) - 84
----
-134

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

query I rowsort
SELECT + - 80 col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5938
SELECT DISTINCT + + 57 col0, COALESCE ( ( - 16 ), CAST( 81 AS SIGNED ) * - + COUNT( * ) * COUNT( * ), + - 94 * - + ( - 17 ) + + 17 ) col0
----
57
-16

skipif mysql # not compatible
query II rowsort label-5938
SELECT DISTINCT + + 57 col0, COALESCE ( ( - 16 ), CAST ( 81 AS INTEGER ) * - + COUNT ( * ) * COUNT ( * ), + - 94 * - + ( - 17 ) + + 17 ) col0
----
57
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL COUNT( * ) * - + 18 + - 29 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL COUNT ( * ) * - + 18 + - 29 AS col1
----
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT ALL 5 * + CAST( NULL AS SIGNED ) / 26 * 15 - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL 5 * + CAST ( NULL AS INTEGER ) / 26 * 15 - 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5942
SELECT ALL 74 * - 33 - + - ( + + CAST( - 99 AS SIGNED ) ) DIV - - 6
----
-2458

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL 74 * - 33 - + - ( + + CAST ( - 99 AS INTEGER ) ) / - - 6
----
-2458

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

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

query I rowsort
SELECT - 48 * - 44 col0
----
2112

query I rowsort
SELECT ALL 54 * - 12 AS col0
----
-648

query I rowsort
SELECT + 60 + - 53 - - + 15 AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5947
SELECT ALL + MAX( 20 ) col0, + 72
----
20
72

skipif mysql # not compatible
query II rowsort label-5947
SELECT ALL + MAX ( 20 ) col0, + 72
----
20
72

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5950
SELECT DISTINCT - COUNT( * ) DIV 96 DIV + COALESCE ( + + MIN( ALL 76 ), + 20 - - - 94, - 36 * 88 * - ( CAST( NULL AS SIGNED ) ) + 61 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - COUNT ( * ) / 96 / + COALESCE ( + + MIN ( ALL 76 ), + 20 - - - 94, - 36 * 88 * - ( CAST ( NULL AS INTEGER ) ) + 61 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5951
SELECT ALL - CAST( NULL AS DECIMAL ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL - CAST ( NULL AS REAL ) * - 27
----
NULL

query I rowsort
SELECT - 82 * + + 88 * - + 37
----
266992

query I rowsort
SELECT + 94 + + 1
----
95

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

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

query I rowsort
SELECT - 22 * + - 84 + + 35 * - + 27
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5956
SELECT ALL - - 65 * ( - - NULLIF ( - 16, 98 * + COUNT( * ) ) ) * - - CAST( NULL AS SIGNED ) / + ( NULLIF ( 94, 83 ) ) + 83 + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - - 65 * ( - - NULLIF ( - 16, 98 * + COUNT ( * ) ) ) * - - CAST ( NULL AS INTEGER ) / + ( NULLIF ( 94, 83 ) ) + 83 + 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT - ( COUNT( * ) ) + + COUNT( * ) + + + 14 * 31 col2, 52 * + 9 col0
----
434
468

skipif mysql # not compatible
query II rowsort label-5957
SELECT - ( COUNT ( * ) ) + + COUNT ( * ) + + + 14 * 31 col2, 52 * + 9 col0
----
434
468

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT + 7 - - COUNT( DISTINCT 71 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5958
SELECT + 7 - - COUNT ( DISTINCT 71 ) AS col0
----
8

query I rowsort
SELECT - + 32 + 94 * 32
----
2976

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

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

query I rowsort
SELECT ALL - - 73 + - ( + 46 ) * - 21
----
1039

query I rowsort
SELECT DISTINCT + 10 + - 46
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL + 88 + 60 - + COUNT( * ) * - 81
----
229

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + 88 + 60 - + COUNT ( * ) * - 81
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5964
SELECT - + SUM( ALL CAST( + - 29 AS SIGNED ) ) + - ( + - 30 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5964
SELECT - + SUM ( ALL CAST ( + - 29 AS INTEGER ) ) + - ( + - 30 ) AS col2
----
59

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

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

query I rowsort
SELECT + 23 + + 67 + - 0 AS col2
----
90

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

skipif mysql # not compatible
query II rowsort label-5967
SELECT + ( + + ( + - 19 ) ), - ( + ( COUNT ( * ) ) ) AS col0
----
-19
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT - 67 DIV ( + 93 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5968
SELECT - 67 / ( + 93 ) AS col2
----
0

query I rowsort
SELECT + 37 + + 92 + - 62 + + - 71 - - 19 * 4 * - + CASE 33 WHEN - 15 * - + 98 THEN - + COALESCE ( + 84, + 76 + 84 / + 52 ) * AVG ( ALL + 68 + - 37 ) END * 57
----
NULL

query I rowsort
SELECT ALL + 36 + - + ( - 71 ) - + 31 col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT ALL CAST( + + CASE + CAST( NULL AS SIGNED ) WHEN ( - - CAST( NULL AS SIGNED ) ) * - 36 * 28 + - 52 THEN + 3 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL CAST ( + + CASE + CAST ( NULL AS INTEGER ) WHEN ( - - CAST ( NULL AS INTEGER ) ) * - 36 * 28 + - 52 THEN + 3 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT ALL - COALESCE ( + 13, - 47 ) DIV + 29 + - 55 * + COUNT( - 18 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - COALESCE ( + 13, - 47 ) / + 29 + - 55 * + COUNT ( - 18 ) col1
----
-55

query I rowsort
SELECT DISTINCT - - ( + 5 ) * 93
----
465

query I rowsort
SELECT DISTINCT 2 * - 85 * + - 2 * 46
----
15640

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5975
SELECT ALL 1 DIV + 36 - + COUNT( * ) AS col0, + 10 * + - 31 * + + 79
----
-1
-24490

skipif mysql # not compatible
query II rowsort label-5975
SELECT ALL 1 / + 36 - + COUNT ( * ) AS col0, + 10 * + - 31 * + + 79
----
-1
-24490

query I rowsort
SELECT DISTINCT 19 * + + 44 * 66
----
55176

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT + 19 DIV + + 88 - 24 + 27
----
3

skipif mysql # not compatible
query I rowsort label-5977
SELECT + 19 / + + 88 - 24 + 27
----
3

query I rowsort
SELECT + 49 * - + 55 AS col1
----
-2695

query I rowsort
SELECT + 25 * 45
----
1125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5980
SELECT 96 * + - 44 + - - CAST( NULL AS SIGNED ) AS col0, + 23 * - 19 * 27, 76 AS col0
----
NULL
-11799
76

skipif mysql # not compatible
query III rowsort label-5980
SELECT 96 * + - 44 + - - CAST ( NULL AS INTEGER ) AS col0, + 23 * - 19 * 27, 76 AS col0
----
NULL
-11799
76

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

query II rowsort
SELECT ALL + 80 AS col2, 15
----
80
15

query I rowsort
SELECT + 89 * - 69 AS col2
----
-6141

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

query I rowsort
SELECT ALL 0 * + 4
----
0

query I rowsort
SELECT + 65 - + 50 * - 79 AS col1
----
4015

query I rowsort
SELECT - 18 * - 23 * - - 45 + + ( 27 )
----
18657

query I rowsort
SELECT ALL 47 * 17
----
799

query I rowsort
SELECT + 53 * 6
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + 59 * - MAX( ALL - ( - 90 ) )
----
-5310

skipif mysql # not compatible
query I rowsort label-5990
SELECT + 59 * - MAX ( ALL - ( - 90 ) )
----
-5310

query I rowsort
SELECT CASE - + 90 WHEN - 47 THEN - 25 WHEN - + 35 * - - 52 THEN NULL ELSE NULL END AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5993
SELECT ALL - MIN( 14 ) * + COUNT( * ) * + - ( CAST( + + 63 AS SIGNED ) ) + - 28 + 57, COUNT( * ) AS col1
----
911
1

skipif mysql # not compatible
query II rowsort label-5993
SELECT ALL - MIN ( 14 ) * + COUNT ( * ) * + - ( CAST ( + + 63 AS INTEGER ) ) + - 28 + 57, COUNT ( * ) AS col1
----
911
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5996
SELECT ALL 0 * + CAST( + 76 AS SIGNED ) + - MAX( ALL + + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL 0 * + CAST ( + 76 AS INTEGER ) + - MAX ( ALL + + 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5997
SELECT ALL - 43 * + - COUNT( * ) + - + CASE + - ( + + 18 ) WHEN - 15 THEN COUNT( * ) * + CAST( NULL AS SIGNED ) * + 16 + + 9 + + 87 ELSE NULL END AS col0, + 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-5997
SELECT ALL - 43 * + - COUNT ( * ) + - + CASE + - ( + + 18 ) WHEN - 15 THEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 16 + + 9 + + 87 ELSE NULL END AS col0, + 69
----
NULL
69

query II rowsort
SELECT DISTINCT 46, - 32 AS col2
----
46
-32

query I rowsort
SELECT - CASE - 0 WHEN 99 THEN NULL ELSE - 2 END * 46 AS col1
----
92

query I rowsort
SELECT ALL + 64 * 27 * - 13 + 65 + - + ( + 67 )
----
-22466

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT DISTINCT + + 58 DIV - 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + + 58 / - 39 AS col0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6004
SELECT - - CAST( NULL AS SIGNED ) * 65 * 34 * 87 + - 88 - - 0 + ( - 28 ) / + + 71 AS col0, 2 AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6004
SELECT - - CAST ( NULL AS INTEGER ) * 65 * 34 * 87 + - 88 - - 0 + ( - 28 ) / + + 71 AS col0, 2 AS col2
----
NULL
2

query I rowsort
SELECT ALL + 14 * - 58 AS col0
----
-812

query II rowsort
SELECT ALL 36, 51 AS col2
----
36
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - - MAX( ALL + 13 ) - 95
----
-82

skipif mysql # not compatible
query I rowsort label-6007
SELECT - - MAX ( ALL + 13 ) - 95
----
-82

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

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

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

query II rowsort
SELECT ALL 3 AS col0, + 73 AS col2
----
3
73

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

skipif mysql # not compatible
query II rowsort label-6011
SELECT ALL - 99 AS col1, - COUNT ( * ) AS col1
----
-99
-1

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

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

query I rowsort
SELECT ALL - - 53 - - 66
----
119

query I rowsort
SELECT 71 * - + 40 * - - 63 AS col1
----
-178920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6015
SELECT 7 * - 66 AS col1, COUNT( + CAST( NULL AS DECIMAL ) ) / - + 99 / 30 + 40 + 28 * + + 91 * 64 + CAST( NULL AS SIGNED )
----
-462
NULL

skipif mysql # not compatible
query II rowsort label-6015
SELECT 7 * - 66 AS col1, COUNT ( + CAST ( NULL AS REAL ) ) / - + 99 / 30 + 40 + 28 * + + 91 * 64 + CAST ( NULL AS INTEGER )
----
-462
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL - CASE - - 98 WHEN - + 4 * + 61 - - 36 + - 75 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - CASE - - 98 WHEN - + 4 * + 61 - - 36 + - 75 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT - 65 * 87 * + - 59 * 4 - + 0 * + 81 * - + MAX( 41 ) + - COUNT( * ) AS col2, 65 - - 74 AS col2
----
1334579
139

skipif mysql # not compatible
query II rowsort label-6017
SELECT - 65 * 87 * + - 59 * 4 - + 0 * + 81 * - + MAX ( 41 ) + - COUNT ( * ) AS col2, 65 - - 74 AS col2
----
1334579
139

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT DISTINCT - COALESCE ( 26, - CASE - + 91 WHEN - 30 DIV + 31 THEN NULL WHEN COUNT( * ) THEN + 53 - + 78 WHEN - - 59 THEN NULL END DIV COUNT( * ) DIV - - ( - 30 ) + COUNT( * ) * COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT - COALESCE ( 26, - CASE - + 91 WHEN - 30 / + 31 THEN NULL WHEN COUNT ( * ) THEN + 53 - + 78 WHEN - - 59 THEN NULL END / COUNT ( * ) / - - ( - 30 ) + COUNT ( * ) * COUNT ( * ) )
----
-26

query I rowsort
SELECT ALL - COALESCE ( 99, 39 ) AS col1
----
-99

query I rowsort
SELECT DISTINCT + 28 * + 81 AS col1
----
2268

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT DISTINCT 36 + COALESCE ( - + 81, - 13, + 79 DIV - 15 )
----
-45

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT 36 + COALESCE ( - + 81, - 13, + 79 / - 15 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT - 14 * - 68 * + 33 + + COUNT( * ) AS col0
----
31417

skipif mysql # not compatible
query I rowsort label-6023
SELECT - 14 * - 68 * + 33 + + COUNT ( * ) AS col0
----
31417

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL + COUNT( * ) * + 61 col1
----
61

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + COUNT ( * ) * + 61 col1
----
61

query I rowsort
SELECT DISTINCT - 56 * + + 8 col1
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT COUNT( * ) + + COALESCE ( 36, - 40 * + 91 + + + 82 ) * + 86
----
3097

skipif mysql # not compatible
query I rowsort label-6026
SELECT COUNT ( * ) + + COALESCE ( 36, - 40 * + 91 + + + 82 ) * + 86
----
3097

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

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

query I rowsort
SELECT 22 + - + 50 + - 78 + - + 73 * + 65 * + + 27 col0
----
-128221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT NULLIF ( + + 24, + 70 ) / - 65 / + 32 * CASE - - 9 WHEN - + COALESCE ( - - 93, - 19 / + - CAST( + - 11 AS SIGNED ) / - - 94 - - 54 * - CAST( ( ( - 93 ) ) * COUNT( * ) AS SIGNED ) ) * - 8 + + 27 THEN + 34 + COUNT( * ) / 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT NULLIF ( + + 24, + 70 ) / - 65 / + 32 * CASE - - 9 WHEN - + COALESCE ( - - 93, - 19 / + - CAST ( + - 11 AS INTEGER ) / - - 94 - - 54 * - CAST ( ( ( - 93 ) ) * COUNT ( * ) AS INTEGER ) ) * - 8 + + 27 THEN + 34 + COUNT ( * ) / 74 END
----
NULL

query I rowsort
SELECT ALL 35 + 83 + - - 79
----
197

query II rowsort
SELECT DISTINCT 52 + - 67 AS col2, + 92
----
-15
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6032
SELECT DISTINCT + - COUNT( * ) + + CAST( NULL AS DECIMAL ) + - 69 * - 54 + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT + - COUNT ( * ) + + CAST ( NULL AS REAL ) + - 69 * - 54 + + + COUNT ( * ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL 72 + - COUNT( * ) + - ( + + 42 ) * - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL 72 + - COUNT ( * ) + - ( + + 42 ) * - COUNT ( * )
----
113

query I rowsort
SELECT 30 + + - 79 AS col0
----
-49

query I rowsort
SELECT ALL - 10 + + 50
----
40

query I rowsort
SELECT - 81 col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + 85 * COUNT( * ) + - 65
----
20

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + 85 * COUNT ( * ) + - 65
----
20

query II rowsort
SELECT 55 + - 71 AS col0, - 90 AS col0
----
-16
-90

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

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

query I rowsort
SELECT + 35 + ( + + 42 ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL ( + 15 ) - - 10 * - + CAST( NULL AS SIGNED ) * - 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL ( + 15 ) - - 10 * - + CAST ( NULL AS INTEGER ) * - 9 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT DISTINCT - 66 - - COUNT( * ) AS col1, + 88 AS col0
----
-65
88

skipif mysql # not compatible
query II rowsort label-6043
SELECT DISTINCT - 66 - - COUNT ( * ) AS col1, + 88 AS col0
----
-65
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6045
SELECT MAX( ALL 83 ) DIV 2 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6045
SELECT MAX ( ALL 83 ) / 2 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6046
SELECT DISTINCT + COUNT( * ) / - 50 + 9 + - NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + COUNT ( * ) / - 50 + 9 + - NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) col1
----
NULL

query I rowsort
SELECT 16 * 51 AS col2
----
816

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT ALL - 5 * + 12 DIV - 77 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - 5 * + 12 / - 77 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6051
SELECT 97 DIV 19 DIV - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6051
SELECT 97 / 19 / - - COUNT ( * )
----
5

query II rowsort
SELECT ALL + 41 * ( - - 54 ) AS col0, 83 AS col2
----
2214
83

query I rowsort
SELECT 6 * - 70
----
-420

query I rowsort
SELECT DISTINCT + 32 * 57
----
1824

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

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

query I rowsort
SELECT 33 * - 41 + + 75
----
-1278

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT - CASE - 31 WHEN - 24 * MIN( ALL - ( - + 79 ) ) - + - 65 + - 20 + 91 THEN 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - CASE - 31 WHEN - 24 * MIN ( ALL - ( - + 79 ) ) - + - 65 + - 20 + 91 THEN 47 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL + ( - 44 ) * + + 40 + - + ( + AVG ( - 89 ) ) + - + CASE + + 3 WHEN + - COUNT( - - 28 ) * - 84 THEN - + 83 * - 23 - - + 72 - 73 END * + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + ( - 44 ) * + + 40 + - + ( + AVG ( - 89 ) ) + - + CASE + + 3 WHEN + - COUNT ( - - 28 ) * - 84 THEN - + 83 * - 23 - - + 72 - 73 END * + 57 AS col2
----
NULL

query I rowsort
SELECT 22 * + 20 AS col1
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + 23 * 87 + + 28 + - 31 + + + COUNT( * ) + + 48
----
2047

skipif mysql # not compatible
query I rowsort label-6060
SELECT + 23 * 87 + + 28 + - 31 + + + COUNT ( * ) + + 48
----
2047

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT + COUNT( * ) * - 72 + + - 9 * + + 5 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + COUNT ( * ) * - 72 + + - 9 * + + 5 AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL - 70 + COUNT( ALL ( 37 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - 70 + COUNT ( ALL ( 37 ) ) AS col1
----
-69

query I rowsort
SELECT ALL + 79 * - 98
----
-7742

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT DISTINCT + 98 DIV - + 22
----
-4

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT + 98 / - + 22
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL - - COUNT( * ) + - + ( + - 93 ) + COUNT( * ) * + 26 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - - COUNT ( * ) + - + ( + - 93 ) + COUNT ( * ) * + 26 AS col2
----
120

query I rowsort
SELECT ALL + 80 * - ( 53 )
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT - COUNT( DISTINCT - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-6068
SELECT - COUNT ( DISTINCT - 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL + - 53 * MIN( - 63 ) + + 76 + + ( + 34 )
----
3449

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + - 53 * MIN ( - 63 ) + + 76 + + ( + 34 )
----
3449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6070
SELECT 21 + + 87 + CASE - 27 WHEN + 92 + + - COUNT( * ) THEN - + 31 - - COALESCE ( - + 71, + 17 * + 72 + + 61 + 11 * + + 69 - + + CASE - 41 WHEN - 1 THEN 70 WHEN + 49 THEN + 36 END * COALESCE ( - 88 / 61, - 80 * 11 ), ( ( CASE - MIN( 46 ) WHEN COUNT( * ) THEN 62 END ) ) * - 68 + 19 ) WHEN + 27 * 82 + CAST( NULL AS SIGNED ) THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT 21 + + 87 + CASE - 27 WHEN + 92 + + - COUNT ( * ) THEN - + 31 - - COALESCE ( - + 71, + 17 * + 72 + + 61 + 11 * + + 69 - + + CASE - 41 WHEN - 1 THEN 70 WHEN + 49 THEN + 36 END * COALESCE ( - 88 / 61, - 80 * 11 ), ( ( CASE - MIN ( 46 ) WHEN COUNT ( * ) THEN 62 END ) ) * - 68 + 19 ) WHEN + 27 * 82 + CAST ( NULL AS INTEGER ) THEN NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT + 67 * - 62 - + + 49
----
-4203

query I rowsort
SELECT ALL + 28 * - 72
----
-2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT + - 17 * 49 * + - 26 + + + 71 * - 63 * + COALESCE ( - 82, + + COUNT( ALL - + ( - 42 ) ), + ( NULLIF ( - - 65, + COALESCE ( - - COUNT( * ), - 14 + 89, CAST( NULL AS SIGNED ) ) ) ) )
----
388444

skipif mysql # not compatible
query I rowsort label-6073
SELECT + - 17 * 49 * + - 26 + + + 71 * - 63 * + COALESCE ( - 82, + + COUNT ( ALL - + ( - 42 ) ), + ( NULLIF ( - - 65, + COALESCE ( - - COUNT ( * ), - 14 + 89, CAST ( NULL AS INTEGER ) ) ) ) )
----
388444

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT - MIN( - - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6074
SELECT - MIN ( - - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + 47 * + + 79 + + COUNT( * ) * 54 AS col0
----
3767

skipif mysql # not compatible
query I rowsort label-6075
SELECT + 47 * + + 79 + + COUNT ( * ) * 54 AS col0
----
3767

query I rowsort
SELECT ALL - 49 col1
----
-49

query I rowsort
SELECT ALL + 62 - - 7
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + CASE 2 WHEN SUM( DISTINCT - - 29 ) * 86 THEN - 86 WHEN + + 13 THEN + 26 ELSE 69 * 12 + + 27 + + - ( + 4 ) END
----
851

skipif mysql # not compatible
query I rowsort label-6078
SELECT + CASE 2 WHEN SUM ( DISTINCT - - 29 ) * 86 THEN - 86 WHEN + + 13 THEN + 26 ELSE 69 * 12 + + 27 + + - ( + 4 ) END
----
851

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

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

skipif mysql # not compatible
query I rowsort label-6080
SELECT - - 82 - ( + COUNT ( * ) ) * + 65 AS col1
----
17

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6082
SELECT + - CAST( NULL AS DECIMAL ) * - ( - MIN( - - 35 ) ) * - COUNT( * ) / + - 30 / - 6 + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT + - CAST ( NULL AS REAL ) * - ( - MIN ( - - 35 ) ) * - COUNT ( * ) / + - 30 / - 6 + - 53
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6084
SELECT + NULLIF ( + - 73, - + CAST( + 52 AS SIGNED ) ) - - - 52 AS col0, + 24 AS col2
----
-125
24

skipif mysql # not compatible
query II rowsort label-6084
SELECT + NULLIF ( + - 73, - + CAST ( + 52 AS INTEGER ) ) - - - 52 AS col0, + 24 AS col2
----
-125
24

query I rowsort
SELECT + 36 + + 53 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6086
SELECT - COUNT( * ) AS col1, + 25 * - MIN( + 1 ) * + 48 * + 37 * + 34 + CAST( - - 31 AS SIGNED ) AS col1, + + 31 col0
----
-1
-1509569
31

skipif mysql # not compatible
query III rowsort label-6086
SELECT - COUNT ( * ) AS col1, + 25 * - MIN ( + 1 ) * + 48 * + 37 * + 34 + CAST ( - - 31 AS INTEGER ) AS col1, + + 31 col0
----
-1
-1509569
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT + 96 * - 98 AS col0, + NULLIF ( - 36, 76 / - 14 * - + NULLIF ( + 65, - 6 ) + + + 90 + 76 + - 35 + 75 * - COALESCE ( - + 45, - + 46 * + 70 + + COUNT( * ) * 9 ) ) + ( 8 ) AS col0
----
-9408
-28

skipif mysql # not compatible
query II rowsort label-6087
SELECT + 96 * - 98 AS col0, + NULLIF ( - 36, 76 / - 14 * - + NULLIF ( + 65, - 6 ) + + + 90 + 76 + - 35 + 75 * - COALESCE ( - + 45, - + 46 * + 70 + + COUNT ( * ) * 9 ) ) + ( 8 ) AS col0
----
-9408
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL COUNT( ALL - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL COUNT ( ALL - 10 ) AS col0
----
1

query I rowsort
SELECT + 66 - 60 - + 7 + + 20 AS col2
----
19

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

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) / - 57
----
0

query I rowsort
SELECT DISTINCT 89 + - 21 + - - 83 AS col2
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL - CAST( NULL AS SIGNED ) * + 7 / COUNT( * ) + + - 64 - - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - CAST ( NULL AS INTEGER ) * + 7 / COUNT ( * ) + + - 64 - - 38 AS col1
----
NULL

query I rowsort
SELECT 47 * 51 + ( 72 ) AS col0
----
2469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT - 6 DIV - + COUNT( * ) + + COALESCE ( + - COUNT( * ), + - 12, + 47 * + 61 * 82 * - MAX( - - 50 ) ) * - 92 * + 10 + + ( 89 ) + + 70
----
1085

skipif mysql # not compatible
query I rowsort label-6095
SELECT - 6 / - + COUNT ( * ) + + COALESCE ( + - COUNT ( * ), + - 12, + 47 * + 61 * 82 * - MAX ( - - 50 ) ) * - 92 * + 10 + + ( 89 ) + + 70
----
1085

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT ALL - 19 * - NULLIF ( 54, 17 ) + + 12 + - COUNT( * ) DIV - 30 + 72 * - - 71
----
6150

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL - 19 * - NULLIF ( 54, 17 ) + + 12 + - COUNT ( * ) / - 30 + 72 * - - 71
----
6150

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT ALL + 35 * - 41 + + - COUNT( * ) + + - 16 * + CASE + 85 WHEN + 9 + + 30 * + 17 THEN + 87 * 78 + + COUNT( * ) * - 30 * - - 29 ELSE NULL END col0, - ( + CASE - 58 WHEN 52 * 61 THEN NULL WHEN + COUNT( * ) THEN 22 + 17 END )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6098
SELECT ALL + 35 * - 41 + + - COUNT ( * ) + + - 16 * + CASE + 85 WHEN + 9 + + 30 * + 17 THEN + 87 * 78 + + COUNT ( * ) * - 30 * - - 29 ELSE NULL END col0, - ( + CASE - 58 WHEN 52 * 61 THEN NULL WHEN + COUNT ( * ) THEN 22 + 17 END )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT ALL 75 * + CAST( NULL AS SIGNED ) + + + ( + 32 ) + + + ( + 71 ) + - 67 + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL 75 * + CAST ( NULL AS INTEGER ) + + + ( + 32 ) + + + ( + 71 ) + - 67 + - 20
----
NULL

query I rowsort
SELECT ALL ( + 38 ) * ( + - 68 ) + - + 14 col2
----
-2598

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6102
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + SUM( ALL - 70 ) + + 78 * + - 44 + + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + SUM ( ALL - 70 ) + + 78 * + - 44 + + + 84
----
NULL

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

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

query I rowsort
SELECT + 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL + 94 * NULLIF ( - CASE + - 97 WHEN 56 * - CASE + - 35 WHEN - 13 THEN NULL WHEN AVG ( COALESCE ( + 56, - - 60 ) ) * + 75 * - + COUNT( * ) * + ( - 87 ) + 87 THEN - 38 ELSE NULL END + 86 * 14 THEN NULL ELSE - 50 END, 68 + + ( - COUNT( * ) ) ) + + 3 col1
----
4703

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + 94 * NULLIF ( - CASE + - 97 WHEN 56 * - CASE + - 35 WHEN - 13 THEN NULL WHEN AVG ( COALESCE ( + 56, - - 60 ) ) * + 75 * - + COUNT ( * ) * + ( - 87 ) + 87 THEN - 38 ELSE NULL END + 86 * 14 THEN NULL ELSE - 50 END, 68 + + ( - COUNT ( * ) ) ) + + 3 col1
----
4703

query I rowsort
SELECT + - 29 * - 86
----
2494

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

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

query II rowsort
SELECT - 92, 96 AS col0
----
-92
96

query I rowsort
SELECT - 90 + - 68 col2
----
-158

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

query I rowsort
SELECT + 17 * - 88 - + + 30 * - - 7
----
-1706

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6113
SELECT ALL - + 47 / 71 - + 73 + + 68 * - + 37 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - + 47 / 71 - + 73 + + 68 * - + 37 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT - + 97 + - + MIN( - CAST( + 17 AS SIGNED ) ) + - + 24 + 51 - - 52 * - 68
----
-3589

skipif mysql # not compatible
query I rowsort label-6114
SELECT - + 97 + - + MIN ( - CAST ( + 17 AS INTEGER ) ) + - + 24 + 51 - - 52 * - 68
----
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - - COUNT( - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-6115
SELECT - - COUNT ( - 17 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT + + 7 * 53 * - 63 + - CAST( 45 AS SIGNED ) AS col1
----
-23418

skipif mysql # not compatible
query I rowsort label-6116
SELECT + + 7 * 53 * - 63 + - CAST ( 45 AS INTEGER ) AS col1
----
-23418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT - + 53 / + - 74 * CAST( NULL AS SIGNED ) * + 91 * + + 90 + - COALESCE ( 48, + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT - + 53 / + - 74 * CAST ( NULL AS INTEGER ) * + 91 * + + 90 + - COALESCE ( 48, + 67 )
----
NULL

query I rowsort
SELECT + 67 * 19
----
1273

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

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

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

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

query I rowsort
SELECT + 81 * + + 24
----
1944

query I rowsort
SELECT - ( + + 36 ) + + 74 AS col0
----
38

query I rowsort
SELECT + 90 - + 74 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT - - 45 * ( - MIN( ALL - + 11 ) ) * - NULLIF ( ( - 3 ), - CAST( NULL AS SIGNED ) * - 74 ) AS col0
----
1485

skipif mysql # not compatible
query I rowsort label-6124
SELECT - - 45 * ( - MIN ( ALL - + 11 ) ) * - NULLIF ( ( - 3 ), - CAST ( NULL AS INTEGER ) * - 74 ) AS col0
----
1485

query I rowsort
SELECT - 34 + + + 0 * 16
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6126
SELECT ALL - 81 + + 91 + 71 * - - 39 * 79 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - 81 + + 91 + 71 * - - 39 * 79 + - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6127
SELECT DISTINCT + + 92 * + ( - + COALESCE ( - - 94, - + 30 DIV + 15 * + MAX( DISTINCT - 64 ) ) ) * 85 + - NULLIF ( 55, NULLIF ( - - 42, 26 ) ) * + 28 + + SUM( 34 ) DIV - 6
----
-736625

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT + + 92 * + ( - + COALESCE ( - - 94, - + 30 / + 15 * + MAX ( DISTINCT - 64 ) ) ) * 85 + - NULLIF ( 55, NULLIF ( - - 42, 26 ) ) * + 28 + + SUM ( 34 ) / - 6
----
-736625

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6129
SELECT ALL CAST( CASE - ( + MAX( - 83 ) ) WHEN - 0 * - 76 + COALESCE ( - NULLIF ( + 12, - 21 ), 34 * ( + 28 ) + - + 21 ) THEN + 7 WHEN 18 THEN 3 + 72 ELSE NULL END AS SIGNED ) + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL CAST ( CASE - ( + MAX ( - 83 ) ) WHEN - 0 * - 76 + COALESCE ( - NULLIF ( + 12, - 21 ), 34 * ( + 28 ) + - + 21 ) THEN + 7 WHEN 18 THEN 3 + 72 ELSE NULL END AS INTEGER ) + + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + 90 + + COUNT( * ) * - SUM( ALL + 21 )
----
69

skipif mysql # not compatible
query I rowsort label-6130
SELECT + 90 + + COUNT ( * ) * - SUM ( ALL + 21 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL + SUM( 21 ) + - + 99 + + - MAX( + + ( - - 10 ) ) * 24 / - NULLIF ( 22, + 77 ) * + CASE - 77 WHEN - + MIN( 58 ) + + 30 THEN - COUNT( * ) WHEN - 51 + 8 THEN 33 END * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + SUM ( 21 ) + - + 99 + + - MAX ( + + ( - - 10 ) ) * 24 / - NULLIF ( 22, + 77 ) * + CASE - 77 WHEN - + MIN ( 58 ) + + 30 THEN - COUNT ( * ) WHEN - 51 + 8 THEN 33 END * + 28
----
NULL

query II rowsort
SELECT + 66 + + 12, 47 col2
----
78
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL COUNT( ALL 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL COUNT ( ALL 76 ) AS col0
----
1

query II rowsort
SELECT - 37 * + - 72 AS col0, - 18 AS col0
----
2664
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT + 42 + - - 74 - - CAST( NULL AS SIGNED ) * - - 60 * - - ( + 87 ) - + 63 + + COUNT( * ) + - 25 + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT + 42 + - - 74 - - CAST ( NULL AS INTEGER ) * - - 60 * - - ( + 87 ) - + 63 + + COUNT ( * ) + - 25 + - 79
----
NULL

query I rowsort
SELECT ALL 48 + 33 AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT ALL COALESCE ( - 1, + - NULLIF ( - 16, CAST( 43 AS SIGNED ) ) * - 25 ) + - 10 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL COALESCE ( - 1, + - NULLIF ( - 16, CAST ( 43 AS INTEGER ) ) * - 25 ) + - 10 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT DISTINCT 83 + - 12 DIV + 39 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT 83 + - 12 / + 39 AS col0
----
83

query I rowsort
SELECT + 48 + + 20 AS col0
----
68

query I rowsort
SELECT + 6 * - - 69 * + 32 AS col2
----
13248

query I rowsort
SELECT - ( - 24 )
----
24

query I rowsort
SELECT ALL + ( 94 ) + - + 92
----
2

query I rowsort
SELECT + 76 * ( + 68 )
----
5168

query I rowsort
SELECT ALL 82 * + - 24 AS col1
----
-1968

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

skipif mysql # not compatible
query I rowsort label-6145
SELECT + ( 59 ) + COUNT ( * ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6146
SELECT ALL 8 / - - CAST( NULL AS SIGNED ) - - 9 * 47 + - 91 * - + ( + + 9 ) + + - 61 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 8 / - - CAST ( NULL AS INTEGER ) - - 9 * 47 + - 91 * - + ( + + 9 ) + + - 61 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT + 40 * COALESCE ( + 23, + SUM( DISTINCT + - 57 ) ) * 66
----
60720

skipif mysql # not compatible
query I rowsort label-6147
SELECT + 40 * COALESCE ( + 23, + SUM ( DISTINCT + - 57 ) ) * 66
----
60720

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

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

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

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

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

query I rowsort
SELECT ALL + 98 * - 78 * - + 89 AS col0
----
680316

onlyif mysql # aggregate syntax: 
query II rowsort label-6152
SELECT ALL + 81 * - COALESCE ( + 7, - COUNT( * ) ) * - + 41 AS col0, + 83 AS col2
----
23247
83

skipif mysql # not compatible
query II rowsort label-6152
SELECT ALL + 81 * - COALESCE ( + 7, - COUNT ( * ) ) * - + 41 AS col0, + 83 AS col2
----
23247
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ALL - - 86 * + 81 + - 52 * + COUNT( ALL - + 4 ) AS col0
----
6914

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - - 86 * + 81 + - 52 * + COUNT ( ALL - + 4 ) AS col0
----
6914

query I rowsort
SELECT DISTINCT - CASE + NULLIF ( + 64, + 73 ) WHEN 66 + + + 77 * + + 8 THEN + 75 ELSE NULL END * 59
----
NULL

query I rowsort
SELECT 33 * + 93
----
3069

query I rowsort
SELECT NULLIF ( - + 63, - 20 / 60 )
----
-63

query I rowsort
SELECT ALL - 46 * - + ( - - 42 ) + + 57
----
1989

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

query I rowsort
SELECT ( - 3 ) + - 21
----
-24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6161
SELECT + 4 * - + ( - + COALESCE ( - 29, + + 98 + + SUM( + 11 ) + 96 ) ) AS col2, + 83 DIV 95, + COUNT( * ) + + - 51 col1
----
-116
0
-50

skipif mysql # not compatible
query III rowsort label-6161
SELECT + 4 * - + ( - + COALESCE ( - 29, + + 98 + + SUM ( + 11 ) + 96 ) ) AS col2, + 83 / 95, + COUNT ( * ) + + - 51 col1
----
-116
0
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6162
SELECT DISTINCT - + MIN( - 78 ) + + - CAST( NULL AS DECIMAL ) + 46 + - 51 / MAX( 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT - + MIN ( - 78 ) + + - CAST ( NULL AS REAL ) + 46 + - 51 / MAX ( 24 )
----
NULL

query I rowsort
SELECT DISTINCT 23 col2
----
23

query I rowsort
SELECT DISTINCT - 73 * - 83 AS col0
----
6059

query I rowsort
SELECT DISTINCT - 1 + - 57 AS col2
----
-58

query I rowsort
SELECT DISTINCT - ( 36 ) + + - 59
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT 6 - 69 + + 25 + - 16 * + - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-6167
SELECT 6 - 69 + + 25 + - 16 * + - COUNT ( * )
----
-22

query I rowsort
SELECT 16 - - 38
----
54

query II rowsort
SELECT ALL 10 AS col2, + 32 * - 29
----
10
-928

query I rowsort
SELECT 25 + + 24 AS col1
----
49

query I rowsort
SELECT ALL - 11 * ( 11 )
----
-121

query I rowsort
SELECT 60 - - 69
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT ALL + 21 - + 57 + - CAST( 22 AS SIGNED ) + - + 10 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + 21 - + 57 + - CAST ( 22 AS INTEGER ) + - + 10 AS col0
----
-68

query II rowsort
SELECT DISTINCT 36, + 91 * - + 71 AS col1
----
36
-6461

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + - 21 * - + MIN( DISTINCT + 13 ) * COUNT( * ) - + COUNT( * )
----
272

skipif mysql # not compatible
query I rowsort label-6176
SELECT + - 21 * - + MIN ( DISTINCT + 13 ) * COUNT ( * ) - + COUNT ( * )
----
272

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6178
SELECT ALL - 78, - 2 * 63 / CASE - - CAST( NULL AS SIGNED ) WHEN + - 48 + + 81 + + 20 THEN + 39 + 2 ELSE NULL END col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL - 78, - 2 * 63 / CASE - - CAST ( NULL AS INTEGER ) WHEN + - 48 + + 81 + + 20 THEN + 39 + 2 ELSE NULL END col0
----
-78
NULL

query I rowsort
SELECT - 86 * ( - 33 ) + - 35 + - - 31 * - 1 * - 56
----
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL + COUNT( * ) * - - COUNT( DISTINCT - 90 ) * + 88 * - 96
----
-8448

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + COUNT ( * ) * - - COUNT ( DISTINCT - 90 ) * + 88 * - 96
----
-8448

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

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

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

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

query II rowsort
SELECT ALL - 55, + 96 AS col1
----
-55
96

query II rowsort
SELECT ALL - + 78 AS col0, 57
----
-78
57

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

skipif mysql # not compatible
query I rowsort label-6185
SELECT - 52 / + - COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6186
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + CASE 15 WHEN - - 49 * + 13 + - ( + + 63 ) * 56 THEN COUNT( * ) ELSE NULL END / - NULLIF ( + 17, + ( NULLIF ( + 79, - MIN( DISTINCT - 62 ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + CASE 15 WHEN - - 49 * + 13 + - ( + + 63 ) * 56 THEN COUNT ( * ) ELSE NULL END / - NULLIF ( + 17, + ( NULLIF ( + 79, - MIN ( DISTINCT - 62 ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( - 76, 58 )
----
-76

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

query II rowsort
SELECT DISTINCT - 65, 46 AS col0
----
-65
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT ALL + 25 DIV - - MAX( ALL - 60 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + 25 / - - MAX ( ALL - 60 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6191
SELECT + 89 + + ( + COUNT( + CAST( 31 AS DECIMAL ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-6191
SELECT + 89 + + ( + COUNT ( + CAST ( 31 AS REAL ) ) )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6192
SELECT 68 * - 94 DIV COUNT( ALL + + 53 ) AS col2, - 68 * - 13
----
-6392
884

skipif mysql # not compatible
query II rowsort label-6192
SELECT 68 * - 94 / COUNT ( ALL + + 53 ) AS col2, - 68 * - 13
----
-6392
884

query II rowsort
SELECT ALL - + 63 AS col0, + 47 * - 82
----
-63
-3854

onlyif mysql # aggregate syntax: 
query II rowsort label-6194
SELECT ALL COUNT( * ) + + 83 - - + 52, 71 * COUNT( * ) + + COUNT( DISTINCT 74 ) AS col1
----
136
72

skipif mysql # not compatible
query II rowsort label-6194
SELECT ALL COUNT ( * ) + + 83 - - + 52, 71 * COUNT ( * ) + + COUNT ( DISTINCT 74 ) AS col1
----
136
72

query I rowsort
SELECT ALL - + ( - NULLIF ( + 56, 82 ) ) + ( - - ( - - 88 ) ) * - + 65 * 72 AS col2
----
-411784

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

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

query I rowsort
SELECT ALL + 73 + - 33 AS col2
----
40

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

query I rowsort
SELECT ALL ( 87 ) + 21 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT NULLIF ( 65, + MAX( DISTINCT + 1 ) ) + + - 56 + + 10 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6200
SELECT NULLIF ( 65, + MAX ( DISTINCT + 1 ) ) + + - 56 + + 10 AS col1
----
19

query II rowsort
SELECT 51 - - 59, 33 + + ( - 67 ) col2
----
110
-34

query I rowsort
SELECT 25 + - - 77 AS col2
----
102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT DISTINCT COUNT( DISTINCT + 2 ) * COALESCE ( - - 73, + 33 )
----
73

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT COUNT ( DISTINCT + 2 ) * COALESCE ( - - 73, + 33 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6205
SELECT 41 * CASE - 74 WHEN + 9 + - + 16 + NULLIF ( - CAST( NULL AS SIGNED ), - - 84 + - + 30 ) THEN NULL ELSE + - COUNT( * ) DIV 43 END
----
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT 41 * CASE - 74 WHEN + 9 + - + 16 + NULLIF ( - CAST ( NULL AS INTEGER ), - - 84 + - + 30 ) THEN NULL ELSE + - COUNT ( * ) / 43 END
----
0

query I rowsort
SELECT ALL + 25 * 36
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT 60 + + 3 * + COUNT( + + 41 ) AS col1, 48 AS col2
----
63
48

skipif mysql # not compatible
query II rowsort label-6207
SELECT 60 + + 3 * + COUNT ( + + 41 ) AS col1, 48 AS col2
----
63
48

query I rowsort
SELECT ( - 25 ) * 39
----
-975

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

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

query I rowsort
SELECT 70 + + - 89 AS col0
----
-19

query I rowsort
SELECT DISTINCT + 34 * NULLIF ( + - 20, + 18 * - - 6 + + ( - CASE 85 WHEN 48 THEN + 3 - + 69 + - 46 / + - CASE - 99 WHEN - 7 * + + 52 + 78 THEN NULL WHEN - - 5 THEN NULL ELSE 54 END END ) ) * + 73 AS col0
----
-49640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6212
SELECT - CAST( NULL AS DECIMAL ) / - - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT - CAST ( NULL AS REAL ) / - - 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6213
SELECT DISTINCT + ( 17 ) * + ( - 14 ) AS col1, CAST( NULL AS DECIMAL ) + - ( + - 29 ) + - - 32 + 78 * + - MIN( - 59 ) - - + NULLIF ( ( + + 6 ), 79 * - 71 ) AS col1
----
-238
NULL

skipif mysql # not compatible
query II rowsort label-6213
SELECT DISTINCT + ( 17 ) * + ( - 14 ) AS col1, CAST ( NULL AS REAL ) + - ( + - 29 ) + - - 32 + 78 * + - MIN ( - 59 ) - - + NULLIF ( ( + + 6 ), 79 * - 71 ) AS col1
----
-238
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6214
SELECT ALL + - 32 DIV + COUNT( * ) - 11 - - - 58 - - + 79
----
-22

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + - 32 / + COUNT ( * ) - 11 - - - 58 - - + 79
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6215
SELECT - CAST( - 30 AS SIGNED ) DIV + MIN( DISTINCT 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT - CAST ( - 30 AS INTEGER ) / + MIN ( DISTINCT 96 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT DISTINCT - 48 DIV + 34 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT - 48 / + 34 col2
----
-1

query I rowsort
SELECT DISTINCT + ( + NULLIF ( + 58, + 87 ) )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT + - 10 + 59 AS col2, + COUNT( * )
----
49
1

skipif mysql # not compatible
query II rowsort label-6218
SELECT + - 10 + 59 AS col2, + COUNT ( * )
----
49
1

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

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

query I rowsort
SELECT ALL 27 * - 26 + + - 50 AS col2
----
-752

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6222
SELECT DISTINCT + CAST( - 75 AS SIGNED ) * 66 + 49 + 91 + ( - - 21 ) + + + 43 * + - 46, - CAST( + 96 AS SIGNED ) + - 82 + - 54 * 52 * - + 74 AS col0
----
-6767
207614

skipif mysql # not compatible
query II rowsort label-6222
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) * 66 + 49 + 91 + ( - - 21 ) + + + 43 * + - 46, - CAST ( + 96 AS INTEGER ) + - 82 + - 54 * 52 * - + 74 AS col0
----
-6767
207614

query I rowsort
SELECT DISTINCT - 16 * - - 23 + - - 98
----
-270

query II rowsort
SELECT DISTINCT + + ( + - 12 ) AS col1, - 82 AS col1
----
-12
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT ALL - 8 * - NULLIF ( - + COUNT( * ), 99 * 42 * - 76 + - 63 / + 8 ) + + - 37, - 59 AS col1
----
-45
-59

skipif mysql # not compatible
query II rowsort label-6225
SELECT ALL - 8 * - NULLIF ( - + COUNT ( * ), 99 * 42 * - 76 + - 63 / + 8 ) + + - 37, - 59 AS col1
----
-45
-59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT + - 8 DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT + - 8 / 32 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + - 75 * - - 75 * + + COUNT( * ) * + 51 + + + 29 * + ( 86 )
----
-284381

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + - 75 * - - 75 * + + COUNT ( * ) * + 51 + + + 29 * + ( 86 )
----
-284381

query I rowsort
SELECT COALESCE ( + - 95, + - 46 )
----
-95

query I rowsort
SELECT + - 64 * + - CASE - 8 WHEN 19 THEN NULL WHEN - - 75 THEN + ( - 67 ) END + 22 - + + 6 AS col2
----
NULL

query II rowsort
SELECT ALL + 80, - 16 * - 62 AS col1
----
80
992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6232
SELECT + 31 DIV NULLIF ( 96, - COUNT( * ) ) * - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT + 31 / NULLIF ( 96, - COUNT ( * ) ) * - 39 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6233
SELECT + COALESCE ( 52, + - COUNT( * ) DIV - + 23 + + 1 + - 80 * + 25, CAST( NULL AS SIGNED ) ) + - + COALESCE ( 81, - + 44 * 38 ) + 63 AS col1, - MAX( DISTINCT - 58 ) AS col0
----
34
58

skipif mysql # not compatible
query II rowsort label-6233
SELECT + COALESCE ( 52, + - COUNT ( * ) / - + 23 + + 1 + - 80 * + 25, CAST ( NULL AS INTEGER ) ) + - + COALESCE ( 81, - + 44 * 38 ) + 63 AS col1, - MAX ( DISTINCT - 58 ) AS col0
----
34
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL - COUNT( * ) * - + 42 * + 68 - 14 AS col2
----
2842

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL - COUNT ( * ) * - + 42 * + 68 - 14 AS col2
----
2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6236
SELECT + CASE - - SUM( 85 ) WHEN + 39 + - - COUNT( * ) THEN CAST( + + 54 AS SIGNED ) WHEN 83 THEN + 25 - 30 ELSE ( 77 ) * - - 32 * - 28 + + + 7 + + - SUM( + CAST( 60 AS SIGNED ) ) END col0, - ( - 5 ) * - COUNT( DISTINCT 38 ) AS col1
----
-69045
-5

skipif mysql # not compatible
query II rowsort label-6236
SELECT + CASE - - SUM ( 85 ) WHEN + 39 + - - COUNT ( * ) THEN CAST ( + + 54 AS INTEGER ) WHEN 83 THEN + 25 - 30 ELSE ( 77 ) * - - 32 * - 28 + + + 7 + + - SUM ( + CAST ( 60 AS INTEGER ) ) END col0, - ( - 5 ) * - COUNT ( DISTINCT 38 ) AS col1
----
-69045
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT + 1 DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-6237
SELECT + 1 / + - 80
----
0

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

query I rowsort
SELECT ALL + 48 * + 14 * + 47 AS col0
----
31584

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL NULLIF ( - 11, + 32 * - MIN( ALL 60 ) / 79 + + NULLIF ( + COUNT( * ), - 45 + - + COUNT( * ) ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL NULLIF ( - 11, + 32 * - MIN ( ALL 60 ) / 79 + + NULLIF ( + COUNT ( * ), - 45 + - + COUNT ( * ) ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL 59 - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL 59 - - COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT ( + 47 ) * - + 38
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + COUNT( * ) - + 93 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6243
SELECT + COUNT ( * ) - + 93 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL 53 * + COUNT( DISTINCT 62 ) * - + 63 AS col2
----
-3339

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL 53 * + COUNT ( DISTINCT 62 ) * - + 63 AS col2
----
-3339

query I rowsort
SELECT + 17 + - 45
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL CASE + - 71 WHEN + MIN( - + 45 ) THEN NULL WHEN - NULLIF ( COUNT( * ), 10 + - + 23 - + 3 + + 30 * + + 42 ) * - 12 * - - 34 * 18 THEN NULL ELSE + CASE + ( - 33 ) WHEN - 65 + + 80 * - 3 THEN 67 WHEN 8 THEN NULL END / + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL CASE + - 71 WHEN + MIN ( - + 45 ) THEN NULL WHEN - NULLIF ( COUNT ( * ), 10 + - + 23 - + 3 + + 30 * + + 42 ) * - 12 * - - 34 * 18 THEN NULL ELSE + CASE + ( - 33 ) WHEN - 65 + + 80 * - 3 THEN 67 WHEN 8 THEN NULL END / + 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + COALESCE ( + - 91, + - 32 ) * - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6247
SELECT + COALESCE ( + - 91, + - 32 ) * - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT + 70 + - 50 AS col2
----
20

query I rowsort
SELECT ALL NULLIF ( - 73, + 43 + - + 48 ) AS col0
----
-73

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT - + 30 - + 30 DIV + - 41
----
-30

skipif mysql # not compatible
query I rowsort label-6252
SELECT - + 30 - + 30 / + - 41
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL + 19 * + - 47 + COALESCE ( + - COUNT( * ), MAX( - 36 ), - 1 ) AS col0
----
-894

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + 19 * + - 47 + COALESCE ( + - COUNT ( * ), MAX ( - 36 ), - 1 ) AS col0
----
-894

query I rowsort
SELECT - 77 * 30 AS col0
----
-2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT ALL CASE - 85 WHEN - - NULLIF ( COUNT( * ), - 0 ) / CAST( 46 AS SIGNED ) + + 34 THEN + - 31 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL CASE - 85 WHEN - - NULLIF ( COUNT ( * ), - 0 ) / CAST ( 46 AS INTEGER ) + + 34 THEN + - 31 * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6256
SELECT DISTINCT - - COALESCE ( + COUNT( ALL 55 ), + 72, + - 8 * - 21 + + 85 * - CAST( NULL AS SIGNED ), + COUNT( * ) ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT - - COALESCE ( + COUNT ( ALL 55 ), + 72, + - 8 * - 21 + + 85 * - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + 50
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6257
SELECT ALL - CASE + 49 WHEN + + CASE + CAST( - - COALESCE ( - CAST( - CASE - 24 WHEN - COUNT( * ) THEN 90 * - NULLIF ( + 63, - COUNT( * ) ) + - 69 WHEN + COUNT( * ) + + 50 * + 95 THEN NULL ELSE NULL END AS DECIMAL ), - - 67 * + 31 - - + 48 ) AS SIGNED ) WHEN 7 * 7 THEN NULL ELSE + COALESCE ( COALESCE ( 57, 61 ), - 16 + + 70, + 89 * 17 ) END THEN COUNT( * ) * 24 - COALESCE ( - 25 - - 79, - 99 - 87, + 3 ) END + + 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL - CASE + 49 WHEN + + CASE + CAST ( - - COALESCE ( - CAST ( - CASE - 24 WHEN - COUNT ( * ) THEN 90 * - NULLIF ( + 63, - COUNT ( * ) ) + - 69 WHEN + COUNT ( * ) + + 50 * + 95 THEN NULL ELSE NULL END AS REAL ), - - 67 * + 31 - - + 48 ) AS INTEGER ) WHEN 7 * 7 THEN NULL ELSE + COALESCE ( COALESCE ( 57, 61 ), - 16 + + 70, + 89 * 17 ) END THEN COUNT ( * ) * 24 - COALESCE ( - 25 - - 79, - 99 - 87, + 3 ) END + + 87 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - 44 * + + COUNT( * ) * - 73 col0
----
3212

skipif mysql # not compatible
query I rowsort label-6258
SELECT - 44 * + + COUNT ( * ) * - 73 col0
----
3212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6259
SELECT ALL + 47 / COUNT( + - ( - 40 ) ) + + 29 + - 90 + 97 / 26 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL + 47 / COUNT ( + - ( - 40 ) ) + + 29 + - 90 + 97 / 26 * CAST ( NULL AS INTEGER ) col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + COUNT ( * ) / 45
----
0

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

query I rowsort
SELECT 99 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - 73 + + + ( - MIN( ALL 88 ) )
----
-161

skipif mysql # not compatible
query I rowsort label-6263
SELECT - 73 + + + ( - MIN ( ALL 88 ) )
----
-161

query II rowsort
SELECT + 15 AS col0, 17 col2
----
15
17

query I rowsort
SELECT + 47 * 92
----
4324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT - 43 * + - CAST( NULL AS SIGNED ) + - 55 * 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT - 43 * + - CAST ( NULL AS INTEGER ) + - 55 * 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL - MIN( + 5 ) * + 31 * + 85 - - 50
----
-13125

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - MIN ( + 5 ) * + 31 * + 85 - - 50
----
-13125

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT ALL + COUNT( 48 ) AS col2, - 40 * 85
----
1
-3400

skipif mysql # not compatible
query II rowsort label-6269
SELECT ALL + COUNT ( 48 ) AS col2, - 40 * 85
----
1
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - 60 * + SUM( DISTINCT - 30 ) AS col0
----
1800

skipif mysql # not compatible
query I rowsort label-6270
SELECT - 60 * + SUM ( DISTINCT - 30 ) AS col0
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6271
SELECT ALL + 25, + 68 DIV COUNT( * ) + 50 AS col0
----
25
118

skipif mysql # not compatible
query II rowsort label-6271
SELECT ALL + 25, + 68 / COUNT ( * ) + 50 AS col0
----
25
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT + MAX( ALL + 68 ) + + - 96 DIV - + 68
----
69

skipif mysql # not compatible
query I rowsort label-6272
SELECT + MAX ( ALL + 68 ) + + - 96 / - + 68
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + MAX( DISTINCT 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6273
SELECT + MAX ( DISTINCT 86 ) AS col2
----
86

query I rowsort
SELECT 34 * + 73 col1
----
2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT 70 + + 5 + - NULLIF ( - ( + CAST( - + CAST( + 45 AS SIGNED ) AS SIGNED ) ), - NULLIF ( + - 37, - COUNT( * ) - + 2 ) ) + + 22 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6275
SELECT 70 + + 5 + - NULLIF ( - ( + CAST ( - + CAST ( + 45 AS INTEGER ) AS INTEGER ) ), - NULLIF ( + - 37, - COUNT ( * ) - + 2 ) ) + + 22 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT 89 * 96 DIV + 97 + + 50 col2
----
138

skipif mysql # not compatible
query I rowsort label-6276
SELECT 89 * 96 / + 97 + + 50 col2
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT 76 DIV + 29 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6277
SELECT 76 / + 29 AS col2
----
2

query I rowsort
SELECT 60 * + 43
----
2580

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT ALL 6 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL 6 / + 42
----
0

query II rowsort
SELECT - 80 col1, 82
----
-80
82

query I rowsort
SELECT ALL 76 + - + 34 * - 66
----
2320

query II rowsort
SELECT - 83 col2, 55 AS col2
----
-83
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL 58 + + COUNT( * ) + + 46 + 99 * + 86 * + CASE + ( + + COUNT( * ) ) WHEN COUNT( * ) THEN NULL WHEN - - COUNT( * ) THEN 88 END + 89 * 21 + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL 58 + + COUNT ( * ) + + 46 + 99 * + 86 * + CASE + ( + + COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) THEN 88 END + 89 * 21 + - 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6284
SELECT SUM( - 52 ) + + + 31 DIV - 77
----
-52

skipif mysql # not compatible
query I rowsort label-6284
SELECT SUM ( - 52 ) + + + 31 / - 77
----
-52

query I rowsort
SELECT ALL 70 * - 85
----
-5950

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT DISTINCT COUNT( * ) + + - 20 col1, - 80
----
-19
-80

skipif mysql # not compatible
query II rowsort label-6286
SELECT DISTINCT COUNT ( * ) + + - 20 col1, - 80
----
-19
-80

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

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

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

query I rowsort
SELECT ALL - - 60 * - + 16
----
-960

query II rowsort
SELECT 53 + - - 85 AS col1, + 45 AS col0
----
138
45

query I rowsort
SELECT ALL - 12 col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT COALESCE ( + - 22, - 71 * - - 80 ) * CASE - 44 WHEN + 13 + + - 11 THEN + + 42 ELSE + AVG ( 74 ) + - + CAST( NULL AS SIGNED ) END * - - 4 + + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT COALESCE ( + - 22, - 71 * - - 80 ) * CASE - 44 WHEN + 13 + + - 11 THEN + + 42 ELSE + AVG ( 74 ) + - + CAST ( NULL AS INTEGER ) END * - - 4 + + + 6
----
NULL

query I rowsort
SELECT 2 * + 19 - 1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT - COUNT( * ) + + NULLIF ( - + ( COUNT( * ) ), - + 68 DIV 17 ) DIV - 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6294
SELECT - COUNT ( * ) + + NULLIF ( - + ( COUNT ( * ) ), - + 68 / 17 ) / - 39 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT 33 DIV - 6 + - COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6295
SELECT 33 / - 6 + - COUNT ( * ) AS col0
----
-6

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

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

query II rowsort
SELECT ALL - + 15 AS col0, - 60
----
-15
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT 76 col1, - 54 * COUNT( * )
----
76
-54

skipif mysql # not compatible
query II rowsort label-6298
SELECT 76 col1, - 54 * COUNT ( * )
----
76
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT COUNT( * ) * - COUNT( ALL - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL - 57 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT 44 DIV + - 33 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6301
SELECT 44 / + - 33 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6302
SELECT ALL - 93 DIV + ( - - 31 ), - MAX( 38 ) col1
----
-3
-38

skipif mysql # not compatible
query II rowsort label-6302
SELECT ALL - 93 / + ( - - 31 ), - MAX ( 38 ) col1
----
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL - COUNT( - - 91 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - COUNT ( - - 91 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL - NULLIF ( COUNT( * ), + - NULLIF ( + NULLIF ( + 6, 73 * 15 ), - + 11 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - NULLIF ( COUNT ( * ), + - NULLIF ( + NULLIF ( + 6, 73 * 15 ), - + 11 ) ) AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT - COALESCE ( + CAST( + 21 AS SIGNED ), COUNT( * ) * + 46 + + 46 + - 76, + 62 )
----
-21

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - COALESCE ( + CAST ( + 21 AS INTEGER ), COUNT ( * ) * + 46 + + 46 + - 76, + 62 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6307
SELECT DISTINCT - COUNT( * ) + CASE 18 WHEN + 97 THEN - 16 END AS col2, 50 DIV 88 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6307
SELECT DISTINCT - COUNT ( * ) + CASE 18 WHEN + 97 THEN - 16 END AS col2, 50 / 88 AS col2
----
NULL
0

query II rowsort
SELECT ALL - ( 5 ) AS col1, - 42 * - - 66
----
-5
-2772

query I rowsort
SELECT ALL - 3 * - 2 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT 69 * + - MAX( ALL + + 22 ) AS col1
----
-1518

skipif mysql # not compatible
query I rowsort label-6310
SELECT 69 * + - MAX ( ALL + + 22 ) AS col1
----
-1518

query I rowsort
SELECT DISTINCT + 76 + + 67 col0
----
143

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

query II rowsort
SELECT 59 + 32 col0, 34 + - + 21 AS col1
----
91
13

query I rowsort
SELECT 95 * 99 * + 66
----
620730

onlyif mysql # DIV for integer division: 
query I rowsort label-6315
SELECT DISTINCT - 86 + + 49 + 14 DIV - 41 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT - 86 + + 49 + 14 / - 41 AS col1
----
-37

query I rowsort
SELECT ALL + 31 + - - 17 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6317
SELECT CASE - + COUNT( * ) WHEN + + COALESCE ( + + 81, + + 85, + 36 / - 72 + - 44 ) THEN - + 2 / - + ( + - 63 ) * + MIN( ( + + 65 ) ) + - 24 + 6 ELSE NULL END + COALESCE ( 59, + 32 * 43 - + - 0 + + CASE + 63 WHEN - 0 + - 82 THEN COUNT( * ) WHEN CASE 44 WHEN 76 THEN 89 + 28 * COUNT( * ) ELSE NULL END * CAST( NULL AS SIGNED ) THEN NULL END + SUM( DISTINCT + 77 ) / + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT CASE - + COUNT ( * ) WHEN + + COALESCE ( + + 81, + + 85, + 36 / - 72 + - 44 ) THEN - + 2 / - + ( + - 63 ) * + MIN ( ( + + 65 ) ) + - 24 + 6 ELSE NULL END + COALESCE ( 59, + 32 * 43 - + - 0 + + CASE + 63 WHEN - 0 + - 82 THEN COUNT ( * ) WHEN CASE 44 WHEN 76 THEN 89 + 28 * COUNT ( * ) ELSE NULL END * CAST ( NULL AS INTEGER ) THEN NULL END + SUM ( DISTINCT + 77 ) / + 9 )
----
NULL

query I rowsort
SELECT DISTINCT + 9 * + 9 * 5 col1
----
405

query I rowsort
SELECT ALL + - 54 + - 43 col2
----
-97

query I rowsort
SELECT DISTINCT - 39 + 22 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 37 + + COUNT( * ) + - + ( + 75 ) + 19 + - + 11 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6321
SELECT 37 + + COUNT ( * ) + - + ( + 75 ) + 19 + - + 11 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6322
SELECT DISTINCT + COUNT( * ) * + ( + 8 ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + COUNT ( * ) * + ( + 8 ) / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL - MIN( - + COALESCE ( 91, ( + - 44 ) ) ) col0
----
91

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - MIN ( - + COALESCE ( 91, ( + - 44 ) ) ) col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6324
SELECT - - COALESCE ( + 34, + 8 * - - 42 + - CAST( + 27 AS SIGNED ) + + + COUNT( * ) * - COALESCE ( - + 33, 21, - 36 ) * 58 + - 36 * - + 30 + + - ( + - COUNT( * ) ) ) DIV - 12 + + + ( - MAX( 86 ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6324
SELECT - - COALESCE ( + 34, + 8 * - - 42 + - CAST ( + 27 AS INTEGER ) + + + COUNT ( * ) * - COALESCE ( - + 33, 21, - 36 ) * 58 + - 36 * - + 30 + + - ( + - COUNT ( * ) ) ) / - 12 + + + ( - MAX ( 86 ) ) AS col1
----
-88

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

query II rowsort
SELECT + ( + 20 ), + 63 - - 29 AS col1
----
20
92

query I rowsort
SELECT - 69 * + 91
----
-6279

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6328
SELECT DISTINCT - MIN( + 71 ), ( 44 ) DIV + + 27 AS col1
----
-71
1

skipif mysql # not compatible
query II rowsort label-6328
SELECT DISTINCT - MIN ( + 71 ), ( 44 ) / + + 27 AS col1
----
-71
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT ALL - COALESCE ( + - 77, - + 64 DIV - 14 DIV 53 * + 61 + + 58 - + 13 * - 88 DIV - + 24 + 55, - + COUNT( * ) * - 96 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - COALESCE ( + - 77, - + 64 / - 14 / 53 * + 61 + + 58 - + 13 * - 88 / - + 24 + 55, - + COUNT ( * ) * - 96 ) AS col0
----
77

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

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

query I rowsort
SELECT 98 * - 91 + - - 63 * - 97 + - 37 + + 11 AS col2
----
-15055

query I rowsort
SELECT 60 * + 6
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT MIN( + + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-6334
SELECT MIN ( + + 58 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT - NULLIF ( - 48, + 80 ) DIV + + 12
----
4

skipif mysql # not compatible
query I rowsort label-6335
SELECT - NULLIF ( - 48, + 80 ) / + + 12
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT + 3 * + - CASE COUNT( - + 16 ) WHEN + 64 THEN NULL WHEN + 31 + + 3 / - - COUNT( * ) + + 22 + - 68 + ( - COUNT( * ) ) THEN NULL WHEN - 88 + + 57 THEN - 72 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT + 3 * + - CASE COUNT ( - + 16 ) WHEN + 64 THEN NULL WHEN + 31 + + 3 / - - COUNT ( * ) + + 22 + - 68 + ( - COUNT ( * ) ) THEN NULL WHEN - 88 + + 57 THEN - 72 END - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 89 * 95
----
8455

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT - 17 * 56 + + - 12 * - COUNT( * ) - COUNT( * )
----
-941

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - 17 * 56 + + - 12 * - COUNT ( * ) - COUNT ( * )
----
-941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6339
SELECT ALL - 34 * - COUNT( * ) * - 32 + 53 + - - 26 - + - 74 + 25 DIV 59 * + 33 col0
----
-935

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - 34 * - COUNT ( * ) * - 32 + 53 + - - 26 - + - 74 + 25 / 59 * + 33 col0
----
-935

query II rowsort
SELECT ALL COALESCE ( - 91, 69 + - 92 ) * + 13 + - 5, + 31 AS col1
----
-1188
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6341
SELECT ALL - MAX( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) * COUNT( + - 85 ) / + CAST( NULL AS DECIMAL ) - - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - MAX ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * COUNT ( + - 85 ) / + CAST ( NULL AS REAL ) - - - 14
----
NULL

query I rowsort
SELECT - 64 + - + 35
----
-99

query II rowsort
SELECT ALL + 56 col2, CASE - + 68 WHEN - + 10 + - 45 THEN NULL ELSE - 27 END AS col1
----
56
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT + NULLIF ( + CASE - SUM( + 48 ) WHEN + + 98 THEN NULL WHEN - MAX( ALL - + 58 ) THEN - ( + 92 ) ELSE NULL END, 60 + - 75 ) / + + 80 * + - ( + - 74 ) * CAST( NULLIF ( + - COUNT( * ), - 94 ) AS SIGNED ) + + 7 + - NULLIF ( 90, + 33 * + 70 ) + COUNT( * ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT + NULLIF ( + CASE - SUM ( + 48 ) WHEN + + 98 THEN NULL WHEN - MAX ( ALL - + 58 ) THEN - ( + 92 ) ELSE NULL END, 60 + - 75 ) / + + 80 * + - ( + - 74 ) * CAST ( NULLIF ( + - COUNT ( * ), - 94 ) AS INTEGER ) + + 7 + - NULLIF ( 90, + 33 * + 70 ) + COUNT ( * ) * - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6345
SELECT + CASE 73 WHEN + 32 / - 8 THEN 23 / 74 / + 38 + + CAST( - ( - 47 ) AS SIGNED ) * - CASE + 16 WHEN + + ( - 28 ) * - 58 THEN NULL WHEN 85 + - COALESCE ( + 78, - - 98 ) THEN - 98 + - COUNT( * ) END + + - 2 END * - - 71 * 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT + CASE 73 WHEN + 32 / - 8 THEN 23 / 74 / + 38 + + CAST ( - ( - 47 ) AS INTEGER ) * - CASE + 16 WHEN + + ( - 28 ) * - 58 THEN NULL WHEN 85 + - COALESCE ( + 78, - - 98 ) THEN - 98 + - COUNT ( * ) END + + - 2 END * - - 71 * 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL - 99 + + MAX( + 11 ) * + ( + - 69 ) AS col2
----
-858

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - 99 + + MAX ( + 11 ) * + ( + - 69 ) AS col2
----
-858

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6347
SELECT - 35 AS col2, 54 - + + 7 DIV - + CASE + COUNT( * ) WHEN - 77 THEN NULL ELSE - - 65 END DIV 16 * - + MIN( - + 12 ) AS col1
----
-35
54

skipif mysql # not compatible
query II rowsort label-6347
SELECT - 35 AS col2, 54 - + + 7 / - + CASE + COUNT ( * ) WHEN - 77 THEN NULL ELSE - - 65 END / 16 * - + MIN ( - + 12 ) AS col1
----
-35
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT - 93 + + + 62 * - 7 * + 21 * + CASE WHEN NOT - 42 NOT BETWEEN NULL AND + 12 THEN + 64 ELSE 7 DIV - 63 END + - 37 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 93 + + + 62 * - 7 * + 21 * + CASE WHEN NOT - 42 NOT BETWEEN NULL AND + 12 THEN + 64 ELSE 7 / - 63 END + - 37 AS col1
----
-130

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6349
SELECT - 1 * - AVG ( DISTINCT - + 97 ) / - COUNT( * ) + + 14 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT - 1 * - AVG ( DISTINCT - + 97 ) / - COUNT ( * ) + + 14 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - - 1 - - 82 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT DISTINCT - 80 * + + ( SUM( + 60 ) ) + - + 23
----
-4823

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - 80 * + + ( SUM ( + 60 ) ) + - + 23
----
-4823

query I rowsort
SELECT - 50 * - 1 col2
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6353
SELECT - - CAST( NULL AS DECIMAL ) * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT - - CAST ( NULL AS REAL ) * + 91 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT - - 80 / - 4 + CAST( NULL AS SIGNED ) + - - 11 * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT - - 80 / - 4 + CAST ( NULL AS INTEGER ) + - - 11 * + 88 AS col0
----
NULL

query I rowsort
SELECT + - 75 * 21
----
-1575

query I rowsort
SELECT - 26 + + + ( 20 ) * - 48 AS col1
----
-986

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT DISTINCT - 36 DIV - COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - 36 / - COUNT ( * ) AS col0
----
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT - 53 / + 38 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT - 53 / + 38 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT + 92 DIV - - 94 * + 65 * 26 * - 35 col2
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT + 92 / - - 94 * + 65 * 26 * - 35 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT + + ( + NULLIF ( 56, + 45 * - + ( - 86 ) - + - ( + + COUNT( * ) ) * - NULLIF ( + 34, 0 + - + 76 * - 82 ) ) ) + - - 36 * + 50
----
1856

skipif mysql # not compatible
query I rowsort label-6363
SELECT + + ( + NULLIF ( 56, + 45 * - + ( - 86 ) - + - ( + + COUNT ( * ) ) * - NULLIF ( + 34, 0 + - + 76 * - 82 ) ) ) + - - 36 * + 50
----
1856

onlyif mysql # aggregate syntax: 
query II rowsort label-6364
SELECT - 72, 21 * 15 + - - 19 * + - 63 * COUNT( * ) col2
----
-72
-882

skipif mysql # not compatible
query II rowsort label-6364
SELECT - 72, 21 * 15 + - - 19 * + - 63 * COUNT ( * ) col2
----
-72
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT - + 54 DIV + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6365
SELECT - + 54 / + 49 AS col0
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + MIN( + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-6368
SELECT + MIN ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT + COALESCE ( + NULLIF ( - 4, - 12 + 12 * - + 26 ), + + 50, - + 93 + + MIN( ALL ( - - 85 ) ) * - - 64, + - MIN( - - 14 ) - MAX( ALL 86 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6369
SELECT + COALESCE ( + NULLIF ( - 4, - 12 + 12 * - + 26 ), + + 50, - + 93 + + MIN ( ALL ( - - 85 ) ) * - - 64, + - MIN ( - - 14 ) - MAX ( ALL 86 ) ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT 94 * 6 + - ( - 80 ) + - COUNT( * ) * 28 / 92 * SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT 94 * 6 + - ( - 80 ) + - COUNT ( * ) * 28 / 92 * SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL - 90 * 10 + + 24 AS col2
----
-876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6373
SELECT DISTINCT + 7 * + 72 * 6 + - CAST( NULL AS SIGNED ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT + 7 * + 72 * 6 + - CAST ( NULL AS INTEGER ) * - 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT ( - 13 ) AS col0, + COUNT( * ) * - NULLIF ( - 5, + COUNT( * ) )
----
-13
5

skipif mysql # not compatible
query II rowsort label-6374
SELECT ( - 13 ) AS col0, + COUNT ( * ) * - NULLIF ( - 5, + COUNT ( * ) )
----
-13
5

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

query I rowsort
SELECT + ( + 88 ) * - 30 AS col0
----
-2640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL 92 * + - 35 + - COUNT( * ) * - NULLIF ( 59, 7 ) + COUNT( * ) AS col2
----
-3160

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL 92 * + - 35 + - COUNT ( * ) * - NULLIF ( 59, 7 ) + COUNT ( * ) AS col2
----
-3160

query I rowsort
SELECT COALESCE ( - + 8, - 61, ( 8 ) + + ( - - 29 ) * + - 5 )
----
-8

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

query I rowsort
SELECT - 35 * - + 31 * + + 91
----
98735

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT DISTINCT COUNT( * ) * - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT COUNT ( * ) * - 30 AS col0
----
-30

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

query I rowsort
SELECT NULLIF ( + 6, 48 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL ( + - 82 ) * - + 22 - - COUNT( * ) - + - CASE + 82 WHEN + - ( + 16 ) THEN + CASE - COUNT( * ) WHEN + 49 + + + 17 THEN - + CASE - - 9 WHEN 69 THEN - COUNT( * ) END END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL ( + - 82 ) * - + 22 - - COUNT ( * ) - + - CASE + 82 WHEN + - ( + 16 ) THEN + CASE - COUNT ( * ) WHEN + 49 + + + 17 THEN - + CASE - - 9 WHEN 69 THEN - COUNT ( * ) END END END
----
NULL

query I rowsort
SELECT + + 20 * 67 col0
----
1340

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

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

query I rowsort
SELECT ALL - ( + 44 ) * - + 10 AS col2
----
440

query I rowsort
SELECT - + CASE 16 WHEN + - 31 + - 43 THEN - 98 + - - 17 END
----
NULL

query I rowsort
SELECT + - ( 78 ) + - - 88 * + 72
----
6258

query I rowsort
SELECT + 88 * + + ( + COALESCE ( 21, ( + - 90 ) ) ) * 59 * + 42 AS col1
----
4579344

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + NULLIF ( - 61, - 12 * + + 13 / + - 64 + - MAX( - 6 ) * - + 6 ) + - COALESCE ( + 6, + 11 + - 51 * - NULLIF ( - 1, + + COUNT( * ) ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6392
SELECT + NULLIF ( - 61, - 12 * + + 13 / + - 64 + - MAX ( - 6 ) * - + 6 ) + - COALESCE ( + 6, + 11 + - 51 * - NULLIF ( - 1, + + COUNT ( * ) ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6393
SELECT - 15 + + 36, + COUNT( * ) + + 4 AS col0
----
21
5

skipif mysql # not compatible
query II rowsort label-6393
SELECT - 15 + + 36, + COUNT ( * ) + + 4 AS col0
----
21
5

query I rowsort
SELECT - + 18 * - - 55 * 30 * - 73 + + ( + 62 ) * - ( + + 24 )
----
2166612

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - COALESCE ( SUM( ALL - 60 ), - COUNT( * ) ) + + + 3 - 51
----
12

skipif mysql # not compatible
query I rowsort label-6395
SELECT - COALESCE ( SUM ( ALL - 60 ), - COUNT ( * ) ) + + + 3 - 51
----
12

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

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

query I rowsort
SELECT ALL + + 82 * + 41 col2
----
3362

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT DISTINCT - 5 + 69, + 63 + + COUNT( * )
----
64
64

skipif mysql # not compatible
query II rowsort label-6398
SELECT DISTINCT - 5 + 69, + 63 + + COUNT ( * )
----
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT 46 DIV - + 76 * 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT 46 / - + 76 * 64 AS col1
----
0

query I rowsort
SELECT 41 - - 48
----
89

query I rowsort
SELECT ALL - 34 + 59 AS col1
----
25

query II rowsort
SELECT + 54 col1, 13
----
54
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT ALL - 71 DIV - 19
----
3

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - 71 / - 19
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL + 99 + + MAX( 88 ) - SUM( + + ( - COALESCE ( + + 78, - 83 + 14 * - 6 - + - 89 ) ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL + 99 + + MAX ( 88 ) - SUM ( + + ( - COALESCE ( + + 78, - 83 + 14 * - 6 - + - 89 ) ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 69 * 71 * 28
----
137172

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT 75 + ( - COUNT( * ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6407
SELECT 75 + ( - COUNT ( * ) ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT 63 * - COUNT( * ) - - 59 + - - 81 * + 43 + + 62
----
3541

skipif mysql # not compatible
query I rowsort label-6408
SELECT 63 * - COUNT ( * ) - - 59 + - - 81 * + 43 + + 62
----
3541

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT - 56 / - - 69 - 59 + + 20 + CAST( NULL AS SIGNED ) * + 55 + AVG ( + + 48 ) / + 68 + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT - 56 / - - 69 - 59 + + 20 + CAST ( NULL AS INTEGER ) * + 55 + AVG ( + + 48 ) / + 68 + 71 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT CAST( COUNT( * ) AS SIGNED ) * - 93 * - 19 * - + 19 + + - 50 + + 81 + + COUNT( * ) * - MIN( + COALESCE ( - + 93, - 96 ) )
----
-33449

skipif mysql # not compatible
query I rowsort label-6411
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 93 * - 19 * - + 19 + + - 50 + + 81 + + COUNT ( * ) * - MIN ( + COALESCE ( - + 93, - 96 ) )
----
-33449

query I rowsort
SELECT ALL 93 - + 31
----
62

query I rowsort
SELECT DISTINCT - - 84 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT - ( - 12 ) + - + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6414
SELECT - ( - 12 ) + - + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT - 42 * ( 71 )
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT - 55 * + 18 + 90 + - - COUNT( * ) * + 6
----
-894

skipif mysql # not compatible
query I rowsort label-6416
SELECT - 55 * + 18 + 90 + - - COUNT ( * ) * + 6
----
-894

query I rowsort
SELECT ALL 29 * + + 16 AS col1
----
464

query II rowsort
SELECT - - 15, 54 col1
----
15
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT - - MAX( DISTINCT - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6419
SELECT - - MAX ( DISTINCT - 83 ) AS col2
----
-83

query II rowsort
SELECT ALL + 79 AS col1, + 79 AS col0
----
79
79

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

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL 32 + + + COUNT ( * ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT - 15 - - - CAST( NULL AS SIGNED ) * + 47 + - 9 / + SUM( + 40 ) * - - COUNT( + - 80 ) - 12 * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT - 15 - - - CAST ( NULL AS INTEGER ) * + 47 + - 9 / + SUM ( + 40 ) * - - COUNT ( + - 80 ) - 12 * - + 6
----
NULL

query II rowsort
SELECT - 18 AS col1, + ( + + 78 ) + + - 86
----
-18
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT + 24 + + - CASE - 21 WHEN - 94 + COUNT( * ) THEN + 16 WHEN ( - - CASE - 79 WHEN + ( 89 ) THEN + 26 * ( + COUNT( * ) ) - + 9 + - - 45 + 70 END ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT + 24 + + - CASE - 21 WHEN - 94 + COUNT ( * ) THEN + 16 WHEN ( - - CASE - 79 WHEN + ( 89 ) THEN + 26 * ( + COUNT ( * ) ) - + 9 + - - 45 + 70 END ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6425
SELECT 3, - 95 - - - ( + - 29 ) - - MAX( DISTINCT ( + 50 ) ) AS col0
----
3
-16

skipif mysql # not compatible
query II rowsort label-6425
SELECT 3, - 95 - - - ( + - 29 ) - - MAX ( DISTINCT ( + 50 ) ) AS col0
----
3
-16

query I rowsort
SELECT DISTINCT - 30 + + 17 AS col0
----
-13

query I rowsort
SELECT ALL + 76 * - + 67
----
-5092

query II rowsort
SELECT - 52 AS col2, - 53
----
-52
-53

query I rowsort
SELECT DISTINCT + 31 + - 26 + 61 + - 98 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT ALL 15 * + 75 * + 29 - CAST( 40 AS SIGNED )
----
32585

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL 15 * + 75 * + 29 - CAST ( 40 AS INTEGER )
----
32585

query I rowsort
SELECT DISTINCT - 58 * - ( 11 ) col0
----
638

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6433
SELECT 78 * - - COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT 78 * - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT 14 * + + 21
----
294

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT ALL 52 DIV 20 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL 52 / 20 AS col1
----
2

query I rowsort
SELECT 4 * + 9 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6438
SELECT ALL - 39 AS col0, - COUNT( * ) DIV 94 + + NULLIF ( 56, + 85 * + SUM( - - 29 ) + - 49 ) AS col2
----
-39
56

skipif mysql # not compatible
query II rowsort label-6438
SELECT ALL - 39 AS col0, - COUNT ( * ) / 94 + + NULLIF ( 56, + 85 * + SUM ( - - 29 ) + - 49 ) AS col2
----
-39
56

query I rowsort
SELECT DISTINCT 87 * - - 6 AS col1
----
522

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6440
SELECT DISTINCT - COALESCE ( 72, + + 59 * + COUNT( * ) - 82, CASE - - AVG ( DISTINCT - 18 ) WHEN COALESCE ( + 56, 9, - 39 DIV - ( 90 ) + - - 8 ) * + 72 * - 19 - 12 THEN - 40 END ) DIV 7 + + 50 AS col2, 30 * 56 AS col2
----
40
1680

skipif mysql # not compatible
query II rowsort label-6440
SELECT DISTINCT - COALESCE ( 72, + + 59 * + COUNT ( * ) - 82, CASE - - AVG ( DISTINCT - 18 ) WHEN COALESCE ( + 56, 9, - 39 / - ( 90 ) + - - 8 ) * + 72 * - 19 - 12 THEN - 40 END ) / 7 + + 50 AS col2, 30 * 56 AS col2
----
40
1680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT 58 * - COALESCE ( + MAX( - 14 ), 41, + + 37 * 79 )
----
812

skipif mysql # not compatible
query I rowsort label-6442
SELECT 58 * - COALESCE ( + MAX ( - 14 ), 41, + + 37 * 79 )
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT - - COUNT( 64 ) * - - 29 - + + 92 - + 32
----
-95

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT - - COUNT ( 64 ) * - - 29 - + + 92 - + 32
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT 50 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT 50 / + 65
----
0

query I rowsort
SELECT DISTINCT 18 * 76 AS col2
----
1368

query I rowsort
SELECT DISTINCT - + 40 * 6 - + 78 AS col0
----
-318

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT ( - - 44 ) AS col2, COUNT( * ) * 79 + + MAX( 75 ) + - 69 * + + ( 0 ) AS col0
----
44
154

skipif mysql # not compatible
query II rowsort label-6447
SELECT ( - - 44 ) AS col2, COUNT ( * ) * 79 + + MAX ( 75 ) + - 69 * + + ( 0 ) AS col0
----
44
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL + + COUNT( * ) + - COALESCE ( - 14, + 81, - CAST( + 5 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + + COUNT ( * ) + - COALESCE ( - 14, + 81, - CAST ( + 5 AS INTEGER ) )
----
15

query I rowsort
SELECT 60 - 97 AS col0
----
-37

query I rowsort
SELECT ALL 63 + - 7 + + - 51
----
5

query I rowsort
SELECT + 33 - - + 3
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + + 36 * - MAX( + 53 ) * + 32 * - 60 AS col1
----
3663360

skipif mysql # not compatible
query I rowsort label-6452
SELECT + + 36 * - MAX ( + 53 ) * + 32 * - 60 AS col1
----
3663360

query II rowsort
SELECT - 90 AS col1, 2 AS col1
----
-90
2

query I rowsort
SELECT ALL - 55 + - 38
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT - 74, 87 * MIN( - 77 ) AS col1
----
-74
-6699

skipif mysql # not compatible
query II rowsort label-6455
SELECT - 74, 87 * MIN ( - 77 ) AS col1
----
-74
-6699

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

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

query I rowsort
SELECT + - 17 + + 37 AS col1
----
20

query I rowsort
SELECT ALL - ( - 96 ) + + 52
----
148

query I rowsort
SELECT + + 42 + 79 - ( + 14 ) + + 33
----
140

query I rowsort
SELECT ALL 37 + - 22 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6461
SELECT ALL MIN( DISTINCT 20 ) AS col0, + CAST( NULL AS SIGNED ) + + + 61
----
20
NULL

skipif mysql # not compatible
query II rowsort label-6461
SELECT ALL MIN ( DISTINCT 20 ) AS col0, + CAST ( NULL AS INTEGER ) + + + 61
----
20
NULL

query I rowsort
SELECT + 30 + 61 * 16 AS col0
----
1006

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + 0 - + - COALESCE ( + COUNT( ALL - 3 ), COUNT( * ), 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 0 - + - COALESCE ( + COUNT ( ALL - 3 ), COUNT ( * ), 45 ) AS col1
----
1

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

query II rowsort
SELECT ( + 46 ) AS col2, 48 - - ( + 60 )
----
46
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6466
SELECT - 48 DIV - 90 - - 16 * COUNT( + 98 ) + - 63
----
-47

skipif mysql # not compatible
query I rowsort label-6466
SELECT - 48 / - 90 - - 16 * COUNT ( + 98 ) + - 63
----
-47

query I rowsort
SELECT - 35 * - 41 * + - 83
----
-119105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - 52 + + 28 + - 44 + - - 76 * MAX( - 67 ) * + 88 * + - 77
----
34503324

skipif mysql # not compatible
query I rowsort label-6469
SELECT - 52 + + 28 + - 44 + - - 76 * MAX ( - 67 ) * + 88 * + - 77
----
34503324

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL + CASE + + COUNT( * ) WHEN - - 34 THEN - - 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + CASE + + COUNT ( * ) WHEN - - 34 THEN - - 27 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT - 85 * + MIN( DISTINCT + 53 ) * + COUNT( * ) + + + NULLIF ( 47, - 14 ) AS col2, + COUNT( * ) * + - 35 + MAX( + 32 ) AS col1
----
-4458
-3

skipif mysql # not compatible
query II rowsort label-6473
SELECT - 85 * + MIN ( DISTINCT + 53 ) * + COUNT ( * ) + + + NULLIF ( 47, - 14 ) AS col2, + COUNT ( * ) * + - 35 + MAX ( + 32 ) AS col1
----
-4458
-3

query I rowsort
SELECT + 99 * + - 62
----
-6138

query I rowsort
SELECT - - 8 * + + 52 * + ( - + 63 )
----
-26208

query I rowsort
SELECT ALL - - 67 * + 74 AS col0
----
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT - + MIN( - 75 ) + 75 col0
----
150

skipif mysql # not compatible
query I rowsort label-6477
SELECT - + MIN ( - 75 ) + 75 col0
----
150

query I rowsort
SELECT - - 22 + + 48 col1
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT - 45 * - COUNT( * ) * + - 6 * 14 + + 2 * 57 AS col2
----
-3666

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT - 45 * - COUNT ( * ) * + - 6 * 14 + + 2 * 57 AS col2
----
-3666

query I rowsort
SELECT DISTINCT - - 7 * - - 24 + + 79 + + - 30 AS col1
----
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6482
SELECT ALL - + ( COALESCE ( COUNT( * ), + 12 ) ) * - - 22 + + 53 + + CAST( CASE 90 WHEN + 59 THEN NULL WHEN - 89 + + NULLIF ( - + 40, COUNT( * ) ) THEN NULL ELSE + 50 - - 46 - CASE + 99 WHEN 15 + + SUM( DISTINCT - 5 ) - 81 * - 74 + + + 27 THEN NULL ELSE - + 34 END - - + 40 + - 88 * 71 END AS SIGNED ) DIV 41 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL - + ( COALESCE ( COUNT ( * ), + 12 ) ) * - - 22 + + 53 + + CAST ( CASE 90 WHEN + 59 THEN NULL WHEN - 89 + + NULLIF ( - + 40, COUNT ( * ) ) THEN NULL ELSE + 50 - - 46 - CASE + 99 WHEN 15 + + SUM ( DISTINCT - 5 ) - 81 * - 74 + + + 27 THEN NULL ELSE - + 34 END - - + 40 + - 88 * 71 END AS INTEGER ) / 41 AS col0
----
-117

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT - MIN( - - 76 ) col0, ( - 75 ) AS col2
----
-76
-75

skipif mysql # not compatible
query II rowsort label-6484
SELECT - MIN ( - - 76 ) col0, ( - 75 ) AS col2
----
-76
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT + - 30 * - 92 + - - 44 DIV - - 53 + - COALESCE ( + 2, ( - 17 ) * 52 ) + - ( + - 99 ) + + 92 * - 38 + - 89 * 8 - 74 + + 36 - + + 35
----
-1424

skipif mysql # not compatible
query I rowsort label-6485
SELECT + - 30 * - 92 + - - 44 / - - 53 + - COALESCE ( + 2, ( - 17 ) * 52 ) + - ( + - 99 ) + + 92 * - 38 + - 89 * 8 - 74 + + 36 - + + 35
----
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL 0 * - 7 * - - ( + 89 ) - 0 * - + 5 + + NULLIF ( COUNT( * ), + - 96 + + 77 ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL 0 * - 7 * - - ( + 89 ) - 0 * - + 5 + + NULLIF ( COUNT ( * ), + - 96 + + 77 ) + - 17
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT - ( - NULLIF ( - + COALESCE ( + COUNT( * ), - ( - 35 ) ), + + 63 ) ) * + - NULLIF ( + 94, + MIN( 60 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT - ( - NULLIF ( - + COALESCE ( + COUNT ( * ), - ( - 35 ) ), + + 63 ) ) * + - NULLIF ( + 94, + MIN ( 60 ) ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL + CAST( + 45 AS SIGNED ) + - 56
----
-11

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + CAST ( + 45 AS INTEGER ) + - 56
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT CASE - 75 WHEN - 22 THEN NULL ELSE - ( COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT CASE - 75 WHEN - 22 THEN NULL ELSE - ( COUNT ( * ) ) END
----
-1

query II rowsort
SELECT ALL - CASE - - ( - 93 ) WHEN 35 THEN - 54 ELSE NULL END AS col2, 80 * - ( + 11 ) col0
----
NULL
-880

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

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + 30 - + COUNT ( * ) / 64
----
30

query II rowsort
SELECT 37 AS col2, + 43 - 54
----
37
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT 72 AS col1, - MAX( 13 ) - + 95 + 90 * - + 73 AS col2
----
72
-6678

skipif mysql # not compatible
query II rowsort label-6494
SELECT 72 AS col1, - MAX ( 13 ) - + 95 + 90 * - + 73 AS col2
----
72
-6678

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

query I rowsort
SELECT + 18 * + 74
----
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + COUNT( * ) + - - 25 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6497
SELECT + COUNT ( * ) + - - 25 AS col2
----
26

query I rowsort
SELECT - COALESCE ( ( - 81 ), + - 11, - 52 )
----
81

query II rowsort
SELECT + ( 74 ) * 58 AS col0, - 94
----
4292
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL 88 DIV 43 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL 88 / 43 AS col1
----
2

query I rowsort
SELECT - ( 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT COUNT( * ) * 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT COUNT ( * ) * 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT + 11 - - + 86 + + + 71 * + - NULLIF ( - 83, + 9 ) + COUNT( * ) * - 49 * + - 99 * + COUNT( * ) * COUNT( * ) AS col2
----
10841

skipif mysql # not compatible
query I rowsort label-6503
SELECT + 11 - - + 86 + + + 71 * + - NULLIF ( - 83, + 9 ) + COUNT ( * ) * - 49 * + - 99 * + COUNT ( * ) * COUNT ( * ) AS col2
----
10841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT + 29 + - + NULLIF ( - 11, + - 48 + - COUNT( * ) ) DIV + 58 + 10 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6504
SELECT + 29 + - + NULLIF ( - 11, + - 48 + - COUNT ( * ) ) / + 58 + 10 AS col1
----
39

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

skipif mysql # not compatible
query I rowsort label-6505
SELECT + ( + COUNT ( ALL - 84 ) ) AS col2
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT ALL - 6 DIV + 16 + + ( - - 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL - 6 / + 16 + + ( - - 97 ) AS col2
----
97

query I rowsort
SELECT + 16 * 4 AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT - COUNT( * ) + MIN( + 86 ) AS col2, + 6
----
85
6

skipif mysql # not compatible
query II rowsort label-6509
SELECT - COUNT ( * ) + MIN ( + 86 ) AS col2, + 6
----
85
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT DISTINCT - 84 DIV 72 + - - ( - 77 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT - 84 / 72 + - - ( - 77 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT 74, SUM( ALL - - 95 ) - + 53 * - - COUNT( * ) AS col0
----
74
42

skipif mysql # not compatible
query II rowsort label-6512
SELECT 74, SUM ( ALL - - 95 ) - + 53 * - - COUNT ( * ) AS col0
----
74
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT + ( + - SUM( + 95 ) ), COUNT( * ) AS col0
----
-95
1

skipif mysql # not compatible
query II rowsort label-6513
SELECT + ( + - SUM ( + 95 ) ), COUNT ( * ) AS col0
----
-95
1

query I rowsort
SELECT ALL + 47 * + + ( 58 ) + - - ( + 52 ) + 53 AS col1
----
2831

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT 77 - + 92 + - 86 * 85 * - COUNT( * )
----
7295

skipif mysql # not compatible
query I rowsort label-6515
SELECT 77 - + 92 + - 86 * 85 * - COUNT ( * )
----
7295

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT - SUM( ALL - - 92 ) * 98 - - + 89
----
-8927

skipif mysql # not compatible
query I rowsort label-6516
SELECT - SUM ( ALL - - 92 ) * 98 - - + 89
----
-8927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6517
SELECT + + CASE - 82 WHEN - COALESCE ( - COUNT( * ), 11 * - COUNT( * ) * ( + 60 ) ) THEN NULL ELSE 15 / + 7 * - 64 + CAST( 64 AS SIGNED ) + + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) END * + 30 + + + COUNT( * ) * + 14, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6517
SELECT + + CASE - 82 WHEN - COALESCE ( - COUNT ( * ), 11 * - COUNT ( * ) * ( + 60 ) ) THEN NULL ELSE 15 / + 7 * - 64 + CAST ( 64 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) END * + 30 + + + COUNT ( * ) * + 14, - COUNT ( * ) AS col1
----
NULL
-1

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

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

query I rowsort
SELECT DISTINCT + 53 * 99 AS col2
----
5247

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT ALL + 14 DIV - + 33
----
0

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + 14 / - + 33
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT DISTINCT + 26 DIV - + 33 col2
----
0

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT + 26 / - + 33 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6524
SELECT 69 DIV - 81 * - MIN( ALL 10 ), 58 AS col0
----
0
58

skipif mysql # not compatible
query II rowsort label-6524
SELECT 69 / - 81 * - MIN ( ALL 10 ), 58 AS col0
----
0
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6525
SELECT NULLIF ( 97, + 4 ) * 27 AS col0, + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
2619
NULL

skipif mysql # not compatible
query II rowsort label-6525
SELECT NULLIF ( 97, + 4 ) * 27 AS col0, + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
2619
NULL

query II rowsort
SELECT 79 + - 66 AS col0, - 72
----
13
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6527
SELECT 88 + - COALESCE ( - 53, - + COUNT( * ) * 35 + 60 + - - 99 + COUNT( * ), - + 29 * + ( COALESCE ( + COUNT( * ), + 37, + - COALESCE ( - 73, - 98, 53 * + ( - 64 ) * + 84 * - 0 + + 13 + + 35 + + + ( + ( - - 81 ) ) + - COUNT( * ) + + ( - 0 ) * + 18 ) ) ) * COALESCE ( - 47, 31 ) - + MIN( ALL - ( 20 ) ) * ( 7 DIV - ( 2 * + 90 ) ) + - COALESCE ( - 67 + 48, + 12 * + 57, 52 ) DIV 84 ) - 38 DIV - ( - 7 * ( + SUM( 50 ) ) ) * - ( + 52 + COUNT( * ) * 94 )
----
141

skipif mysql # not compatible
query I rowsort label-6527
SELECT 88 + - COALESCE ( - 53, - + COUNT ( * ) * 35 + 60 + - - 99 + COUNT ( * ), - + 29 * + ( COALESCE ( + COUNT ( * ), + 37, + - COALESCE ( - 73, - 98, 53 * + ( - 64 ) * + 84 * - 0 + + 13 + + 35 + + + ( + ( - - 81 ) ) + - COUNT ( * ) + + ( - 0 ) * + 18 ) ) ) * COALESCE ( - 47, 31 ) - + MIN ( ALL - ( 20 ) ) * ( 7 / - ( 2 * + 90 ) ) + - COALESCE ( - 67 + 48, + 12 * + 57, 52 ) / 84 ) - 38 / - ( - 7 * ( + SUM ( 50 ) ) ) * - ( + 52 + COUNT ( * ) * 94 )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT 4 * + COUNT( - 39 )
----
4

skipif mysql # not compatible
query I rowsort label-6528
SELECT 4 * + COUNT ( - 39 )
----
4

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6531
SELECT NULLIF ( - 69, + - 69 - - 15 + + 78 - - 34 + - 26 * + - 56 / - 45 ) * + COUNT( DISTINCT + + 80 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT NULLIF ( - 69, + - 69 - - 15 + + 78 - - 34 + - 26 * + - 56 / - 45 ) * + COUNT ( DISTINCT + + 80 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6532
SELECT ALL NULLIF ( - COUNT( * ), + COUNT( * ) ) + - - COUNT( * ), - 9 * - COUNT( * ) AS col0
----
0
9

skipif mysql # not compatible
query II rowsort label-6532
SELECT ALL NULLIF ( - COUNT ( * ), + COUNT ( * ) ) + - - COUNT ( * ), - 9 * - COUNT ( * ) AS col0
----
0
9

query I rowsort
SELECT 10 + 54 - - + 88 col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT - 65 + - MAX( ALL + 89 )
----
-154

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - 65 + - MAX ( ALL + 89 )
----
-154

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6536
SELECT ALL - 20 + 99 + - 28 + + MIN( ALL CAST( NULL AS DECIMAL ) ) / - + COUNT( * ) * - 24 AS col1, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6536
SELECT ALL - 20 + 99 + - 28 + + MIN ( ALL CAST ( NULL AS REAL ) ) / - + COUNT ( * ) * - 24 AS col1, 90
----
NULL
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT - + 44 DIV + 74 * - 7 - + 13
----
-13

skipif mysql # not compatible
query I rowsort label-6537
SELECT - + 44 / + 74 * - 7 - + 13
----
-13

query I rowsort
SELECT ALL 42 * 87 - - 18
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT ALL - ( - SUM( ALL 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - ( - SUM ( ALL 11 ) ) AS col2
----
11

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

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

query I rowsort
SELECT 12 + + 37 + + 4 - - 60 * ( + 43 ) AS col2
----
2633

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL 69 + + SUM( DISTINCT + 31 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL 69 + + SUM ( DISTINCT + 31 ) AS col2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6544
SELECT + CAST( NULL AS SIGNED ) * + - 84, + 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6544
SELECT + CAST ( NULL AS INTEGER ) * + - 84, + 47 AS col1
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT 92 + - - MIN( DISTINCT 82 ) - + 23 * + 74 AS col1
----
-1528

skipif mysql # not compatible
query I rowsort label-6545
SELECT 92 + - - MIN ( DISTINCT 82 ) - + 23 * + 74 AS col1
----
-1528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT + 3 * + - CAST( NULL AS SIGNED ) * + 4 - CASE COUNT( * ) WHEN - + COUNT( * ) THEN NULL WHEN + 92 * - 64 * + 76 / + 38 + - 51 THEN - CASE + MIN( - 71 ) WHEN - 87 THEN 9 + - + 41 WHEN - 34 / + 35 - + 11 * - 93 + + + 86 + + 38 * - 25 - + 27 THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT + 3 * + - CAST ( NULL AS INTEGER ) * + 4 - CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL WHEN + 92 * - 64 * + 76 / + 38 + - 51 THEN - CASE + MIN ( - 71 ) WHEN - 87 THEN 9 + - + 41 WHEN - 34 / + 35 - + 11 * - 93 + + + 86 + + 38 * - 25 - + 27 THEN NULL ELSE NULL END END
----
NULL

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

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

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

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

query I rowsort
SELECT + 75 * + 11
----
825

query I rowsort
SELECT DISTINCT 53 - + 29 * - 18 AS col2
----
575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT ALL - - CASE - - 14 WHEN - - 10 * COUNT( * ) THEN - CAST( 76 AS SIGNED ) WHEN + - 84 THEN - + 24 + + COUNT( * ) WHEN 11 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - - CASE - - 14 WHEN - - 10 * COUNT ( * ) THEN - CAST ( 76 AS INTEGER ) WHEN + - 84 THEN - + 24 + + COUNT ( * ) WHEN 11 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6552
SELECT 38 * ( 73 ) + - 40 + 28 + + 50 DIV + - 7, COALESCE ( + + COALESCE ( - 84, - 7, - + CAST( 70 AS SIGNED ) ), - 80, 38 + - 54 + CAST( NULL AS SIGNED ) * 63 ) AS col2
----
2755
-84

skipif mysql # not compatible
query II rowsort label-6552
SELECT 38 * ( 73 ) + - 40 + 28 + + 50 / + - 7, COALESCE ( + + COALESCE ( - 84, - 7, - + CAST ( 70 AS INTEGER ) ), - 80, 38 + - 54 + CAST ( NULL AS INTEGER ) * 63 ) AS col2
----
2755
-84

query I rowsort
SELECT 94 * + + ( + 40 ) AS col0
----
3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6554
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + NULLIF ( - + MAX( ALL - 10 ), - 9 * - 89 * - CASE + ( - + 94 ) WHEN - MAX( ALL 58 ) * + 8 * + 97 / + - 49 + + + COUNT( * ) + NULLIF ( - - NULLIF ( + 23, + 87 ), 65 ) + + 90 THEN - 42 * 41 - + 15 ELSE + ( 28 ) END ) + + - CAST( - 12 AS SIGNED ) + - 86 + - 24 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + NULLIF ( - + MAX ( ALL - 10 ), - 9 * - 89 * - CASE + ( - + 94 ) WHEN - MAX ( ALL 58 ) * + 8 * + 97 / + - 49 + + + COUNT ( * ) + NULLIF ( - - NULLIF ( + 23, + 87 ), 65 ) + + 90 THEN - 42 * 41 - + 15 ELSE + ( 28 ) END ) + + - CAST ( - 12 AS INTEGER ) + - 86 + - 24 * - 13
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6557
SELECT 5 col0, 97 DIV - COUNT( * )
----
5
-97

skipif mysql # not compatible
query II rowsort label-6557
SELECT 5 col0, 97 / - COUNT ( * )
----
5
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6559
SELECT DISTINCT - CAST( 71 AS SIGNED ) * - 31 + - 13
----
2188

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - CAST ( 71 AS INTEGER ) * - 31 + - 13
----
2188

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

query I rowsort
SELECT 88 * + 13
----
1144

query I rowsort
SELECT 23 * ( - 68 )
----
-1564

query I rowsort
SELECT - COALESCE ( + 52, 57, 64 + + + 74 ) AS col1
----
-52

query I rowsort
SELECT 29 + 87 AS col2
----
116

query I rowsort
SELECT ALL - 78 + - 18 * 49 - ( + + 93 ) * + 30 - 51
----
-3801

query I rowsort
SELECT 10 + - - 57
----
67

query I rowsort
SELECT 13 - - 96 + - 6 * + 43
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6568
SELECT 19 DIV - MAX( 87 ) AS col0, - 5
----
0
-5

skipif mysql # not compatible
query II rowsort label-6568
SELECT 19 / - MAX ( 87 ) AS col0, - 5
----
0
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT ALL + COUNT( * ) + + - 24 + 89 + + 99 - 31, 22 AS col2
----
134
22

skipif mysql # not compatible
query II rowsort label-6569
SELECT ALL + COUNT ( * ) + + - 24 + 89 + + 99 - 31, 22 AS col2
----
134
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL + 78 + SUM( ALL + 59 )
----
137

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + 78 + SUM ( ALL + 59 )
----
137

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

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

query I rowsort
SELECT - 56 + - 67
----
-123

query I rowsort
SELECT - 30 col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL + COUNT( ALL + 86 ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + COUNT ( ALL + 86 ) * - 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT DISTINCT - NULLIF ( - MAX( DISTINCT - 35 ), - - 49 + - SUM( ALL 42 ) * - 0 )
----
-35

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT - NULLIF ( - MAX ( DISTINCT - 35 ), - - 49 + - SUM ( ALL 42 ) * - 0 )
----
-35

query II rowsort
SELECT ALL - + 11 * 4 + + 53 AS col2, 12 * + - 18 + + - 79 + + - 20 + + 86
----
9
-229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT DISTINCT + 83 * - 40 - - 22 - - CAST( - NULLIF ( 80, - - COUNT( * ) + + - 99 ) AS SIGNED ) * + + ( - 49 )
----
622

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT + 83 * - 40 - - 22 - - CAST ( - NULLIF ( 80, - - COUNT ( * ) + + - 99 ) AS INTEGER ) * + + ( - 49 )
----
622

query I rowsort
SELECT - 27 * + ( - 19 )
----
513

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

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

query I rowsort
SELECT + + 2 + + 77 * - ( + + 89 )
----
-6851

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT - MIN( 0 ) * + 65
----
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - MIN ( 0 ) * + 65
----
0

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

query I rowsort
SELECT ALL + CASE - 46 WHEN + - 68 THEN + 21 END
----
NULL

query I rowsort
SELECT DISTINCT + + COALESCE ( + + 18, 9, 16 )
----
18

query I rowsort
SELECT ALL 3 * 35
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-6586
SELECT + 72 * 51 * + 11 + - - 90 + - SUM( ALL - + 61 ) AS col1, 38 AS col2
----
40543
38

skipif mysql # not compatible
query II rowsort label-6586
SELECT + 72 * 51 * + 11 + - - 90 + - SUM ( ALL - + 61 ) AS col1, 38 AS col2
----
40543
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6587
SELECT DISTINCT - 36 * - - 40 * + 92 * - 43 + 78 + 89 * + 46 * + 20 * + ( - 60 ) DIV - ( - SUM( ALL + 3 ) ) + - - 86 AS col1
----
4059204

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - 36 * - - 40 * + 92 * - 43 + 78 + 89 * + 46 * + 20 * + ( - 60 ) / - ( - SUM ( ALL + 3 ) ) + - - 86 AS col1
----
4059204

query II rowsort
SELECT + 71, - 88 col2
----
71
-88

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

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

query I rowsort
SELECT + + 6 - - 84 AS col0
----
90

query II rowsort
SELECT 83 AS col0, - 91 - - 16 AS col1
----
83
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT ALL 1 DIV + - 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL 1 / + - 7 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT + NULLIF ( + COUNT( * ), - 25 * + 50 ) / + CAST( NULL AS SIGNED ) + + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT + NULLIF ( + COUNT ( * ), - 25 * + 50 ) / + CAST ( NULL AS INTEGER ) + + + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT MIN( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-6595
SELECT MIN ( - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL 1 * 33 + - ( + 79 ) * + - 56 + + NULLIF ( + ( + MIN( - ( 47 ) ) ), - + 39 * + + ( 63 ) )
----
4410

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL 1 * 33 + - ( + 79 ) * + - 56 + + NULLIF ( + ( + MIN ( - ( 47 ) ) ), - + 39 * + + ( 63 ) )
----
4410

query I rowsort
SELECT + 36 - 93 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL COUNT( * ) + - 5 col0
----
-4

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL COUNT ( * ) + - 5 col0
----
-4

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

skipif mysql # not compatible
query I rowsort label-6599
SELECT MIN ( ALL 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6600
SELECT - 88 + 63 AS col1, + NULLIF ( - + 6, + - 98 * + - COUNT( * ) * 11 + + NULLIF ( + CASE - 61 WHEN ( - AVG ( + 17 ) ) THEN 92 WHEN 15 THEN + 24 + + MIN( 30 ) ELSE - 49 + - 13 * + 52 END, + 5 + + + 75 * CAST( + MIN( ALL + 52 ) AS DECIMAL ) ) * NULLIF ( ( + 72 ), + 54 + + 73 ) + + 72 * - ( - SUM( ALL 33 ) ) ) * + 36
----
-25
-216

skipif mysql # not compatible
query II rowsort label-6600
SELECT - 88 + 63 AS col1, + NULLIF ( - + 6, + - 98 * + - COUNT ( * ) * 11 + + NULLIF ( + CASE - 61 WHEN ( - AVG ( + 17 ) ) THEN 92 WHEN 15 THEN + 24 + + MIN ( 30 ) ELSE - 49 + - 13 * + 52 END, + 5 + + + 75 * CAST ( + MIN ( ALL + 52 ) AS REAL ) ) * NULLIF ( ( + 72 ), + 54 + + 73 ) + + 72 * - ( - SUM ( ALL 33 ) ) ) * + 36
----
-25
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT SUM( ALL - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT SUM ( ALL - 90 ) AS col0
----
-90

query I rowsort
SELECT + 17 * 72
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + 76 + + - 27 + + - 10 + - COUNT( * ) * 15 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6603
SELECT + 76 + + - 27 + + - 10 + - COUNT ( * ) * 15 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL COUNT( ALL ( - 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL COUNT ( ALL ( - 55 ) )
----
1

query II rowsort
SELECT + 52 + + 64, - 4 AS col1
----
116
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6606
SELECT ALL 58 + + ( 98 ) DIV + MIN( DISTINCT - 35 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 58 + + ( 98 ) / + MIN ( DISTINCT - 35 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6607
SELECT DISTINCT 74 AS col1, - 22 - COUNT( * ) + 49
----
74
26

skipif mysql # not compatible
query II rowsort label-6607
SELECT DISTINCT 74 AS col1, - 22 - COUNT ( * ) + 49
----
74
26

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

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

query I rowsort
SELECT ALL + 92 + 98 + - - COALESCE ( + + 77, + 8 * + + 6 * - 73, 19 )
----
267

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

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

query I rowsort
SELECT DISTINCT 10 + - + ( - 68 ) col2
----
78

query I rowsort
SELECT - 22 * - 19 AS col2
----
418

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

query I rowsort
SELECT - NULLIF ( 75, - 88 )
----
-75

query I rowsort
SELECT ALL - 92 - + 2 - - 91 + + + 65 * 27 + - 43
----
1709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT + + 12 + - CASE 31 WHEN - COUNT( * ) * - CAST( NULL AS SIGNED ) THEN - - NULLIF ( - + 18, 86 ) END + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT + + 12 + - CASE 31 WHEN - COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN - - NULLIF ( - + 18, 86 ) END + - 51
----
NULL

query I rowsort
SELECT - - 54 * + + 12 + + 98 + + 76
----
822

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

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

query I rowsort
SELECT - - 37 + 37 + + 69 AS col0
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT - MAX( - 8 ) DIV + - 12 + 41
----
41

skipif mysql # not compatible
query I rowsort label-6620
SELECT - MAX ( - 8 ) / + - 12 + 41
----
41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT + + 13 DIV + + COUNT( * ) - ( - 96 ) + - + COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-6623
SELECT + + 13 / + + COUNT ( * ) - ( - 96 ) + - + COUNT ( * )
----
108

query I rowsort
SELECT ALL - 7 * - 11 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6625
SELECT ALL + + CAST( + 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + + CAST ( + 43 AS INTEGER )
----
43

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

query I rowsort
SELECT - - 52 * - ( + 56 )
----
-2912

query II rowsort
SELECT DISTINCT + 64 AS col1, 87 * - ( + 10 ) AS col1
----
64
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT + ( COALESCE ( - - 19, - + 76 * - COUNT( * ) ) )
----
19

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT + ( COALESCE ( - - 19, - + 76 * - COUNT ( * ) ) )
----
19

query I rowsort
SELECT ALL - 46 * + 14 + 84 col2
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT SUM( + 39 ) * - 17 * + 31
----
-20553

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT SUM ( + 39 ) * - 17 * + 31
----
-20553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT - CAST( - + 28 AS SIGNED ) * - - 97 + + + 89 AS col0
----
2805

skipif mysql # not compatible
query I rowsort label-6632
SELECT - CAST ( - + 28 AS INTEGER ) * - - 97 + + + 89 AS col0
----
2805

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6634
SELECT + CAST( 62 AS SIGNED ), 15 col1
----
62
15

skipif mysql # not compatible
query II rowsort label-6634
SELECT + CAST ( 62 AS INTEGER ), 15 col1
----
62
15

query I rowsort
SELECT CASE + - 8 WHEN 52 * - 69 + - 35 * + + ( 52 ) THEN 95 END AS col0
----
NULL

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

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

query I rowsort
SELECT + 94 + - - 63 + 68 - + 29 col0
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6638
SELECT + 53 DIV - 88 col1, + 94 * - COUNT( * ) + 7 col0
----
0
-87

skipif mysql # not compatible
query II rowsort label-6638
SELECT + 53 / - 88 col1, + 94 * - COUNT ( * ) + 7 col0
----
0
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + 19 * 67 + COUNT( * ) * + 3
----
1276

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + 19 * 67 + COUNT ( * ) * + 3
----
1276

query II rowsort
SELECT ALL 40 + + 20 AS col0, - ( - + 14 )
----
60
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL COUNT( * ) - + 24 * 37
----
-887

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL COUNT ( * ) - + 24 * 37
----
-887

query I rowsort
SELECT 28 * + 78
----
2184

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6644
SELECT + 9 - - ( + COUNT( 43 ) ) + COUNT( * ) DIV - CAST( + 62 AS SIGNED ) * + 81 DIV - 6 + 31 - + + 56 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6644
SELECT + 9 - - ( + COUNT ( 43 ) ) + COUNT ( * ) / - CAST ( + 62 AS INTEGER ) * + 81 / - 6 + 31 - + + 56 AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT ALL 93 - COALESCE ( - ( 26 ), ( - 16 ) DIV - 99 + + 66 DIV + - 86 * COUNT( - + 72 ), 21 DIV - 39 + - - 34 ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL 93 - COALESCE ( - ( 26 ), ( - 16 ) / - 99 + + 66 / + - 86 * COUNT ( - + 72 ), 21 / - 39 + - - 34 ) AS col0
----
119

query I rowsort
SELECT DISTINCT + 69 * - 29 col2
----
-2001

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT - COALESCE ( - + 11, + 90 ) AS col2, COUNT( * ) - - + 67 AS col2
----
11
68

skipif mysql # not compatible
query II rowsort label-6648
SELECT - COALESCE ( - + 11, + 90 ) AS col2, COUNT ( * ) - - + 67 AS col2
----
11
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT + 12 DIV - 39 * - - 73 * + + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT + 12 / - 39 * - - 73 * + + 13 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT CAST( + 23 AS SIGNED ) * 15 * - 94
----
-32430

skipif mysql # not compatible
query I rowsort label-6651
SELECT CAST ( + 23 AS INTEGER ) * 15 * - 94
----
-32430

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL - MAX( ALL 41 ) + - 28
----
-69

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - MAX ( ALL 41 ) + - 28
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT ALL NULLIF ( + + ( 11 ), - 23 DIV - 85 ) DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL NULLIF ( + + ( 11 ), - 23 / - 85 ) / + 52 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT 38 DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-6654
SELECT 38 / 10
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6655
SELECT ALL - - 42 + 17 * - 58 DIV COUNT( * ) col1
----
-944

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - - 42 + 17 * - 58 / COUNT ( * ) col1
----
-944

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

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

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

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

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

query I rowsort
SELECT 88 + + + 10 AS col1
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT - MAX( ALL - - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - MAX ( ALL - - 84 )
----
-84

query I rowsort
SELECT 4 - CASE - + 77 WHEN 1 THEN 23 + + - 3 * + 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL + MAX( + 40 ) + - - 3 - - 57
----
100

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL + MAX ( + 40 ) + - - 3 - - 57
----
100

query I rowsort
SELECT 22 + - 7 + + 66
----
81

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

skipif mysql # not compatible
query I rowsort label-6666
SELECT 28 * + 81 * + COUNT ( * ) * 31 AS col1
----
70308

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

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

query I rowsort
SELECT 38 + + 66 AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6669
SELECT 74, - CAST( 23 AS SIGNED ) AS col0
----
74
-23

skipif mysql # not compatible
query II rowsort label-6669
SELECT 74, - CAST ( 23 AS INTEGER ) AS col0
----
74
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT - ( 6 ) + - 46 * + 1 * 58 * 39 * - - 69 * + 84 + - 8 + + COUNT( DISTINCT 38 )
----
-603085405

skipif mysql # not compatible
query I rowsort label-6670
SELECT - ( 6 ) + - 46 * + 1 * 58 * 39 * - - 69 * + 84 + - 8 + + COUNT ( DISTINCT 38 )
----
-603085405

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL + - 82 * + 60 - - 46 - - - COUNT( * ) * - + 25 AS col1
----
-4849

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + - 82 * + 60 - - 46 - - - COUNT ( * ) * - + 25 AS col1
----
-4849

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT DISTINCT - - COALESCE ( NULLIF ( 5, - 80 + 57 + 10 / - ( - 94 ) * + + ( COALESCE ( - COUNT( * ), + - 14 / + ( + 35 ) ) ) * COUNT( * ) + + 68 + + 8 + 88 ), - 4 ) * COUNT( * ) + + 48, - 74 * + - 6 AS col0
----
53
444

skipif mysql # not compatible
query II rowsort label-6672
SELECT DISTINCT - - COALESCE ( NULLIF ( 5, - 80 + 57 + 10 / - ( - 94 ) * + + ( COALESCE ( - COUNT ( * ), + - 14 / + ( + 35 ) ) ) * COUNT ( * ) + + 68 + + 8 + 88 ), - 4 ) * COUNT ( * ) + + 48, - 74 * + - 6 AS col0
----
53
444

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT ALL - 15, + 28 + + 93 + COUNT( * ) AS col2
----
-15
122

skipif mysql # not compatible
query II rowsort label-6673
SELECT ALL - 15, + 28 + + 93 + COUNT ( * ) AS col2
----
-15
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6674
SELECT ALL + COALESCE ( + COUNT( * ), - COUNT( * ) + + 77 ), + COUNT( * ) DIV - 50 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6674
SELECT ALL + COALESCE ( + COUNT ( * ), - COUNT ( * ) + + 77 ), + COUNT ( * ) / - 50 col0
----
1
0

query II rowsort
SELECT DISTINCT 83, + 78 * - CASE - 74 WHEN + 77 + - 63 THEN + 39 ELSE + - 75 * - 2 END - - + 0 AS col2
----
83
-11700

query I rowsort
SELECT ALL - ( - 68 ) * 54 AS col2
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - COUNT( ALL - ( + 96 ) ) + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-6677
SELECT - COUNT ( ALL - ( + 96 ) ) + - 9
----
-10

query II rowsort
SELECT - 89 AS col2, + 60 * 75 * + - 82
----
-89
-369000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL COUNT( * ) + - 58 / + - 75 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL COUNT ( * ) + - 58 / + - 75 * - - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6681
SELECT ALL 49 + ( COUNT( * ) ) AS col1, - 62 * + - 9 AS col1
----
50
558

skipif mysql # not compatible
query II rowsort label-6681
SELECT ALL 49 + ( COUNT ( * ) ) AS col1, - 62 * + - 9 AS col1
----
50
558

query I rowsort
SELECT + 19 + - COALESCE ( + - ( 45 ), + 76, + 53 )
----
64

query I rowsort
SELECT ALL - 13 + 97 AS col1
----
84

query I rowsort
SELECT DISTINCT 97 + - + 2 * - 73 AS col1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL + ( + - NULLIF ( - + COUNT( * ), + - 8 * + - 98 ) ) + ( - - 44 ) + + 88
----
133

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + ( + - NULLIF ( - + COUNT ( * ), + - 8 * + - 98 ) ) + ( - - 44 ) + + 88
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT + - 47 DIV 27 - + 99 + - 41 + 70 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6686
SELECT + - 47 / 27 - + 99 + - 41 + 70 AS col1
----
-71

query I rowsort
SELECT ALL - 90 * + 63 + - 90 AS col2
----
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT - - CASE + - 1 WHEN + 70 THEN 2 * 74 / 29 WHEN - - 73 / - 15 + ( + MAX( + + 92 ) ) + 35 * - 53 + 34 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT - - CASE + - 1 WHEN + 70 THEN 2 * 74 / 29 WHEN - - 73 / - 15 + ( + MAX ( + + 92 ) ) + 35 * - 53 + 34 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + 3 * + 30 + - 98 AS col2
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL - ( + COALESCE ( + - 71, + 97 + - 42 + - 1 * + 77 * + ( - 7 ) * - COUNT( DISTINCT - + 14 ) * - 40 ) ) * 10 * - + 21 + - 3 + 79 AS col0
----
-14834

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - ( + COALESCE ( + - 71, + 97 + - 42 + - 1 * + 77 * + ( - 7 ) * - COUNT ( DISTINCT - + 14 ) * - 40 ) ) * 10 * - + 21 + - 3 + 79 AS col0
----
-14834

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT - 14 * + COALESCE ( 49, - 62 * ( - COALESCE ( - 75, - 61 ) ) * - + COUNT( * ) * 43 * - + 49 - + MAX( 89 ) ) + - COUNT( * ) AS col0
----
-687

skipif mysql # not compatible
query I rowsort label-6692
SELECT - 14 * + COALESCE ( 49, - 62 * ( - COALESCE ( - 75, - 61 ) ) * - + COUNT ( * ) * 43 * - + 49 - + MAX ( 89 ) ) + - COUNT ( * ) AS col0
----
-687

query I rowsort
SELECT ( - 2 ) * - 53 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT MIN( DISTINCT ( 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-6694
SELECT MIN ( DISTINCT ( 15 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT COUNT( * ) * NULLIF ( + 66, + 88 * + 20 ) + 10 * - 39
----
-324

skipif mysql # not compatible
query I rowsort label-6695
SELECT COUNT ( * ) * NULLIF ( + 66, + 88 * + 20 ) + 10 * - 39
----
-324

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

skipif mysql # not compatible
query I rowsort label-6696
SELECT - COUNT ( * ) + - 79 AS col0
----
-80

query I rowsort
SELECT ALL + 60 * 79 * - 12 AS col1
----
-56880

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

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

query I rowsort
SELECT + NULLIF ( + 91, 9 * + + 24 ) AS col2
----
91

query I rowsort
SELECT - 99 + 11
----
-88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6702
SELECT - CASE - CASE - COALESCE ( MIN( ALL - 41 ), - + 83 / 71 - - + 93 + + 83 / 93 - + + NULLIF ( + 62, - 88 ) ) WHEN - 78 * - 20 THEN - + 63 * - + 7 WHEN + CASE + 55 WHEN + - ( + 57 ) * - + 58 THEN + 26 * + 19 WHEN 32 THEN 24 ELSE - - COUNT( * ) + - CASE + MAX( - - 6 ) WHEN - 74 + 78 THEN NULL ELSE 13 END END THEN - - 90 - - 40 ELSE NULL END WHEN 91 THEN NULL ELSE COUNT( * ) END * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT - CASE - CASE - COALESCE ( MIN ( ALL - 41 ), - + 83 / 71 - - + 93 + + 83 / 93 - + + NULLIF ( + 62, - 88 ) ) WHEN - 78 * - 20 THEN - + 63 * - + 7 WHEN + CASE + 55 WHEN + - ( + 57 ) * - + 58 THEN + 26 * + 19 WHEN 32 THEN 24 ELSE - - COUNT ( * ) + - CASE + MAX ( - - 6 ) WHEN - 74 + 78 THEN NULL ELSE 13 END END THEN - - 90 - - 40 ELSE NULL END WHEN 91 THEN NULL ELSE COUNT ( * ) END * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 81 * 47 + - 57
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT DISTINCT COUNT( + NULLIF ( 0, - 73 * + 63 + - 59 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT COUNT ( + NULLIF ( 0, - 73 * + 63 + - 59 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL + 80 * + 61 * + - 81 * + 9 * + + 46 * + COUNT( * ) AS col0
----
-163645920

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + 80 * + 61 * + - 81 * + 9 * + + 46 * + COUNT ( * ) AS col0
----
-163645920

query I rowsort
SELECT - - 75 * + 76 AS col1
----
5700

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

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT + - COUNT ( * ) / + ( - 71 )
----
0

query I rowsort
SELECT - 23 + 43
----
20

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

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

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

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

query I rowsort
SELECT ALL + 28 + + + 52 + - 94 AS col1
----
-14

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

query I rowsort
SELECT - + 48 * NULLIF ( + 10, - 32 )
----
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6714
SELECT - COUNT( * ) - - COALESCE ( + + 78, - 0 + 85, 83, + 52 ) DIV 96 * - 10 + 80
----
79

skipif mysql # not compatible
query I rowsort label-6714
SELECT - COUNT ( * ) - - COALESCE ( + + 78, - 0 + 85, 83, + 52 ) / 96 * - 10 + 80
----
79

query I rowsort
SELECT - - 73 * - - 66 * + 39
----
187902

query I rowsort
SELECT ALL + 68 + - 91 AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT DISTINCT - 76 DIV + 69 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT - 76 / + 69 * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL 83 + - SUM( ALL - - 28 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL 83 + - SUM ( ALL - - 28 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + CASE - - 12 WHEN 88 THEN + COUNT( * ) WHEN + SUM( ( - 26 ) ) + - - 18 + + 98 / + - 2 * - - 30 THEN NULL ELSE NULL END * ( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT + CASE - - 12 WHEN 88 THEN + COUNT ( * ) WHEN + SUM ( ( - 26 ) ) + - - 18 + + 98 / + - 2 * - - 30 THEN NULL ELSE NULL END * ( + 78 )
----
NULL

query I rowsort
SELECT ALL 22 + - 73 + + 23 AS col0
----
-28

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

skipif mysql # not compatible
query I rowsort label-6721
SELECT - COUNT ( ALL + - 30 ) AS col0
----
-1

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6725
SELECT + NULLIF ( 15, COUNT ( * ) * + - 1 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL COALESCE ( + COUNT( + 41 ), - 19 ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL COALESCE ( + COUNT ( + 41 ), - 19 ) * - 10
----
-10

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

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL CAST ( NULL AS INTEGER ) * - 74
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6730
SELECT + COUNT( + - 29 ) * + - 17 * + - COALESCE ( - 8, + - ( + 38 ) * - - ( + 48 ) * + 77 * - 43 - 62 DIV - 39 ) * + 49 * - + ( + COUNT( * ) )
----
6664

skipif mysql # not compatible
query I rowsort label-6730
SELECT + COUNT ( + - 29 ) * + - 17 * + - COALESCE ( - 8, + - ( + 38 ) * - - ( + 48 ) * + 77 * - 43 - 62 / - 39 ) * + 49 * - + ( + COUNT ( * ) )
----
6664

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

query I rowsort
SELECT + 18 + - + ( - 38 ) col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + 94 + CASE - 97 WHEN - 8 + - 98 + - - COUNT( * ) THEN - COUNT( * ) + + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT + 94 + CASE - 97 WHEN - 8 + - 98 + - - COUNT ( * ) THEN - COUNT ( * ) + + 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6735
SELECT ( + - NULLIF ( CAST( CASE - + CASE + 99 WHEN - 82 * + 7 THEN + 30 * - + ( - 89 ) * 92 ELSE COUNT( * ) END WHEN 12 THEN + CAST( 0 AS SIGNED ) + - + COUNT( * ) * - 75 * - 22 * 73 + + + 9 WHEN - + COUNT( * ) THEN NULL END AS DECIMAL ), 13 + - + AVG ( DISTINCT 2 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT ( + - NULLIF ( CAST ( CASE - + CASE + 99 WHEN - 82 * + 7 THEN + 30 * - + ( - 89 ) * 92 ELSE COUNT ( * ) END WHEN 12 THEN + CAST ( 0 AS INTEGER ) + - + COUNT ( * ) * - 75 * - 22 * 73 + + + 9 WHEN - + COUNT ( * ) THEN NULL END AS REAL ), 13 + - + AVG ( DISTINCT 2 ) ) ) AS col2
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 99, 71 * + 32 AS col2
----
99
2272

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT ALL 82 DIV - 8
----
-10

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL 82 / - 8
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT SUM( - 68 ) * + CAST( - + 62 AS SIGNED ) * ( + 61 ) + NULLIF ( + 76, + 13 - - 81 + + 22 * 68 ) + - - COUNT( * ) * ( 45 ) - - - 1 + - - 21 + + 50 + - - 73
----
257440

skipif mysql # not compatible
query I rowsort label-6739
SELECT SUM ( - 68 ) * + CAST ( - + 62 AS INTEGER ) * ( + 61 ) + NULLIF ( + 76, + 13 - - 81 + + 22 * 68 ) + - - COUNT ( * ) * ( 45 ) - - - 1 + - - 21 + + 50 + - - 73
----
257440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6740
SELECT - 93 DIV + COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6740
SELECT - 93 / + COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT - 77 * - 40 + + 12 - + 82
----
3010

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT ALL 46 DIV 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL 46 / 39 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT DISTINCT COUNT( * ) * + + 61 * 41 + + 5 col0
----
2506

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT COUNT ( * ) * + + 61 * 41 + + 5 col0
----
2506

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL MAX( ALL - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL MAX ( ALL - 44 ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6747
SELECT DISTINCT CAST( + ( AVG ( ALL - 98 ) ) AS SIGNED ) * + 92 + 8 DIV - - 42 AS col2
----
-9016

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT CAST ( + ( AVG ( ALL - 98 ) ) AS INTEGER ) * + 92 + 8 / - - 42 AS col2
----
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + NULLIF ( COUNT( ALL + - 69 ), + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT + NULLIF ( COUNT ( ALL + - 69 ), + + COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT - 51 AS col0, - 59
----
-51
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT CASE 48 WHEN + 70 * + 60 + - 24 - 93 + + SUM( - 53 ) * + 29 * + 87 THEN 62 / - - MAX( CAST( NULL AS SIGNED ) ) + 26 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT CASE 48 WHEN + 70 * + 60 + - 24 - 93 + + SUM ( - 53 ) * + 29 * + 87 THEN 62 / - - MAX ( CAST ( NULL AS INTEGER ) ) + 26 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT - - 19 + 68 + - - 42 - - - 4 + - 29 + - 1 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6751
SELECT - - 19 + 68 + - - 42 - - - 4 + - 29 + - 1 + COUNT ( * )
----
96

query I rowsort
SELECT DISTINCT + - 64 + - - 66 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6753
SELECT DISTINCT - SUM( ALL 58 ) * + 11, - 5 AS col2
----
-638
-5

skipif mysql # not compatible
query II rowsort label-6753
SELECT DISTINCT - SUM ( ALL 58 ) * + 11, - 5 AS col2
----
-638
-5

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

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL + COUNT ( * ) + 17 AS col1
----
18

query I rowsort
SELECT - + 42 + - 95 AS col1
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT - - 36 / - CASE + AVG ( 48 ) WHEN - COALESCE ( + - CASE 63 WHEN 43 THEN NULL ELSE + MIN( ALL + 53 ) * + 9 + - 40 + + + CAST( NULL AS SIGNED ) + - + 20 END, + ( - 59 ), + + 51 * + + CASE - 22 WHEN - 22 THEN - 35 END ) THEN NULL WHEN - 85 - 96 THEN + - 74 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT - - 36 / - CASE + AVG ( 48 ) WHEN - COALESCE ( + - CASE 63 WHEN 43 THEN NULL ELSE + MIN ( ALL + 53 ) * + 9 + - 40 + + + CAST ( NULL AS INTEGER ) + - + 20 END, + ( - 59 ), + + 51 * + + CASE - 22 WHEN - 22 THEN - 35 END ) THEN NULL WHEN - 85 - 96 THEN + - 74 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT - + 92 * - + 57 + 97 + 2 AS col2
----
5343

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

query I rowsort
SELECT ALL - 81 * - 53
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT - 3 + MAX( DISTINCT - + 49 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-6761
SELECT - 3 + MAX ( DISTINCT - + 49 ) AS col2
----
-52

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6763
SELECT DISTINCT + 87 * - + NULLIF ( - 61, + - AVG ( + 49 ) / - CAST( ( - 39 ) AS DECIMAL ) + 90 ) AS col0
----
5307

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT + 87 * - + NULLIF ( - 61, + - AVG ( + 49 ) / - CAST ( ( - 39 ) AS REAL ) + 90 ) AS col0
----
5307

query II rowsort
SELECT ALL 41 AS col0, + 32 AS col1
----
41
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT DISTINCT - COUNT( - - 81 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT - COUNT ( - - 81 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT ALL + 6 DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + 6 / - 46 AS col2
----
0

query I rowsort
SELECT 13 * + NULLIF ( - 54, 64 * - 43 )
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT COUNT( * ) + + 85 + - - COUNT( * ) + - 95 * - + COUNT( * )
----
182

skipif mysql # not compatible
query I rowsort label-6768
SELECT COUNT ( * ) + + 85 + - - COUNT ( * ) + - 95 * - + COUNT ( * )
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT 19 DIV 47 * + + COUNT( * ) * - + ( - 55 ) * + - 89 * 99 * + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6769
SELECT 19 / 47 * + + COUNT ( * ) * - + ( - 55 ) * + - 89 * 99 * + 34 AS col0
----
0

query I rowsort
SELECT 64 * + 58
----
3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT + 73 / + - ( - - 94 ) + CAST( NULL AS SIGNED ) + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT + 73 / + - ( - - 94 ) + CAST ( NULL AS INTEGER ) + 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6772
SELECT ALL - 3 col2, + 34 DIV 19 + + 31 - + COUNT( - ( 35 ) ) + 86
----
-3
117

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL - 3 col2, + 34 / 19 + + 31 - + COUNT ( - ( 35 ) ) + 86
----
-3
117

query II rowsort
SELECT 47 AS col1, + 10 + + 46
----
47
56

query I rowsort
SELECT 77 * - 93
----
-7161

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

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

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT 93 + + - 9 * 95 + SUM( DISTINCT + 99 ) col0
----
-663

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT 93 + + - 9 * 95 + SUM ( DISTINCT + 99 ) col0
----
-663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT 67 * + CAST( + 20 AS SIGNED )
----
1340

skipif mysql # not compatible
query I rowsort label-6778
SELECT 67 * + CAST ( + 20 AS INTEGER )
----
1340

query I rowsort
SELECT ALL 28 + + - 1 AS col1
----
27

query I rowsort
SELECT ALL 40 * + + 13 AS col1
----
520

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

query I rowsort
SELECT DISTINCT 75 + + 50 + 86
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL + COUNT( * ) + ( - 65 ) + - 92 * + 57 + - 11 AS col2
----
-5319

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + COUNT ( * ) + ( - 65 ) + - 92 * + 57 + - 11 AS col2
----
-5319

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

query II rowsort
SELECT ALL - - 2, + 24 col0
----
2
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6786
SELECT DISTINCT 41 + + 40 - - 63 + + COUNT( * ) DIV - NULLIF ( - 49, - 65 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT 41 + + 40 - - 63 + + COUNT ( * ) / - NULLIF ( - 49, - 65 ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT + COUNT( * ), - 19 * + 77 AS col0
----
1
-1463

skipif mysql # not compatible
query II rowsort label-6787
SELECT + COUNT ( * ), - 19 * + 77 AS col0
----
1
-1463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6788
SELECT DISTINCT + - 62 + + COUNT( CAST( - 24 AS SIGNED ) ) * 9 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + - 62 + + COUNT ( CAST ( - 24 AS INTEGER ) ) * 9 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT DISTINCT + NULLIF ( SUM( DISTINCT - - NULLIF ( - 65, + 36 ) ), 63 ) DIV + 25
----
-2

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT + NULLIF ( SUM ( DISTINCT - - NULLIF ( - 65, + 36 ) ), 63 ) / + 25
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT ALL - 46 * + - 31 * - 86 + + CAST( + 33 AS SIGNED ) col2
----
-122603

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL - 46 * + - 31 * - 86 + + CAST ( + 33 AS INTEGER ) col2
----
-122603

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL - COUNT( - NULLIF ( - COALESCE ( 53, + 15 ), + 61 ) ) * - - 35
----
-35

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL - COUNT ( - NULLIF ( - COALESCE ( 53, + 15 ), + 61 ) ) * - - 35
----
-35

query II rowsort
SELECT - 53 AS col2, 9
----
-53
9

query I rowsort
SELECT + 21 + + 18 * 58 AS col1
----
1065

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6794
SELECT CASE 97 WHEN - + 93 * 74 + + CAST( NULL AS DECIMAL ) * 18 * - 90 THEN NULL ELSE + CAST( NULL AS SIGNED ) END * - CAST( NULL AS SIGNED ) * + 66 + + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT CASE 97 WHEN - + 93 * 74 + + CAST ( NULL AS REAL ) * 18 * - 90 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * - CAST ( NULL AS INTEGER ) * + 66 + + + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6795
SELECT - COUNT( * ), 36 + - + 61 DIV - 44 AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-6795
SELECT - COUNT ( * ), 36 + - + 61 / - 44 AS col2
----
-1
37

query I rowsort
SELECT 82 + + - 3 AS col1
----
79

query I rowsort
SELECT ALL 4 * + 79 AS col0
----
316

query I rowsort
SELECT ALL + 27 - - ( + 91 ) + - - 67 AS col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT 30 * - - 83 * - 95 * - + COUNT( ALL - 38 )
----
236550

skipif mysql # not compatible
query I rowsort label-6799
SELECT 30 * - - 83 * - 95 * - + COUNT ( ALL - 38 )
----
236550

query I rowsort
SELECT - 62 * - 26 AS col2
----
1612

query II rowsort
SELECT DISTINCT 32 col1, + 88 AS col1
----
32
88

query I rowsort
SELECT DISTINCT 88 col2
----
88

query I rowsort
SELECT ALL - 1 * + 82
----
-82

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

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

query I rowsort
SELECT 22 * + 25
----
550

query I rowsort
SELECT 58 * 94 * - 14 AS col0
----
-76328

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT ALL + 1 * 62, - COUNT( * ) * + ( + 41 ) * 89 AS col2
----
62
-3649

skipif mysql # not compatible
query II rowsort label-6807
SELECT ALL + 1 * 62, - COUNT ( * ) * + ( + 41 ) * 89 AS col2
----
62
-3649

query I rowsort
SELECT 29 - - 45 + - 37
----
37

query I rowsort
SELECT DISTINCT + 84 * + + 59 * + 11
----
54516

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

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

query I rowsort
SELECT ALL + 75 + - 30 + - 5 * - + 25
----
170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL 52 + + - ( + SUM( ALL - - 65 ) ) + - - 24
----
11

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL 52 + + - ( + SUM ( ALL - - 65 ) ) + - - 24
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL 28 + - COUNT( * ) + + 82
----
109

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL 28 + - COUNT ( * ) + + 82
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + 81 * + MAX( DISTINCT + 30 ) - 58
----
2372

skipif mysql # not compatible
query I rowsort label-6815
SELECT + 81 * + MAX ( DISTINCT + 30 ) - 58
----
2372

query II rowsort
SELECT ALL - ( - 87 ) col1, 53 * + 10 - + 50 AS col0
----
87
480

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL - 12 + + 92 + 68 * + 40 - COUNT( * )
----
2799

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - 12 + + 92 + 68 * + 40 - COUNT ( * )
----
2799

query I rowsort
SELECT 47 + + ( + + 47 )
----
94

query I rowsort
SELECT 57 + - + 57
----
0

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

query I rowsort
SELECT 52 * - + 41 * + 83 * + 40 + 55 + - + 84 AS col0
----
-7078269

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6822
SELECT ALL 86 * - 89 col1, COUNT( * ) DIV + 32 * - - 60
----
-7654
0

skipif mysql # not compatible
query II rowsort label-6822
SELECT ALL 86 * - 89 col1, COUNT ( * ) / + 32 * - - 60
----
-7654
0

query I rowsort
SELECT ALL - 7 col2
----
-7

query I rowsort
SELECT ALL + + 56 + - 29 AS col1
----
27

query I rowsort
SELECT 97 + - 91 AS col0
----
6

query I rowsort
SELECT ALL - 97 - 16 + 3 - + - 11 - - 43 + 82
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - 91 + COUNT( * ) * + 22 * + 75
----
1559

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - 91 + COUNT ( * ) * + 22 * + 75
----
1559

query I rowsort
SELECT ALL + 17 - 11 * - - 17
----
-170

query II rowsort
SELECT 76 + + + 98, ( + + 55 ) AS col1
----
174
55

query I rowsort
SELECT - 76 * + 83 + 51 AS col0
----
-6257

query II rowsort
SELECT 7 * 74, 64 AS col2
----
518
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT - ( + - CAST( NULL AS SIGNED ) ) + + NULLIF ( - - 41, - + 53 + 27 + - - 28 / - + 78 * - + 52 ) + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT - ( + - CAST ( NULL AS INTEGER ) ) + + NULLIF ( - - 41, - + 53 + 27 + - - 28 / - + 78 * - + 52 ) + - 71 AS col1
----
NULL

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

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

query I rowsort
SELECT + 90 + + 1 AS col2
----
91

query II rowsort
SELECT ALL - ( 26 ) AS col1, + 75
----
-26
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6836
SELECT + + 10 DIV - - 95 + - 35 * COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6836
SELECT + + 10 / - - 95 + - 35 * COUNT ( * )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT ALL NULLIF ( - ( CAST( - SUM( DISTINCT - COALESCE ( + 36, - + 62 ) ) AS SIGNED ) ), 69 ) * + + 42 AS col1
----
-1512

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL NULLIF ( - ( CAST ( - SUM ( DISTINCT - COALESCE ( + 36, - + 62 ) ) AS INTEGER ) ), 69 ) * + + 42 AS col1
----
-1512

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT + 7 * + + CASE - ( CAST( + 66 AS SIGNED ) ) WHEN - 29 THEN + COUNT( * ) ELSE - COALESCE ( + CAST( NULL AS SIGNED ), 21, - 74 ) END
----
-147

skipif mysql # not compatible
query I rowsort label-6839
SELECT + 7 * + + CASE - ( CAST ( + 66 AS INTEGER ) ) WHEN - 29 THEN + COUNT ( * ) ELSE - COALESCE ( + CAST ( NULL AS INTEGER ), 21, - 74 ) END
----
-147

query I rowsort
SELECT + 18 + + 90 AS col1
----
108

query I rowsort
SELECT - CASE + - 80 WHEN + + 49 * - + 64 + - 11 / + 30 THEN + 58 END + 91 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT + 95 DIV ( + 28 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-6842
SELECT + 95 / ( + 28 ) col2
----
3

query I rowsort
SELECT + 12 + - 44
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT - MIN( - 41 ) * + NULLIF ( + 33, - COUNT( * ) ) * 40 AS col0
----
54120

skipif mysql # not compatible
query I rowsort label-6844
SELECT - MIN ( - 41 ) * + NULLIF ( + 33, - COUNT ( * ) ) * 40 AS col0
----
54120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT + 88 + + CASE - - 68 WHEN - + CAST( NULL AS SIGNED ) * - + 63 THEN 18 + + SUM( - + 61 ) / - + ( - 16 ) * - 55 - + 12 + 73 + + - 47 WHEN - + 98 / 94 + + ( + 90 ) + + 44 THEN NULL END + - 31 * + 60 * 60 * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT + 88 + + CASE - - 68 WHEN - + CAST ( NULL AS INTEGER ) * - + 63 THEN 18 + + SUM ( - + 61 ) / - + ( - 16 ) * - 55 - + 12 + 73 + + - 47 WHEN - + 98 / 94 + + ( + 90 ) + + 44 THEN NULL END + - 31 * + 60 * 60 * - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL - 43 + - COUNT( ALL + 6 )
----
-44

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - 43 + - COUNT ( ALL + 6 )
----
-44

query I rowsort
SELECT + 65 + - 49 AS col2
----
16

query I rowsort
SELECT ALL 70 + + 39 * - + 33 * - 2
----
2644

query II rowsort
SELECT ALL 57 AS col1, 96 * - 70 AS col2
----
57
-6720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL NULLIF ( - 10, + COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL NULLIF ( - 10, + COUNT ( * ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL 84 * + 55 + MIN( - 54 ) * - 23 AS col0
----
5862

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL 84 * + 55 + MIN ( - 54 ) * - 23 AS col0
----
5862

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

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

query II rowsort
SELECT - ( - 68 ) + + 17, - 53 AS col0
----
85
-53

query I rowsort
SELECT ALL 27 * + 92 * 52 + 73 + 27 + - - 26 AS col2
----
129294

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ALL 33 * + - COUNT( * ) + 17 + 13 * + - 92
----
-1212

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL 33 * + - COUNT ( * ) + 17 + 13 * + - 92
----
-1212

query I rowsort
SELECT DISTINCT + 53 * 1 AS col1
----
53

query I rowsort
SELECT - ( + 36 ) * - 53 AS col1
----
1908

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

query I rowsort
SELECT DISTINCT - + NULLIF ( + 49, 35 ) * - - 83 - + + 67
----
-4134

query I rowsort
SELECT + CASE - - 39 WHEN + 83 THEN NULL ELSE - - 73 END AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6864
SELECT DISTINCT + + 59, + CAST( NULL AS DECIMAL ) * - 49 * - ( - 43 ) * 20 * + 46 * - ( + COALESCE ( + 34, + - ( + COUNT( * ) ) ) ) + - 1 - + - COUNT( DISTINCT 28 ) * + 46 AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-6864
SELECT DISTINCT + + 59, + CAST ( NULL AS REAL ) * - 49 * - ( - 43 ) * 20 * + 46 * - ( + COALESCE ( + 34, + - ( + COUNT ( * ) ) ) ) + - 1 - + - COUNT ( DISTINCT 28 ) * + 46 AS col0
----
59
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT ALL - 60 DIV ( - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL - 60 / ( - 83 )
----
0

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

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

query I rowsort
SELECT + - 49 * 23
----
-1127

query II rowsort
SELECT + + 34, 20 - ( 96 ) col0
----
34
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT SUM( - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-6871
SELECT SUM ( - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT SUM( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT SUM ( - 24 )
----
-24

query I rowsort
SELECT DISTINCT + 91 * - - 68 * + 56
----
346528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6874
SELECT DISTINCT + MAX( DISTINCT + ( - 88 ) ), CAST( NULL AS SIGNED ) AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-6874
SELECT DISTINCT + MAX ( DISTINCT + ( - 88 ) ), CAST ( NULL AS INTEGER ) AS col1
----
-88
NULL

query I rowsort
SELECT - 50 * - 26 * 73 AS col1
----
94900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT MAX( DISTINCT + 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6877
SELECT MAX ( DISTINCT + 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6878
SELECT + 1 + + 4 * + COUNT( * ) + + 47 DIV 21
----
7

skipif mysql # not compatible
query I rowsort label-6878
SELECT + 1 + + 4 * + COUNT ( * ) + + 47 / 21
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT + ( - 64 ) DIV - ( + 81 ) - - 19
----
19

skipif mysql # not compatible
query I rowsort label-6879
SELECT + ( - 64 ) / - ( + 81 ) - - 19
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL 83 + + 55 + 26 + + - CAST( - 66 AS SIGNED ) * + NULLIF ( + 59, + CAST( - COUNT( * ) AS SIGNED ) )
----
4058

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL 83 + + 55 + 26 + + - CAST ( - 66 AS INTEGER ) * + NULLIF ( + 59, + CAST ( - COUNT ( * ) AS INTEGER ) )
----
4058

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + MAX( DISTINCT 47 ) * + 17 AS col1
----
799

skipif mysql # not compatible
query I rowsort label-6881
SELECT + MAX ( DISTINCT 47 ) * + 17 AS col1
----
799

query I rowsort
SELECT + 47 - - 99 * + 79 AS col2
----
7868

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL 59 + - - MIN( ALL + 96 )
----
155

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL 59 + - - MIN ( ALL + 96 )
----
155

query II rowsort
SELECT DISTINCT 18 + + 2 AS col0, 63
----
20
63

query I rowsort
SELECT ALL 76 + 54 AS col1
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT + 41 DIV 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6886
SELECT + 41 / 41 AS col2
----
1

query I rowsort
SELECT ALL 53 + - 6
----
47

query I rowsort
SELECT + 58 * 8
----
464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT DISTINCT 70 * COUNT( * ) * 71 / + - 85 * 40 * - + 27 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT 70 * COUNT ( * ) * 71 / + - 85 * 40 * - + 27 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT 82 + + 3 * 25 col0
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT DISTINCT 58 + + ( 5 ) DIV + 63 - + 40
----
18

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT 58 + + ( 5 ) / + 63 - + 40
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL 17 + - COALESCE ( COUNT( * ), + + 46 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL 17 + - COALESCE ( COUNT ( * ), + + 46 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + 23 * COUNT( * ) * 48 AS col1
----
1104

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 23 * COUNT ( * ) * 48 AS col1
----
1104

query I rowsort
SELECT + 57 * - + 80
----
-4560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6895
SELECT ALL MAX( DISTINCT CASE + 40 WHEN + + 92 THEN NULL ELSE + 32 END ) DIV 3 - + 73 - - 73 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL MAX ( DISTINCT CASE + 40 WHEN + + 92 THEN NULL ELSE + 32 END ) / 3 - + 73 - - 73 AS col1
----
10

query I rowsort
SELECT - NULLIF ( - - 2, + + 54 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6897
SELECT - CASE 34 WHEN - 54 THEN + ( + + 43 ) WHEN - - 46 + + + 40 THEN NULL ELSE NULL END * 56 - + 39 + - + 83 + - 24 + - + 36 * - 39 * + COUNT( * ) AS col2, + 1 * - 79
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-6897
SELECT - CASE 34 WHEN - 54 THEN + ( + + 43 ) WHEN - - 46 + + + 40 THEN NULL ELSE NULL END * 56 - + 39 + - + 83 + - 24 + - + 36 * - 39 * + COUNT ( * ) AS col2, + 1 * - 79
----
NULL
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT + - 58 * - + 89 + 96 - + + 41 AS col2, - 81 * - + COUNT( * ) col0
----
5217
81

skipif mysql # not compatible
query II rowsort label-6898
SELECT + - 58 * - + 89 + 96 - + + 41 AS col2, - 81 * - + COUNT ( * ) col0
----
5217
81

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

query I rowsort
SELECT + - 57 col0
----
-57

query I rowsort
SELECT DISTINCT + - 26 * 44 AS col2
----
-1144

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

skipif mysql # not compatible
query I rowsort label-6902
SELECT + - COUNT ( * ) / + 46 * + + 84 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT - - 3 * - CAST( NULL AS SIGNED ) * + + 29 * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT - - 3 * - CAST ( NULL AS INTEGER ) * + + 29 * 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6904
SELECT ALL - + CASE + 63 WHEN 61 * + COUNT( * ) THEN ( - MAX( + - 51 ) ) END col2, COUNT( * ) * - 38 DIV - 5 col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-6904
SELECT ALL - + CASE + 63 WHEN 61 * + COUNT ( * ) THEN ( - MAX ( + - 51 ) ) END col2, COUNT ( * ) * - 38 / - 5 col1
----
NULL
7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6907
SELECT 13 DIV - 9
----
-1

skipif mysql # not compatible
query I rowsort label-6907
SELECT 13 / - 9
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT ALL - + 84 * - 69 * - CAST( - - 25 AS SIGNED ) AS col2
----
-144900

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - + 84 * - 69 * - CAST ( - - 25 AS INTEGER ) AS col2
----
-144900

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT ALL + 57 + - + 89 DIV 68 + + 13 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + 57 + - + 89 / 68 + + 13 AS col0
----
69

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT 38 + CASE 79 WHEN + CAST( NULL AS SIGNED ) THEN + 92 * - 81 + + ( 44 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT 38 + CASE 79 WHEN + CAST ( NULL AS INTEGER ) THEN + 92 * - 81 + + ( 44 ) END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 77 + - 56
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT ALL - NULLIF ( 65, - 2 ) + + 11 DIV - NULLIF ( - + ( 10 ), + + 41 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL - NULLIF ( 65, - 2 ) + + 11 / - NULLIF ( - + ( 10 ), + + 41 ) AS col0
----
-64

query II rowsort
SELECT DISTINCT 51, - 10 AS col2
----
51
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL + 7 + - 62 * 53 + MIN( + - 14 )
----
-3293

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL + 7 + - 62 * 53 + MIN ( + - 14 )
----
-3293

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6919
SELECT - 13 col2, NULLIF ( 43, - ( - 36 ) + - CAST( NULL AS SIGNED ) )
----
-13
43

skipif mysql # not compatible
query II rowsort label-6919
SELECT - 13 col2, NULLIF ( 43, - ( - 36 ) + - CAST ( NULL AS INTEGER ) )
----
-13
43

query I rowsort
SELECT 63 + 25 col2
----
88

query I rowsort
SELECT ALL + 8 - + + 76 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT 82 + - COUNT( * ) * - 95 * + - 87 AS col1
----
-8183

skipif mysql # not compatible
query I rowsort label-6922
SELECT 82 + - COUNT ( * ) * - 95 * + - 87 AS col1
----
-8183

query I rowsort
SELECT ALL 63 - ( - 85 ) AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT CASE - 65 WHEN + MIN( ALL 48 ) THEN NULL WHEN + 14 THEN - - 51 END + + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT CASE - 65 WHEN + MIN ( ALL 48 ) THEN NULL WHEN + 14 THEN - - 51 END + + 11 col1
----
NULL

query II rowsort
SELECT - 40 * ( - NULLIF ( + + 88, - 64 ) ), 47 AS col2
----
3520
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6926
SELECT ALL 79 * 3 DIV COUNT( * ) DIV + ( - 96 ) AS col2, + ( + 75 ) + 52 - 58 * + ( + 32 ) + + 97 * - 1
----
-2
-1826

skipif mysql # not compatible
query II rowsort label-6926
SELECT ALL 79 * 3 / COUNT ( * ) / + ( - 96 ) AS col2, + ( + 75 ) + 52 - 58 * + ( + 32 ) + + 97 * - 1
----
-2
-1826

query I rowsort
SELECT ALL + 93 * - 61 AS col2
----
-5673

query II rowsort
SELECT + - CASE 50 WHEN - 17 * - - 5 THEN + - 4 END, - ( 55 ) AS col0
----
NULL
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6929
SELECT ALL - 18 * - COUNT( * ) - - 39 AS col1, - 10 + - - 73 - + COUNT( * ) * + 21 AS col2
----
57
42

skipif mysql # not compatible
query II rowsort label-6929
SELECT ALL - 18 * - COUNT ( * ) - - 39 AS col1, - 10 + - - 73 - + COUNT ( * ) * + 21 AS col2
----
57
42

query I rowsort
SELECT 13 * + 13 AS col2
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT + 6 * + ( + 33 ) * - COUNT( * ) + + - 82 + COUNT( * ), + 61 AS col0
----
-279
61

skipif mysql # not compatible
query II rowsort label-6931
SELECT + 6 * + ( + 33 ) * - COUNT ( * ) + + - 82 + COUNT ( * ), + 61 AS col0
----
-279
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + MIN( DISTINCT + - ( + - 17 ) ) * + 46 + 26 + 21
----
829

skipif mysql # not compatible
query I rowsort label-6932
SELECT + MIN ( DISTINCT + - ( + - 17 ) ) * + 46 + 26 + 21
----
829

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

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

query I rowsort
SELECT DISTINCT - - 55
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6935
SELECT ALL 99 * + - 43 + + 58 + + SUM( - 65 ) DIV COUNT( * ) - - 3 + 85 * + 21 + - 47
----
-2523

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL 99 * + - 43 + + 58 + + SUM ( - 65 ) / COUNT ( * ) - - 3 + 85 * + 21 + - 47
----
-2523

query I rowsort
SELECT DISTINCT - COALESCE ( - 12, 38 ) AS col2
----
12

query II rowsort
SELECT DISTINCT - - 86, + 42 AS col0
----
86
42

query I rowsort
SELECT ALL 26 + + - 56 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6939
SELECT + 62, + MIN( ALL 63 ) + + - 41 AS col2
----
62
22

skipif mysql # not compatible
query II rowsort label-6939
SELECT + 62, + MIN ( ALL 63 ) + + - 41 AS col2
----
62
22

query I rowsort
SELECT ALL - - 48 + - 91
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT DISTINCT 44 + CAST( 86 AS SIGNED ) + + 57 + - + 99
----
88

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT 44 + CAST ( 86 AS INTEGER ) + + 57 + - + 99
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT - 52 * - + COUNT( * ) + - 86 / - - CASE - 27 WHEN + CAST( NULL AS SIGNED ) * - 40 - + 16 * COUNT( * ) + + + 75 / + 91 THEN - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT - 52 * - + COUNT ( * ) + - 86 / - - CASE - 27 WHEN + CAST ( NULL AS INTEGER ) * - 40 - + 16 * COUNT ( * ) + + + 75 / + 91 THEN - - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 50 ) + 14
----
-36

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

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

query II rowsort
SELECT ALL - 41 AS col2, 14 AS col1
----
-41
14

query I rowsort
SELECT - + 30 * - + 76 + + 12
----
2292

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

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

query I rowsort
SELECT ALL 54 * - - 14 AS col1
----
756

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

query II rowsort
SELECT ALL 89, + 10 AS col2
----
89
10

onlyif mysql # aggregate syntax: 
query III rowsort label-6951
SELECT ALL COUNT( * ) + - 62 AS col1, 86 * 83 AS col0, ( + MIN( - 31 ) ) AS col0
----
-61
7138
-31

skipif mysql # not compatible
query III rowsort label-6951
SELECT ALL COUNT ( * ) + - 62 AS col1, 86 * 83 AS col0, ( + MIN ( - 31 ) ) AS col0
----
-61
7138
-31

query I rowsort
SELECT 67 * - 87 AS col2
----
-5829

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL - 11 DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - 11 / - + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT 73 + + COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-6954
SELECT 73 + + COUNT ( * ) col2
----
74

query I rowsort
SELECT DISTINCT - 39 + + - 24 + + 71 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6956
SELECT 86 / + - CAST( - + CASE + 14 WHEN - 6 THEN + 46 WHEN + 23 * + COUNT( * ) + 76 THEN + + 88 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT 86 / + - CAST ( - + CASE + 14 WHEN - 6 THEN + 46 WHEN + 23 * + COUNT ( * ) + 76 THEN + + 88 ELSE NULL END AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT ALL + 21 DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + 21 / - 46 AS col0
----
0

query II rowsort
SELECT 92 + + 30 * 15 * + + 13 AS col0, 27
----
5942
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT 63 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-6959
SELECT 63 / + 35
----
1

query II rowsort
SELECT - 10 AS col2, - 21
----
-10
-21

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

skipif mysql # not compatible
query II rowsort label-6961
SELECT ALL COUNT ( * ), - 23 AS col1
----
1
-23

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

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

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

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

query I rowsort
SELECT ALL - 22 * 47 AS col0
----
-1034

query II rowsort
SELECT DISTINCT 27 AS col0, + 28 * + 63
----
27
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT DISTINCT - 31 * + 2 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - 31 * + 2 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 64 * ( - 45 )
----
2880

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6969
SELECT - 83 AS col0, 72 DIV + 96 col1
----
-83
0

skipif mysql # not compatible
query II rowsort label-6969
SELECT - 83 AS col0, 72 / + 96 col1
----
-83
0

query I rowsort
SELECT - - 97 AS col1
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6971
SELECT ALL + - 44 AS col2, + 81 DIV + 1
----
-44
81

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL + - 44 AS col2, + 81 / + 1
----
-44
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT + 26 DIV + + 21 - - 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6972
SELECT + 26 / + + 21 - - 84 AS col1
----
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT + NULLIF ( 16, + + 80 ) * + + MIN( - 20 )
----
-320

skipif mysql # not compatible
query I rowsort label-6974
SELECT + NULLIF ( 16, + + 80 ) * + + MIN ( - 20 )
----
-320

query I rowsort
SELECT ALL - 98 * - 90 + + ( 34 )
----
8854

onlyif mysql # DIV for integer division: 
query II rowsort label-6976
SELECT DISTINCT + 25, 47 DIV - 63 AS col2
----
25
0

skipif mysql # not compatible
query II rowsort label-6976
SELECT DISTINCT + 25, 47 / - 63 AS col2
----
25
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6977
SELECT DISTINCT + 70 * 49 + + + 75 + - CAST( - 20 AS SIGNED ) * - - 44, 63 AS col1
----
4385
63

skipif mysql # not compatible
query II rowsort label-6977
SELECT DISTINCT + 70 * 49 + + + 75 + - CAST ( - 20 AS INTEGER ) * - - 44, 63 AS col1
----
4385
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - COUNT( * ) * + + 55 + + 11 + 43 - - COALESCE ( - + COUNT( DISTINCT + 56 ), - - 18 + 42, - 85 ) - - 58 + MAX( + ( + 87 ) ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-6978
SELECT - COUNT ( * ) * + + 55 + + 11 + 43 - - COALESCE ( - + COUNT ( DISTINCT + 56 ), - - 18 + 42, - 85 ) - - 58 + MAX ( + ( + 87 ) ) AS col2
----
143

query I rowsort
SELECT - - 82 + - 60 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6980
SELECT + - ( 75 ) * NULLIF ( + CAST( NULL AS SIGNED ), + 31 - - COUNT( * ) ) + + 4 - CAST( + 69 AS SIGNED ), + COUNT( * ) * - 61 * - COUNT( * ) - + 68 - - 90 * + 1 * - - 52 AS col0
----
NULL
4673

skipif mysql # not compatible
query II rowsort label-6980
SELECT + - ( 75 ) * NULLIF ( + CAST ( NULL AS INTEGER ), + 31 - - COUNT ( * ) ) + + 4 - CAST ( + 69 AS INTEGER ), + COUNT ( * ) * - 61 * - COUNT ( * ) - + 68 - - 90 * + 1 * - - 52 AS col0
----
NULL
4673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6981
SELECT DISTINCT - 13 * + + 45 + - ( COUNT( * ) ) + - 71 DIV - COALESCE ( - 46, 11 ) AS col2
----
-587

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT - 13 * + + 45 + - ( COUNT ( * ) ) + - 71 / - COALESCE ( - 46, 11 ) AS col2
----
-587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6982
SELECT DISTINCT - + 17 * + COUNT( * ) + 4 DIV + 60
----
-17

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT - + 17 * + COUNT ( * ) + 4 / + 60
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL + + 50 * + + 41 * + - 64 + - + SUM( + + 76 )
----
-131276

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL + + 50 * + + 41 * + - 64 + - + SUM ( + + 76 )
----
-131276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6984
SELECT + 2 col1, CAST( 16 AS SIGNED ) AS col0
----
2
16

skipif mysql # not compatible
query II rowsort label-6984
SELECT + 2 col1, CAST ( 16 AS INTEGER ) AS col0
----
2
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT ALL 66 * + CAST( - 9 AS SIGNED ) * + NULLIF ( - COUNT( * ), - 58 ) + 2 col1
----
596

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL 66 * + CAST ( - 9 AS INTEGER ) * + NULLIF ( - COUNT ( * ), - 58 ) + 2 col1
----
596

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - - 40 * - COUNT( * ) + - 4 + ( - 29 )
----
-73

skipif mysql # not compatible
query I rowsort label-6986
SELECT - - 40 * - COUNT ( * ) + - 4 + ( - 29 )
----
-73

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

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + COUNT ( + + 68 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + COALESCE ( - - 85, - - 43 + - - 21 + + 29 * + - COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-6988
SELECT + COALESCE ( - - 85, - - 43 + - - 21 + + 29 * + - COUNT ( * ) )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6989
SELECT DISTINCT 99 * ( + - 49 ) + - ( NULLIF ( 68, ( + SUM( DISTINCT + CAST( 73 AS SIGNED ) ) ) + + - 37 * + - CAST( 87 AS SIGNED ) / 86 ) ) * + + 39 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT 99 * ( + - 49 ) + - ( NULLIF ( 68, ( + SUM ( DISTINCT + CAST ( 73 AS INTEGER ) ) ) + + - 37 * + - CAST ( 87 AS INTEGER ) / 86 ) ) * + + 39 + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 89 * + 73 AS col0
----
6497

query I rowsort
SELECT + 93 * + 71 + - 38 + 44
----
6609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6993
SELECT COUNT( DISTINCT + - 19 ), + 19 * - - COUNT( * ) * - 17 AS col2, + - CAST( - 38 AS SIGNED ) DIV + 46 AS col1
----
1
-323
0

skipif mysql # not compatible
query III rowsort label-6993
SELECT COUNT ( DISTINCT + - 19 ), + 19 * - - COUNT ( * ) * - 17 AS col2, + - CAST ( - 38 AS INTEGER ) / + 46 AS col1
----
1
-323
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT - 64 * - + MAX( ALL - 99 )
----
-6336

skipif mysql # not compatible
query I rowsort label-6994
SELECT - 64 * - + MAX ( ALL - 99 )
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + COUNT( DISTINCT + ( + 48 ) ) + - 16 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6995
SELECT + COUNT ( DISTINCT + ( + 48 ) ) + - 16 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - ( + + MIN( + 66 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6996
SELECT - ( + + MIN ( + 66 ) )
----
-66

query I rowsort
SELECT DISTINCT 99 * - 55 AS col1
----
-5445

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

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

query I rowsort
SELECT - ( - 60 ) - - 63 + - 14 AS col1
----
109

query II rowsort
SELECT + 16 + + 85, 80 * + 54 AS col2
----
101
4320

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

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

query II rowsort
SELECT - 98 + 73, 36 col1
----
-25
36

query I rowsort
SELECT ALL - + 82 + + 33 AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7004
SELECT - + CAST( + 14 AS SIGNED ) + - 47 + - 30 DIV + 21 + + 57 * 9
----
451

skipif mysql # not compatible
query I rowsort label-7004
SELECT - + CAST ( + 14 AS INTEGER ) + - 47 + - 30 / + 21 + + 57 * 9
----
451

query I rowsort
SELECT - - 40 col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT - - COUNT( * ) + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7006
SELECT - - COUNT ( * ) + 94 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT - + 46 + + 88 + - 76 - - SUM( + ( 24 ) ) + - - 30 DIV + 42 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7007
SELECT - + 46 + + 88 + - 76 - - SUM ( + ( 24 ) ) + - - 30 / + 42 AS col1
----
-10

query I rowsort
SELECT - - 72 + + 52 + + + 27 + 79 * - - 73 AS col1
----
5918

query I rowsort
SELECT + + NULLIF ( + 39, + 73 )
----
39

query I rowsort
SELECT - 8 col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT ALL + 51 DIV - - 96 + + 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + 51 / - - 96 + + 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - - 20 * + 72 + - NULLIF ( + 79, 50 * + + ( - - COUNT( * ) ) + - - MIN( DISTINCT - 72 ) )
----
1361

skipif mysql # not compatible
query I rowsort label-7012
SELECT - - 20 * + 72 + - NULLIF ( + 79, 50 * + + ( - - COUNT ( * ) ) + - - MIN ( DISTINCT - 72 ) )
----
1361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT DISTINCT ( + MAX( ALL 20 ) ) DIV 71 + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT ( + MAX ( ALL 20 ) ) / 71 + - 79 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7014
SELECT - - MAX( DISTINCT - 53 ) / + AVG ( + + 4 ) * - CAST( NULL AS SIGNED ) * - CAST( - 8 AS SIGNED ) - ( + - 83 ) + + 81 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT - - MAX ( DISTINCT - 53 ) / + AVG ( + + 4 ) * - CAST ( NULL AS INTEGER ) * - CAST ( - 8 AS INTEGER ) - ( + - 83 ) + + 81 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7015
SELECT ALL - 22 DIV + + MAX( 59 ) - 7 * + + 57 AS col2
----
-399

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - 22 / + + MAX ( 59 ) - 7 * + + 57 AS col2
----
-399

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT - 50 * - COUNT( * ), - SUM( ALL 66 ) AS col1
----
50
-66

skipif mysql # not compatible
query II rowsort label-7016
SELECT - 50 * - COUNT ( * ), - SUM ( ALL 66 ) AS col1
----
50
-66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7018
SELECT + ( - 83 ) DIV + + 54
----
-1

skipif mysql # not compatible
query I rowsort label-7018
SELECT + ( - 83 ) / + + 54
----
-1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7020
SELECT DISTINCT 18 * + 23 * 58 * + ( + + 83 ) * 91, - 88 DIV + - 77 AS col0
----
181362636
1

skipif mysql # not compatible
query II rowsort label-7020
SELECT DISTINCT 18 * + 23 * 58 * + ( + + 83 ) * 91, - 88 / + - 77 AS col0
----
181362636
1

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

query I rowsort
SELECT ALL 94 * 92 AS col0
----
8648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT + ( - 52 ) / + - CAST( NULL AS SIGNED ) + + 81 + - 83 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT + ( - 52 ) / + - CAST ( NULL AS INTEGER ) + + 81 + - 83 col2
----
NULL

query I rowsort
SELECT + 65 * 3
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT + NULLIF ( + - 13, + + 97 + COUNT( * ) * 52 )
----
-13

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + NULLIF ( + - 13, + + 97 + COUNT ( * ) * 52 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT + COUNT( * ) - + COUNT( * ) * + + CASE 7 WHEN + ( 35 ) THEN + 94 WHEN 61 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT + COUNT ( * ) - + COUNT ( * ) * + + CASE 7 WHEN + ( 35 ) THEN + 94 WHEN 61 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 49 * 35
----
1715

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

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

query I rowsort
SELECT + 5 * - + ( 30 )
----
-150

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT 86 * + + NULLIF ( + + 13, - + CAST( 92 AS SIGNED ) * - 20 ) + 20 AS col0
----
1138

skipif mysql # not compatible
query I rowsort label-7031
SELECT 86 * + + NULLIF ( + + 13, - + CAST ( 92 AS INTEGER ) * - 20 ) + 20 AS col0
----
1138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + ( - CASE - - 52 WHEN - COUNT( * ) THEN + - 6 WHEN + 68 + - 33 + 29 - - - 86 THEN - 39 * + - 77 END ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT + ( - CASE - - 52 WHEN - COUNT ( * ) THEN + - 6 WHEN + 68 + - 33 + 29 - - - 86 THEN - 39 * + - 77 END ) * - 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT ALL + NULLIF ( COALESCE ( - - CAST( + - ( + 24 ) AS SIGNED ), + 19, + 34 + - 83 ), 8 + 51 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + NULLIF ( COALESCE ( - - CAST ( + - ( + 24 ) AS INTEGER ), + 19, + 34 + - 83 ), 8 + 51 ) AS col1
----
-24

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

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

query I rowsort
SELECT ALL + 81 * - + 34 * 28 col2
----
-77112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7037
SELECT ALL 65 + - CASE + - CAST( NULL AS SIGNED ) WHEN 44 * + COUNT( * ) THEN - 63 WHEN + - 62 THEN + 13 WHEN - MAX( + - 0 ) / 76 * + - 9 * 30 THEN - 13 * + 29 + 77 ELSE - - 99 * 57 - - 69 + + 67 END * 0
----
65

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL 65 + - CASE + - CAST ( NULL AS INTEGER ) WHEN 44 * + COUNT ( * ) THEN - 63 WHEN + - 62 THEN + 13 WHEN - MAX ( + - 0 ) / 76 * + - 9 * 30 THEN - 13 * + 29 + 77 ELSE - - 99 * 57 - - 69 + + 67 END * 0
----
65

query II rowsort
SELECT 99 AS col0, ( - 50 ) * + 30 + - - 27
----
99
-1473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL - CASE - + 55 WHEN + 55 + + + 64 THEN NULL WHEN + - ( - + 4 ) THEN + 59 * + CAST( + COUNT( * ) AS SIGNED ) * 88 END + 54 + 29 * + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - CASE - + 55 WHEN + 55 + + + 64 THEN NULL WHEN + - ( - + 4 ) THEN + 59 * + CAST ( + COUNT ( * ) AS INTEGER ) * 88 END + 54 + 29 * + + 85
----
NULL

query I rowsort
SELECT 36 + - - 47
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT NULLIF ( + 29, + 80 / - COUNT( * ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7041
SELECT NULLIF ( + 29, + 80 / - COUNT ( * ) ) AS col0
----
29

query I rowsort
SELECT ALL + 29 + - 43
----
-14

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7044
SELECT ALL - - 75 + - 89 DIV + 10 AS col2, - 84 AS col0
----
67
-84

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL - - 75 + - 89 / + 10 AS col2, - 84 AS col0
----
67
-84

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

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

query I rowsort
SELECT + 68 * 83 + 56 * - 13 AS col1
----
4916

query I rowsort
SELECT DISTINCT 77 + 70
----
147

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT ALL 95 - + 13 DIV - - 40 * - 11 + ( + - COUNT( * ) ) DIV ( ( - ( - COUNT( * ) ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL 95 - + 13 / - - 40 * - 11 + ( + - COUNT ( * ) ) / ( ( - ( - COUNT ( * ) ) ) ) AS col0
----
94

query I rowsort
SELECT ALL + + 87 - - 96 + 39 col2
----
222

query I rowsort
SELECT - 48 * + 70 + - 39
----
-3399

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + + 70 * - COUNT( * ) * - 54
----
3780

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + + 70 * - COUNT ( * ) * - 54
----
3780

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7054
SELECT + COALESCE ( - - 90, + + 62 * + 39 * + 67 * - SUM( + CASE - - 91 WHEN + - 50 THEN - 22 END ), - + 10 * - 64 + + 76 ) / + 89 - 1 / 50 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT + COALESCE ( - - 90, + + 62 * + 39 * + 67 * - SUM ( + CASE - - 91 WHEN + - 50 THEN - 22 END ), - + 10 * - 64 + + 76 ) / + 89 - 1 / 50 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 57 * + 36, 3 AS col2
----
2052
3

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

skipif mysql # not compatible
query I rowsort label-7056
SELECT COUNT ( DISTINCT - - 80 ) * - 78 / 83 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7057
SELECT COUNT( * ) * + 35 DIV + 94 + ( + - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7057
SELECT COUNT ( * ) * + 35 / + 94 + ( + - 80 )
----
-80

query I rowsort
SELECT DISTINCT + 35 * + 57 AS col1
----
1995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT + 84 * 17 + + - CAST( NULL AS SIGNED ) + - - 7 + CASE + - 51 WHEN AVG ( - + 28 ) * - + 86 * + + ( 11 ) THEN ( - 68 ) + + - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT + 84 * 17 + + - CAST ( NULL AS INTEGER ) + - - 7 + CASE + - 51 WHEN AVG ( - + 28 ) * - + 86 * + + ( 11 ) THEN ( - 68 ) + + - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT MIN( ALL - 26 ) * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-7060
SELECT MIN ( ALL - 26 ) * COUNT ( * )
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT ALL - 90 DIV ( 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - 90 / ( 83 ) AS col1
----
-1

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

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

query II rowsort
SELECT ALL + 18 + - 14 - + + 12 * 76 * + 98, 83 AS col1
----
-89372
83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7066
SELECT ALL 63 * + - CAST( + + 70 AS SIGNED ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL 63 * + - CAST ( + + 70 AS INTEGER ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT ALL CASE + 79 WHEN 67 THEN - COUNT( * ) * + + NULLIF ( - + 71, - 72 + + - 1 ) + - 16 * + 52 + 4 * - + COALESCE ( + 83, + - 59 / + 26 * + + 20 * - + 47 / + - 65 + + 28 ) + - - 15 * + - 39 * - CAST( 82 AS SIGNED ) WHEN - 25 * 26 THEN + 77 ELSE NULL END + - MIN( - 44 ) / - + 54 * 20 + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL CASE + 79 WHEN 67 THEN - COUNT ( * ) * + + NULLIF ( - + 71, - 72 + + - 1 ) + - 16 * + 52 + 4 * - + COALESCE ( + 83, + - 59 / + 26 * + + 20 * - + 47 / + - 65 + + 28 ) + - - 15 * + - 39 * - CAST ( 82 AS INTEGER ) WHEN - 25 * 26 THEN + 77 ELSE NULL END + - MIN ( - 44 ) / - + 54 * 20 + + 4 AS col2
----
NULL

query I rowsort
SELECT - 80 + 78
----
-2

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

query I rowsort
SELECT ALL + 19 + 0 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7071
SELECT NULLIF ( 80, - 45 ) - - 24 AS col1, - 84 * + - MIN( - - 94 )
----
104
7896

skipif mysql # not compatible
query II rowsort label-7071
SELECT NULLIF ( 80, - 45 ) - - 24 AS col1, - 84 * + - MIN ( - - 94 )
----
104
7896

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT 82 + - 11 + + 99 * + + SUM( DISTINCT - 4 ) + + 30 * COUNT( * ) - 26 AS col0
----
-321

skipif mysql # not compatible
query I rowsort label-7074
SELECT 82 + - 11 + + 99 * + + SUM ( DISTINCT - 4 ) + + 30 * COUNT ( * ) - 26 AS col0
----
-321

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT MAX( DISTINCT - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7075
SELECT MAX ( DISTINCT - 99 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7076
SELECT - 82 + - 57 + - - MAX( - 96 ) * - 43 col1, + 99
----
3989
99

skipif mysql # not compatible
query II rowsort label-7076
SELECT - 82 + - 57 + - - MAX ( - 96 ) * - 43 col1, + 99
----
3989
99

query I rowsort
SELECT DISTINCT - 2 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + - 35 - MAX( + - 33 ) * 32 col2
----
1021

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + - 35 - MAX ( + - 33 ) * 32 col2
----
1021

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7080
SELECT + 89 * + - 6 AS col2, + COUNT( * ) * + 64
----
-534
64

skipif mysql # not compatible
query II rowsort label-7080
SELECT + 89 * + - 6 AS col2, + COUNT ( * ) * + 64
----
-534
64

query I rowsort
SELECT 93 * - - 82 col0
----
7626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT + COUNT( + 4 ) / - 61 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT + COUNT ( + 4 ) / - 61 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 81, - 0, + + 54 + ( - 52 ) ) AS col0
----
81

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

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

query I rowsort
SELECT 82 + 25 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT - COUNT( * ) * - - SUM( + ( + - 95 ) )
----
95

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - COUNT ( * ) * - - SUM ( + ( + - 95 ) )
----
95

query I rowsort
SELECT ALL + 94 * - 53
----
-4982

query I rowsort
SELECT 92 * 69
----
6348

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL - NULLIF ( COUNT( ALL + + 42 ), 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL - NULLIF ( COUNT ( ALL + + 42 ), 49 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT ( + 11 ) * - COUNT( * ) - 51 * 46 AS col1, 60 AS col1
----
-2357
60

skipif mysql # not compatible
query II rowsort label-7090
SELECT ( + 11 ) * - COUNT ( * ) - 51 * 46 AS col1, 60 AS col1
----
-2357
60

query I rowsort
SELECT 17 + - 62 + 89 * + 21 + - 24 AS col2
----
1800

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

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

query I rowsort
SELECT + 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - 63 * COUNT( DISTINCT - + 20 )
----
-63

skipif mysql # not compatible
query I rowsort label-7094
SELECT - 63 * COUNT ( DISTINCT - + 20 )
----
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7096
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 25 * 0 + 67 * - COALESCE ( - - 4, - + 40, - MIN( + CAST( NULL AS DECIMAL ) ) + 33 ) * 61 + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 25 * 0 + 67 * - COALESCE ( - - 4, - + 40, - MIN ( + CAST ( NULL AS REAL ) ) + 33 ) * 61 + + 72 AS col0
----
NULL

query I rowsort
SELECT ALL 21 + + - 20 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT - - COUNT( ALL - - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-7098
SELECT - - COUNT ( ALL - - 91 )
----
1

query I rowsort
SELECT DISTINCT - - 33 + + + 4
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT - COUNT( ALL - 56 ) * 79 * + - 47 AS col2
----
3713

skipif mysql # not compatible
query I rowsort label-7100
SELECT - COUNT ( ALL - 56 ) * 79 * + - 47 AS col2
----
3713

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

query I rowsort
SELECT - 71 * 30
----
-2130

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT - COALESCE ( + 58, 18 DIV MAX( + 31 ) * - - 78 * - COUNT( * ) - - + 4 )
----
-58

skipif mysql # not compatible
query I rowsort label-7104
SELECT - COALESCE ( + 58, 18 / MAX ( + 31 ) * - - 78 * - COUNT ( * ) - - + 4 )
----
-58

query I rowsort
SELECT ALL - 46 - + 22 + + 89 AS col0
----
21

query I rowsort
SELECT + - 41 * - 84 AS col0
----
3444

query I rowsort
SELECT DISTINCT - + 78 * + - 15 AS col2
----
1170

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT - - MAX( ALL - 79 ) + - COUNT( * ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-7109
SELECT - - MAX ( ALL - 79 ) + - COUNT ( * ) col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - + NULLIF ( - COUNT( * ), + COUNT( - - 46 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7110
SELECT - + NULLIF ( - COUNT ( * ), + COUNT ( - - 46 ) )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7111
SELECT ALL 60 col0, 49 DIV + 1
----
60
49

skipif mysql # not compatible
query II rowsort label-7111
SELECT ALL 60 col0, 49 / + 1
----
60
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7112
SELECT - CAST( CAST( 91 AS DECIMAL ) AS SIGNED ) * 46 * - 86
----
359996

skipif mysql # not compatible
query I rowsort label-7112
SELECT - CAST ( CAST ( 91 AS REAL ) AS INTEGER ) * 46 * - 86
----
359996

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT 0 DIV 23 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT 0 / 23 / + 62
----
0

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

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

query I rowsort
SELECT ALL 35 * + 74
----
2590

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT ALL MAX( ALL + + 56 ) * + - 4 + - ( + COUNT( * ) ) + - 64 AS col0, 77 AS col2
----
-289
77

skipif mysql # not compatible
query II rowsort label-7117
SELECT ALL MAX ( ALL + + 56 ) * + - 4 + - ( + COUNT ( * ) ) + - 64 AS col0, 77 AS col2
----
-289
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7118
SELECT ( + 59 ) col2, + CAST( + 20 AS SIGNED ) AS col2
----
59
20

skipif mysql # not compatible
query II rowsort label-7118
SELECT ( + 59 ) col2, + CAST ( + 20 AS INTEGER ) AS col2
----
59
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT + CASE - + 51 WHEN + - COUNT( DISTINCT - 40 ) THEN NULL WHEN + ( - COUNT( * ) ) THEN - + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7119
SELECT + CASE - + 51 WHEN + - COUNT ( DISTINCT - 40 ) THEN NULL WHEN + ( - COUNT ( * ) ) THEN - + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT 99 * - 44 - 98 + - - SUM( 15 ) col0
----
-4439

skipif mysql # not compatible
query I rowsort label-7120
SELECT 99 * - 44 - 98 + - - SUM ( 15 ) col0
----
-4439

query I rowsort
SELECT - 58 - + - 18 AS col0
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT 75 * + 3 + + 31 * - COUNT( * ) * + NULLIF ( + ( 66 ), - + 59 ) AS col0
----
-1821

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT 75 * + 3 + + 31 * - COUNT ( * ) * + NULLIF ( + ( 66 ), - + 59 ) AS col0
----
-1821

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT + 63 DIV + 59 col2
----
1

skipif mysql # not compatible
query I rowsort label-7124
SELECT + 63 / + 59 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT DISTINCT MIN( + + CAST( NULL AS SIGNED ) ) / - ( 32 ) + 34 + + + 93 * + 46 * - - COUNT( * ) + - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT MIN ( + + CAST ( NULL AS INTEGER ) ) / - ( 32 ) + 34 + + + 93 * + 46 * - - COUNT ( * ) + - 3 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7126
SELECT DISTINCT + 36 * + CAST( NULL AS SIGNED ) * 64 + + 70 + + 1 - - - COUNT( ALL 33 ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + 36 * + CAST ( NULL AS INTEGER ) * 64 + + 70 + + 1 - - - COUNT ( ALL 33 ) * + 0
----
NULL

query I rowsort
SELECT - 16 * + 60 * 27
----
-25920

query I rowsort
SELECT + 86 * 16
----
1376

query I rowsort
SELECT NULLIF ( + - 59, + + 60 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT 2 * 52 + SUM( DISTINCT - 80 ) + + + 54 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7130
SELECT 2 * 52 + SUM ( DISTINCT - 80 ) + + + 54 AS col1
----
78

query I rowsort
SELECT DISTINCT - + 62 * 28 * 98 - + + 42 AS col1
----
-170170

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

query I rowsort
SELECT + 42 * + 18 + - 4 AS col1
----
752

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - + COUNT( * ) + 10 * + 97 + CASE + 21 WHEN 54 THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT - + COUNT ( * ) + 10 * + 97 + CASE + 21 WHEN 54 THEN 79 END
----
NULL

query I rowsort
SELECT DISTINCT - 55 * - 94 + + 34 - 94
----
5110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7137
SELECT DISTINCT + 59 * 63 * MAX( DISTINCT + 72 ) AS col0, 63 DIV 89 + - + 29 - + 97 * + + 61 AS col1
----
267624
-5946

skipif mysql # not compatible
query II rowsort label-7137
SELECT DISTINCT + 59 * 63 * MAX ( DISTINCT + 72 ) AS col0, 63 / 89 + - + 29 - + 97 * + + 61 AS col1
----
267624
-5946

query I rowsort
SELECT - + 37 * - - 3
----
-111

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

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

query II rowsort
SELECT - - 83 AS col0, - 8 + - + 27 + + + 20 + 37
----
83
22

query I rowsort
SELECT + 27 + 41 + 53 * 45
----
2453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT - + 35 + 4 + + 13 DIV COUNT( * ) + + MIN( - 39 ) DIV - 62 * - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-7142
SELECT - + 35 + 4 + + 13 / COUNT ( * ) + + MIN ( - 39 ) / - 62 * - COUNT ( * )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT - 71 DIV - 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 71 / - 51 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT + 41 + + 57 DIV - 99 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7144
SELECT + 41 + + 57 / - 99 AS col2
----
41

query II rowsort
SELECT ALL + 65 + + 75 AS col2, - 95 AS col2
----
140
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7146
SELECT ALL + 54 DIV + ( - CAST( - 30 AS SIGNED ) ) + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + 54 / + ( - CAST ( - 30 AS INTEGER ) ) + - 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT - + 85 + + - COUNT( * ) * + 97 * + 43 + COUNT( * )
----
-4255

skipif mysql # not compatible
query I rowsort label-7147
SELECT - + 85 + + - COUNT ( * ) * + 97 * + 43 + COUNT ( * )
----
-4255

query I rowsort
SELECT DISTINCT + 76 * 48
----
3648

query II rowsort
SELECT DISTINCT - 21 + + - 52 + - 65 + - 82 + + 76, - 62 AS col2
----
-144
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - CASE + NULLIF ( + 84, + 67 + + 16 + 5 * - NULLIF ( 8, + 33 * + - 82 * - 50 * 96 - - - COALESCE ( - + 56, - 53 - - - 27 ) ) + - - COUNT( * ) * - ( 3 ) * - + 35 + COUNT( * ) + + 6 * - COALESCE ( - 70, - 10 ) * 98 - + ( + 69 ) * 18 + SUM( DISTINCT - 27 ) ) WHEN 51 THEN + 35 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT - CASE + NULLIF ( + 84, + 67 + + 16 + 5 * - NULLIF ( 8, + 33 * + - 82 * - 50 * 96 - - - COALESCE ( - + 56, - 53 - - - 27 ) ) + - - COUNT ( * ) * - ( 3 ) * - + 35 + COUNT ( * ) + + 6 * - COALESCE ( - 70, - 10 ) * 98 - + ( + 69 ) * 18 + SUM ( DISTINCT - 27 ) ) WHEN 51 THEN + 35 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 49 + + 99 + - 72
----
76

query I rowsort
SELECT + 82 + + + 7 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL 40 + - 40 + - 75 * + + 6 * + + 41 * MIN( + 45 )
----
-830250

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL 40 + - 40 + - 75 * + + 6 * + + 41 * MIN ( + 45 )
----
-830250

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

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

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

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

query I rowsort
SELECT ( 16 ) * - ( - - 70 )
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT - 52 * + 18 + - 32 + + COUNT( * ) * 55 * - COUNT( * ) * + 16 AS col2
----
-1848

skipif mysql # not compatible
query I rowsort label-7158
SELECT - 52 * + 18 + - 32 + + COUNT ( * ) * 55 * - COUNT ( * ) * + 16 AS col2
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT 52 + + 32 + 74 * - ( - 17 ) - + 5 DIV - 74 - - 94
----
1436

skipif mysql # not compatible
query I rowsort label-7159
SELECT 52 + + 32 + 74 * - ( - 17 ) - + 5 / - 74 - - 94
----
1436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT + 26 * - + 72 * CAST( - - 66 AS SIGNED ) AS col1
----
-123552

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 26 * - + 72 * CAST ( - - 66 AS INTEGER ) AS col1
----
-123552

query I rowsort
SELECT 46 * + 61 * 78 AS col2
----
218868

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT DISTINCT COUNT( * ) - + 45 * + 5 + - + CAST( - 32 AS SIGNED ) AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT COUNT ( * ) - + 45 * + 5 + - + CAST ( - 32 AS INTEGER ) AS col2
----
-192

query I rowsort
SELECT ALL - + NULLIF ( + 76, - 46 * + 90 + - 40 * 15 ) AS col2
----
-76

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

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

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

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

query II rowsort
SELECT 26 * - 79, - 51 AS col2
----
-2054
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT ALL 32 DIV 9 * - 34
----
-102

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL 32 / 9 * - 34
----
-102

query II rowsort
SELECT ALL - - 53 * + 71, - 10 AS col0
----
3763
-10

query I rowsort
SELECT - 85 + 47
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT - NULLIF ( - 51, + 10 + - 27 ) * 59 + + COUNT( * ) + 61 AS col1
----
3071

skipif mysql # not compatible
query I rowsort label-7171
SELECT - NULLIF ( - 51, + 10 + - 27 ) * 59 + + COUNT ( * ) + 61 AS col1
----
3071

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT 64 - + COUNT( * ), - 53 + 88 AS col0
----
63
35

skipif mysql # not compatible
query II rowsort label-7172
SELECT 64 - + COUNT ( * ), - 53 + 88 AS col0
----
63
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT - 42 * + 91 + 37 DIV 51
----
-3822

skipif mysql # not compatible
query I rowsort label-7173
SELECT - 42 * + 91 + 37 / 51
----
-3822

query I rowsort
SELECT 95 * + 8 + - - 55 - - 14 + - 94 * NULLIF ( - 32, + 96 ) AS col0
----
3837

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + COALESCE ( - - 61, + COALESCE ( - CASE - MIN( DISTINCT + 26 ) WHEN - 3 THEN NULL WHEN + 63 THEN 8 * - 31 + + + 78 + + COUNT( * ) * + + 86 ELSE - 8 END, MAX( ALL + 8 ) * COUNT( * ) + ( COUNT( * ) ) ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7175
SELECT + COALESCE ( - - 61, + COALESCE ( - CASE - MIN ( DISTINCT + 26 ) WHEN - 3 THEN NULL WHEN + 63 THEN 8 * - 31 + + + 78 + + COUNT ( * ) * + + 86 ELSE - 8 END, MAX ( ALL + 8 ) * COUNT ( * ) + ( COUNT ( * ) ) ) ) AS col0
----
61

query I rowsort
SELECT - CASE + NULLIF ( - 69, - 62 * 28 ) WHEN + 11 THEN - 16 ELSE + 88 + + 95 END AS col1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT SUM( + + 19 ) * - 63 + - ( 6 ) col1
----
-1203

skipif mysql # not compatible
query I rowsort label-7177
SELECT SUM ( + + 19 ) * - 63 + - ( 6 ) col1
----
-1203

query I rowsort
SELECT DISTINCT - 90 + + 44 col0
----
-46

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

skipif mysql # not compatible
query I rowsort label-7179
SELECT CAST ( 35 AS INTEGER ) + 76 - - 5 AS col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT 2 * + ( - 23 ) DIV - COUNT( * ) + + 39 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7180
SELECT 2 * + ( - 23 ) / - COUNT ( * ) + + 39 AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7181
SELECT 76 + + 3 + 18 + + 93 * MIN( DISTINCT ( + 67 ) ) * - + COUNT( * ) AS col0, + 28 AS col2
----
-6134
28

skipif mysql # not compatible
query II rowsort label-7181
SELECT 76 + + 3 + 18 + + 93 * MIN ( DISTINCT ( + 67 ) ) * - + COUNT ( * ) AS col0, + 28 AS col2
----
-6134
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7182
SELECT 5, - CASE + 73 WHEN + MIN( ALL + 71 ) THEN + 76 + - - 51 + + - 49 - - 73 / - COUNT( * ) WHEN 14 + + CAST( - ( - 28 ) AS SIGNED ) THEN NULL ELSE NULL END * - 93 AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-7182
SELECT 5, - CASE + 73 WHEN + MIN ( ALL + 71 ) THEN + 76 + - - 51 + + - 49 - - 73 / - COUNT ( * ) WHEN 14 + + CAST ( - ( - 28 ) AS INTEGER ) THEN NULL ELSE NULL END * - 93 AS col0
----
5
NULL

query I rowsort
SELECT 85 + - 80
----
5

query I rowsort
SELECT 92 * + + 7 * + - 67 * + - 52
----
2243696

query I rowsort
SELECT ALL - 72 + - 81 AS col1
----
-153

query I rowsort
SELECT 1 - - + 60
----
61

query I rowsort
SELECT DISTINCT + 45 * + - ( + 74 )
----
-3330

query I rowsort
SELECT 11 + + + 12
----
23

query I rowsort
SELECT 17 * 84
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7190
SELECT COUNT( * ) * + 1 - - NULLIF ( - 63, - CASE - 52 WHEN 98 * + CAST( + + 28 AS SIGNED ) THEN NULL WHEN + 74 THEN + 79 END ), + COUNT( * ) - + 62 + 53 AS col1
----
-62
-8

skipif mysql # not compatible
query II rowsort label-7190
SELECT COUNT ( * ) * + 1 - - NULLIF ( - 63, - CASE - 52 WHEN 98 * + CAST ( + + 28 AS INTEGER ) THEN NULL WHEN + 74 THEN + 79 END ), + COUNT ( * ) - + 62 + 53 AS col1
----
-62
-8

query I rowsort
SELECT 16 * - + 66
----
-1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7192
SELECT 55 + - 97 + - - 21 + COUNT( - 84 ) DIV + - 23 * + CAST( - + 33 AS SIGNED ) + + 15 + 77 * 79 - + 18 DIV COUNT( * ) * - 75 AS col0
----
7427

skipif mysql # not compatible
query I rowsort label-7192
SELECT 55 + - 97 + - - 21 + COUNT ( - 84 ) / + - 23 * + CAST ( - + 33 AS INTEGER ) + + 15 + 77 * 79 - + 18 / COUNT ( * ) * - 75 AS col0
----
7427

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

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

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

query I rowsort
SELECT 41 * + + 29 col0
----
1189

query I rowsort
SELECT + 99 + - 40 * - - 29 AS col2
----
-1061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7197
SELECT DISTINCT + 48 * - 25 / + + 89 * + - 52 * + CAST( NULL AS SIGNED ) * + COALESCE ( NULLIF ( - 33, MAX( ALL NULLIF ( - + 88, 56 / + 91 ) ) + + + 68 * - 24 ), - + 99 * - + 52 - + 98, - + 15, - ( - + 12 ) ) / - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + 48 * - 25 / + + 89 * + - 52 * + CAST ( NULL AS INTEGER ) * + COALESCE ( NULLIF ( - 33, MAX ( ALL NULLIF ( - + 88, 56 / + 91 ) ) + + + 68 * - 24 ), - + 99 * - + 52 - + 98, - + 15, - ( - + 12 ) ) / - + 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7198
SELECT ALL - NULLIF ( - + 69, + + COUNT( * ) ) col0, 20 + + 53 + 25 - + 17 DIV + + 88 AS col2
----
69
98

skipif mysql # not compatible
query II rowsort label-7198
SELECT ALL - NULLIF ( - + 69, + + COUNT ( * ) ) col0, 20 + + 53 + 25 - + 17 / + + 88 AS col2
----
69
98

query I rowsort
SELECT 84 * 48 + + 87 * - + 0 AS col2
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + NULLIF ( + 35, - COUNT( + - 35 ) * - + COUNT( * ) / + + 87 )
----
35

skipif mysql # not compatible
query I rowsort label-7200
SELECT + NULLIF ( + 35, - COUNT ( + - 35 ) * - + COUNT ( * ) / + + 87 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + 30 * - 98 * + MIN( DISTINCT ( 82 ) ) + 51
----
-241029

skipif mysql # not compatible
query I rowsort label-7201
SELECT + 30 * - 98 * + MIN ( DISTINCT ( 82 ) ) + 51
----
-241029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7202
SELECT COUNT( * ) DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT COUNT ( * ) / 96 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT + MIN( ALL + + 10 ) * - COUNT( DISTINCT + 51 ) + + - 14 + 38 DIV - 97 + - - 83
----
59

skipif mysql # not compatible
query I rowsort label-7203
SELECT + MIN ( ALL + + 10 ) * - COUNT ( DISTINCT + 51 ) + + - 14 + 38 / - 97 + - - 83
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - COUNT( * ) + + 64
----
63

skipif mysql # not compatible
query I rowsort label-7205
SELECT - COUNT ( * ) + + 64
----
63

query I rowsort
SELECT DISTINCT + 96 + - 29 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7207
SELECT 89 + - COUNT( * ) * - 14 * - 0 + + - NULLIF ( 15, - + CAST( NULL AS SIGNED ) * - SUM( - - 63 ) + + 37 + + 78 ) AS col0, - 44
----
74
-44

skipif mysql # not compatible
query II rowsort label-7207
SELECT 89 + - COUNT ( * ) * - 14 * - 0 + + - NULLIF ( 15, - + CAST ( NULL AS INTEGER ) * - SUM ( - - 63 ) + + 37 + + 78 ) AS col0, - 44
----
74
-44

query I rowsort
SELECT ALL 46 + - 14 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7209
SELECT DISTINCT AVG ( ALL + CAST( NULL AS DECIMAL ) ) + 68 * 69 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS REAL ) ) + 68 * 69 + COUNT ( * ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT 22 DIV - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT 22 / - 27 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT + 98 + + CASE 82 WHEN - 0 THEN + + ( + CAST( - + 71 AS SIGNED ) ) * + 14 - + - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT + 98 + + CASE 82 WHEN - 0 THEN + + ( + CAST ( - + 71 AS INTEGER ) ) * + 14 - + - 6 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 72 * 89 AS col0
----
-6408

query I rowsort
SELECT - 83 + - 56
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT - COUNT( ALL + NULLIF ( 60, 28 / + + 46 * 62 + - 0 ) ), 21 + - COUNT( - 91 ) * + COUNT( * ) + - 3 * - + 43 + - 66 + + - MAX( ALL - 75 ) - - 24 * - 18 AS col2
----
-1
-274

skipif mysql # not compatible
query II rowsort label-7214
SELECT - COUNT ( ALL + NULLIF ( 60, 28 / + + 46 * 62 + - 0 ) ), 21 + - COUNT ( - 91 ) * + COUNT ( * ) + - 3 * - + 43 + - 66 + + - MAX ( ALL - 75 ) - - 24 * - 18 AS col2
----
-1
-274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7215
SELECT DISTINCT COALESCE ( - - 90, 9 * + - ( + CASE WHEN + CAST( 67 AS SIGNED ) >= + 41 THEN 19 / - 60 * - - 23 * COUNT( ALL + - 52 ) * + - 77 + - - 79 ELSE NULL END ) + - 38 ) * - - 59 / - CAST( ( - + 40 ) AS SIGNED ) * + COUNT( * ) * - 64 + + CAST( CASE + 48 WHEN + - COUNT( ALL + + 67 ) THEN NULL ELSE + + 19 - + - 62 END AS SIGNED ) + + 38 + - + 43 - - 60 * + 82 * - + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) + - ( - + COUNT( * ) ) * 7 AS col0, ( + - 66 ) AS col1
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-7215
SELECT DISTINCT COALESCE ( - - 90, 9 * + - ( + CASE WHEN + CAST ( 67 AS INTEGER ) >= + 41 THEN 19 / - 60 * - - 23 * COUNT ( ALL + - 52 ) * + - 77 + - - 79 ELSE NULL END ) + - 38 ) * - - 59 / - CAST ( ( - + 40 ) AS INTEGER ) * + COUNT ( * ) * - 64 + + CAST ( CASE + 48 WHEN + - COUNT ( ALL + + 67 ) THEN NULL ELSE + + 19 - + - 62 END AS INTEGER ) + + 38 + - + 43 - - 60 * + 82 * - + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) + - ( - + COUNT ( * ) ) * 7 AS col0, ( + - 66 ) AS col1
----
NULL
-66

query I rowsort
SELECT ALL 65 + - 9 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT + SUM( 86 ) + + 67
----
153

skipif mysql # not compatible
query I rowsort label-7217
SELECT + SUM ( 86 ) + + 67
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT MIN( ALL + 52 ) * - 28 + - 54 * + 72 * 10 AS col2
----
-40336

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT MIN ( ALL + 52 ) * - 28 + - 54 * + 72 * 10 AS col2
----
-40336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT DISTINCT COUNT( DISTINCT COALESCE ( 93, - 93, + 92 * - 50 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT COUNT ( DISTINCT COALESCE ( 93, - 93, + 92 * - 50 ) ) AS col1
----
1

query I rowsort
SELECT - 17 * + 2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT - 93 + + - 12, + COUNT( * ) + - 42 + + 75 - + + 60 col2
----
-105
-26

skipif mysql # not compatible
query II rowsort label-7222
SELECT - 93 + + - 12, + COUNT ( * ) + - 42 + + 75 - + + 60 col2
----
-105
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7223
SELECT + 81 * - NULLIF ( COUNT( * ), + 21 + CAST( + + COUNT( * ) AS DECIMAL ) )
----
-81

skipif mysql # not compatible
query I rowsort label-7223
SELECT + 81 * - NULLIF ( COUNT ( * ), + 21 + CAST ( + + COUNT ( * ) AS REAL ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT NULLIF ( - - CASE + 93 WHEN - 92 + 26 + - 10 THEN + 67 + + 22 - - 81 WHEN - 30 THEN NULL WHEN COUNT( - CAST( 18 AS SIGNED ) ) THEN - 13 END, - MIN( + + 31 ) * + 36 * - 48 + - 66 - + - 51 * + + COUNT( * ) * - 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT NULLIF ( - - CASE + 93 WHEN - 92 + 26 + - 10 THEN + 67 + + 22 - - 81 WHEN - 30 THEN NULL WHEN COUNT ( - CAST ( 18 AS INTEGER ) ) THEN - 13 END, - MIN ( + + 31 ) * + 36 * - 48 + - 66 - + - 51 * + + COUNT ( * ) * - 1 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 19 * + + ( CASE + 7 WHEN - 23 THEN + 15 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT - - CAST( - 10 AS SIGNED ) * - 43
----
430

skipif mysql # not compatible
query I rowsort label-7226
SELECT - - CAST ( - 10 AS INTEGER ) * - 43
----
430

query I rowsort
SELECT - - 30 - - 18 * - 1 AS col0
----
12

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

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

query I rowsort
SELECT + 80 + + 49 - + + 31
----
98

query I rowsort
SELECT ALL + ( + 92 ) * + 74 + + 5 AS col2
----
6813

query I rowsort
SELECT - 73 col2
----
-73

query I rowsort
SELECT DISTINCT - - 29 * - 27 * + 62 - - 87 + - - 57
----
-48402

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT - 38 - 84 - + + 74 + + + 0 DIV - 3 + - 29 + - ( 92 )
----
-317

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 38 - 84 - + + 74 + + + 0 / - 3 + - 29 + - ( 92 )
----
-317

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT + - COUNT( * ) * - - 20 + - 46
----
-66

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + - COUNT ( * ) * - - 20 + - 46
----
-66

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

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT - 76 * - 76 * + + COUNT ( * ) AS col1
----
5776

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

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

skipif mysql # not compatible
query I rowsort label-7238
SELECT - MAX ( ALL 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7239
SELECT + + NULLIF ( - 29, + 54 + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-7239
SELECT + + NULLIF ( - 29, + 54 + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7240
SELECT ALL - NULLIF ( - 12, CAST( NULL AS SIGNED ) ) * 11 AS col0, 73 AS col1
----
132
73

skipif mysql # not compatible
query II rowsort label-7240
SELECT ALL - NULLIF ( - 12, CAST ( NULL AS INTEGER ) ) * 11 AS col0, 73 AS col1
----
132
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT DISTINCT NULLIF ( - - COUNT( * ), 97 * - 86 + - 38 * - NULLIF ( 57, 95 + + 55 * - + ( - 87 ) * + 2 ) ) AS col2, 29
----
1
29

skipif mysql # not compatible
query II rowsort label-7241
SELECT DISTINCT NULLIF ( - - COUNT ( * ), 97 * - 86 + - 38 * - NULLIF ( 57, 95 + + 55 * - + ( - 87 ) * + 2 ) ) AS col2, 29
----
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - COUNT( ALL 48 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7242
SELECT - COUNT ( ALL 48 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT SUM( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7243
SELECT SUM ( 73 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT ALL CASE COALESCE ( - + 69, + - COUNT( * ) ) WHEN + 48 THEN + 60 END - + - CAST( - 1 AS SIGNED ) + 76 - + 97 - - CAST( COUNT( * ) AS SIGNED ) - 38 * 29 * 85 - 72 * + ( 88 ) + - AVG ( ALL - 14 ) + - 73 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL CASE COALESCE ( - + 69, + - COUNT ( * ) ) WHEN + 48 THEN + 60 END - + - CAST ( - 1 AS INTEGER ) + 76 - + 97 - - CAST ( COUNT ( * ) AS INTEGER ) - 38 * 29 * 85 - 72 * + ( 88 ) + - AVG ( ALL - 14 ) + - 73 * + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7245
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT + COUNT( * ) * - + SUM( - + 57 ) * + 77 + + 41
----
4430

skipif mysql # not compatible
query I rowsort label-7246
SELECT + COUNT ( * ) * - + SUM ( - + 57 ) * + 77 + + 41
----
4430

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT DISTINCT 59 DIV + 6 col2
----
9

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT 59 / + 6 col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7249
SELECT ALL 87 AS col1, - ( - 19 ) AS col0, - 71 DIV 29 - - COUNT( * )
----
87
19
-1

skipif mysql # not compatible
query III rowsort label-7249
SELECT ALL 87 AS col1, - ( - 19 ) AS col0, - 71 / 29 - - COUNT ( * )
----
87
19
-1

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

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

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

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

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

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

query I rowsort
SELECT + 87 + 14 + + - 66 * 16
----
-955

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL COUNT( DISTINCT 36 ) * - 50 * + 60 * - - 6 + ( + - 81 )
----
-18081

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL COUNT ( DISTINCT 36 ) * - 50 * + 60 * - - 6 + ( + - 81 )
----
-18081

query I rowsort
SELECT + 64 + + ( + - 17 ) * + - 86 * 31 + + 18 + - 30 * 46
----
44024

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT + 40 + + 86 DIV 20 col0
----
44

skipif mysql # not compatible
query I rowsort label-7257
SELECT + 40 + + 86 / 20 col0
----
44

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

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

query I rowsort
SELECT + 57 - - 59 + + 90 col1
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT - 63 * - CASE 94 WHEN - - 91 * - COUNT( * ) + + COUNT( * ) THEN NULL WHEN 61 THEN ( - + ( - + 86 ) ) ELSE + + 15 END
----
945

skipif mysql # not compatible
query I rowsort label-7260
SELECT - 63 * - CASE 94 WHEN - - 91 * - COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN 61 THEN ( - + ( - + 86 ) ) ELSE + + 15 END
----
945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7261
SELECT ALL 64 AS col0, CAST( + 67 AS SIGNED )
----
64
67

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL 64 AS col0, CAST ( + 67 AS INTEGER )
----
64
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT DISTINCT 81 * COUNT( * ) * - 14
----
-1134

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT 81 * COUNT ( * ) * - 14
----
-1134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT + 10 + - - SUM( DISTINCT 87 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7264
SELECT + 10 + - - SUM ( DISTINCT 87 ) AS col0
----
97

query I rowsort
SELECT ALL 16 * + 36 * - - 83 AS col1
----
47808

query I rowsort
SELECT + 27 * 46
----
1242

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7268
SELECT 47 / + ( - CASE 97 WHEN + 74 THEN NULL WHEN + NULLIF ( COUNT( * ), + 0 * - 99 ) THEN NULL ELSE CASE + 8 WHEN 3 THEN NULL WHEN + 71 + + 87 * - 55 THEN NULL ELSE 47 END + 69 / + 79 END * CAST( NULL AS SIGNED ) ) + + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT 47 / + ( - CASE 97 WHEN + 74 THEN NULL WHEN + NULLIF ( COUNT ( * ), + 0 * - 99 ) THEN NULL ELSE CASE + 8 WHEN 3 THEN NULL WHEN + 71 + + 87 * - 55 THEN NULL ELSE 47 END + 69 / + 79 END * CAST ( NULL AS INTEGER ) ) + + 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT + 91 DIV 11 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7269
SELECT + 91 / 11 AS col0
----
8

query I rowsort
SELECT - 97 * 55 AS col1
----
-5335

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT 45 DIV 31 + 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT 45 / 31 + 45 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7272
SELECT CAST( + ( - CAST( + 32 AS DECIMAL ) ) AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7272
SELECT CAST ( + ( - CAST ( + 32 AS REAL ) ) AS INTEGER ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT - COUNT( * ) + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-7273
SELECT - COUNT ( * ) + - 63
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT ALL 20 DIV 98 + 48
----
48

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL 20 / 98 + 48
----
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT DISTINCT - 46 DIV + 9 + 52
----
47

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - 46 / + 9 + 52
----
47

query I rowsort
SELECT ALL + 75 * + 7
----
525

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7278
SELECT DISTINCT 32 DIV COUNT( * ) + NULLIF ( - 46, + CASE COUNT( * ) WHEN + 34 + - 19 * CAST( - 27 - + 94 DIV - 58 AS DECIMAL ) THEN + 24 + + 3 END * ( 81 * ( - 74 DIV MAX( DISTINCT + 83 ) ) ) ) * + 98
----
-4476

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT 32 / COUNT ( * ) + NULLIF ( - 46, + CASE COUNT ( * ) WHEN + 34 + - 19 * CAST ( - 27 - + 94 / - 58 AS REAL ) THEN + 24 + + 3 END * ( 81 * ( - 74 / MAX ( DISTINCT + 83 ) ) ) ) * + 98
----
-4476

query I rowsort
SELECT ALL - 75 / 29 + CASE + 29 - 48 * - 66 WHEN + 60 THEN + 69 + 98 WHEN 19 THEN 63 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 30 * 23
----
690

query I rowsort
SELECT - 1 + ( 21 + - 15 )
----
5

query I rowsort
SELECT 2 * 36
----
72

query I rowsort
SELECT ( - 46 ) * 35 + + 48
----
-1562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT ALL - NULLIF ( 70, CAST( NULL AS SIGNED ) / 15 + - 26 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL - NULLIF ( 70, CAST ( NULL AS INTEGER ) / 15 + - 26 ) AS col0
----
-70

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

query I rowsort
SELECT ALL + 4 - - NULLIF ( 66 + 18, - 47 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL 18 * COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL 18 * COUNT ( * ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT 11 + + COALESCE ( NULLIF ( CAST( + 10 AS SIGNED ), ( + 51 ) + + 29 ), + COUNT( * ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7288
SELECT 11 + + COALESCE ( NULLIF ( CAST ( + 10 AS INTEGER ), ( + 51 ) + + 29 ), + COUNT ( * ) ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT - 80 * 50 + + 81 DIV 15
----
-3995

skipif mysql # not compatible
query I rowsort label-7289
SELECT - 80 * 50 + + 81 / 15
----
-3995

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT COUNT( ALL + 95 ) * - 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT COUNT ( ALL + 95 ) * - 55 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT ALL - COALESCE ( 12, - COUNT( * ) * 54, CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - COALESCE ( 12, - COUNT ( * ) * 54, CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT 36 + + COUNT( * ) * NULLIF ( 46 * 21, 3 * - 1 + COUNT( * ) )
----
1002

skipif mysql # not compatible
query I rowsort label-7292
SELECT 36 + + COUNT ( * ) * NULLIF ( 46 * 21, 3 * - 1 + COUNT ( * ) )
----
1002

query I rowsort
SELECT 20 * 83
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT MIN( + 43 ) + + 96
----
139

skipif mysql # not compatible
query I rowsort label-7294
SELECT MIN ( + 43 ) + + 96
----
139

query I rowsort
SELECT DISTINCT + CASE + 54 WHEN 72 THEN - 89 ELSE NULL END * + 26
----
NULL

query I rowsort
SELECT ALL 4 + 54
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT COUNT( * ) * 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7297
SELECT COUNT ( * ) * 17 AS col2
----
17

query I rowsort
SELECT ALL 98 + - 94
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT 39 + NULLIF ( - 57 + - CAST( NULL AS SIGNED ), 23 * 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT 39 + NULLIF ( - 57 + - CAST ( NULL AS INTEGER ), 23 * 70 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL 9 + ( MAX( DISTINCT + 23 ) )
----
32

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL 9 + ( MAX ( DISTINCT + 23 ) )
----
32

query I rowsort
SELECT + - 26 col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT + + 63 DIV - 40 + 26 * + 57
----
1481

skipif mysql # not compatible
query I rowsort label-7303
SELECT + + 63 / - 40 + 26 * + 57
----
1481

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

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

query I rowsort
SELECT DISTINCT 71 + 85 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL - NULLIF ( + 82, - 62 + + MAX( 23 ) ) * + 32 col1
----
-2624

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL - NULLIF ( + 82, - 62 + + MAX ( 23 ) ) * + 32 col1
----
-2624

query I rowsort
SELECT 49 + + 40
----
89

query I rowsort
SELECT ALL + 67 + 57 AS col0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT ALL + CAST( 90 AS SIGNED ) - + 66 * 64
----
-4134

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + CAST ( 90 AS INTEGER ) - + 66 * 64
----
-4134

query I rowsort
SELECT - 42 * - 79
----
3318

query I rowsort
SELECT - 39 * 66 + 45 * 98
----
1836

query I rowsort
SELECT DISTINCT + 84 - + 87
----
-3

query I rowsort
SELECT + 9 * 3
----
27

query I rowsort
SELECT ( + 0 ) + 65 AS col1
----
65

query I rowsort
SELECT + 36 - 88 * 18 AS col0
----
-1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT ALL + 65 / CASE - CAST( COUNT( * ) AS SIGNED ) + + 39 WHEN 88 + 15 THEN + 72 + + 45 * CASE - 26 WHEN + 71 * 20 + - 47 * + 49 THEN 7 END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + 65 / CASE - CAST ( COUNT ( * ) AS INTEGER ) + + 39 WHEN 88 + 15 THEN + 72 + + 45 * CASE - 26 WHEN + 71 * 20 + - 47 * + 49 THEN 7 END ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 11 * 39 AS col0
----
429

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT COUNT( * ) * 29
----
29

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT COUNT ( * ) * 29
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7320
SELECT CAST( - 8 AS SIGNED ) DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-7320
SELECT CAST ( - 8 AS INTEGER ) / + 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT 30 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT 30 / - 74
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT 20 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT 20 / 96 AS col1
----
0

query I rowsort
SELECT 26 - + 94
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL + 83 + CAST( NULL AS SIGNED ) + CASE - 93 WHEN + 15 THEN 45 WHEN COUNT( 76 ) + 44 THEN - 96 + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL + 83 + CAST ( NULL AS INTEGER ) + CASE - 93 WHEN + 15 THEN 45 WHEN COUNT ( 76 ) + 44 THEN - 96 + 74 END
----
NULL

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

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

query I rowsort
SELECT ALL - 20 + + + 38 AS col0
----
18

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

skipif mysql # not compatible
query I rowsort label-7328
SELECT 35 + COUNT ( * ) * + 29 AS col2
----
64

query I rowsort
SELECT 45 + + 80
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL + + MIN( DISTINCT + 57 ) + 55
----
112

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + + MIN ( DISTINCT + 57 ) + 55
----
112

query I rowsort
SELECT 41 + - 67 * 48 AS col0
----
-3175

query I rowsort
SELECT ALL + 82 + - 1 * - 12 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT + ( COUNT( DISTINCT 50 ) ) + + 64 * + 97
----
6209

skipif mysql # not compatible
query I rowsort label-7333
SELECT + ( COUNT ( DISTINCT 50 ) ) + + 64 * + 97
----
6209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7334
SELECT ALL + - CASE - 25 WHEN - ( - 52 ) THEN NULL WHEN + COUNT( * ) THEN 71 - - CAST( 51 AS SIGNED ) DIV 84 ELSE 69 - MIN( DISTINCT - 34 + 37 * 97 ) END * + 63 AS col1
----
219618

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + - CASE - 25 WHEN - ( - 52 ) THEN NULL WHEN + COUNT ( * ) THEN 71 - - CAST ( 51 AS INTEGER ) / 84 ELSE 69 - MIN ( DISTINCT - 34 + 37 * 97 ) END * + 63 AS col1
----
219618

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT COUNT( * ) + + 80 + 61 * 13
----
874

skipif mysql # not compatible
query I rowsort label-7335
SELECT COUNT ( * ) + + 80 + 61 * 13
----
874

query I rowsort
SELECT + + 58 * + - 31 * 51 + ( 72 ) AS col1
----
-91626

query I rowsort
SELECT + 26 * 9
----
234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT + COALESCE ( + 9, + COUNT( * ) * 92 + 14 DIV 78 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7338
SELECT + COALESCE ( + 9, + COUNT ( * ) * 92 + 14 / 78 ) AS col2
----
9

query I rowsort
SELECT + - ( COALESCE ( - 14, + ( 64 ) ) ) AS col0
----
14

query I rowsort
SELECT ( - - 90 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT 61 DIV 18 + + 66 * 10 + 30 AS col1
----
693

skipif mysql # not compatible
query I rowsort label-7341
SELECT 61 / 18 + + 66 * 10 + 30 AS col1
----
693

query I rowsort
SELECT ALL - 55 * - 35
----
1925

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-7347
SELECT + COUNT ( * ) AS col0, 66
----
1
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7348
SELECT MAX( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT MAX ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT - MIN( - 59 ) * - COUNT( * ) + + 13
----
-46

skipif mysql # not compatible
query I rowsort label-7350
SELECT - MIN ( - 59 ) * - COUNT ( * ) + + 13
----
-46

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

skipif mysql # not compatible
query I rowsort label-7351
SELECT MAX ( + 59 )
----
59

query I rowsort
SELECT + 58 + - NULLIF ( - 15, 79 )
----
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT ALL + 51 + CASE - + 14 WHEN 7 THEN CAST( NULL AS SIGNED ) * 18 ELSE NULL END + + 63 * + ( 57 + 7 * 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL + 51 + CASE - + 14 WHEN 7 THEN CAST ( NULL AS INTEGER ) * 18 ELSE NULL END + + 63 * + ( 57 + 7 * 53 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 79 + + 9
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7356
SELECT ALL NULLIF ( 0, + CASE - CAST( NULL AS SIGNED ) WHEN - 36 / COUNT( * ) THEN - 54 * - 63 - 70 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL NULLIF ( 0, + CASE - CAST ( NULL AS INTEGER ) WHEN - 36 / COUNT ( * ) THEN - 54 * - 63 - 70 END ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7357
SELECT CASE 12 WHEN + COALESCE ( 3, 89 ) * - 64 - + 96 THEN NULL ELSE + SUM( 98 ) DIV 95 END * 67 + 8 * + 3 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7357
SELECT CASE 12 WHEN + COALESCE ( 3, 89 ) * - 64 - + 96 THEN NULL ELSE + SUM ( 98 ) / 95 END * 67 + 8 * + 3 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT CASE + COUNT( * ) WHEN 71 * + 38 THEN ( + 53 ) * ( - CASE 87 WHEN 42 + ( COUNT( * ) - - NULLIF ( 88, + 35 + 12 ) ) THEN 79 + 61 END ) ELSE NULL END + - 74 * - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT CASE + COUNT ( * ) WHEN 71 * + 38 THEN ( + 53 ) * ( - CASE 87 WHEN 42 + ( COUNT ( * ) - - NULLIF ( 88, + 35 + 12 ) ) THEN 79 + 61 END ) ELSE NULL END + - 74 * - 53 AS col1
----
NULL

query I rowsort
SELECT + 75 * + 13 AS col0
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT - CASE - ( 74 ) WHEN + COUNT( * ) THEN - 55 ELSE NULL END + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT - CASE - ( 74 ) WHEN + COUNT ( * ) THEN - 55 ELSE NULL END + - 45
----
NULL

query I rowsort
SELECT ALL + 79 * + 45 col2
----
3555

query I rowsort
SELECT - ( 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - 57 + - 5 * COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7363
SELECT - 57 + - 5 * COUNT ( * ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - 68 * - COALESCE ( + ( + 29 ), + COUNT( * ) * 97, + SUM( ALL 41 ) + + 99 ) AS col1
----
1972

skipif mysql # not compatible
query I rowsort label-7364
SELECT - 68 * - COALESCE ( + ( + 29 ), + COUNT ( * ) * 97, + SUM ( ALL 41 ) + + 99 ) AS col1
----
1972

onlyif mysql # aggregate syntax: 
query II rowsort label-7365
SELECT 3 AS col0, - 21 + + 96 - - 53 * COUNT( * ) AS col0
----
3
128

skipif mysql # not compatible
query II rowsort label-7365
SELECT 3 AS col0, - 21 + + 96 - - 53 * COUNT ( * ) AS col0
----
3
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - ( + MAX( ALL - 30 ) ) + 42 * ( + 69 * - 61 )
----
-176748

skipif mysql # not compatible
query I rowsort label-7366
SELECT - ( + MAX ( ALL - 30 ) ) + 42 * ( + 69 * - 61 )
----
-176748

query I rowsort
SELECT DISTINCT 92 + - + 59 AS col1
----
33

query I rowsort
SELECT ALL COALESCE ( + - 23, ( 13 ), - 36 ) * 86
----
-1978

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT - 70 col0, - COUNT( * )
----
-70
-1

skipif mysql # not compatible
query II rowsort label-7369
SELECT - 70 col0, - COUNT ( * )
----
-70
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL + 20 * + 28 * COUNT( * ) AS col1
----
560

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

query I rowsort
SELECT - NULLIF ( + 32, + + 53 * + 99 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7372
SELECT ALL COUNT( * ) AS col0, + 45 DIV - + 43 + - 75 * - 53
----
1
3974

skipif mysql # not compatible
query II rowsort label-7372
SELECT ALL COUNT ( * ) AS col0, + 45 / - + 43 + - 75 * - 53
----
1
3974

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

skipif mysql # not compatible
query I rowsort label-7373
SELECT + MAX ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT - - CASE + 30 WHEN 35 * - 80 THEN NULL WHEN COUNT( DISTINCT 11 ) * COUNT( * ) - 21 THEN 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT - - CASE + 30 WHEN 35 * - 80 THEN NULL WHEN COUNT ( DISTINCT 11 ) * COUNT ( * ) - 21 THEN 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT - SUM( ALL - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7375
SELECT - SUM ( ALL - 55 ) AS col1
----
55

query II rowsort
SELECT - + 81 AS col2, - 74
----
-81
-74

query I rowsort
SELECT - - 65 * - - ( - - NULLIF ( 72, - 34 ) ) * 19 AS col2
----
88920

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

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

query I rowsort
SELECT - 64 * - + ( + 70 ) AS col0
----
4480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7380
SELECT - 60, - ( - 1 ) * 23 + + NULLIF ( 80, COUNT( * ) * MIN( ALL + NULLIF ( 15, CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
-60
103

skipif mysql # not compatible
query II rowsort label-7380
SELECT - 60, - ( - 1 ) * 23 + + NULLIF ( 80, COUNT ( * ) * MIN ( ALL + NULLIF ( 15, CAST ( NULL AS REAL ) ) ) ) AS col1
----
-60
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT SUM( ALL - - COALESCE ( - - 80, + 82 ) )
----
80

skipif mysql # not compatible
query I rowsort label-7381
SELECT SUM ( ALL - - COALESCE ( - - 80, + 82 ) )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7382
SELECT + - 58 AS col0, COUNT( * ) * - 16
----
-58
-16

skipif mysql # not compatible
query II rowsort label-7382
SELECT + - 58 AS col0, COUNT ( * ) * - 16
----
-58
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT NULLIF ( + 75, - COUNT( * ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7383
SELECT NULLIF ( + 75, - COUNT ( * ) ) AS col0
----
75

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7385
SELECT - 34 DIV 96 DIV + 5 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7385
SELECT - 34 / 96 / + 5 + - COUNT ( * )
----
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7387
SELECT DISTINCT + 9 AS col0, + 11 + - ( MAX( DISTINCT 40 ) ) * 69 AS col1
----
9
-2749

skipif mysql # not compatible
query II rowsort label-7387
SELECT DISTINCT + 9 AS col0, + 11 + - ( MAX ( DISTINCT 40 ) ) * 69 AS col1
----
9
-2749

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT ALL + COALESCE ( + 30, 36 ) DIV + 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL + COALESCE ( + 30, 36 ) / + 57 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT + + 38 DIV - + 95 * 88
----
0

skipif mysql # not compatible
query I rowsort label-7389
SELECT + + 38 / - + 95 * 88
----
0

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

query II rowsort
SELECT ALL + 86, 65 + 87 AS col1
----
86
152

query I rowsort
SELECT - - 68 + 73 * - 31 col1
----
-2195

query II rowsort
SELECT + + 73, - 73 + - 17 AS col2
----
73
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT + 53 - + 8 DIV - MAX( DISTINCT 41 ) + 34 * 50
----
1753

skipif mysql # not compatible
query I rowsort label-7394
SELECT + 53 - + 8 / - MAX ( DISTINCT 41 ) + 34 * 50
----
1753

onlyif mysql # DIV for integer division: 
query II rowsort label-7395
SELECT ALL 59 DIV + + 69 AS col1, ( - 9 ) AS col2
----
0
-9

skipif mysql # not compatible
query II rowsort label-7395
SELECT ALL 59 / + + 69 AS col1, ( - 9 ) AS col2
----
0
-9

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

query II rowsort
SELECT ( - 24 ), 96 AS col0
----
-24
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT + MAX( - 57 ) AS col2, - 46 AS col1
----
-57
-46

skipif mysql # not compatible
query II rowsort label-7398
SELECT + MAX ( - 57 ) AS col2, - 46 AS col1
----
-57
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT + NULLIF ( - - 29, 79 + - 66 - - 7 * 35 ) + 59 * COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7399
SELECT + NULLIF ( - - 29, 79 + - 66 - - 7 * 35 ) + 59 * COUNT ( * ) AS col2
----
88

query I rowsort
SELECT ALL + 73 * 66 * - 53 * - 28 + 75
----
7149987

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL + MAX( ALL - NULLIF ( 60, 80 * - 94 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + MAX ( ALL - NULLIF ( 60, 80 * - 94 ) ) AS col0
----
-60

query I rowsort
SELECT + NULLIF ( ( - 95 ), + + 78 / - 14 - - 44 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + MAX( - 9 ) - 49 + - 40 + - 13 * 27 * CASE + 26 WHEN 10 THEN - SUM( DISTINCT + 25 ) + 80 WHEN - AVG ( ( 68 ) ) THEN NULL WHEN 89 THEN NULLIF ( - 91, 61 * 6 ) * 32 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT + MAX ( - 9 ) - 49 + - 40 + - 13 * 27 * CASE + 26 WHEN 10 THEN - SUM ( DISTINCT + 25 ) + 80 WHEN - AVG ( ( 68 ) ) THEN NULL WHEN 89 THEN NULLIF ( - 91, 61 * 6 ) * 32 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL - CASE - ( + CAST( NULL AS SIGNED ) ) WHEN + 20 THEN NULLIF ( 38, 95 ) * 87 ELSE NULL END * 28 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN + 20 THEN NULLIF ( 38, 95 ) * 87 ELSE NULL END * 28 + 98
----
NULL

query I rowsort
SELECT CASE - 43 WHEN 29 THEN + 28 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + 75 * + SUM( ALL + 13 ) AS col1
----
975

skipif mysql # not compatible
query I rowsort label-7406
SELECT + 75 * + SUM ( ALL + 13 ) AS col1
----
975

query I rowsort
SELECT + 81 * - 54 * - + 55
----
240570

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

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

query I rowsort
SELECT ALL 29 * 6 - - + ( + 76 ) + 89 * + ( 88 ) * 97
----
759954

query I rowsort
SELECT + 45 - 53 * + 62
----
-3241

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT ALL + 54 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + 54 / + 89 AS col0
----
0

query I rowsort
SELECT 3 + 82 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT + COUNT( * ) + + COALESCE ( CAST( 23 AS SIGNED ), - 40 )
----
24

skipif mysql # not compatible
query I rowsort label-7414
SELECT + COUNT ( * ) + + COALESCE ( CAST ( 23 AS INTEGER ), - 40 )
----
24

query I rowsort
SELECT 93 - + 32 - + + 19 + - 21 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT 80 * + 66 - + + CAST( NULL AS SIGNED ) * AVG ( + 92 ) / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT 80 * + 66 - + + CAST ( NULL AS INTEGER ) * AVG ( + 92 ) / 29
----
NULL

query I rowsort
SELECT + 52 + 60
----
112

query I rowsort
SELECT - 61 * 47 * + 6
----
-17202

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - - MAX( 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7419
SELECT - - MAX ( 71 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7420
SELECT ALL NULLIF ( 16, - 65 / + 29 / - CAST( NULL AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL NULLIF ( 16, - 65 / + 29 / - CAST ( NULL AS INTEGER ) )
----
16

query I rowsort
SELECT - 88 + - 9 + + + 84 + - - 66 * + 8
----
515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7422
SELECT + MIN( + 29 ) * - + COUNT( * ) DIV - 41 + + MAX( - 89 + 39 ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT + MIN ( + 29 ) * - + COUNT ( * ) / - 41 + + MAX ( - 89 + 39 ) / 62
----
0

query I rowsort
SELECT + 2 + + + 54 + - 33 + + 98 * + 75
----
7373

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

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

query I rowsort
SELECT ALL - + 48 + - 62 + + - 51 * 62 - - 11 * 44
----
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + + ( - - NULLIF ( - + CASE 56 WHEN MIN( + 25 ) + 32 THEN 43 WHEN 38 * + 41 THEN 50 END, 18 * - 36 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT + + ( - - NULLIF ( - + CASE 56 WHEN MIN ( + 25 ) + 32 THEN 43 WHEN 38 * + 41 THEN 50 END, 18 * - 36 ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT - 64 * - 23
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT CASE - COUNT( DISTINCT - 86 ) WHEN + COUNT( * ) THEN COUNT( * ) - - 17 * + 40 WHEN + 26 / AVG ( 20 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT CASE - COUNT ( DISTINCT - 86 ) WHEN + COUNT ( * ) THEN COUNT ( * ) - - 17 * + 40 WHEN + 26 / AVG ( 20 ) THEN NULL END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT 96 DIV - COUNT( * ) + - 69
----
-165

skipif mysql # not compatible
query I rowsort label-7431
SELECT 96 / - COUNT ( * ) + - 69
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT 55 DIV - 12 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7432
SELECT 55 / - 12 AS col1
----
-4

query I rowsort
SELECT ALL - CASE 49 WHEN + 13 + 5 THEN - 46 * + 17 END + 12 AS col1
----
NULL

query I rowsort
SELECT ALL + 96 + 95 AS col0
----
191

query I rowsort
SELECT 39 * + + 25
----
975

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL - 51 + - - NULLIF ( - 43, - 91 + CAST( NULL AS SIGNED ) + - 68 * - SUM( 99 + + 11 ) ) - 20 * - 2 col1
----
-54

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL - 51 + - - NULLIF ( - 43, - 91 + CAST ( NULL AS INTEGER ) + - 68 * - SUM ( 99 + + 11 ) ) - 20 * - 2 col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL + ( - CASE 56 WHEN + COUNT( * ) + + 74 + 9 * 65 THEN NULL WHEN 56 * 74 THEN COUNT( * ) + - 14 END ) + - COALESCE ( 86, + CAST( + MAX( DISTINCT - 27 ) AS SIGNED ) / + CASE - NULLIF ( - 70, + 64 + CAST( - 55 AS SIGNED ) ) WHEN + 75 THEN NULL WHEN - 69 / - ( + 83 ) + ( + 28 ) THEN ( + 19 ) + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + ( - CASE 56 WHEN + COUNT ( * ) + + 74 + 9 * 65 THEN NULL WHEN 56 * 74 THEN COUNT ( * ) + - 14 END ) + - COALESCE ( 86, + CAST ( + MAX ( DISTINCT - 27 ) AS INTEGER ) / + CASE - NULLIF ( - 70, + 64 + CAST ( - 55 AS INTEGER ) ) WHEN + 75 THEN NULL WHEN - 69 / - ( + 83 ) + ( + 28 ) THEN ( + 19 ) + COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT 47 AS col0, 90 + + CASE - 29 WHEN ( + 78 ) + - 38 * 64 THEN + 36 * + COUNT( * ) + + 65 WHEN COUNT( * ) * 54 THEN NULL ELSE COUNT( * ) * + 85 END + 52
----
47
227

skipif mysql # not compatible
query II rowsort label-7439
SELECT 47 AS col0, 90 + + CASE - 29 WHEN ( + 78 ) + - 38 * 64 THEN + 36 * + COUNT ( * ) + + 65 WHEN COUNT ( * ) * 54 THEN NULL ELSE COUNT ( * ) * + 85 END + 52
----
47
227

query I rowsort
SELECT 26 + + + 76 * + 32 AS col1
----
2458

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT + 26 * + 4 - ( - MAX( ALL - + 35 ) ) + 66 col0
----
135

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 26 * + 4 - ( - MAX ( ALL - + 35 ) ) + 66 col0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT DISTINCT - CAST( 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - CAST ( 32 AS INTEGER )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT ALL - 24 DIV + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - 24 / + 36 AS col2
----
0

query I rowsort
SELECT 88 * 70 + 68 * + + 88 - + ( - 61 ) * 6 AS col1
----
12510

query II rowsort
SELECT + 2 AS col0, 65 * 43
----
2
2795

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT 4 DIV - 7
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT 4 / - 7
----
0

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

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

query I rowsort
SELECT ALL 39 * + + 96 AS col0
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT MIN( DISTINCT 90 ) + - 40 * - COUNT( * ) * 37 + 28 col2
----
1598

skipif mysql # not compatible
query I rowsort label-7449
SELECT MIN ( DISTINCT 90 ) + - 40 * - COUNT ( * ) * 37 + 28 col2
----
1598

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT ALL + COALESCE ( - - 27, - 98 DIV 7 ) DIV + COALESCE ( - 55, + 73 + 0 * 57, 74 + - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + COALESCE ( - - 27, - 98 / 7 ) / + COALESCE ( - 55, + 73 + 0 * 57, 74 + - 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT - ( + MAX( 66 ) ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - ( + MAX ( 66 ) ) col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL 33 * 72 * CAST( 69 AS SIGNED ) AS col0
----
163944

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL 33 * 72 * CAST ( 69 AS INTEGER ) AS col0
----
163944

query I rowsort
SELECT DISTINCT 62 * 68 AS col0
----
4216

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + COALESCE ( + 47, - - MIN( - + 24 ) - + ( - 29 ) * 40 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7454
SELECT + COALESCE ( + 47, - - MIN ( - + 24 ) - + ( - 29 ) * 40 ) AS col2
----
47

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

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

query I rowsort
SELECT - 93 + - 41 AS col1
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT - COALESCE ( 39, + - 33 + - - COUNT( * ) * + - COUNT( - CAST( NULL AS SIGNED ) ) ) * 18
----
-702

skipif mysql # not compatible
query I rowsort label-7457
SELECT - COALESCE ( 39, + - 33 + - - COUNT ( * ) * + - COUNT ( - CAST ( NULL AS INTEGER ) ) ) * 18
----
-702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT 39 * SUM( ALL + 90 ) * + 41
----
143910

skipif mysql # not compatible
query I rowsort label-7459
SELECT 39 * SUM ( ALL + 90 ) * + 41
----
143910

query I rowsort
SELECT ALL 44 col2
----
44

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT 74, + ( - ( ( - + COUNT( * ) ) ) ) - + 78 AS col0
----
74
-77

skipif mysql # not compatible
query II rowsort label-7462
SELECT 74, + ( - ( ( - + COUNT ( * ) ) ) ) - + 78 AS col0
----
74
-77

query I rowsort
SELECT ALL - 76 * + 14 + - 52 + - + 37 * - 69 * NULLIF ( 42 * 90, - 26 ) col2
----
9649224

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT 18 DIV + - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT 18 / + - 53 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT SUM( DISTINCT + 35 ) + + - 50 * + - 56 * - 22
----
-61565

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT SUM ( DISTINCT + 35 ) + + - 50 * + - 56 * - 22
----
-61565

query I rowsort
SELECT ALL + COALESCE ( + 29, + - 78 * 41 - 93, + 95 + 85 ) + - 43
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7467
SELECT DISTINCT + NULLIF ( - + 19, - CAST( NULL AS DECIMAL ) ) * + - 76
----
1444

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + NULLIF ( - + 19, - CAST ( NULL AS REAL ) ) * + - 76
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL 78 * SUM( - 40 ) + COUNT( * ) AS col1
----
-3119

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL 78 * SUM ( - 40 ) + COUNT ( * ) AS col1
----
-3119

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT 87 * - MIN( + - 52 ) AS col1
----
4524

skipif mysql # not compatible
query I rowsort label-7469
SELECT 87 * - MIN ( + - 52 ) AS col1
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - CASE WHEN NOT + 49 NOT BETWEEN ( 20 * + 50 * - 0 ) AND ( + COALESCE ( COUNT( * ), 51 * 37 ) + 16 * - COUNT( * ) ) THEN 6 * COALESCE ( 13, 29 * CASE WHEN ( NULL ) <= ( 91 ) THEN 61 - 95 END ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT - CASE WHEN NOT + 49 NOT BETWEEN ( 20 * + 50 * - 0 ) AND ( + COALESCE ( COUNT ( * ), 51 * 37 ) + 16 * - COUNT ( * ) ) THEN 6 * COALESCE ( 13, 29 * CASE WHEN ( NULL ) <= ( 91 ) THEN 61 - 95 END ) END col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT ALL - COUNT( * ) * - 59 + - COUNT( ALL - - 7 ) * COALESCE ( - 4, 61, AVG ( DISTINCT - 78 ) DIV - COUNT( * ) - + 38 ) * + ( 98 ) AS col2
----
451

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - COUNT ( * ) * - 59 + - COUNT ( ALL - - 7 ) * COALESCE ( - 4, 61, AVG ( DISTINCT - 78 ) / - COUNT ( * ) - + 38 ) * + ( 98 ) AS col2
----
451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT 30 - - - CASE - 67 WHEN - - AVG ( ALL + + 88 ) + - 83 + - 91 * ( 30 ) THEN CAST( - 84 AS SIGNED ) WHEN + 96 + 35 THEN NULL WHEN - 88 * + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT 30 - - - CASE - 67 WHEN - - AVG ( ALL + + 88 ) + - 83 + - 91 * ( 30 ) THEN CAST ( - 84 AS INTEGER ) WHEN + 96 + 35 THEN NULL WHEN - 88 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT DISTINCT - 68 AS col1, - 0 * SUM( 48 ) + + 49
----
-68
49

skipif mysql # not compatible
query II rowsort label-7474
SELECT DISTINCT - 68 AS col1, - 0 * SUM ( 48 ) + + 49
----
-68
49

query I rowsort
SELECT DISTINCT - 58 * - ( - + 33 ) * 49 + - 88 AS col2
----
-93874

query II rowsort
SELECT DISTINCT - 13 AS col0, - ( + 67 ) * + 97 * + 69 + 36
----
-13
-448395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7477
SELECT ALL + ( COUNT( * ) ) * 4 - - + CAST( - - ( ( + COUNT( * ) ) ) AS SIGNED ) + 22 col1
----
27

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL + ( COUNT ( * ) ) * 4 - - + CAST ( - - ( ( + COUNT ( * ) ) ) AS INTEGER ) + 22 col1
----
27

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7481
SELECT ALL - COALESCE ( CASE CAST( NULL AS SIGNED ) WHEN - 28 * + CASE 24 WHEN - 81 - - SUM( + 8 ) THEN NULL WHEN 49 - ( - 42 ) THEN - COUNT( * ) + 77 END + + ( + 68 ) * 77 THEN - 36 * + 89 END, - 39 * 4 + 2 )
----
154

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL - COALESCE ( CASE CAST ( NULL AS INTEGER ) WHEN - 28 * + CASE 24 WHEN - 81 - - SUM ( + 8 ) THEN NULL WHEN 49 - ( - 42 ) THEN - COUNT ( * ) + 77 END + + ( + 68 ) * 77 THEN - 36 * + 89 END, - 39 * 4 + 2 )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT COUNT( - + NULLIF ( + 98, - 85 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7482
SELECT COUNT ( - + NULLIF ( + 98, - 85 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7483
SELECT + 59 * 86 + COUNT( * ) + - COUNT( * ) * 15 DIV - 71 AS col2
----
5075

skipif mysql # not compatible
query I rowsort label-7483
SELECT + 59 * 86 + COUNT ( * ) + - COUNT ( * ) * 15 / - 71 AS col2
----
5075

query I rowsort
SELECT 74 - 17 AS col0
----
57

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

query I rowsort
SELECT ALL - 20 * + ( - + 28 ) AS col2
----
560

query II rowsort
SELECT ALL - 90, + 24 + + + 52 + - - 84 AS col2
----
-90
160

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

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT + COUNT ( * ) - - + 49 AS col2
----
50

query II rowsort
SELECT 64 * 42 AS col0, - 20 * - + 72
----
2688
1440

query I rowsort
SELECT ALL + 30 * + + 17
----
510

onlyif mysql # aggregate syntax: 
query II rowsort label-7491
SELECT DISTINCT - 3 AS col2, - MAX( + + 43 ) AS col1
----
-3
-43

skipif mysql # not compatible
query II rowsort label-7491
SELECT DISTINCT - 3 AS col2, - MAX ( + + 43 ) AS col1
----
-3
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7492
SELECT DISTINCT + 22, COALESCE ( 70, + COUNT( * ) + - 13 + + CAST( - 15 AS SIGNED ) + - COUNT( * ) * ( + 80 ) DIV NULLIF ( + 65 + 40, COUNT( * ) ), - 20 + + NULLIF ( 37, 99 ) * - CASE 57 + - 69 DIV + 63 WHEN + CAST( SUM( DISTINCT 99 ) AS SIGNED ) THEN + ( 44 ) ELSE COUNT( * ) END ) * 54 AS col1
----
22
3780

skipif mysql # not compatible
query II rowsort label-7492
SELECT DISTINCT + 22, COALESCE ( 70, + COUNT ( * ) + - 13 + + CAST ( - 15 AS INTEGER ) + - COUNT ( * ) * ( + 80 ) / NULLIF ( + 65 + 40, COUNT ( * ) ), - 20 + + NULLIF ( 37, 99 ) * - CASE 57 + - 69 / + 63 WHEN + CAST ( SUM ( DISTINCT 99 ) AS INTEGER ) THEN + ( 44 ) ELSE COUNT ( * ) END ) * 54 AS col1
----
22
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + NULLIF ( COUNT( * ), + COUNT( * ) + - - 69 ) * 25 - - 91 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-7493
SELECT + NULLIF ( COUNT ( * ), + COUNT ( * ) + - - 69 ) * 25 - - 91 AS col1
----
116

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT + CASE + COUNT( * ) WHEN 45 * 73 * 57 * - CAST( NULL AS SIGNED ) THEN NULL WHEN + 84 THEN - 8 * 93 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT + CASE + COUNT ( * ) WHEN 45 * 73 * 57 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 84 THEN - 8 * 93 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - - 83 * - - 74 AS col2
----
6142

query I rowsort
SELECT + - ( + 67 ) * 69 * ( 47 )
----
-217281

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL + - NULLIF ( - - 8, + - 46 ) * + 87 * - COUNT( * ) + + 5 col0
----
701

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + - NULLIF ( - - 8, + - 46 ) * + 87 * - COUNT ( * ) + + 5 col0
----
701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT - + 8 * - - MAX( ( - CAST( NULL AS SIGNED ) ) ) / - 70 / + - 74 + 31 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT - + 8 * - - MAX ( ( - CAST ( NULL AS INTEGER ) ) ) / - 70 / + - 74 + 31 * 9
----
NULL

query I rowsort
SELECT - - 91 - - 28 AS col2
----
119

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

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT COUNT ( - + 95 ) * + 9 AS col1
----
9

query I rowsort
SELECT DISTINCT - + 7 + + - 19 + + 51 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT ALL - 47 + CAST( NULL AS SIGNED ) / + NULLIF ( + CASE - + 68 WHEN + 84 THEN - COUNT( * ) ELSE + 51 + - 84 * + ( - 28 * 66 ) END, - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL - 47 + CAST ( NULL AS INTEGER ) / + NULLIF ( + CASE - + 68 WHEN + 84 THEN - COUNT ( * ) ELSE + 51 + - 84 * + ( - 28 * 66 ) END, - 85 )
----
NULL

query I rowsort
SELECT ALL - 36 + + + 7 * + 64 AS col0
----
412

query I rowsort
SELECT ALL - + 32 * + 82 - - NULLIF ( + + 70, + 66 ) AS col2
----
-2554

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - COUNT( * ) + + + ( + 33 ) + - 81 * - 46
----
3758

skipif mysql # not compatible
query I rowsort label-7506
SELECT - COUNT ( * ) + + + ( + 33 ) + - 81 * - 46
----
3758

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7507
SELECT ALL - 22 AS col2, + 28 * + CAST( - 90 AS SIGNED ) AS col2
----
-22
-2520

skipif mysql # not compatible
query II rowsort label-7507
SELECT ALL - 22 AS col2, + 28 * + CAST ( - 90 AS INTEGER ) AS col2
----
-22
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT - COUNT( * ) + + - 55 + + 55 * 89 AS col0
----
4839

skipif mysql # not compatible
query I rowsort label-7508
SELECT - COUNT ( * ) + + - 55 + + 55 * 89 AS col0
----
4839

query I rowsort
SELECT + - 76 - - 24
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT - + CAST( - CASE - - 97 WHEN + COALESCE ( - 90, + 69 + - 63 * - 98 ) THEN NULL WHEN ( + 19 ) THEN ( + 16 ) / 50 END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT - + CAST ( - CASE - - 97 WHEN + COALESCE ( - 90, + 69 + - 63 * - 98 ) THEN NULL WHEN ( + 19 ) THEN ( + 16 ) / 50 END AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL - 95 + ( - + 50 ) * + COUNT( * ) * + ( ( - 25 ) )
----
1155

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL - 95 + ( - + 50 ) * + COUNT ( * ) * + ( ( - 25 ) )
----
1155

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT - 30, + 59 * - COUNT( * ) AS col1
----
-30
-59

skipif mysql # not compatible
query II rowsort label-7512
SELECT - 30, + 59 * - COUNT ( * ) AS col1
----
-30
-59

query I rowsort
SELECT ALL + 26 + - + 22 col2
----
4

query I rowsort
SELECT + + 15 + + 51
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT ALL CAST( NULL AS SIGNED ) * ( MIN( ALL + 9 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL CAST ( NULL AS INTEGER ) * ( MIN ( ALL + 9 ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7516
SELECT ALL 0 + COUNT( * ) + - ( CAST( 98 AS SIGNED ) ) AS col0, 21
----
-97
21

skipif mysql # not compatible
query II rowsort label-7516
SELECT ALL 0 + COUNT ( * ) + - ( CAST ( 98 AS INTEGER ) ) AS col0, 21
----
-97
21

query I rowsort
SELECT - NULLIF ( - 83, + - 10 ) AS col1
----
83

query I rowsort
SELECT ALL ( + 94 ) - - 44 AS col2
----
138

query I rowsort
SELECT + CASE 86 WHEN - - 27 * - 9 * - 11 THEN NULL WHEN + COALESCE ( + 38, 26 ) THEN NULL ELSE 69 * - 7 END * + 25 col2
----
-12075

query I rowsort
SELECT - 68 * 61 + + 25
----
-4123

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

skipif mysql # not compatible
query I rowsort label-7521
SELECT ( - SUM ( ALL 99 ) )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7522
SELECT + NULLIF ( + 52, - 64 ), COUNT( * ) DIV - 61 AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-7522
SELECT + NULLIF ( + 52, - 64 ), COUNT ( * ) / - 61 AS col0
----
52
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT + SUM( ALL 88 ) * - - CAST( NULL AS SIGNED ) + - - COALESCE ( 24, 81, CAST( COUNT( * ) AS SIGNED ) + - 27 ) / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT + SUM ( ALL 88 ) * - - CAST ( NULL AS INTEGER ) + - - COALESCE ( 24, 81, CAST ( COUNT ( * ) AS INTEGER ) + - 27 ) / + 1
----
NULL

query II rowsort
SELECT ( + - 67 ) AS col2, + 99 AS col1
----
-67
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT + 5 DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT + 5 / 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT 25 * - MAX( 65 ) + + 16 AS col0
----
-1609

skipif mysql # not compatible
query I rowsort label-7528
SELECT 25 * - MAX ( 65 ) + + 16 AS col0
----
-1609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT + CAST( AVG ( ALL + 92 ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-7529
SELECT + CAST ( AVG ( ALL + 92 ) AS INTEGER )
----
92

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

query I rowsort
SELECT + 86 + - 73 + + 69 + + 42 * - 4 * - COALESCE ( + 66, 73 * COALESCE ( 28, 45 * - 90 ) ) * 32 + 29
----
354927

query I rowsort
SELECT - 68 - - 58 + 77 * + 78 * - ( 72 )
----
-432442

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

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

query II rowsort
SELECT + ( 63 ) AS col0, - 50 * + 96
----
63
-4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT - - 37 * - 91 + + 4 + - - 77 + - COUNT( * ) * - 10 * COALESCE ( 87, 76 - 66 DIV 79 ) DIV 97 + 75
----
-3203

skipif mysql # not compatible
query I rowsort label-7535
SELECT - - 37 * - 91 + + 4 + - - 77 + - COUNT ( * ) * - 10 * COALESCE ( 87, 76 - 66 / 79 ) / 97 + 75
----
-3203

query I rowsort
SELECT - 41 + - + 69 AS col1
----
-110

query I rowsort
SELECT ALL - 29 * 97 + - 73 + + 92 AS col0
----
-2794

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

query I rowsort
SELECT DISTINCT NULLIF ( + + 46, 9 ) AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7540
SELECT - ( COALESCE ( - + 21, + 77, + CASE + + 31 WHEN - 20 * 41 THEN 67 DIV + 18 WHEN 57 THEN NULL END, + ( + 54 ) + 19 ) ) * + 73 + - COUNT( DISTINCT - 21 )
----
1532

skipif mysql # not compatible
query I rowsort label-7540
SELECT - ( COALESCE ( - + 21, + 77, + CASE + + 31 WHEN - 20 * 41 THEN 67 / + 18 WHEN 57 THEN NULL END, + ( + 54 ) + 19 ) ) * + 73 + - COUNT ( DISTINCT - 21 )
----
1532

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT - + 10 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-7541
SELECT - + 10 / - 81
----
0

query II rowsort
SELECT ALL - 99 + + 16 AS col0, - 67
----
-83
-67

query I rowsort
SELECT + + 30 + - 65 AS col0
----
-35

query I rowsort
SELECT ALL + + 29 + - 69
----
-40

query I rowsort
SELECT DISTINCT + 97 + + 96 * - + 38 AS col0
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL MAX( + + 30 ) * - + 1 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL MAX ( + + 30 ) * - + 1 AS col1
----
-30

query I rowsort
SELECT - - 65 col1
----
65

query I rowsort
SELECT ALL 83 - 65 + + 99 * + 44 + 8 AS col1
----
4382

query I rowsort
SELECT - COALESCE ( + - 83, - - 73 + 20, 17 + - - 24 + 39 + + 63 + - 34 * 6 * 62 ) AS col2
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7550
SELECT ALL CAST( NULL AS DECIMAL ) col1, 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-7550
SELECT ALL CAST ( NULL AS REAL ) col1, 7 AS col2
----
NULL
7

query I rowsort
SELECT ALL + COALESCE ( + 0, - 85 * - - 15 ) * + 3
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7552
SELECT DISTINCT + CAST( - NULLIF ( + - 10, + 24 + + AVG ( DISTINCT 91 ) + - 60 + MAX( DISTINCT + 38 ) - 87 * 68 * 30 * - 22 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT + CAST ( - NULLIF ( + - 10, + 24 + + AVG ( DISTINCT 91 ) + - 60 + MAX ( DISTINCT + 38 ) - 87 * 68 * 30 * - 22 ) AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + COUNT( * ) + + - NULLIF ( + - COUNT( * ), - - 87 + - 88 * 83 ) * - 10 + - 77
----
-86

skipif mysql # not compatible
query I rowsort label-7553
SELECT + COUNT ( * ) + + - NULLIF ( + - COUNT ( * ), - - 87 + - 88 * 83 ) * - 10 + - 77
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT DISTINCT + NULLIF ( 87, ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT + NULLIF ( 87, ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL - 9 AS col1, - MIN( ALL 51 ) AS col0
----
-9
-51

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - 9 AS col1, - MIN ( ALL 51 ) AS col0
----
-9
-51

query I rowsort
SELECT 80 * - + 23 AS col0
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT 10 * + MAX( DISTINCT + CASE - + 21 WHEN 93 THEN NULL ELSE 0 END )
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT 10 * + MAX ( DISTINCT + CASE - + 21 WHEN 93 THEN NULL ELSE 0 END )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT DISTINCT 39 * + CAST( + ( + - AVG ( ( + + 49 ) ) ) AS SIGNED ) * + 53
----
-101283

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT 39 * + CAST ( + ( + - AVG ( ( + + 49 ) ) ) AS INTEGER ) * + 53
----
-101283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7559
SELECT 64 + + - COUNT( * ) + 73 AS col2, - COALESCE ( - + MAX( DISTINCT - CAST( 72 AS SIGNED ) ), SUM( 72 ) - + 24 ) + + CASE 1 WHEN ( + 84 ) THEN + 21 + COUNT( * ) * NULLIF ( 97, 49 ) END * 86 AS col2
----
136
NULL

skipif mysql # not compatible
query II rowsort label-7559
SELECT 64 + + - COUNT ( * ) + 73 AS col2, - COALESCE ( - + MAX ( DISTINCT - CAST ( 72 AS INTEGER ) ), SUM ( 72 ) - + 24 ) + + CASE 1 WHEN ( + 84 ) THEN + 21 + COUNT ( * ) * NULLIF ( 97, 49 ) END * 86 AS col2
----
136
NULL

query I rowsort
SELECT 70 * - 93 col0
----
-6510

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT 94 * + 29 + - 53 DIV + 93 AS col2
----
2726

skipif mysql # not compatible
query I rowsort label-7561
SELECT 94 * + 29 + - 53 / + 93 AS col2
----
2726

query I rowsort
SELECT ALL 74 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT CASE - COUNT( * ) WHEN 61 THEN + 36 + - 23 * + 94 ELSE + - 51 + + 53 END * 16 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7563
SELECT CASE - COUNT ( * ) WHEN 61 THEN + 36 + - 23 * + 94 ELSE + - 51 + + 53 END * 16 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL 73 + 3 - - + 53 * + + COUNT( * ) - - - 10 - + 62 * + 68 * - - 75 AS col2
----
-316081

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL 73 + 3 - - + 53 * + + COUNT ( * ) - - - 10 - + 62 * + 68 * - - 75 AS col2
----
-316081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7565
SELECT + 12 * + - CAST( + ( + COALESCE ( - ( 18 ), - - 0 * - COUNT( DISTINCT 40 ) * SUM( 15 ) - 2 * + 2 ) ) AS SIGNED ) * - 13 AS col2
----
-2808

skipif mysql # not compatible
query I rowsort label-7565
SELECT + 12 * + - CAST ( + ( + COALESCE ( - ( 18 ), - - 0 * - COUNT ( DISTINCT 40 ) * SUM ( 15 ) - 2 * + 2 ) ) AS INTEGER ) * - 13 AS col2
----
-2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7566
SELECT MAX( DISTINCT 9 ) * 47 + + - CAST( 36 AS SIGNED ) * - 14 AS col0, - COUNT( * ) AS col2
----
927
-1

skipif mysql # not compatible
query II rowsort label-7566
SELECT MAX ( DISTINCT 9 ) * 47 + + - CAST ( 36 AS INTEGER ) * - 14 AS col0, - COUNT ( * ) AS col2
----
927
-1

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

query I rowsort
SELECT ALL - 89 + - 23
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT ALL + 20 + - CAST( 33 AS SIGNED ) * + 30 + + + 59 * + - ( 88 )
----
-6162

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL + 20 + - CAST ( 33 AS INTEGER ) * + 30 + + + 59 * + - ( 88 )
----
-6162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7570
SELECT - 62 * - 85 + + CAST( - MIN( + - 5 ) AS SIGNED ) + 63 DIV - - COALESCE ( + - 71, + COUNT( * ) * + 1 - 18, + 22 ) - 6
----
5269

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 62 * - 85 + + CAST ( - MIN ( + - 5 ) AS INTEGER ) + 63 / - - COALESCE ( + - 71, + COUNT ( * ) * + 1 - 18, + 22 ) - 6
----
5269

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT + COUNT( * ), 22 + + 34 AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-7571
SELECT + COUNT ( * ), 22 + + 34 AS col0
----
1
56

query I rowsort
SELECT ALL - - 77 + - 9
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT ALL + - COUNT( * ) * 85 + - - CASE + - CAST( NULL AS SIGNED ) WHEN + 16 + NULLIF ( 48, + + ( - 19 ) + 29 ) + - 47 THEN 77 + + 74 ELSE NULL END + 23 / 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + - COUNT ( * ) * 85 + - - CASE + - CAST ( NULL AS INTEGER ) WHEN + 16 + NULLIF ( 48, + + ( - 19 ) + 29 ) + - 47 THEN 77 + + 74 ELSE NULL END + 23 / 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7574
SELECT - 97 AS col0, + SUM( - 73 )
----
-97
-73

skipif mysql # not compatible
query II rowsort label-7574
SELECT - 97 AS col0, + SUM ( - 73 )
----
-97
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - COUNT( * ) - 13 * + COUNT( * ) + 11 + + ( - 77 ) * - ( + 21 )
----
1614

skipif mysql # not compatible
query I rowsort label-7575
SELECT - COUNT ( * ) - 13 * + COUNT ( * ) + 11 + + ( - 77 ) * - ( + 21 )
----
1614

query I rowsort
SELECT ALL 69 col0
----
69

query I rowsort
SELECT + 55 - - 85
----
140

query I rowsort
SELECT DISTINCT - + 72 * + 25 AS col1
----
-1800

query I rowsort
SELECT ALL + 13 - + - 81
----
94

query I rowsort
SELECT 80 * - + 41 AS col1
----
-3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7581
SELECT 65 - 49 AS col0, + COALESCE ( + 24, - 1 * + 1 + - 36 - 90 - - + 39 * - 48, - ( - 84 ), MIN( ALL 89 ) * - 8 ) DIV 54 - + 87 DIV 55
----
16
-1

skipif mysql # not compatible
query II rowsort label-7581
SELECT 65 - 49 AS col0, + COALESCE ( + 24, - 1 * + 1 + - 36 - 90 - - + 39 * - 48, - ( - 84 ), MIN ( ALL 89 ) * - 8 ) / 54 - + 87 / 55
----
16
-1

query I rowsort
SELECT 35 * + 64 AS col1
----
2240

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT 48 + ( NULLIF ( + + 0, COUNT( * ) * + ( - - 65 ) - - 53 * + COUNT( * ) ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7584
SELECT 48 + ( NULLIF ( + + 0, COUNT ( * ) * + ( - - 65 ) - - 53 * + COUNT ( * ) ) ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT ALL - 61 * - NULLIF ( - - COUNT( * ), SUM( - 1 ) ) * + - 21 * 8 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL - 61 * - NULLIF ( - - COUNT ( * ), SUM ( - 1 ) ) * + - 21 * 8 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT 74 + + + COUNT( * ) - - COALESCE ( CASE - 14 WHEN + + 36 THEN - - 73 + - + COUNT( * ) * - + NULLIF ( 91, 41 + + 23 ) END, + 38 + + 13, - 69 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-7586
SELECT 74 + + + COUNT ( * ) - - COALESCE ( CASE - 14 WHEN + + 36 THEN - - 73 + - + COUNT ( * ) * - + NULLIF ( 91, 41 + + 23 ) END, + 38 + + 13, - 69 ) AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - 71 * - SUM( ALL 52 ) AS col1
----
3692

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - 71 * - SUM ( ALL 52 ) AS col1
----
3692

onlyif mysql # DIV for integer division: 
query II rowsort label-7588
SELECT 80 DIV + 36, - 19 AS col0
----
2
-19

skipif mysql # not compatible
query II rowsort label-7588
SELECT 80 / + 36, - 19 AS col0
----
2
-19

query I rowsort
SELECT ALL - 62 * 69 col0
----
-4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT CASE COUNT( * ) WHEN - COUNT( * ) + + - 29 THEN NULL WHEN + COALESCE ( + - 68, 7 * + 76 + + 34 ) THEN 51 / CAST( NULL AS SIGNED ) ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT CASE COUNT ( * ) WHEN - COUNT ( * ) + + - 29 THEN NULL WHEN + COALESCE ( + - 68, 7 * + 76 + + 34 ) THEN 51 / CAST ( NULL AS INTEGER ) ELSE NULL END * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 98 * 72 AS col1
----
-7056

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT CASE - 41 WHEN - - 32 THEN NULL ELSE - + NULLIF ( - 7, - - SUM( DISTINCT + - 52 ) + + 71 ) END * 88 + + 95 col1
----
711

skipif mysql # not compatible
query I rowsort label-7592
SELECT CASE - 41 WHEN - - 32 THEN NULL ELSE - + NULLIF ( - 7, - - SUM ( DISTINCT + - 52 ) + + 71 ) END * 88 + + 95 col1
----
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7593
SELECT + ( + 36 ) / - + 83 * - + CASE NULLIF ( - 37, 99 + + + CAST( NULL AS DECIMAL ) + + + 16 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + MAX( CASE WHEN 99 IN ( 36 + 25 ) THEN 94 ELSE - 68 + 43 END ) * + CAST( 33 * SUM( + 57 ) AS SIGNED ) THEN 37 WHEN + 31 + + 44 THEN NULL ELSE NULL END + - 4 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT + ( + 36 ) / - + 83 * - + CASE NULLIF ( - 37, 99 + + + CAST ( NULL AS REAL ) + + + 16 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + MAX ( CASE WHEN 99 IN ( 36 + 25 ) THEN 94 ELSE - 68 + 43 END ) * + CAST ( 33 * SUM ( + 57 ) AS INTEGER ) THEN 37 WHEN + 31 + + 44 THEN NULL ELSE NULL END + - 4 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7594
SELECT DISTINCT + 26 + - + COUNT( * ) DIV 78 * COUNT( - 14 ) * + 92 + COALESCE ( - 70, 48, - ( - 54 ) ) + COALESCE ( 29, + 50 + 70 ) * 93 * - 15 + 1
----
-40498

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + 26 + - + COUNT ( * ) / 78 * COUNT ( - 14 ) * + 92 + COALESCE ( - 70, 48, - ( - 54 ) ) + COALESCE ( 29, + 50 + 70 ) * 93 * - 15 + 1
----
-40498

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL + + 38 + - 64 + ( 4 ) * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + + 38 + - 64 + ( 4 ) * - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT 10 * + - CAST( - - 77 AS SIGNED ) AS col1
----
-770

skipif mysql # not compatible
query I rowsort label-7597
SELECT 10 * + - CAST ( - - 77 AS INTEGER ) AS col1
----
-770

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT 41 + - 98 + + COUNT( ALL - 0 ) * + 72 * 37 * + SUM( ALL + + 12 )
----
31911

skipif mysql # not compatible
query I rowsort label-7599
SELECT 41 + - 98 + + COUNT ( ALL - 0 ) * + 72 * 37 * + SUM ( ALL + + 12 )
----
31911

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT - NULLIF ( - COUNT( * ), - 77 ) - - 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7600
SELECT - NULLIF ( - COUNT ( * ), - 77 ) - - 65 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT 16 * COALESCE ( - + 67, + 70, - + COUNT( * ) - + - SUM( ALL - 59 ) ) AS col1
----
-1072

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT 16 * COALESCE ( - + 67, + 70, - + COUNT ( * ) - + - SUM ( ALL - 59 ) ) AS col1
----
-1072

query I rowsort
SELECT ALL - 57 + - 84
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL COUNT( * ) * + + 20 - 66
----
-46

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL COUNT ( * ) * + + 20 - 66
----
-46

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

query I rowsort
SELECT + 41 * - - 48 + + - 46 AS col1
----
1922

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT DISTINCT 91 * - - CASE + - ( + 19 ) WHEN 81 THEN 97 + + - 94 + 7 - - CAST( NULL AS SIGNED ) * - 42 END * ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT 91 * - - CASE + - ( + 19 ) WHEN 81 THEN 97 + + - 94 + 7 - - CAST ( NULL AS INTEGER ) * - 42 END * ( + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT CAST( 60 AS SIGNED ) + - + 36 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7608
SELECT CAST ( 60 AS INTEGER ) + - + 36 AS col0
----
24

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

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

query I rowsort
SELECT 90 * - 92
----
-8280

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT - 62 * 60 + + 25 + - ( - SUM( 28 ) ) + - 9, 54 AS col2
----
-3676
54

skipif mysql # not compatible
query II rowsort label-7611
SELECT - 62 * 60 + + 25 + - ( - SUM ( 28 ) ) + - 9, 54 AS col2
----
-3676
54

query I rowsort
SELECT 79 + - 44 * 78
----
-3353

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT 25 + 23 / + + CASE + - 30 WHEN NULLIF ( 35, + - 27 ) + + MIN( DISTINCT + 3 ) / 66 THEN - 85 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT 25 + 23 / + + CASE + - 30 WHEN NULLIF ( 35, + - 27 ) + + MIN ( DISTINCT + 3 ) / 66 THEN - 85 END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT ALL 47 * + CAST( NULL AS SIGNED ) * - NULLIF ( - 79, 10 * ( 48 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL 47 * + CAST ( NULL AS INTEGER ) * - NULLIF ( - 79, 10 * ( 48 ) ) AS col1
----
NULL

query I rowsort
SELECT 81 * - + 24 * 41
----
-79704

query I rowsort
SELECT DISTINCT - 93 * - 63
----
5859

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - MIN( + 29 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-7617
SELECT - MIN ( + 29 ) col2
----
-29

query I rowsort
SELECT ALL - 75 * + - 28 col0
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT MAX( ALL + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT MAX ( ALL + 5 )
----
5

query II rowsort
SELECT - 23 + + NULLIF ( 28, 97 / + - ( - - 46 ) + - + ( + + 18 ) ) AS col0, 25 AS col1
----
5
25

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

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL MIN ( ALL - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT ALL 5 + - MIN( DISTINCT - 56 ) AS col1, + CASE ( 77 ) WHEN + + 82 THEN - 5 WHEN - 42 * 25 + 35 + + 30 * 32 THEN NULL END col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7622
SELECT ALL 5 + - MIN ( DISTINCT - 56 ) AS col1, + CASE ( 77 ) WHEN + + 82 THEN - 5 WHEN - 42 * 25 + 35 + + 30 * 32 THEN NULL END col2
----
61
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT ALL 64 + + - 94 DIV - 45 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL 64 + + - 94 / - 45 AS col2
----
66

query I rowsort
SELECT + 69 - + 34 AS col1
----
35

query I rowsort
SELECT + 87 * 38
----
3306

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

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

query I rowsort
SELECT - 69 + - 89
----
-158

query I rowsort
SELECT - 28 * - 91
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7629
SELECT ALL + 40 DIV MAX( + CAST( - - 40 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + 40 / MAX ( + CAST ( - - 40 AS INTEGER ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7630
SELECT DISTINCT COUNT( * ), - NULLIF ( 27, CASE WHEN 94 IS NOT NULL THEN NULL WHEN NOT 46 + - - CAST( + + COUNT( * ) AS SIGNED ) + - 37 IN ( 9 ) THEN NULL ELSE + 18 * + 17 + - 3 END ) - - 26 * 5 AS col0
----
1
103

skipif mysql # not compatible
query II rowsort label-7630
SELECT DISTINCT COUNT ( * ), - NULLIF ( 27, CASE WHEN 94 IS NOT NULL THEN NULL WHEN NOT 46 + - - CAST ( + + COUNT ( * ) AS INTEGER ) + - 37 IN ( 9 ) THEN NULL ELSE + 18 * + 17 + - 3 END ) - - 26 * 5 AS col0
----
1
103

query I rowsort
SELECT ALL + 31 + + 69 * + + 1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - ( - + COUNT( * ) ) * + 16 * - CASE 63 WHEN - - MIN( DISTINCT - 32 ) + + 28 + - 83 + + + MAX( ALL 99 ) * + 25 * + 19 THEN - ( 56 ) * 64 WHEN + 99 THEN NULL ELSE NULL END + 28 / 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - ( - + COUNT ( * ) ) * + 16 * - CASE 63 WHEN - - MIN ( DISTINCT - 32 ) + + 28 + - 83 + + + MAX ( ALL 99 ) * + 25 * + 19 THEN - ( 56 ) * 64 WHEN + 99 THEN NULL ELSE NULL END + 28 / 88
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + COUNT ( * ) / + 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT - 9 DIV - - 26
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 9 / - - 26
----
0

query I rowsort
SELECT 13 * - - 99 - - + COALESCE ( + 5, + 26 - 88, - - 36 )
----
1292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * 38 + + 97 + COUNT( + 31 ) + + 50 / CASE - 96 WHEN - - 10 THEN 88 WHEN + 53 * 76 THEN - 9 * - 33 + 2 ELSE + 56 + 26 END * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * 38 + + 97 + COUNT ( + 31 ) + + 50 / CASE - 96 WHEN - - 10 THEN 88 WHEN + 53 * 76 THEN - 9 * - 33 + 2 ELSE + 56 + 26 END * 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7637
SELECT ALL + + ( + COUNT( ALL - NULLIF ( - - ( CAST( NULL AS SIGNED ) ), + + 9 ) ) ) * - + 9 + MAX( + + 16 ) + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + + ( + COUNT ( ALL - NULLIF ( - - ( CAST ( NULL AS INTEGER ) ), + + 9 ) ) ) * - + 9 + MAX ( + + 16 ) + + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT - COUNT( * ) * + ( - + 25 ) DIV 94 * 73 + - - 36
----
36

skipif mysql # not compatible
query I rowsort label-7638
SELECT - COUNT ( * ) * + ( - + 25 ) / 94 * 73 + - - 36
----
36

query II rowsort
SELECT + + 10 AS col2, - 37 * + 11
----
10
-407

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

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

query II rowsort
SELECT + 48 - - + 77 + 46 col0, - 19 AS col2
----
171
-19

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

query II rowsort
SELECT DISTINCT + 74, 78 AS col1
----
74
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT DISTINCT + NULLIF ( + 28, - + CAST( NULL AS SIGNED ) ) * + 38 - - - 30
----
1034

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + NULLIF ( + 28, - + CAST ( NULL AS INTEGER ) ) * + 38 - - - 30
----
1034

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL COUNT( * ) * - + 9 - + 98 + - + COUNT( * ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL COUNT ( * ) * - + 9 - + 98 + - + COUNT ( * ) AS col2
----
-108

query I rowsort
SELECT ALL 67 * - 3
----
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT + ( + - 28 ) * 77 + 67 + - + 62 - - 26 + CASE - ( + MIN( + 62 ) ) WHEN COUNT( * ) / + CAST( NULL AS SIGNED ) THEN NULL ELSE 1 * - 37 END
----
-2162

skipif mysql # not compatible
query I rowsort label-7648
SELECT + ( + - 28 ) * 77 + 67 + - + 62 - - 26 + CASE - ( + MIN ( + 62 ) ) WHEN COUNT ( * ) / + CAST ( NULL AS INTEGER ) THEN NULL ELSE 1 * - 37 END
----
-2162

query II rowsort
SELECT - + 72 * 8 - 97 AS col1, - 80 AS col0
----
-673
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT + - 65 / CASE + 12 WHEN - CAST( NULL AS SIGNED ) * COUNT( + 46 ) THEN 39 + - 31 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT + - 65 / CASE + 12 WHEN - CAST ( NULL AS INTEGER ) * COUNT ( + 46 ) THEN 39 + - 31 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7651
SELECT ALL 34 * - 88 * - COUNT( * ), ( - - CAST( NULL AS SIGNED ) ) * 11 - + 4 - - 76 * - ( + 32 ) * 97 - COUNT( * ) * - 53 AS col1
----
2992
NULL

skipif mysql # not compatible
query II rowsort label-7651
SELECT ALL 34 * - 88 * - COUNT ( * ), ( - - CAST ( NULL AS INTEGER ) ) * 11 - + 4 - - 76 * - ( + 32 ) * 97 - COUNT ( * ) * - 53 AS col1
----
2992
NULL

query I rowsort
SELECT - - 21 + - ( - CASE + + 52 WHEN - 35 * + 77 + 68 THEN NULL ELSE + ( 86 ) * + 54 + - 93 END ) AS col2
----
4572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7653
SELECT - - 5 DIV COALESCE ( + - COUNT( * ), + 0 ) * 19 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7653
SELECT - - 5 / COALESCE ( + - COUNT ( * ), + 0 ) * 19 AS col0
----
-95

query II rowsort
SELECT ALL ( 9 ) AS col2, 90 + + + 19 AS col2
----
9
109

query I rowsort
SELECT ALL 12 * - 19 AS col2
----
-228

query I rowsort
SELECT DISTINCT 70 * + 21 AS col2
----
1470

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

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

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

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

query II rowsort
SELECT - ( + 85 ), 79 AS col1
----
-85
79

query I rowsort
SELECT DISTINCT 5 + ( 62 ) * 94 col0
----
5833

query I rowsort
SELECT DISTINCT 11 + - ( + 14 ) * + - 20 + 5
----
296

query II rowsort
SELECT 87 col2, 62 + - 73 + - 65 AS col0
----
87
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT + AVG ( ALL + ( + + CAST( NULL AS SIGNED ) ) ) - + 22 * - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT + AVG ( ALL + ( + + CAST ( NULL AS INTEGER ) ) ) - + 22 * - 59 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7664
SELECT ALL 42, MIN( DISTINCT + 1 ) + + CAST( + 53 AS SIGNED ) + - SUM( - 66 ) + - - 59 * CAST( - - ( - - 25 ) AS SIGNED ) * 61 AS col0
----
42
90095

skipif mysql # not compatible
query II rowsort label-7664
SELECT ALL 42, MIN ( DISTINCT + 1 ) + + CAST ( + 53 AS INTEGER ) + - SUM ( - 66 ) + - - 59 * CAST ( - - ( - - 25 ) AS INTEGER ) * 61 AS col0
----
42
90095

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT - COALESCE ( ( 96 ), + 36 ), + MIN( + + 29 ) AS col1
----
-96
29

skipif mysql # not compatible
query II rowsort label-7665
SELECT - COALESCE ( ( 96 ), + 36 ), + MIN ( + + 29 ) AS col1
----
-96
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT - 28 - + + SUM( - + 63 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-7666
SELECT - 28 - + + SUM ( - + 63 ) col1
----
35

query I rowsort
SELECT DISTINCT 93 * - 94 * - 59 * - 25
----
-12894450

query I rowsort
SELECT DISTINCT CASE 57 WHEN - + AVG ( - - 61 ) / + - AVG ( + - ( - 91 ) ) + + - 39 * - - 96 * + 28 THEN + 26 END + 32 * - 43
----
NULL

query I rowsort
SELECT + 92 + 43 + - + 91 AS col2
----
44

query I rowsort
SELECT ALL 50 - + 55 AS col1
----
-5

query I rowsort
SELECT - ( 56 ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7672
SELECT + 62 * + NULLIF ( + 35, 76 + + + ( + NULLIF ( - + CASE - + 61 WHEN 45 + 22 THEN + 21 WHEN + 40 - 54 THEN NULL WHEN ( COUNT( * ) ) * 13 THEN NULL END, - CAST( NULL AS SIGNED ) ) ) - 51 * 51 ) + + 29
----
2199

skipif mysql # not compatible
query I rowsort label-7672
SELECT + 62 * + NULLIF ( + 35, 76 + + + ( + NULLIF ( - + CASE - + 61 WHEN 45 + 22 THEN + 21 WHEN + 40 - 54 THEN NULL WHEN ( COUNT ( * ) ) * 13 THEN NULL END, - CAST ( NULL AS INTEGER ) ) ) - 51 * 51 ) + + 29
----
2199

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

skipif mysql # not compatible
query I rowsort label-7673
SELECT + CAST ( NULL AS INTEGER ) / + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT - 75 DIV - MAX( ALL - 88 ) + + 50
----
50

skipif mysql # not compatible
query I rowsort label-7674
SELECT - 75 / - MAX ( ALL - 88 ) + + 50
----
50

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

skipif mysql # not compatible
query I rowsort label-7675
SELECT 63 / - 69 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT DISTINCT + - 33 DIV 93 * 76 + 61
----
61

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + - 33 / 93 * 76 + 61
----
61

query I rowsort
SELECT - 81 + + - 16 AS col1
----
-97

query II rowsort
SELECT DISTINCT + - 50, 73 AS col0
----
-50
73

query I rowsort
SELECT - 94 + + - 37 * 82
----
-3128

query II rowsort
SELECT ALL + 37 col2, + ( 56 )
----
37
56

query I rowsort
SELECT ALL + + 91 * + + 47 * 84 + + - 91 AS col1
----
359177

query I rowsort
SELECT + + 0 + - - 60
----
60

query I rowsort
SELECT DISTINCT + - 66 * + 13 AS col2
----
-858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT - + 11 * - + 47 + - 73 + CAST( + 79 AS SIGNED ) AS col0
----
523

skipif mysql # not compatible
query I rowsort label-7684
SELECT - + 11 * - + 47 + - 73 + CAST ( + 79 AS INTEGER ) AS col0
----
523

query I rowsort
SELECT - - 20 + 56 * 94 AS col2
----
5284

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + 14 * + CASE WHEN 94 BETWEEN NULL AND NULL THEN 33 ELSE 47 * - 56 * + 41 + - COUNT( DISTINCT + 66 ) + - 54 END * 69 AS col1
----
-104296122

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + 14 * + CASE WHEN 94 BETWEEN NULL AND NULL THEN 33 ELSE 47 * - 56 * + 41 + - COUNT ( DISTINCT + 66 ) + - 54 END * 69 AS col1
----
-104296122

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

query II rowsort
SELECT ALL + 55 AS col0, - 88
----
55
-88

query I rowsort
SELECT - 24 + - 29
----
-53

query II rowsort
SELECT ALL 76 + - 86 AS col2, 77 + + - 63 - 1 AS col1
----
-10
13

query I rowsort
SELECT ALL + 75 + 87 AS col0
----
162

query I rowsort
SELECT ALL - 12 + - 65 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT + 57 + - + NULLIF ( - - 7, - CASE 50 WHEN ( ( + 83 ) ) + - + ( - - 5 ) THEN + NULLIF ( - - COUNT( * ), 83 ) WHEN + 90 THEN 76 + 71 END * 45 ) + 93 * + 47 AS col0
----
4421

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT + 57 + - + NULLIF ( - - 7, - CASE 50 WHEN ( ( + 83 ) ) + - + ( - - 5 ) THEN + NULLIF ( - - COUNT ( * ), 83 ) WHEN + 90 THEN 76 + 71 END * 45 ) + 93 * + 47 AS col0
----
4421

query II rowsort
SELECT ALL + 39 * - + 94, 50 AS col2
----
-3666
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT MAX( + - CASE - 42 WHEN - 95 / 98 THEN - 88 * - - 5 * 36 * 20 WHEN - CASE - - 24 WHEN + 12 THEN + 79 END / - 18 THEN 88 + 85 END ) + COUNT( * ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT MAX ( + - CASE - 42 WHEN - 95 / 98 THEN - 88 * - - 5 * 36 * 20 WHEN - CASE - - 24 WHEN + 12 THEN + 79 END / - 18 THEN 88 + 85 END ) + COUNT ( * ) * 59
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 42, + - 74 ) + - 57 * 64 + + 66 AS col0
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT CASE - SUM( ALL + - 7 ) WHEN 33 * + 99 + + 65 THEN NULL ELSE - - ( - + 18 ) END * + 87 * 62 + + 64 AS col0
----
-97028

skipif mysql # not compatible
query I rowsort label-7697
SELECT CASE - SUM ( ALL + - 7 ) WHEN 33 * + 99 + + 65 THEN NULL ELSE - - ( - + 18 ) END * + 87 * 62 + + 64 AS col0
----
-97028

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT DISTINCT 45 + + - 68 DIV COALESCE ( + + 22, + 58 ) + + 72
----
114

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT 45 + + - 68 / COALESCE ( + + 22, + 58 ) + + 72
----
114

query I rowsort
SELECT DISTINCT - 22 * + 41
----
-902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7700
SELECT DISTINCT 63 DIV - - 20 * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT 63 / - - 20 * + COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT ALL 74 - NULLIF ( - 57, CAST( NULL AS SIGNED ) * + 16 + + 96 * + 96 ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL 74 - NULLIF ( - 57, CAST ( NULL AS INTEGER ) * + 16 + + 96 * + 96 ) AS col0
----
131

query II rowsort
SELECT 14 * - 56 AS col1, - 33 AS col2
----
-784
-33

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

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL MIN ( DISTINCT + 39 ) - - ( + 70 ) AS col0
----
109

query II rowsort
SELECT 89 - + + 58 AS col2, - 47 + 27
----
31
-20

query I rowsort
SELECT 98 - - + 11 AS col1
----
109

query II rowsort
SELECT 37 + 16 AS col0, + 4 AS col2
----
53
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT DISTINCT + COUNT( + 72 ) AS col2, + COUNT( * ) * + + 35
----
1
35

skipif mysql # not compatible
query II rowsort label-7707
SELECT DISTINCT + COUNT ( + 72 ) AS col2, + COUNT ( * ) * + + 35
----
1
35

query I rowsort
SELECT ALL 95 * - 76 * - 26
----
187720

query I rowsort
SELECT - 83 - - + CASE 49 WHEN - 62 * - 58 THEN - 2 END + 66 - - 62 + - 7 - - 94 * 97
----
NULL

query I rowsort
SELECT ALL + 9 * - 96
----
-864

query I rowsort
SELECT ALL - - 66 col0
----
66

query II rowsort
SELECT ( + 47 ), 86 AS col2
----
47
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT - 27 + SUM( + 40 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT - 27 + SUM ( + 40 ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT 34 DIV - - 48 * - + 34 * COUNT( * ) + + COUNT( * ) + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-7715
SELECT 34 / - - 48 * - + 34 * COUNT ( * ) + + COUNT ( * ) + - 91
----
-90

query I rowsort
SELECT ALL - 94 + - 17 AS col0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7717
SELECT DISTINCT - 77 DIV + MIN( DISTINCT + 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - 77 / + MIN ( DISTINCT + 80 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 73 + - NULLIF ( + + 55, + AVG ( ALL - 15 ) ) AS col1
----
18

query II rowsort
SELECT ALL - 44 + - + 38 AS col2, - 84
----
-82
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT + 22 / - CAST( NULL AS SIGNED ) + NULLIF ( 14, 52 * + 91 * 93 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT + 22 / - CAST ( NULL AS INTEGER ) + NULLIF ( 14, 52 * + 91 * 93 ) * + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT + COUNT( DISTINCT - - 37 ) * + + SUM( - 95 ) + + ( + COUNT( ALL + 72 ) ) + - + 41 * COUNT( * )
----
-135

skipif mysql # not compatible
query I rowsort label-7722
SELECT + COUNT ( DISTINCT - - 37 ) * + + SUM ( - 95 ) + + ( + COUNT ( ALL + 72 ) ) + - + 41 * COUNT ( * )
----
-135

query I rowsort
SELECT DISTINCT + 71 * - 36
----
-2556

query I rowsort
SELECT 64 + + 88 - 19 * 30 AS col0
----
-418

query I rowsort
SELECT ALL + 53 * + + 48 AS col1
----
2544

query I rowsort
SELECT 73 + 48 - + - 59 AS col0
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT COUNT( * ) * + ( + 61 ), 67 + + SUM( DISTINCT - 29 ) + - 99 AS col0
----
61
-61

skipif mysql # not compatible
query II rowsort label-7727
SELECT COUNT ( * ) * + ( + 61 ), 67 + + SUM ( DISTINCT - 29 ) + - 99 AS col0
----
61
-61

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

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL COUNT ( * ) AS col2, - 44
----
1
-44

query I rowsort
SELECT DISTINCT - 99 - - 40 col1
----
-59

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

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

query I rowsort
SELECT 8 + + 92
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT 24 * - + SUM( ALL 68 ) col1, 89 + 97 * + 4 * + 72
----
-1632
28025

skipif mysql # not compatible
query II rowsort label-7732
SELECT 24 * - + SUM ( ALL 68 ) col1, 89 + 97 * + 4 * + 72
----
-1632
28025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT ALL - COUNT( * ) DIV + SUM( DISTINCT + + 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - COUNT ( * ) / + SUM ( DISTINCT + + 62 ) AS col0
----
0

query I rowsort
SELECT 98 + + + 13
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT COUNT( * ) - MIN( - 53 )
----
54

skipif mysql # not compatible
query I rowsort label-7735
SELECT COUNT ( * ) - MIN ( - 53 )
----
54

query I rowsort
SELECT DISTINCT - 91 * - 78 AS col1
----
7098

query I rowsort
SELECT 43 - 86
----
-43

query I rowsort
SELECT 14 * 18 AS col2
----
252

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

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

query I rowsort
SELECT DISTINCT + 26 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT - - 49 * 13 - + COUNT( * ) AS col1
----
636

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT - - 49 * 13 - + COUNT ( * ) AS col1
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT 31 * - + 31 col0
----
-961

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT ALL 73 DIV - - 48
----
1

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL 73 / - - 48
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7746
SELECT - 12 * - 81 + + - CASE + 28 WHEN - 49 DIV - - 6 THEN - 78 DIV 11 ELSE + 56 END + - 62 * CAST( + 65 AS SIGNED ) AS col1
----
-3114

skipif mysql # not compatible
query I rowsort label-7746
SELECT - 12 * - 81 + + - CASE + 28 WHEN - 49 / - - 6 THEN - 78 / 11 ELSE + 56 END + - 62 * CAST ( + 65 AS INTEGER ) AS col1
----
-3114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 2 ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 2 ) * 92
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( + + 59, - 13 + + + ( 88 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + - 93 + + 77 * - 80 + + + 51 * + ( - COUNT( * ) )
----
-6304

skipif mysql # not compatible
query I rowsort label-7749
SELECT + - 93 + + 77 * - 80 + + + 51 * + ( - COUNT ( * ) )
----
-6304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7750
SELECT + 59 * - 35 + - 65 col2, MIN( ALL - - 74 ) DIV + - 99 + + 82 + + 16 col1
----
-2130
98

skipif mysql # not compatible
query II rowsort label-7750
SELECT + 59 * - 35 + - 65 col2, MIN ( ALL - - 74 ) / + - 99 + + 82 + + 16 col1
----
-2130
98

query I rowsort
SELECT DISTINCT 82 * - 47 * + - 79
----
304466

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7753
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 87 - 22 AS col1, 46 - 58 + 71
----
NULL
59

skipif mysql # not compatible
query II rowsort label-7753
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 87 - 22 AS col1, 46 - 58 + 71
----
NULL
59

query I rowsort
SELECT + COALESCE ( - 24, 9 )
----
-24

query I rowsort
SELECT 48 * - 66 + + 2
----
-3166

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL 58 * - ( + ( - COUNT( * ) ) ) + - 34
----
24

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL 58 * - ( + ( - COUNT ( * ) ) ) + - 34
----
24

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT DISTINCT + CASE 75 WHEN + CAST( - - 20 AS SIGNED ) THEN NULL WHEN 35 THEN + - CAST( + - 50 AS SIGNED ) + - 71 * - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + CASE 75 WHEN + CAST ( - - 20 AS INTEGER ) THEN NULL WHEN 35 THEN + - CAST ( + - 50 AS INTEGER ) + - 71 * - 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT + MIN( DISTINCT 20 ) + + - NULLIF ( + COUNT( + - 1 ), - 79 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7760
SELECT + MIN ( DISTINCT 20 ) + + - NULLIF ( + COUNT ( + - 1 ), - 79 ) AS col1
----
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT - ( + 14 ) * MIN( + 85 ) + + + 21 AS col1
----
-1169

skipif mysql # not compatible
query I rowsort label-7762
SELECT - ( + 14 ) * MIN ( + 85 ) + + + 21 AS col1
----
-1169

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT MIN( DISTINCT 86 )
----
86

skipif mysql # not compatible
query I rowsort label-7763
SELECT MIN ( DISTINCT 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL + MIN( - - 56 ) * - ( 6 ) * + + 13
----
-4368

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + MIN ( - - 56 ) * - ( 6 ) * + + 13
----
-4368

query I rowsort
SELECT ALL - 22 * - 83
----
1826

query II rowsort
SELECT - ( 13 ), - 41 AS col1
----
-13
-41

query I rowsort
SELECT - 39 + - 17
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL 91 * - 22 * + 52 * - + COUNT( 22 )
----
104104

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL 91 * - 22 * + 52 * - + COUNT ( 22 )
----
104104

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT - ( - COUNT( * ) ) + + 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7770
SELECT - ( - COUNT ( * ) ) + + 55 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7771
SELECT ALL - 4 * - - 94 AS col2, - NULLIF ( 9, CAST( NULL AS DECIMAL ) - - CASE - - 43 WHEN ( + AVG ( DISTINCT - NULLIF ( + 79, + 15 * + - 42 ) ) ) THEN + + NULLIF ( 35, 15 + 94 * + SUM( 78 * 55 + + 39 ) ) + COUNT( * ) WHEN - 13 + - 99 THEN COUNT( * ) * COUNT( * ) - + ( - 29 ) ELSE NULL END ) + 70 AS col2
----
-376
61

skipif mysql # not compatible
query II rowsort label-7771
SELECT ALL - 4 * - - 94 AS col2, - NULLIF ( 9, CAST ( NULL AS REAL ) - - CASE - - 43 WHEN ( + AVG ( DISTINCT - NULLIF ( + 79, + 15 * + - 42 ) ) ) THEN + + NULLIF ( 35, 15 + 94 * + SUM ( 78 * 55 + + 39 ) ) + COUNT ( * ) WHEN - 13 + - 99 THEN COUNT ( * ) * COUNT ( * ) - + ( - 29 ) ELSE NULL END ) + 70 AS col2
----
-376
61

query I rowsort
SELECT - 74 * + 79 + + + 5
----
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL - SUM( + + 78 ) + - - 90
----
12

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - SUM ( + + 78 ) + - - 90
----
12

query I rowsort
SELECT - 18 - + 76 AS col0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT - - 38 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT - - 38 / - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT + + 32 + - - 32 DIV 40 + + 62 col1
----
94

skipif mysql # not compatible
query I rowsort label-7776
SELECT + + 32 + - - 32 / 40 + + 62 col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL CASE 92 WHEN + + 45 * + 93 THEN + CASE + 79 WHEN 17 THEN + + AVG ( ALL - 0 ) + + + COUNT( - + 97 ) * - 94 END + - SUM( DISTINCT 46 ) / - 92 ELSE 86 + - 94 END AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL CASE 92 WHEN + + 45 * + 93 THEN + CASE + 79 WHEN 17 THEN + + AVG ( ALL - 0 ) + + + COUNT ( - + 97 ) * - 94 END + - SUM ( DISTINCT 46 ) / - 92 ELSE 86 + - 94 END AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT ALL + 57 + + COUNT( * ) + - ( + + 75 ) - - + 98 - + - 90 DIV - 19 - + + 67 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + 57 + + COUNT ( * ) + - ( + + 75 ) - - + 98 - + - 90 / - 19 - + + 67 AS col1
----
10

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

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

query I rowsort
SELECT ALL + 77 + - 94 - 95 + - 8 * - 5 * - 98
----
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT DISTINCT - 69 DIV 60 + + 44 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT - 69 / 60 + + 44 AS col1
----
43

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

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

query I rowsort
SELECT - ( 5 ) * - + 89 AS col1
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL + SUM( - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + SUM ( - 96 ) AS col1
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-7786
SELECT - 43 DIV - 67, 1 * + 24 AS col2
----
0
24

skipif mysql # not compatible
query II rowsort label-7786
SELECT - 43 / - 67, 1 * + 24 AS col2
----
0
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL MAX( + 93 ) * 32 + - 37 - 22
----
2917

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL MAX ( + 93 ) * 32 + - 37 - 22
----
2917

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT ( - + COALESCE ( + 36, + + 39 - 5 ) ) * + 66 + + COUNT( * ) - - - 53
----
-2428

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT ( - + COALESCE ( + 36, + + 39 - 5 ) ) * + 66 + + COUNT ( * ) - - - 53
----
-2428

query I rowsort
SELECT DISTINCT 29 * + 57 AS col1
----
1653

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

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

query I rowsort
SELECT ALL 58 * 79 AS col1
----
4582

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

query I rowsort
SELECT + 87 * 24
----
2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT + 47 * - 67 + - + CAST( NULL AS SIGNED ) - + COALESCE ( + CASE + 58 WHEN 80 * - + 20 * + MAX( DISTINCT - 58 ) THEN NULL WHEN + + 87 THEN - - 90 END, + 17 * + + 66 * ( + 93 ) * 35, 46 ) + - 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT + 47 * - 67 + - + CAST ( NULL AS INTEGER ) - + COALESCE ( + CASE + 58 WHEN 80 * - + 20 * + MAX ( DISTINCT - 58 ) THEN NULL WHEN + + 87 THEN - - 90 END, + 17 * + + 66 * ( + 93 ) * 35, 46 ) + - 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + 63 - COUNT( * ) * + 81 + - + COUNT( DISTINCT + + 5 ) - - 52 * - 48 AS col0
----
-2515

skipif mysql # not compatible
query I rowsort label-7796
SELECT + 63 - COUNT ( * ) * + 81 + - + COUNT ( DISTINCT + + 5 ) - - 52 * - 48 AS col0
----
-2515

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT + 22 * 43 * 57 / CASE + 38 WHEN - 53 + + + 2 + - + COUNT( * ) THEN NULL WHEN ( - 30 ) THEN + COUNT( DISTINCT + + ( - 43 ) ) * + 44 + + 13 ELSE NULL END * COALESCE ( - COUNT( * ), + 77 + + 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT + 22 * 43 * 57 / CASE + 38 WHEN - 53 + + + 2 + - + COUNT ( * ) THEN NULL WHEN ( - 30 ) THEN + COUNT ( DISTINCT + + ( - 43 ) ) * + 44 + + 13 ELSE NULL END * COALESCE ( - COUNT ( * ), + 77 + + 64 ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL + 69, 20 AS col2
----
69
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT + 51 * 93 DIV ( + 17 )
----
279

skipif mysql # not compatible
query I rowsort label-7800
SELECT + 51 * 93 / ( + 17 )
----
279

query I rowsort
SELECT + 10 + - 5 + - 60 * - - 38
----
-2275

query I rowsort
SELECT NULLIF ( + 79, 14 )
----
79

query I rowsort
SELECT + 3 + 64
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT 55 * + 49 + + COALESCE ( - 68, - 75 * - - ( - 56 ) + 64 * + CAST( NULL AS SIGNED ), COUNT( * ) ) + - - 75 + + 80 * + 4 * 9 - 23 * - ( - COUNT( * ) * + 39 + + 21 )
----
5168

skipif mysql # not compatible
query I rowsort label-7804
SELECT 55 * + 49 + + COALESCE ( - 68, - 75 * - - ( - 56 ) + 64 * + CAST ( NULL AS INTEGER ), COUNT ( * ) ) + - - 75 + + 80 * + 4 * 9 - 23 * - ( - COUNT ( * ) * + 39 + + 21 )
----
5168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + - 42 * + MIN( ALL - - 31 ) + 43 * + + CASE + MAX( + 81 ) WHEN + 98 THEN NULL WHEN - ( - - 56 ) THEN ( + 74 ) END - + + 18 - + 40 + 87 * + SUM( ALL 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT + - 42 * + MIN ( ALL - - 31 ) + 43 * + + CASE + MAX ( + 81 ) WHEN + 98 THEN NULL WHEN - ( - - 56 ) THEN ( + 74 ) END - + + 18 - + 40 + 87 * + SUM ( ALL 96 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7807
SELECT + + 83 + - SUM( ALL - 30 ) - + 54 + - + 96 + - + MAX( - - CASE - 64 WHEN - 57 THEN NULL WHEN - + 76 * - 1 THEN NULL ELSE 95 DIV 50 END ) DIV - - 19 + + + 8 * + 23 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-7807
SELECT + + 83 + - SUM ( ALL - 30 ) - + 54 + - + 96 + - + MAX ( - - CASE - 64 WHEN - 57 THEN NULL WHEN - + 76 * - 1 THEN NULL ELSE 95 / 50 END ) / - - 19 + + + 8 * + 23 AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-7808
SELECT ALL + + MIN( DISTINCT + 91 ) * + 18, 81 AS col1
----
1638
81

skipif mysql # not compatible
query II rowsort label-7808
SELECT ALL + + MIN ( DISTINCT + 91 ) * + 18, 81 AS col1
----
1638
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7810
SELECT - 95 DIV - SUM( + + 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 95 / - SUM ( + + 66 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT ALL - ( - 91 ) + - - CAST( 92 AS SIGNED )
----
183

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL - ( - 91 ) + - - CAST ( 92 AS INTEGER )
----
183

query I rowsort
SELECT DISTINCT 17 + - 72
----
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT - 65 + CAST( NULL AS SIGNED ) * + 42 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT DISTINCT 74 AS col0, ( 29 ) * - - 30 - + + COUNT( ALL 87 ) AS col2
----
74
869

skipif mysql # not compatible
query II rowsort label-7815
SELECT DISTINCT 74 AS col0, ( 29 ) * - - 30 - + + COUNT ( ALL 87 ) AS col2
----
74
869

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT MAX( + 94 ) + 94 + - - 28 AS col0
----
216

skipif mysql # not compatible
query I rowsort label-7816
SELECT MAX ( + 94 ) + 94 + - - 28 AS col0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - 32 * + 32 * NULLIF ( + 69, + COUNT( * ) / - 55 + - ( + 61 ) * COUNT( * ) * 45 ) AS col1
----
-70656

skipif mysql # not compatible
query I rowsort label-7817
SELECT - 32 * + 32 * NULLIF ( + 69, + COUNT ( * ) / - 55 + - ( + 61 ) * COUNT ( * ) * 45 ) AS col1
----
-70656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT + COALESCE ( 13, - 64, - + CAST( NULL AS SIGNED ), - ( - 8 ) - - - CAST( + 28 AS SIGNED ) ) * - + NULLIF ( + 51, + 13 )
----
-663

skipif mysql # not compatible
query I rowsort label-7818
SELECT + COALESCE ( 13, - 64, - + CAST ( NULL AS INTEGER ), - ( - 8 ) - - - CAST ( + 28 AS INTEGER ) ) * - + NULLIF ( + 51, + 13 )
----
-663

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

skipif mysql # not compatible
query I rowsort label-7819
SELECT + 68 * - + CAST ( NULL AS INTEGER ) + - 58
----
NULL

query I rowsort
SELECT DISTINCT + 54 - - 30
----
84

query I rowsort
SELECT ALL + + 2 * 20 col0
----
40

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

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

query I rowsort
SELECT DISTINCT + 12 * + 48 * - - 67 AS col1
----
38592

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + 94 * 15 * + COUNT( * ) col2
----
1410

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + 94 * 15 * + COUNT ( * ) col2
----
1410

query I rowsort
SELECT DISTINCT - 40 * - 98 AS col1
----
3920

query I rowsort
SELECT 18 + NULLIF ( - 53, - 29 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL - MIN( + + 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - MIN ( + + 41 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7828
SELECT 22, - 32 * + SUM( 67 ) AS col2
----
22
-2144

skipif mysql # not compatible
query II rowsort label-7828
SELECT 22, - 32 * + SUM ( 67 ) AS col2
----
22
-2144

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT 49 DIV - 93 * 23 + 6
----
6

skipif mysql # not compatible
query I rowsort label-7829
SELECT 49 / - 93 * 23 + 6
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7830
SELECT NULLIF ( 12, - 72 ) DIV + - NULLIF ( - 45, + COUNT( DISTINCT 47 ) ) * COUNT( * ) + - 68 - + 4
----
-72

skipif mysql # not compatible
query I rowsort label-7830
SELECT NULLIF ( 12, - 72 ) / + - NULLIF ( - 45, + COUNT ( DISTINCT 47 ) ) * COUNT ( * ) + - 68 - + 4
----
-72

query I rowsort
SELECT 98 * + 60 AS col0
----
5880

onlyif mysql # DIV for integer division: 
query II rowsort label-7832
SELECT ( - 68 ) + + + 73 DIV - 99 * - 57 * - 71, - 88 + - 33 AS col1
----
-68
-121

skipif mysql # not compatible
query II rowsort label-7832
SELECT ( - 68 ) + + + 73 / - 99 * - 57 * - 71, - 88 + - 33 AS col1
----
-68
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7833
SELECT ALL ( + 10 ) DIV + 32 + + 27 AS col1, COUNT( * ) AS col0
----
27
1

skipif mysql # not compatible
query II rowsort label-7833
SELECT ALL ( + 10 ) / + 32 + + 27 AS col1, COUNT ( * ) AS col0
----
27
1

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

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

query I rowsort
SELECT 23 * - + 75 + - ( - 39 )
----
-1686

query II rowsort
SELECT 46 AS col2, + 81
----
46
81

query I rowsort
SELECT ALL 98 + - 28 AS col1
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT COUNT( * ) * - ( - + COUNT( 35 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7839
SELECT COUNT ( * ) * - ( - + COUNT ( 35 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7840
SELECT 14 - - 88 + - 47 * + 80 * - + COUNT( * ) * + 29 + + ( 56 ) + + + 12 DIV COUNT( 37 )
----
109210

skipif mysql # not compatible
query I rowsort label-7840
SELECT 14 - - 88 + - 47 * + 80 * - + COUNT ( * ) * + 29 + + ( 56 ) + + + 12 / COUNT ( 37 )
----
109210

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT - 13, COUNT( * ) * - 52 * - 80 + + - ( + - 27 ) + MIN( + - 32 ) * + + 91 AS col2
----
-13
1275

skipif mysql # not compatible
query II rowsort label-7841
SELECT - 13, COUNT ( * ) * - 52 * - 80 + + - ( + - 27 ) + MIN ( + - 32 ) * + + 91 AS col2
----
-13
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT CASE + 6 WHEN COUNT( * ) THEN - MAX( + 40 ) * + COUNT( * ) WHEN + 85 THEN - 41 END * MIN( ALL - + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT CASE + 6 WHEN COUNT ( * ) THEN - MAX ( + 40 ) * + COUNT ( * ) WHEN + 85 THEN - 41 END * MIN ( ALL - + 68 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - NULLIF ( - 42, 34 + + - 99 ) AS col2
----
42

query I rowsort
SELECT 75 + 71 AS col1
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT - 52 AS col0, MIN( ALL - NULLIF ( - - 90, 30 ) )
----
-52
-90

skipif mysql # not compatible
query II rowsort label-7846
SELECT - 52 AS col0, MIN ( ALL - NULLIF ( - - 90, 30 ) )
----
-52
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + 83 + - MAX( - - ( + + 87 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7847
SELECT + 83 + - MAX ( - - ( + + 87 ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7849
SELECT + COUNT( * ), 60 AS col0
----
1
60

skipif mysql # not compatible
query II rowsort label-7849
SELECT + COUNT ( * ), 60 AS col0
----
1
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT ALL - 50 DIV 28 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - 50 / 28 col1
----
-1

query II rowsort
SELECT 65 AS col2, - ( 33 ) AS col2
----
65
-33

query I rowsort
SELECT - + ( - - 39 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - 16 - + NULLIF ( + 80, - 48 * 79 * SUM( DISTINCT - + 89 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - 16 - + NULLIF ( + 80, - 48 * 79 * SUM ( DISTINCT - + 89 ) )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT + 16 - + + ( + CASE + 10 WHEN - - CAST( - NULLIF ( + 59, - + 23 + + 35 ) AS SIGNED ) - - - 81 + - 61 THEN - 77 WHEN + - 51 THEN + 79 WHEN 17 + + - 11 THEN NULL ELSE 52 END ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7854
SELECT + 16 - + + ( + CASE + 10 WHEN - - CAST ( - NULLIF ( + 59, - + 23 + + 35 ) AS INTEGER ) - - - 81 + - 61 THEN - 77 WHEN + - 51 THEN + 79 WHEN 17 + + - 11 THEN NULL ELSE 52 END ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT 54 + - 8 DIV - + 5
----
55

skipif mysql # not compatible
query I rowsort label-7855
SELECT 54 + - 8 / - + 5
----
55

query I rowsort
SELECT ALL 69 * + 75
----
5175

query I rowsort
SELECT DISTINCT + 29 col0
----
29

query I rowsort
SELECT ALL - 56 * - 82
----
4592

query I rowsort
SELECT DISTINCT - CASE WHEN NULL > - 8 THEN - + 11 WHEN NOT ( + ( - 75 ) + + + 57 + 55 * + 3 ) < NULL THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 23 - - 91
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL 35 * + - MIN( + + ( 45 ) )
----
-1575

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL 35 * + - MIN ( + + ( 45 ) )
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ( - 33 ) * 62 + COUNT( * ) - 40
----
-2085

skipif mysql # not compatible
query I rowsort label-7862
SELECT ( - 33 ) * 62 + COUNT ( * ) - 40
----
-2085

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT 18 * 2, SUM( - 41 ) * + + 71 - + + 81 + + + 11 col1
----
36
-2981

skipif mysql # not compatible
query II rowsort label-7863
SELECT 18 * 2, SUM ( - 41 ) * + + 71 - + + 81 + + + 11 col1
----
36
-2981

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT + COUNT( DISTINCT + 27 ) AS col0, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-7864
SELECT + COUNT ( DISTINCT + 27 ) AS col0, - COUNT ( * )
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7865
SELECT MAX( ALL - 98 ), CAST( 96 AS SIGNED ) AS col2
----
-98
96

skipif mysql # not compatible
query II rowsort label-7865
SELECT MAX ( ALL - 98 ), CAST ( 96 AS INTEGER ) AS col2
----
-98
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT 8 * + 69 * - + COUNT( DISTINCT - 22 )
----
-552

skipif mysql # not compatible
query I rowsort label-7866
SELECT 8 * + 69 * - + COUNT ( DISTINCT - 22 )
----
-552

query II rowsort
SELECT 14 - - COALESCE ( + 33, - 15 * - 69 - 3 + + 29 * - 5 + - 89 + + 83 ) + 96 + - 8 AS col2, + 23 AS col0
----
135
23

query I rowsort
SELECT 55 * + + 32 - 46 + + + 6
----
1720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT ALL + CASE - + MIN( + 95 ) WHEN 31 - 47 THEN - CASE + 57 WHEN + CAST( NULL AS SIGNED ) + 18 THEN NULL WHEN + + 23 THEN NULL ELSE - 32 END WHEN + 50 * + + 64 THEN 26 * 72 END * - - 64 - - 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + CASE - + MIN ( + 95 ) WHEN 31 - 47 THEN - CASE + 57 WHEN + CAST ( NULL AS INTEGER ) + 18 THEN NULL WHEN + + 23 THEN NULL ELSE - 32 END WHEN + 50 * + + 64 THEN 26 * 72 END * - - 64 - - 20 col2
----
NULL

query I rowsort
SELECT 33 * + + NULLIF ( - 97, 55 * + 57 * + CASE ( + + 31 ) WHEN - 46 + + 77 THEN NULL WHEN + + 83 THEN NULL ELSE + 32 END + + ( - + 48 ) )
----
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL 51 + + COUNT( * ) * + + 5 col2
----
56

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL 51 + + COUNT ( * ) * + + 5 col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7872
SELECT - SUM( + + CAST( - 85 AS SIGNED ) ) * - ( + 29 ) + - 99
----
-2564

skipif mysql # not compatible
query I rowsort label-7872
SELECT - SUM ( + + CAST ( - 85 AS INTEGER ) ) * - ( + 29 ) + - 99
----
-2564

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT 92 * + COUNT( + - 34 ) + - 1
----
91

skipif mysql # not compatible
query I rowsort label-7873
SELECT 92 * + COUNT ( + - 34 ) + - 1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT 33 + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-7874
SELECT 33 + + COUNT ( * )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT - 98 + - 55 + - 78 / + - 46 + - 64 * 46 * 87 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT - 98 + - 55 + - 78 / + - 46 + - 64 * 46 * 87 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7876
SELECT + SUM( DISTINCT + - 87 ) DIV 70 + - 55 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7876
SELECT + SUM ( DISTINCT + - 87 ) / 70 + - 55 AS col2
----
-56

query I rowsort
SELECT DISTINCT + - 35 + + ( - 94 )
----
-129

query I rowsort
SELECT ALL + ( - 1 ) AS col0
----
-1

query I rowsort
SELECT ALL + 20 - + + 49
----
-29

query I rowsort
SELECT - - 15 * - 3
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + 57 * 65 * - COUNT( * ) - + COUNT( * ) AS col0
----
-3706

skipif mysql # not compatible
query I rowsort label-7881
SELECT + 57 * 65 * - COUNT ( * ) - + COUNT ( * ) AS col0
----
-3706

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - MIN( - 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7882
SELECT - MIN ( - 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7883
SELECT + 23 * + COUNT( * ) AS col1, + ( + CASE + - 8 WHEN - 62 THEN - - COUNT( * ) + - 7 END )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-7883
SELECT + 23 * + COUNT ( * ) AS col1, + ( + CASE + - 8 WHEN - 62 THEN - - COUNT ( * ) + - 7 END )
----
23
NULL

query I rowsort
SELECT DISTINCT ( - 11 )
----
-11

query I rowsort
SELECT ALL + CASE + - 36 WHEN - 94 THEN + 88 WHEN + - 81 * + - 82 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT + - COUNT( * ) + + + 17
----
16

skipif mysql # not compatible
query I rowsort label-7886
SELECT + - COUNT ( * ) + + + 17
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT - COUNT( * ) AS col2, + MAX( - - 51 )
----
-1
51

skipif mysql # not compatible
query II rowsort label-7887
SELECT - COUNT ( * ) AS col2, + MAX ( - - 51 )
----
-1
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT + 47 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT + 47 / - 69
----
0

query I rowsort
SELECT + 58 + 89 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + 64 - - 41 * - 96 + - CASE - - 73 WHEN + 74 * 89 THEN 68 - - COALESCE ( 77, - COUNT( * ), ( COUNT( + 74 ) ) * - + 92 + + 98 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT + 64 - - 41 * - 96 + - CASE - - 73 WHEN + 74 * 89 THEN 68 - - COALESCE ( 77, - COUNT ( * ), ( COUNT ( + 74 ) ) * - + 92 + + 98 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 70 * 83
----
5810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7892
SELECT + CAST( NULL AS SIGNED ) + 28 * + - 58 AS col0, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-7892
SELECT + CAST ( NULL AS INTEGER ) + 28 * + - 58 AS col0, 76
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ( ( COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7893
SELECT ( ( COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT - 16 DIV + ( + COUNT( * ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7894
SELECT - 16 / + ( + COUNT ( * ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - 45 * - 31 + + MIN( DISTINCT - - 75 ) * 44
----
4695

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - 45 * - 31 + + MIN ( DISTINCT - - 75 ) * 44
----
4695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT 86 DIV + 50 + - COUNT( * ) + + - 42 DIV + - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT 86 / + 50 + - COUNT ( * ) + + - 42 / + - 64 AS col0
----
0

query I rowsort
SELECT DISTINCT 34 * + ( + 96 ) AS col0
----
3264

query I rowsort
SELECT + 4 + 66 - - + 67 * 0
----
70

query I rowsort
SELECT + ( 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL + ( + SUM( DISTINCT + - 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL + ( + SUM ( DISTINCT + - 38 ) )
----
-38

query I rowsort
SELECT ALL + 18 * + 76 + - 17
----
1351

query I rowsort
SELECT + 68 * 55 AS col1
----
3740

query II rowsort
SELECT + 1, - 41 AS col2
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL + MIN( DISTINCT - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + MIN ( DISTINCT - 87 )
----
-87

query I rowsort
SELECT + 21 * - + 86 * - - 91 col2
----
-164346

query I rowsort
SELECT - 27 + 66
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7907
SELECT + CAST( NULL AS SIGNED ) AS col2, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-7907
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 55
----
NULL
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7908
SELECT COALESCE ( + 61, - - 18 ) AS col1, COUNT( ALL + - 2 )
----
61
1

skipif mysql # not compatible
query II rowsort label-7908
SELECT COALESCE ( + 61, - - 18 ) AS col1, COUNT ( ALL + - 2 )
----
61
1

query I rowsort
SELECT ALL + + 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL 62 * - 35 - - 34 * - COUNT( * ) * 90 AS col2
----
-5230

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL 62 * - 35 - - 34 * - COUNT ( * ) * 90 AS col2
----
-5230

query I rowsort
SELECT - + 5 * - 15 * + 98
----
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL - + COUNT( * ) * - 90
----
90

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - + COUNT ( * ) * - 90
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT - ( COALESCE ( - 34, - ( + + 12 ) * 64 DIV + 78 + + 33 DIV 9 + - - 81 ) ) - - - COUNT( * ) + + + 71 + + 11 * - 77 + + MAX( DISTINCT - - 18 ) * + MIN( 15 ) * - 50
----
-14243

skipif mysql # not compatible
query I rowsort label-7913
SELECT - ( COALESCE ( - 34, - ( + + 12 ) * 64 / + 78 + + 33 / 9 + - - 81 ) ) - - - COUNT ( * ) + + + 71 + + 11 * - 77 + + MAX ( DISTINCT - - 18 ) * + MIN ( 15 ) * - 50
----
-14243

query II rowsort
SELECT - 15, 17 AS col1
----
-15
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - ( COUNT( - ( 81 ) ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7915
SELECT - ( COUNT ( - ( 81 ) ) ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT - - 78 DIV + - 82 * + - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT - - 78 / + - 82 * + - 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + - MIN( + ( - 67 ) ) * - 57 * - - COUNT( * ) AS col2
----
-3819

skipif mysql # not compatible
query I rowsort label-7917
SELECT + - MIN ( + ( - 67 ) ) * - 57 * - - COUNT ( * ) AS col2
----
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL + MIN( + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + MIN ( + 8 ) AS col2
----
8

query I rowsort
SELECT - + 3 * + + 58
----
-174

query II rowsort
SELECT ALL - 43 AS col1, + 64 AS col1
----
-43
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7921
SELECT - - COUNT( * ) - + 96 DIV - 22, COUNT( * ) col0
----
5
1

skipif mysql # not compatible
query II rowsort label-7921
SELECT - - COUNT ( * ) - + 96 / - 22, COUNT ( * ) col0
----
5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7922
SELECT ALL - 73 AS col1, + 87 - 98 + + - COUNT( ALL - 18 )
----
-73
-12

skipif mysql # not compatible
query II rowsort label-7922
SELECT ALL - 73 AS col1, + 87 - 98 + + - COUNT ( ALL - 18 )
----
-73
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT - 43 + - ( - - 12 ) AS col2, 19 * - - MIN( 50 ) AS col1
----
-55
950

skipif mysql # not compatible
query II rowsort label-7923
SELECT - 43 + - ( - - 12 ) AS col2, 19 * - - MIN ( 50 ) AS col1
----
-55
950

query I rowsort
SELECT - - ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT ALL 87 * - 94 + - 40 * + COUNT( * ) AS col2
----
-8218

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL 87 * - 94 + - 40 * + COUNT ( * ) AS col2
----
-8218

query I rowsort
SELECT + 57 * 66 col0
----
3762

query I rowsort
SELECT DISTINCT - - 40 * - - 44
----
1760

query I rowsort
SELECT - 66 col1
----
-66

query I rowsort
SELECT - 17 + - + 15 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT ALL 29 * + 30 * + NULLIF ( - 87, - + 44 + - + 45 + - + 73 / + CAST( + COALESCE ( - CAST( NULL AS SIGNED ), - 24 * CAST( 34 AS SIGNED ), 2 * + 95 + + 97 + - + ( 29 ) ) AS SIGNED ) / + - 53 )
----
-75690

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL 29 * + 30 * + NULLIF ( - 87, - + 44 + - + 45 + - + 73 / + CAST ( + COALESCE ( - CAST ( NULL AS INTEGER ), - 24 * CAST ( 34 AS INTEGER ), 2 * + 95 + + 97 + - + ( 29 ) ) AS INTEGER ) / + - 53 )
----
-75690

query II rowsort
SELECT - 35 * + 86 AS col1, 25 AS col0
----
-3010
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + - - CASE + ( + COUNT( * ) ) WHEN - - AVG ( DISTINCT + 97 ) THEN COUNT( * ) * COUNT( * ) ELSE NULL END * - - 52 * + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + - - CASE + ( + COUNT ( * ) ) WHEN - - AVG ( DISTINCT + 97 ) THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END * - - 52 * + 62 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT ALL 81 + 86 - + 13 - - 72 + - + 79 + - 12 * - - 47 + - + 41 DIV - 35 AS col2
----
-416

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL 81 + 86 - + 13 - - 72 + - + 79 + - 12 * - - 47 + - + 41 / - 35 AS col2
----
-416

query I rowsort
SELECT - NULLIF ( - 54, 50 + - + COALESCE ( - + 81, - 37 ) ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7935
SELECT DISTINCT 28 + + COUNT( * ) AS col1, + COUNT( * ) AS col1
----
29
1

skipif mysql # not compatible
query II rowsort label-7935
SELECT DISTINCT 28 + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
29
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT ALL + 24 DIV - - ( - - ( + 57 ) ) + 42
----
42

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL + 24 / - - ( - - ( + 57 ) ) + 42
----
42

query I rowsort
SELECT ALL 51 * - 36 AS col0
----
-1836

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT 91 * + MIN( 97 ) - 55 * - 19 col2, - 75
----
9872
-75

skipif mysql # not compatible
query II rowsort label-7938
SELECT 91 * + MIN ( 97 ) - 55 * - 19 col2, - 75
----
9872
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT + CASE - + COUNT( * ) WHEN + SUM( + 15 ) THEN - + 7 * 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT + CASE - + COUNT ( * ) WHEN + SUM ( + 15 ) THEN - + 7 * 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + COUNT( * ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-7940
SELECT + COUNT ( * ) * 2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - 46 / 15 * + 69 * - SUM( - 11 ) ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - 46 / 15 * + 69 * - SUM ( - 11 ) ) * 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7942
SELECT DISTINCT COUNT( * ) DIV - + ( - + 67 ) * 32 * + + 93 + + + MIN( DISTINCT + 56 ) * 98 - + 4 AS col2, 47 * - - 24
----
5484
1128

skipif mysql # not compatible
query II rowsort label-7942
SELECT DISTINCT COUNT ( * ) / - + ( - + 67 ) * 32 * + + 93 + + + MIN ( DISTINCT + 56 ) * 98 - + 4 AS col2, 47 * - - 24
----
5484
1128

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT ALL 9 - + + 46, COUNT( * ) AS col2
----
-37
1

skipif mysql # not compatible
query II rowsort label-7943
SELECT ALL 9 - + + 46, COUNT ( * ) AS col2
----
-37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL CASE + - 36 WHEN + - 70 THEN 20 WHEN + + COUNT( * ) THEN NULL END * + COUNT( * ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL CASE + - 36 WHEN + - 70 THEN 20 WHEN + + COUNT ( * ) THEN NULL END * + COUNT ( * ) * 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT - COUNT( * ) * + ( + COUNT( * ) ) + + - 6 col2
----
-7

skipif mysql # not compatible
query I rowsort label-7945
SELECT - COUNT ( * ) * + ( + COUNT ( * ) ) + + - 6 col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT + 78 * - 28 + COUNT( DISTINCT COALESCE ( ( + 17 ), - - 53 * + 41 * + 28 * + 73 + + NULLIF ( 3, - 89 ), + 71 ) ) col0, - 24 + + 15 AS col1
----
-2183
-9

skipif mysql # not compatible
query II rowsort label-7946
SELECT + 78 * - 28 + COUNT ( DISTINCT COALESCE ( ( + 17 ), - - 53 * + 41 * + 28 * + 73 + + NULLIF ( 3, - 89 ), + 71 ) ) col0, - 24 + + 15 AS col1
----
-2183
-9

query I rowsort
SELECT - + 55 * - NULLIF ( + 23, - 10 * 9 + NULLIF ( - + 47, + 44 ) ) * 43 - + 61 col2
----
54334

query II rowsort
SELECT ALL - 38 * 51 AS col2, - 29
----
-1938
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT + - 26 * + CAST( - 12 AS SIGNED ) + - 76 AS col1
----
236

skipif mysql # not compatible
query I rowsort label-7949
SELECT + - 26 * + CAST ( - 12 AS INTEGER ) + - 76 AS col1
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL - SUM( ALL 70 ) + - 54 + + ( 3 )
----
-121

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - SUM ( ALL 70 ) + - 54 + + ( 3 )
----
-121

query I rowsort
SELECT 1 + - 75 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL + 77 * + MAX( ALL - - 55 ) * + - 68 - - 53 + - 30 * + 97
----
-290837

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + 77 * + MAX ( ALL - - 55 ) * + - 68 - - 53 + - 30 * + 97
----
-290837

query I rowsort
SELECT 47 + - - 41 AS col2
----
88

query I rowsort
SELECT ALL - 86 + + + 89
----
3

query I rowsort
SELECT + 94 + - 67 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - CASE - + ( - + 27 ) WHEN - 94 THEN + + 42 * 23 - SUM( + + 27 ) WHEN 87 THEN - 53 + + 73 * + + NULLIF ( 51, - 23 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT - CASE - + ( - + 27 ) WHEN - 94 THEN + + 42 * 23 - SUM ( + + 27 ) WHEN 87 THEN - 53 + + 73 * + + NULLIF ( 51, - 23 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7957
SELECT + 8 / + CAST( NULL AS DECIMAL ) * + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT + 8 / + CAST ( NULL AS REAL ) * + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT + COUNT( * ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + COUNT ( * ) + - 84
----
-83

query I rowsort
SELECT ALL + ( + NULLIF ( 65, 68 * 59 + 24 ) ) + - - 96 + - 38 * + 97 AS col1
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT DISTINCT - COUNT( - 82 ) + + 25 col2
----
24

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT - COUNT ( - 82 ) + + 25 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL - ( - - 39 ) + - - MIN( ALL - + 40 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - ( - - 39 ) + - - MIN ( ALL - + 40 ) AS col0
----
-79

query I rowsort
SELECT DISTINCT 89 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL - COUNT( * ) * + - 98 col0
----
98

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL - COUNT ( * ) * + - 98 col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT 59 - - CAST( + - 89 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7964
SELECT 59 - - CAST ( + - 89 AS INTEGER ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT COUNT( * ) + - - 52
----
53

skipif mysql # not compatible
query I rowsort label-7965
SELECT COUNT ( * ) + - - 52
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7966
SELECT ( + 75 ) - + - 21 DIV - + 33
----
75

skipif mysql # not compatible
query I rowsort label-7966
SELECT ( + 75 ) - + - 21 / - + 33
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL 33 - + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL 33 - + + COUNT ( * )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7968
SELECT 39 AS col2, COUNT( ALL + + COALESCE ( - - 11, + - 87 - + - 83 + + 46, - 30 * - 22 + + 1 ) ) + 77 * - - CAST( NULL AS SIGNED ) + - 11 * + CASE WHEN NOT + 81 BETWEEN NULL AND - 75 THEN + 45 * 45 ELSE NULL END
----
39
NULL

skipif mysql # not compatible
query II rowsort label-7968
SELECT 39 AS col2, COUNT ( ALL + + COALESCE ( - - 11, + - 87 - + - 83 + + 46, - 30 * - 22 + + 1 ) ) + 77 * - - CAST ( NULL AS INTEGER ) + - 11 * + CASE WHEN NOT + 81 BETWEEN NULL AND - 75 THEN + 45 * 45 ELSE NULL END
----
39
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7969
SELECT DISTINCT - 20, - CASE + 74 WHEN - - 6 * - - 34 + - 91 + - 25 + + 61 * + COALESCE ( + - COUNT( * ), - 17 * - - MAX( - 16 ) + + - 87 + - 85 * 11 + + 36 ) + 21 / + 5 + + + 73 + 11 THEN - 9 * 90 ELSE 56 END * 3 AS col0
----
-20
-168

skipif mysql # not compatible
query II rowsort label-7969
SELECT DISTINCT - 20, - CASE + 74 WHEN - - 6 * - - 34 + - 91 + - 25 + + 61 * + COALESCE ( + - COUNT ( * ), - 17 * - - MAX ( - 16 ) + + - 87 + - 85 * 11 + + 36 ) + 21 / + 5 + + + 73 + 11 THEN - 9 * 90 ELSE 56 END * 3 AS col0
----
-20
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT + COUNT( * ) * + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + COUNT ( * ) * + - 8
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT ALL 62 DIV - + ( - 31 )
----
2

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 62 / - + ( - 31 )
----
2

query I rowsort
SELECT ALL - ( - 81 ) col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT ALL - 33 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - 33 / 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT DISTINCT 2 * - 33 + - CAST( 59 AS SIGNED ) + - + 11 * + 25 * 39
----
-10850

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT 2 * - 33 + - CAST ( 59 AS INTEGER ) + - + 11 * + 25 * 39
----
-10850

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + SUM( DISTINCT 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7975
SELECT + SUM ( DISTINCT 5 ) AS col2
----
5

query I rowsort
SELECT ALL - + 42 col0
----
-42

query I rowsort
SELECT ALL + - 28 + 57 AS col0
----
29

query I rowsort
SELECT DISTINCT 91 * 6 * - + 25 + 96
----
-13554

query I rowsort
SELECT 16 * 46 AS col2
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT COUNT( * ) - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-7980
SELECT COUNT ( * ) - + 5
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT ALL + CAST( - - 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + CAST ( - - 63 AS INTEGER ) AS col2
----
63

query II rowsort
SELECT ALL 2 AS col0, - 50 * - 69 + + + 49
----
2
3499

query II rowsort
SELECT ALL 19 col1, - 20 * 94
----
19
-1880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7984
SELECT DISTINCT 11 + + 67 DIV + + 83 + - COUNT( * ) * COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT 11 + + 67 / + + 83 + - COUNT ( * ) * COUNT ( * ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL + CAST( NULL AS SIGNED ) * + ( - 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( - 31 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT 33 + + 23 + COUNT( * ) - 62 * + 5 AS col0
----
-253

skipif mysql # not compatible
query I rowsort label-7986
SELECT 33 + + 23 + COUNT ( * ) - 62 * + 5 AS col0
----
-253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT DISTINCT + 91 + + + MIN( + + 60 ) * CAST( + 63 AS SIGNED ) - + COALESCE ( - + 37, - 40 ) + + 10 AS col0
----
3918

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + 91 + + + MIN ( + + 60 ) * CAST ( + 63 AS INTEGER ) - + COALESCE ( - + 37, - 40 ) + + 10 AS col0
----
3918

query I rowsort
SELECT DISTINCT ( 76 ) * 82
----
6232

query I rowsort
SELECT 52 * - 46 AS col2
----
-2392

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL + COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + COUNT ( * ) * - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT 59 + COUNT( * ) + 77 - - - 91 * + COUNT( * ) * 24
----
-2047

skipif mysql # not compatible
query I rowsort label-7991
SELECT 59 + COUNT ( * ) + 77 - - - 91 * + COUNT ( * ) * 24
----
-2047

query I rowsort
SELECT - 28 + - 55
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT - MAX( + CAST( + 91 AS SIGNED ) ) * + COUNT( - ( ( ( + 3 ) ) ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7993
SELECT - MAX ( + CAST ( + 91 AS INTEGER ) ) * + COUNT ( - ( ( ( + 3 ) ) ) ) AS col2
----
-91

query II rowsort
SELECT ALL 95 AS col1, 15
----
95
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7995
SELECT - 48 col0, + 72 AS col1, CASE - ( - - CASE - - 90 WHEN + 48 THEN - 49 / - + 56 - - 31 * + - 52 * - 73 + + ( - - CAST( + + ( - 56 ) AS DECIMAL ) ) WHEN - 75 THEN NULL ELSE + 2 * - 97 - + 68 + 66 END ) WHEN COALESCE ( - 86, + 89 ) THEN + 70 ELSE NULL END AS col1
----
-48
72
NULL

skipif mysql # not compatible
query III rowsort label-7995
SELECT - 48 col0, + 72 AS col1, CASE - ( - - CASE - - 90 WHEN + 48 THEN - 49 / - + 56 - - 31 * + - 52 * - 73 + + ( - - CAST ( + + ( - 56 ) AS REAL ) ) WHEN - 75 THEN NULL ELSE + 2 * - 97 - + 68 + 66 END ) WHEN COALESCE ( - 86, + 89 ) THEN + 70 ELSE NULL END AS col1
----
-48
72
NULL

query II rowsort
SELECT - 51 col1, + 27
----
-51
27

query I rowsort
SELECT ALL NULLIF ( 23, - + 11 )
----
23

query II rowsort
SELECT 30, - 84 + - 48 AS col0
----
30
-132

query I rowsort
SELECT - 38 * + + 9 AS col2
----
-342

query I rowsort
SELECT COALESCE ( + 58, 82 * - ( 31 ) )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8001
SELECT - COUNT( * ) DIV + + ( + 78 ) - SUM( DISTINCT + + 90 ) * + 74 AS col2
----
-6660

skipif mysql # not compatible
query I rowsort label-8001
SELECT - COUNT ( * ) / + + ( + 78 ) - SUM ( DISTINCT + + 90 ) * + 74 AS col2
----
-6660

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT COALESCE ( - 41, - - 37 * + COUNT( * ) * + 75 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8002
SELECT COALESCE ( - 41, - - 37 * + COUNT ( * ) * + 75 ) AS col2
----
-41

query I rowsort
SELECT + ( 91 ) AS col1
----
91

query II rowsort
SELECT + 16 AS col1, - 30
----
16
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + - 93 * - MIN( + 94 ) AS col2
----
8742

skipif mysql # not compatible
query I rowsort label-8005
SELECT + - 93 * - MIN ( + 94 ) AS col2
----
8742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL + + ( + + 82 ) * + CAST( NULL AS SIGNED ) + + 7 + + NULLIF ( + 94, - + COALESCE ( 27, - 82, + + 21, 22 - + NULLIF ( - 61, 72 ) ) ) + + 21 * + 64 + + - 88 - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL + + ( + + 82 ) * + CAST ( NULL AS INTEGER ) + + 7 + + NULLIF ( + 94, - + COALESCE ( 27, - 82, + + 21, 22 - + NULLIF ( - 61, 72 ) ) ) + + 21 * + 64 + + - 88 - + 42
----
NULL

query I rowsort
SELECT DISTINCT + 60 * + 45 col2
----
2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT - MAX( DISTINCT 66 ) DIV + 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT - MAX ( DISTINCT 66 ) / + 78 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT ALL + 75 * - - NULLIF ( + 11, 77 ) + 99 * + COUNT( * ), - 5 * ( + 15 ) AS col2
----
924
-75

skipif mysql # not compatible
query II rowsort label-8009
SELECT ALL + 75 * - - NULLIF ( + 11, 77 ) + 99 * + COUNT ( * ), - 5 * ( + 15 ) AS col2
----
924
-75

query I rowsort
SELECT + + 66 * - - 9 + - - 65 AS col2
----
659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT + + MAX( + 53 ) * + COALESCE ( - - 83, - + 45 * 26 * - - COUNT( * ), + 5, - 96 DIV + COUNT( * ) * - + 12 ) + COUNT( * ) AS col1
----
4400

skipif mysql # not compatible
query I rowsort label-8011
SELECT + + MAX ( + 53 ) * + COALESCE ( - - 83, - + 45 * 26 * - - COUNT ( * ), + 5, - 96 / + COUNT ( * ) * - + 12 ) + COUNT ( * ) AS col1
----
4400

query I rowsort
SELECT + 79 * + 49 - - 86 col1
----
3957

query I rowsort
SELECT - 81 + - + 81
----
-162

query I rowsort
SELECT 0 * - + 8 * + 69 * - 54 - 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8015
SELECT ALL - CAST( 54 AS SIGNED ) * + 38 + - COALESCE ( + 22, + 41 ) + - - 20 + - 68 * + 25 + - ( - 79 )
----
-3675

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - CAST ( 54 AS INTEGER ) * + 38 + - COALESCE ( + 22, + 41 ) + - - 20 + - 68 * + 25 + - ( - 79 )
----
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT + 40 + MIN( DISTINCT + 46 ) * - 13 AS col1
----
-558

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 40 + MIN ( DISTINCT + 46 ) * - 13 AS col1
----
-558

query I rowsort
SELECT ALL ( NULLIF ( - - 39, - 39 + 68 ) ) * - 25
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - NULLIF ( - 34, + 81 + + 8 + + + CASE - + 74 WHEN COUNT( * ) THEN - 90 / + COUNT( * ) WHEN + 89 / 8 + - 23 + - - COUNT( - 69 ) THEN NULL ELSE + + 79 * + + 58 END ) * 87
----
2958

skipif mysql # not compatible
query I rowsort label-8018
SELECT - NULLIF ( - 34, + 81 + + 8 + + + CASE - + 74 WHEN COUNT ( * ) THEN - 90 / + COUNT ( * ) WHEN + 89 / 8 + - 23 + - - COUNT ( - 69 ) THEN NULL ELSE + + 79 * + + 58 END ) * 87
----
2958

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8019
SELECT - CASE + - MIN( ALL - - 43 ) WHEN - + 95 THEN + NULLIF ( - + 98, MAX( ALL - CAST( NULL AS DECIMAL ) ) + - + SUM( ALL - 46 ) ) * - 43 / MAX( DISTINCT + 70 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT - CASE + - MIN ( ALL - - 43 ) WHEN - + 95 THEN + NULLIF ( - + 98, MAX ( ALL - CAST ( NULL AS REAL ) ) + - + SUM ( ALL - 46 ) ) * - 43 / MAX ( DISTINCT + 70 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 87 + - + 94
----
-181

query I rowsort
SELECT DISTINCT 51 * - + 48 AS col0
----
-2448

query I rowsort
SELECT ALL + 70 * + - 63
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + CASE - + 53 WHEN NULLIF ( CASE 70 WHEN + - 60 + 7 THEN NULL WHEN + 66 THEN + - 41 * - CASE + 33 WHEN - + 78 - - 77 THEN 55 - - + 50 ELSE - - 56 + 89 + + - 52 * + - COUNT( * ) + - COUNT( * ) END + + 31 ELSE NULL END, 84 / + COUNT( * ) + 11 ) / - 86 THEN NULL ELSE ( - COUNT( * ) ) END + 51 col1
----
50

skipif mysql # not compatible
query I rowsort label-8023
SELECT + CASE - + 53 WHEN NULLIF ( CASE 70 WHEN + - 60 + 7 THEN NULL WHEN + 66 THEN + - 41 * - CASE + 33 WHEN - + 78 - - 77 THEN 55 - - + 50 ELSE - - 56 + 89 + + - 52 * + - COUNT ( * ) + - COUNT ( * ) END + + 31 ELSE NULL END, 84 / + COUNT ( * ) + 11 ) / - 86 THEN NULL ELSE ( - COUNT ( * ) ) END + 51 col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8024
SELECT DISTINCT CASE 91 WHEN + 27 THEN + - 13 + SUM( - 1 ) * + CAST( + + COALESCE ( + - 19, + ( 93 ) ) AS DECIMAL ) + + COALESCE ( - COUNT( * ), ( 42 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT CASE 91 WHEN + 27 THEN + - 13 + SUM ( - 1 ) * + CAST ( + + COALESCE ( + - 19, + ( 93 ) ) AS REAL ) + + COALESCE ( - COUNT ( * ), ( 42 ) ) END AS col1
----
NULL

query I rowsort
SELECT + 38 * - 31 AS col2
----
-1178

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - 44 * - MAX( 98 ) * 28
----
120736

skipif mysql # not compatible
query I rowsort label-8026
SELECT - 44 * - MAX ( 98 ) * 28
----
120736

query I rowsort
SELECT ALL 50 * - 66 col0
----
-3300

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT + 56 + + MIN( DISTINCT + + 7 ) AS col1, + COUNT( * ) - + 78 - - COUNT( * ) + + 58
----
63
-18

skipif mysql # not compatible
query II rowsort label-8028
SELECT + 56 + + MIN ( DISTINCT + + 7 ) AS col1, + COUNT ( * ) - + 78 - - COUNT ( * ) + + 58
----
63
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT NULLIF ( - MIN( - 97 ), - 72 * + 72 + - 62 )
----
97

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT NULLIF ( - MIN ( - 97 ), - 72 * + 72 + - 62 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8030
SELECT - - 5 + - COUNT( * ) - - - CAST( - - 4 AS SIGNED ) DIV - - 95 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8030
SELECT - - 5 + - COUNT ( * ) - - - CAST ( - - 4 AS INTEGER ) / - - 95 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT - NULLIF ( NULLIF ( 35, 77 + - NULLIF ( - 88, 10 + - 65 ) + + 9 * + 55 ), + - 66 ) * + CAST( - 41 AS SIGNED ) + - 29 AS col0
----
1406

skipif mysql # not compatible
query I rowsort label-8031
SELECT - NULLIF ( NULLIF ( 35, 77 + - NULLIF ( - 88, 10 + - 65 ) + + 9 * + 55 ), + - 66 ) * + CAST ( - 41 AS INTEGER ) + - 29 AS col0
----
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + NULLIF ( + 37, - 92 + - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-8032
SELECT + NULLIF ( + 37, - 92 + - COUNT ( * ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - ( + 76 ) * - + COUNT( * ) + - 41 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8033
SELECT - ( + 76 ) * - + COUNT ( * ) + - 41 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + 52 * - + 71 + + 92 * - - ( - 81 ) + 93 + + - COUNT( + 54 ) + 20
----
-11032

skipif mysql # not compatible
query I rowsort label-8034
SELECT + 52 * - + 71 + + 92 * - - ( - 81 ) + 93 + + - COUNT ( + 54 ) + 20
----
-11032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8035
SELECT DISTINCT - 65 * + - COALESCE ( NULLIF ( + COUNT( * ), - 5 ), - 84 + + 34 + - 93 + - 53 * 33 DIV - 48 ) * NULLIF ( - + 52, - 25 + - 59 ) AS col0
----
-3380

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - 65 * + - COALESCE ( NULLIF ( + COUNT ( * ), - 5 ), - 84 + + 34 + - 93 + - 53 * 33 / - 48 ) * NULLIF ( - + 52, - 25 + - 59 ) AS col0
----
-3380

query I rowsort
SELECT ( - 29 ) AS col1
----
-29

query I rowsort
SELECT ALL - 54 * + - 50 AS col1
----
2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8038
SELECT - COUNT( * ) + + CAST( + + 2 AS SIGNED ) AS col1, 84 - + COUNT( * ) col2, - 46 - + MIN( NULLIF ( + 54, + 56 + + 10 ) ) + + - COUNT( * ) * + 50 AS col2
----
1
83
-150

skipif mysql # not compatible
query III rowsort label-8038
SELECT - COUNT ( * ) + + CAST ( + + 2 AS INTEGER ) AS col1, 84 - + COUNT ( * ) col2, - 46 - + MIN ( NULLIF ( + 54, + 56 + + 10 ) ) + + - COUNT ( * ) * + 50 AS col2
----
1
83
-150

onlyif mysql # DIV for integer division: 
query II rowsort label-8039
SELECT - 52 * - 53 * + 23 AS col1, + 89 + + 41 DIV 78 * - 78 AS col1
----
63388
89

skipif mysql # not compatible
query II rowsort label-8039
SELECT - 52 * - 53 * + 23 AS col1, + 89 + + 41 / 78 * - 78 AS col1
----
63388
89

query I rowsort
SELECT + 58 * - COALESCE ( 30, - 4, 76 )
----
-1740

query II rowsort
SELECT ALL + 78 AS col2, - 13 * - 57 - + - 84 AS col0
----
78
825

query I rowsort
SELECT ALL + ( + + 89 )
----
89

query I rowsort
SELECT - 29 - 13
----
-42

query I rowsort
SELECT + ( 43 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT 62 DIV - MAX( + 91 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8045
SELECT 62 / - MAX ( + 91 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8046
SELECT ALL 16 / + + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL 16 / + + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 33 * - 71 col0
----
-2343

query I rowsort
SELECT ALL 10 * 51 AS col0
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT 52 DIV - + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT 52 / - + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT 58 + - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8050
SELECT 58 + - COUNT ( * ) AS col2
----
57

query I rowsort
SELECT ( - - 26 ) - + 93 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + NULLIF ( + 8, - COUNT( DISTINCT + 1 ) ) * - MIN( - 44 ) * 66 + COALESCE ( + - 40, + 31 * + 65 ) * 91
----
19592

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + NULLIF ( + 8, - COUNT ( DISTINCT + 1 ) ) * - MIN ( - 44 ) * 66 + COALESCE ( + - 40, + 31 * + 65 ) * 91
----
19592

query I rowsort
SELECT DISTINCT 15 * + 40 col1
----
600

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT MAX( DISTINCT + + 29 ) - 8 * - + 58 AS col0, + 22 AS col2
----
493
22

skipif mysql # not compatible
query II rowsort label-8054
SELECT MAX ( DISTINCT + + 29 ) - 8 * - + 58 AS col0, + 22 AS col2
----
493
22

query I rowsort
SELECT 58 * 3
----
174

query I rowsort
SELECT 93 + - 95
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8057
SELECT 63 AS col2, + 12 + + 76 + + COUNT( * ) * 26 + - 51 DIV MAX( DISTINCT - 94 )
----
63
114

skipif mysql # not compatible
query II rowsort label-8057
SELECT 63 AS col2, + 12 + + 76 + + COUNT ( * ) * 26 + - 51 / MAX ( DISTINCT - 94 )
----
63
114

query I rowsort
SELECT ALL 73 + + - 1 * - 0 AS col1
----
73

query I rowsort
SELECT DISTINCT 68 + 11 + 22 AS col0
----
101

query I rowsort
SELECT ALL 72 + + - NULLIF ( 89, + 80 ) * + + 23 + 83 * 66 AS col2
----
3503

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + COUNT( + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8061
SELECT + COUNT ( + 1 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT DISTINCT - 21 + COALESCE ( + + COUNT( * ), ( + - CAST( + - 58 AS SIGNED ) ) * + 24, SUM( - ( - CAST( NULL AS SIGNED ) ) ) ) + + CASE + - 82 WHEN + + 30 THEN - COUNT( DISTINCT - + 83 ) * - NULLIF ( - + 78, 45 * - COUNT( * ) ) - - COALESCE ( + 88, + 66 ) / 76 END * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT - 21 + COALESCE ( + + COUNT ( * ), ( + - CAST ( + - 58 AS INTEGER ) ) * + 24, SUM ( - ( - CAST ( NULL AS INTEGER ) ) ) ) + + CASE + - 82 WHEN + + 30 THEN - COUNT ( DISTINCT - + 83 ) * - NULLIF ( - + 78, 45 * - COUNT ( * ) ) - - COALESCE ( + 88, + 66 ) / 76 END * - 28
----
NULL

query II rowsort
SELECT DISTINCT + 17 AS col2, - 31 col1
----
17
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT - 52 + + 44 * - - COUNT( * ) + - 77 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT - 52 + + 44 * - - COUNT ( * ) + - 77 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT + 84 * + + 24 + + 13 * + 11 + + 49 + - 66 - 49 + SUM( + 17 ) AS col2
----
2110

skipif mysql # not compatible
query I rowsort label-8065
SELECT + 84 * + + 24 + + 13 * + 11 + + 49 + - 66 - 49 + SUM ( + 17 ) AS col2
----
2110

query II rowsort
SELECT + 52 AS col0, 49 AS col0
----
52
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + COUNT( * ) + + + 43 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8067
SELECT + COUNT ( * ) + + + 43 AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8068
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 26
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-8068
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 26
----
NULL
-26

query I rowsort
SELECT + 19 * - + 69
----
-1311

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8070
SELECT + + COALESCE ( - 79, - + CAST( NULL AS SIGNED ) ) AS col2, - 53 * - + 97
----
-79
5141

skipif mysql # not compatible
query II rowsort label-8070
SELECT + + COALESCE ( - 79, - + CAST ( NULL AS INTEGER ) ) AS col2, - 53 * - + 97
----
-79
5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT - CAST( NULL AS SIGNED ) / + - 18 - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT - CAST ( NULL AS INTEGER ) / + - 18 - - 86
----
NULL

query I rowsort
SELECT 70 + - 40 + - 44 + + 78 + 98 * - 32 * 39 AS col0
----
-122240

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT 57 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-8073
SELECT 57 / 37
----
1

query I rowsort
SELECT 78 * + - 9 + - 89 + + 56 * 95
----
4529

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT 27 + - 88 AS col1, + MAX( ALL 71 ) * - + 36
----
-61
-2556

skipif mysql # not compatible
query II rowsort label-8075
SELECT 27 + - 88 AS col1, + MAX ( ALL 71 ) * - + 36
----
-61
-2556

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT DISTINCT - 87 * + - 67 * - COUNT( - 35 ) AS col1, + 88 + + + 71 col2
----
-5829
159

skipif mysql # not compatible
query II rowsort label-8076
SELECT DISTINCT - 87 * + - 67 * - COUNT ( - 35 ) AS col1, + 88 + + + 71 col2
----
-5829
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8077
SELECT ALL - ( 68 ) AS col0, - 92 * + + ( + - 21 ) + 88 + 49 + + + 35 - + 35 * ( - MIN( 62 ) ) DIV + 65 * - - COUNT( * )
----
-68
2137

skipif mysql # not compatible
query II rowsort label-8077
SELECT ALL - ( 68 ) AS col0, - 92 * + + ( + - 21 ) + 88 + 49 + + + 35 - + 35 * ( - MIN ( 62 ) ) / + 65 * - - COUNT ( * )
----
-68
2137

query I rowsort
SELECT 68 * - 65 AS col2
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT - 70 + - COUNT( * ) * 91 * 57 * MAX( + - 46 ) - - + SUM( ALL + 16 ) + 92 AS col1
----
238640

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - 70 + - COUNT ( * ) * 91 * 57 * MAX ( + - 46 ) - - + SUM ( ALL + 16 ) + 92 AS col1
----
238640

onlyif mysql # aggregate syntax: 
query II rowsort label-8080
SELECT MAX( ALL - - 11 ) * 13 + + 19, - 40 AS col1
----
162
-40

skipif mysql # not compatible
query II rowsort label-8080
SELECT MAX ( ALL - - 11 ) * 13 + + 19, - 40 AS col1
----
162
-40

query I rowsort
SELECT DISTINCT 62 + + 31 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8082
SELECT ALL + 52 + + 44 + - - NULLIF ( - CAST( - + 87 AS SIGNED ), - 72 ) * + 87 * - + 54 - + 90 - - COUNT( * )
----
-408719

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + 52 + + 44 + - - NULLIF ( - CAST ( - + 87 AS INTEGER ), - 72 ) * + 87 * - + 54 - + 90 - - COUNT ( * )
----
-408719

query I rowsort
SELECT 83 + 5
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT + 35 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + 35 / - 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT 98 + + 51 AS col0, - COUNT( * )
----
149
-1

skipif mysql # not compatible
query II rowsort label-8085
SELECT 98 + + 51 AS col0, - COUNT ( * )
----
149
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT - 44 * - COUNT( * ), + 68 AS col0
----
44
68

skipif mysql # not compatible
query II rowsort label-8086
SELECT - 44 * - COUNT ( * ), + 68 AS col0
----
44
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT 44 + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8087
SELECT 44 + - COUNT ( * )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL + 23 + 60 + - - 70 + + 54 + + 93 * NULLIF ( + COALESCE ( - - 95, 56 ), CAST( NULL AS SIGNED ) ) + 97 AS col2
----
9139

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + 23 + 60 + - - 70 + + 54 + + 93 * NULLIF ( + COALESCE ( - - 95, 56 ), CAST ( NULL AS INTEGER ) ) + 97 AS col2
----
9139

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + 93 + 65 + - + MAX( ALL - 32 ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 93 + 65 + - + MAX ( ALL - 32 ) AS col2
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT ( + ( + + COALESCE ( 60, - ( - + ( + 48 ) ), + - 7 / - - COALESCE ( ( + 27 ), - 71 ) * 48 ) ) ) + + 66 + 73 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT ( + ( + + COALESCE ( 60, - ( - + ( + 48 ) ), + - 7 / - - COALESCE ( ( + 27 ), - 71 ) * 48 ) ) ) + + 66 + 73 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT + 76 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT + 76 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 67 - - NULLIF ( - - 30, + 20 + - 93 ) * - 6
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT - + COUNT( + + 93 ) AS col2, + 91 * + 31 - + 62 - 86 AS col0
----
-1
2673

skipif mysql # not compatible
query II rowsort label-8093
SELECT - + COUNT ( + + 93 ) AS col2, + 91 * + 31 - + 62 - 86 AS col0
----
-1
2673

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT ALL - ( 68 ), + 32 * - COUNT( * ) * + 51 AS col2
----
-68
-1632

skipif mysql # not compatible
query II rowsort label-8094
SELECT ALL - ( 68 ), + 32 * - COUNT ( * ) * + 51 AS col2
----
-68
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT - + CAST( - CASE NULLIF ( + CASE + 26 WHEN - - 98 + COALESCE ( - 66, + - 54 ) * - + COUNT( * ) THEN - - 40 + - ( + - CAST( - 94 AS SIGNED ) ) - - 20 + - SUM( - 95 ) + - 18 + - COUNT( * ) + - + 32 / + 24 * - + COALESCE ( + - ( - COALESCE ( - NULLIF ( 22, ( 44 ) ), + NULLIF ( + 72, 56 ), + 49 + 33 * 1 ) ), 84 / + 9 - 58 ) ELSE COUNT( * ) * 8 END, 8 ) WHEN 82 THEN CASE MAX( DISTINCT + 92 ) WHEN + SUM( ALL + 78 ) / ( 70 ) + 98 THEN NULL WHEN + 60 THEN NULL WHEN + 57 THEN COALESCE ( ( - ( COUNT( * ) ) ), 84, 38 ) END WHEN - 48 THEN - 49 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT - + CAST ( - CASE NULLIF ( + CASE + 26 WHEN - - 98 + COALESCE ( - 66, + - 54 ) * - + COUNT ( * ) THEN - - 40 + - ( + - CAST ( - 94 AS INTEGER ) ) - - 20 + - SUM ( - 95 ) + - 18 + - COUNT ( * ) + - + 32 / + 24 * - + COALESCE ( + - ( - COALESCE ( - NULLIF ( 22, ( 44 ) ), + NULLIF ( + 72, 56 ), + 49 + 33 * 1 ) ), 84 / + 9 - 58 ) ELSE COUNT ( * ) * 8 END, 8 ) WHEN 82 THEN CASE MAX ( DISTINCT + 92 ) WHEN + SUM ( ALL + 78 ) / ( 70 ) + 98 THEN NULL WHEN + 60 THEN NULL WHEN + 57 THEN COALESCE ( ( - ( COUNT ( * ) ) ), 84, 38 ) END WHEN - 48 THEN - 49 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT 10 * 54 - + - MIN( ALL 12 ) * - 5 AS col2
----
480

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT 10 * 54 - + - MIN ( ALL 12 ) * - 5 AS col2
----
480

query I rowsort
SELECT ALL - + ( 18 ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT ( - + SUM( ALL CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) * - 96 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT ( - + SUM ( ALL CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) * - 96 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT + COUNT( * ) * 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + COUNT ( * ) * 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT + - ( - 88 ) AS col0, + COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-8100
SELECT + - ( - 88 ) AS col0, + COUNT ( * )
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT 85 * + + 38 * + COUNT( * )
----
3230

skipif mysql # not compatible
query I rowsort label-8101
SELECT 85 * + + 38 * + COUNT ( * )
----
3230

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT - - 61 DIV - 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8102
SELECT - - 61 / - 27 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL MIN( DISTINCT - 36 ) * + 13
----
-468

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL MIN ( DISTINCT - 36 ) * + 13
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8104
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 46 * - ( + 57 ) AS col1
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT MAX( DISTINCT ( - + 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-8106
SELECT MAX ( DISTINCT ( - + 39 ) )
----
-39

query I rowsort
SELECT ALL + 11 * + + 91 * - 91
----
-91091

query II rowsort
SELECT DISTINCT 75 + - 24 + + 70 * ( 33 ) AS col2, 9
----
2361
9

query II rowsort
SELECT + NULLIF ( + + 97, + + 23 ) AS col1, - COALESCE ( + COALESCE ( + 81, + 77 ), 50 ) col0
----
97
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + NULLIF ( - COUNT( * ), + 62 * - 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + NULLIF ( - COUNT ( * ), + 62 * - 51 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT COUNT( ALL + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT COUNT ( ALL + 34 )
----
1

query II rowsort
SELECT 32, 42 col2
----
32
42

query I rowsort
SELECT DISTINCT - 39 + 85
----
46

query I rowsort
SELECT DISTINCT 33 * + 86 * 77
----
218526

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + COUNT( * ) + - ( - 51 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + COUNT ( * ) + - ( - 51 ) AS col2
----
52

query I rowsort
SELECT DISTINCT - 94 + + ( + 7 ) + - 79 * + 61 + - 11 * - - 68 AS col1
----
-5654

query I rowsort
SELECT DISTINCT + 39 + 91 AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - SUM( ALL 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - SUM ( ALL 21 ) AS col2
----
-21

query I rowsort
SELECT ALL - + 13 + - + 5
----
-18

query I rowsort
SELECT ALL + + 50 + - + ( - 39 ) + + + COALESCE ( + 23, + 81 ) col2
----
112

query I rowsort
SELECT - - 88 * - 74 AS col2
----
-6512

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT - 91 DIV - + 61
----
1

skipif mysql # not compatible
query I rowsort label-8122
SELECT - 91 / - + 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - + ( + COUNT( * ) ) + + 78
----
77

skipif mysql # not compatible
query I rowsort label-8123
SELECT - + ( + COUNT ( * ) ) + + 78
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT - CAST( ( - 93 ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-8124
SELECT - CAST ( ( - 93 ) AS INTEGER )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8125
SELECT + COUNT( - 59 ) + 65 * CAST( 17 AS SIGNED ) col1, - 81 * + - 8
----
1106
648

skipif mysql # not compatible
query II rowsort label-8125
SELECT + COUNT ( - 59 ) + 65 * CAST ( 17 AS INTEGER ) col1, - 81 * + - 8
----
1106
648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT ALL + - 25 - COUNT( * ) + + 84 * + CAST( - - 17 AS SIGNED ) + - COUNT( - + 98 )
----
1401

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + - 25 - COUNT ( * ) + + 84 * + CAST ( - - 17 AS INTEGER ) + - COUNT ( - + 98 )
----
1401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT DISTINCT + - 8 DIV - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + - 8 / - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - - 31 * - 27 * - COUNT( * ) * - COUNT( DISTINCT - 90 ) - + + 89 AS col2
----
-926

skipif mysql # not compatible
query I rowsort label-8128
SELECT - - 31 * - 27 * - COUNT ( * ) * - COUNT ( DISTINCT - 90 ) - + + 89 AS col2
----
-926

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - 45 * + COUNT( ALL - 19 )
----
-45

skipif mysql # not compatible
query I rowsort label-8129
SELECT - 45 * + COUNT ( ALL - 19 )
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-8130
SELECT ALL + 67 * + ( + + 89 ) AS col1, 45 DIV 95
----
5963
0

skipif mysql # not compatible
query II rowsort label-8130
SELECT ALL + 67 * + ( + + 89 ) AS col1, 45 / 95
----
5963
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8131
SELECT - - CASE 90 WHEN + COUNT( * ) THEN NULL WHEN + 20 * + CAST( 37 AS SIGNED ) * 27 * + 62 + - 53 THEN - + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT - - CASE 90 WHEN + COUNT ( * ) THEN NULL WHEN + 20 * + CAST ( 37 AS INTEGER ) * 27 * + 62 + - 53 THEN - + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + - 33 * 0 AS col2
----
0

query I rowsort
SELECT ALL ( + 6 ) col0
----
6

query I rowsort
SELECT ALL - 75 * - 80 col1
----
6000

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT - + 12 DIV - - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8135
SELECT - + 12 / - - 88 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT + + COALESCE ( 91, + CASE + - 26 WHEN + 41 * + 59 / + 44 THEN + 71 WHEN + 64 THEN NULL ELSE NULL END ) * + COALESCE ( 14, + + 71 + COALESCE ( - - CAST( NULL AS SIGNED ), + 15 ), - - ( - + COUNT( * ) ) + + - 22, - 24 ) + + - 23 AS col0
----
1251

skipif mysql # not compatible
query I rowsort label-8136
SELECT + + COALESCE ( 91, + CASE + - 26 WHEN + 41 * + 59 / + 44 THEN + 71 WHEN + 64 THEN NULL ELSE NULL END ) * + COALESCE ( 14, + + 71 + COALESCE ( - - CAST ( NULL AS INTEGER ), + 15 ), - - ( - + COUNT ( * ) ) + + - 22, - 24 ) + + - 23 AS col0
----
1251

query II rowsort
SELECT - 5 col1, 2 AS col1
----
-5
2

query I rowsort
SELECT - 74 * + 68 - 92 + + 40 AS col0
----
-5084

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + 64 * - 74 - - COUNT( * ) AS col0
----
-4735

skipif mysql # not compatible
query I rowsort label-8139
SELECT + 64 * - 74 - - COUNT ( * ) AS col0
----
-4735

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT ALL 87 * 20, COUNT( * ) * + + 10 * - - 89 + + NULLIF ( SUM( ALL - 82 ), SUM( DISTINCT 40 ) * + - ( - 36 ) ) AS col0
----
1740
808

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL 87 * 20, COUNT ( * ) * + + 10 * - - 89 + + NULLIF ( SUM ( ALL - 82 ), SUM ( DISTINCT 40 ) * + - ( - 36 ) ) AS col0
----
1740
808

query I rowsort
SELECT DISTINCT + 23 * - + ( + 7 ) + - - 22 * - + 9 col1
----
-359

query I rowsort
SELECT + ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + MIN( + - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8143
SELECT + MIN ( + - 37 ) AS col2
----
-37

query I rowsort
SELECT ( + 91 ) AS col1
----
91

query I rowsort
SELECT 52 * - 46 + - 15 AS col1
----
-2407

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT CASE 52 WHEN COUNT( * ) THEN - COUNT( DISTINCT 45 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT CASE 52 WHEN COUNT ( * ) THEN - COUNT ( DISTINCT 45 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( - 41, + 47 ) col1
----
-41

query I rowsort
SELECT CASE + 61 WHEN + ( + - 50 ) THEN - + 66 * - - 35 * - 34 ELSE - 55 END
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8149
SELECT - 56, + 54 DIV - COUNT( * ) AS col0
----
-56
-54

skipif mysql # not compatible
query II rowsort label-8149
SELECT - 56, + 54 / - COUNT ( * ) AS col0
----
-56
-54

query I rowsort
SELECT - 14 + ( 98 ) AS col0
----
84

query I rowsort
SELECT + 26 * - ( 84 )
----
-2184

query I rowsort
SELECT + 79 * 50 AS col2
----
3950

query II rowsort
SELECT 19, - 75 AS col2
----
19
-75

query I rowsort
SELECT + 88 + 33
----
121

query II rowsort
SELECT 56 AS col0, 52 * + 59
----
56
3068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8156
SELECT - 63 + + 15 + - ( + + 45 ) * - 83 DIV + ( + COUNT( * ) )
----
3687

skipif mysql # not compatible
query I rowsort label-8156
SELECT - 63 + + 15 + - ( + + 45 ) * - 83 / + ( + COUNT ( * ) )
----
3687

query I rowsort
SELECT + + 51 + - 53
----
-2

query I rowsort
SELECT ALL + 82 * - 65
----
-5330

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - + 60 + ( - + COUNT( * ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8159
SELECT - + 60 + ( - + COUNT ( * ) ) AS col0
----
-61

query I rowsort
SELECT ALL - 86 AS col2
----
-86

query I rowsort
SELECT - - 85 + + 36
----
121

query I rowsort
SELECT - ( 43 ) + 32
----
-11

query I rowsort
SELECT - 4 + + + 38 + - 95 - - 56 + + NULLIF ( 64, - + 52 + - 18 + - 79 * 53 ) * + 66 AS col1
----
4219

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT SUM( - 15 ) - - - 26 * - CASE WHEN NOT ( NULL IS NULL ) THEN NULL WHEN NOT NULL NOT BETWEEN 13 AND NULL THEN + 9 ELSE NULL END + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT SUM ( - 15 ) - - - 26 * - CASE WHEN NOT ( NULL IS NULL ) THEN NULL WHEN NOT NULL NOT BETWEEN 13 AND NULL THEN + 9 ELSE NULL END + - 46 AS col0
----
NULL

query II rowsort
SELECT ALL 88, 33 AS col0
----
88
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8166
SELECT 55 * + 62 DIV + + COUNT( * ) AS col2
----
3410

skipif mysql # not compatible
query I rowsort label-8166
SELECT 55 * + 62 / + + COUNT ( * ) AS col2
----
3410

query II rowsort
SELECT DISTINCT ( + 1 ) AS col0, - 13 * - + COALESCE ( - 30, - 54, - 40 ) + 31 AS col2
----
1
-359

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + MAX( NULLIF ( 48, - 63 ) )
----
48

skipif mysql # not compatible
query I rowsort label-8168
SELECT + MAX ( NULLIF ( 48, - 63 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - 94 + - COUNT( * ) + + 92 * + - 21
----
-2027

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - 94 + - COUNT ( * ) + + 92 * + - 21
----
-2027

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT + 36 + - COUNT( * ) * 20
----
16

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + 36 + - COUNT ( * ) * 20
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT 88 * - 78 * - 56 * - COUNT( * )
----
-384384

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT 88 * - 78 * - 56 * - COUNT ( * )
----
-384384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT ALL 46 + - - 22 * + NULLIF ( + - CAST( 33 AS SIGNED ), 65 ) * - - 38 * + MIN( DISTINCT CASE + NULLIF ( + 43, + 28 + ( 38 ) ) WHEN 63 THEN - 39 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 46 + - - 22 * + NULLIF ( + - CAST ( 33 AS INTEGER ), 65 ) * - - 38 * + MIN ( DISTINCT CASE + NULLIF ( + 43, + 28 + ( 38 ) ) WHEN 63 THEN - 39 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + 98 * - + 83 + + + 24 + + 7 * + 18
----
-7984

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + CASE + - 1 WHEN 3 + - SUM( 74 ) THEN - 91 * - - 65 - - + ( + + 98 ) + ( - 72 ) ELSE NULL END + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + CASE + - 1 WHEN 3 + - SUM ( 74 ) THEN - 91 * - - 65 - - + ( + + 98 ) + ( - 72 ) ELSE NULL END + 26
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8175
SELECT 36 DIV 37 AS col2, 87 AS col2
----
0
87

skipif mysql # not compatible
query II rowsort label-8175
SELECT 36 / 37 AS col2, 87 AS col2
----
0
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8176
SELECT 42 * COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT 42 * COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT AVG ( ALL + - 72 ) * + COUNT( * ) * - 61 * + + NULLIF ( CAST( NULL AS SIGNED ), 93 * COALESCE ( 3, + 47 ) * + 64 ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT AVG ( ALL + - 72 ) * + COUNT ( * ) * - 61 * + + NULLIF ( CAST ( NULL AS INTEGER ), 93 * COALESCE ( 3, + 47 ) * + 64 ) + - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT 45 + - - COUNT( * ) * - + 12
----
33

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT 45 + - - COUNT ( * ) * - + 12
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8179
SELECT ALL MAX( ALL - 13 ) + - 84 DIV + 52
----
-14

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL MAX ( ALL - 13 ) + - 84 / + 52
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL ( - COUNT( * ) ) * 15
----
-15

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL ( - COUNT ( * ) ) * 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ( COUNT( * ) ) * + 89
----
89

skipif mysql # not compatible
query I rowsort label-8181
SELECT ( COUNT ( * ) ) * + 89
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8182
SELECT ( - COUNT( * ) ) + 22, 33 AS col1
----
21
33

skipif mysql # not compatible
query II rowsort label-8182
SELECT ( - COUNT ( * ) ) + 22, 33 AS col1
----
21
33

query I rowsort
SELECT DISTINCT 79 * - 18 AS col0
----
-1422

query I rowsort
SELECT 22 * CASE - + 6 WHEN 12 + 1 THEN + 40 + + 29 + + + 53 * + 20 WHEN - 45 THEN - 8 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT COUNT( * ) * + 54 + + - 1 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8185
SELECT COUNT ( * ) * + 54 + + - 1 AS col2
----
53

query II rowsort
SELECT DISTINCT - 44 * - 83, 16 AS col0
----
3652
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL CASE 66 WHEN + 58 THEN - 51 * - + 0 / COUNT( * ) + - MAX( ALL - 71 ) ELSE + CASE 21 WHEN + + 54 THEN COUNT( * ) WHEN 32 * 17 - + - 97 + 97 / 26 * + 99 + + 74 THEN NULL ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL CASE 66 WHEN + 58 THEN - 51 * - + 0 / COUNT ( * ) + - MAX ( ALL - 71 ) ELSE + CASE 21 WHEN + + 54 THEN COUNT ( * ) WHEN 32 * 17 - + - 97 + 97 / 26 * + 99 + + 74 THEN NULL ELSE NULL END END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT ALL + 11 - 43 + - + 26 DIV 37 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL + 11 - 43 + - + 26 / 37 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8189
SELECT CAST( NULL AS SIGNED ) * - MIN( + 10 ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT CAST ( NULL AS INTEGER ) * - MIN ( + 10 ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL - COALESCE ( - - ( - 45 ), - COUNT( * ) + + 63 ) * - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - COALESCE ( - - ( - 45 ), - COUNT ( * ) + + 63 ) * - COUNT ( * ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + COUNT( * ) * 60
----
60

skipif mysql # not compatible
query I rowsort label-8191
SELECT + COUNT ( * ) * 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT DISTINCT - + COUNT( * ) DIV + 56 DIV - 13 + + - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - + COUNT ( * ) / + 56 / - 13 + + - 68 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + 27 - 6 * - NULLIF ( COUNT( * ), + AVG ( ALL ( - 32 ) ) ) + 59 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 27 - 6 * - NULLIF ( COUNT ( * ), + AVG ( ALL ( - 32 ) ) ) + 59 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT 1 DIV - + 49
----
0

skipif mysql # not compatible
query I rowsort label-8194
SELECT 1 / - + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - SUM( ALL NULLIF ( - 66, + 13 ) ) * + 31 * 35 - + + 94
----
71516

skipif mysql # not compatible
query I rowsort label-8195
SELECT - SUM ( ALL NULLIF ( - 66, + 13 ) ) * + 31 * 35 - + + 94
----
71516

query I rowsort
SELECT - 93 + + - 33
----
-126

query I rowsort
SELECT - + 37 col1
----
-37

query I rowsort
SELECT 70 * - 22 AS col0
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT - + NULLIF ( 8, - 77 + COUNT( * ) + - 98 * - + 44 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8199
SELECT - + NULLIF ( 8, - 77 + COUNT ( * ) + - 98 * - + 44 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT + 65 + + 9 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - COUNT( * ) + + + 11
----
10

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - COUNT ( * ) + + + 11
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - MAX( ALL 8 ) * - + 85
----
680

skipif mysql # not compatible
query I rowsort label-8202
SELECT - MAX ( ALL 8 ) * - + 85
----
680

query I rowsort
SELECT ALL 22 + + 84 AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT - 42 + COUNT( * ) * 94 + - - 50 + COUNT( * ) + + 37 * + 52 + - 39 DIV + 48 * + + 95 + - 95 * 45 col1
----
-2248

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT - 42 + COUNT ( * ) * 94 + - - 50 + COUNT ( * ) + + 37 * + 52 + - 39 / + 48 * + + 95 + - 95 * 45 col1
----
-2248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8205
SELECT + 17 AS col1, - 65 * + CAST( - 99 AS SIGNED ) * + 13 AS col1
----
17
83655

skipif mysql # not compatible
query II rowsort label-8205
SELECT + 17 AS col1, - 65 * + CAST ( - 99 AS INTEGER ) * + 13 AS col1
----
17
83655

query I rowsort
SELECT 61 + - + 91 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8207
SELECT ALL - NULLIF ( + - CAST( NULL AS SIGNED ), - 43 + - 56 ) col1, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8207
SELECT ALL - NULLIF ( + - CAST ( NULL AS INTEGER ), - 43 + - 56 ) col1, 14
----
NULL
14

query I rowsort
SELECT ALL 75 + - + 28
----
47

query I rowsort
SELECT DISTINCT - 7 - - ( + 70 ) + + - 10
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8210
SELECT ALL - COALESCE ( CAST( - + COUNT( DISTINCT - + 51 ) AS SIGNED ), 81 DIV 10 * + NULLIF ( + MIN( 69 ), - 74 ) * + 52 * - 11 * - 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - COALESCE ( CAST ( - + COUNT ( DISTINCT - + 51 ) AS INTEGER ), 81 / 10 * + NULLIF ( + MIN ( 69 ), - 74 ) * + 52 * - 11 * - 62 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL - 62 * MAX( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - 62 * MAX ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8212
SELECT 96 + 50 - + COUNT( * ) DIV - 53
----
146

skipif mysql # not compatible
query I rowsort label-8212
SELECT 96 + 50 - + COUNT ( * ) / - 53
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT ALL - 89 - CAST( + 38 AS SIGNED ) AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - 89 - CAST ( + 38 AS INTEGER ) AS col1
----
-127

query I rowsort
SELECT 67 * + - 59
----
-3953

query I rowsort
SELECT 3 * - 8
----
-24

query I rowsort
SELECT DISTINCT - 80 * - + 94 * 96 AS col2
----
721920

query I rowsort
SELECT + 55 * - 4 + - 22
----
-242

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT COUNT( * ) AS col1, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-8218
SELECT COUNT ( * ) AS col1, 56
----
1
56

query I rowsort
SELECT ALL + 17 * + + ( - 11 ) AS col0
----
-187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8220
SELECT COUNT( * ) DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT COUNT ( * ) / 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8221
SELECT 93 * 69 * + 32, 58 DIV - 32 - + 35 + - MIN( - 96 ) * - MAX( - 85 ) * + 98 + + - 73 col1
----
205344
799571

skipif mysql # not compatible
query II rowsort label-8221
SELECT 93 * 69 * + 32, 58 / - 32 - + 35 + - MIN ( - 96 ) * - MAX ( - 85 ) * + 98 + + - 73 col1
----
205344
799571

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT 96 + NULLIF ( - - 27, COUNT( * ) * + 86 - 0 ) * COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-8222
SELECT 96 + NULLIF ( - - 27, COUNT ( * ) * + 86 - 0 ) * COUNT ( * )
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT DISTINCT - COUNT( * ), + MAX( ALL + ( + + 5 ) ) * ( - 44 ) AS col0
----
-1
-220

skipif mysql # not compatible
query II rowsort label-8223
SELECT DISTINCT - COUNT ( * ), + MAX ( ALL + ( + + 5 ) ) * ( - 44 ) AS col0
----
-1
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL - 17 * COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - 17 * COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT ( - CASE - COALESCE ( + 95, 45 / + 4 + + 98, + 46 ) WHEN + 49 THEN 48 * - + AVG ( DISTINCT - 32 ) + - - 65 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT - + SUM( DISTINCT - 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT - + SUM ( DISTINCT - 97 ) AS col0
----
97

query I rowsort
SELECT DISTINCT - ( + 56 )
----
-56

query I rowsort
SELECT ALL - - 67 AS col2
----
67

query I rowsort
SELECT 67 * - 91
----
-6097

query II rowsort
SELECT ALL 66, + 53 + + 87 * - - 80 col2
----
66
7013

query I rowsort
SELECT + - 94 * 79 + - 54 + - 63
----
-7543

query I rowsort
SELECT - - ( + + 44 ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT + - CAST( NULL AS SIGNED ) + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT + - CAST ( NULL AS INTEGER ) + 60 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 26 + - - 52 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + COUNT( * ) * - + 39 + - MAX( - 51 ) * - CASE + 12 WHEN 63 THEN ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + COUNT ( * ) * - + 39 + - MAX ( - 51 ) * - CASE + 12 WHEN 63 THEN ( COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8236
SELECT ALL - + 46 + COALESCE ( + - 61, - + NULLIF ( - 86, - COUNT( * ) * SUM( - + 99 ) * + - 15 * - + 37 * + + 45 + - 16 ) DIV 15 )
----
-107

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - + 46 + COALESCE ( + - 61, - + NULLIF ( - 86, - COUNT ( * ) * SUM ( - + 99 ) * + - 15 * - + 37 * + + 45 + - 16 ) / 15 )
----
-107

query II rowsort
SELECT DISTINCT 18 AS col0, - 97
----
18
-97

query I rowsort
SELECT ALL 53 + + 67 AS col2
----
120

query I rowsort
SELECT + 23 + - 52
----
-29

query I rowsort
SELECT DISTINCT + NULLIF ( - + 33, 56 ) + - 1
----
-34

query II rowsort
SELECT + + 67 + - 40 * - 79 AS col0, 6 * 1 AS col1
----
3227
6

query I rowsort
SELECT + - 92 + + 4 * + - 46 AS col1
----
-276

query I rowsort
SELECT ALL + 86 + - 92
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8244
SELECT + 99 * + - 27, COUNT( * ) AS col2
----
-2673
1

skipif mysql # not compatible
query II rowsort label-8244
SELECT + 99 * + - 27, COUNT ( * ) AS col2
----
-2673
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT ALL 11 DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL 11 / + - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8246
SELECT + COUNT( * ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT + COUNT ( * ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - 99 + - + COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-8247
SELECT - 99 + - + COUNT ( * )
----
-100

query I rowsort
SELECT ALL 5 - + - ( - - 12 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8249
SELECT DISTINCT 34 - 13 col0, 21 * + COUNT( * ) AS col1
----
21
21

skipif mysql # not compatible
query II rowsort label-8249
SELECT DISTINCT 34 - 13 col0, 21 * + COUNT ( * ) AS col1
----
21
21

query I rowsort
SELECT ( 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT ALL - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - 53 + + 63 * + 75 - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 53 + + 63 * + 75 - - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT + 63 + + ( - - COUNT( * ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8252
SELECT + 63 + + ( - - COUNT ( * ) ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT ALL 69 * + CASE CAST( NULL AS SIGNED ) WHEN - 5 * + MAX( ALL - + 45 ) THEN 6 * - - SUM( ALL - 76 ) * 30 WHEN - - MAX( ALL + ( + 89 ) ) * 36 / 99 THEN + COUNT( * ) WHEN + 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL 69 * + CASE CAST ( NULL AS INTEGER ) WHEN - 5 * + MAX ( ALL - + 45 ) THEN 6 * - - SUM ( ALL - 76 ) * 30 WHEN - - MAX ( ALL + ( + 89 ) ) * 36 / 99 THEN + COUNT ( * ) WHEN + 57 THEN NULL END
----
NULL

query I rowsort
SELECT ( + - 55 )
----
-55

query I rowsort
SELECT - 33 * + 8
----
-264

query I rowsort
SELECT ( + 19 ) AS col1
----
19

query II rowsort
SELECT ALL + CASE + ( - + ( 13 ) ) WHEN - - NULLIF ( + 4, - 30 * + + 55 - + COALESCE ( + ( - 64 ), 71 * + + 35 ) ) + - ( - + 65 ) * + 99 THEN + 93 END, + 9 col0
----
NULL
9

query I rowsort
SELECT - 9 + + 60 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL + ( MIN( ALL 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL + ( MIN ( ALL 9 ) )
----
9

query I rowsort
SELECT + ( 64 )
----
64

query I rowsort
SELECT - 85 + - 12 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL + COUNT( ALL - 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + COUNT ( ALL - 43 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - 97 * COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8263
SELECT - 97 * COUNT ( * ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT NULLIF ( 64, + COUNT( * ) * - COUNT( * ) * + COUNT( * ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8264
SELECT NULLIF ( 64, + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) ) AS col1
----
64

query I rowsort
SELECT ALL + 83 col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT - + COUNT( DISTINCT 78 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT - + COUNT ( DISTINCT 78 ) + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT + NULLIF ( + - CAST( NULL AS SIGNED ), - ( 15 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT + NULLIF ( + - CAST ( NULL AS INTEGER ), - ( 15 ) )
----
NULL

query I rowsort
SELECT ALL - - 5 * - 67 + 26
----
-309

query II rowsort
SELECT - - 53 - - - 62, + 73 col0
----
-9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT - MAX( + - 11 ) * 92 col1
----
1012

skipif mysql # not compatible
query I rowsort label-8270
SELECT - MAX ( + - 11 ) * 92 col1
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT - 94 * + + COUNT( * ) + - 49 + - 38
----
-181

skipif mysql # not compatible
query I rowsort label-8271
SELECT - 94 * + + COUNT ( * ) + - 49 + - 38
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT - 33 * + 69 + + - MIN( - 67 ) + 41 + 80
----
-2089

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT - 33 * + 69 + + - MIN ( - 67 ) + 41 + 80
----
-2089

query I rowsort
SELECT ALL + 76 + 2 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - - 71 * - COUNT( DISTINCT + + 7 )
----
-71

skipif mysql # not compatible
query I rowsort label-8274
SELECT - - 71 * - COUNT ( DISTINCT + + 7 )
----
-71

query I rowsort
SELECT ALL NULLIF ( - 56, + 66 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + COUNT( * ) - + COUNT( - - 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8276
SELECT + COUNT ( * ) - + COUNT ( - - 63 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT - CAST( + 12 AS SIGNED ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-8277
SELECT - CAST ( + 12 AS INTEGER ) col0
----
-12

query I rowsort
SELECT ALL + 16 + - 32 - + 99 * 79 AS col1
----
-7837

query I rowsort
SELECT - 73 * ( - 55 ) AS col0
----
4015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT + CASE - 18 WHEN + - 76 THEN NULL WHEN + 88 * - + 78 * - + CASE + - 60 WHEN 28 + + + 30 * + - 57 + + + 50 / - 65 * - CAST( NULL AS SIGNED ) + ( - + 51 ) * + 33 THEN NULL ELSE - MAX( ALL + 42 ) * + 64 + SUM( + - 1 ) + 18 * - 67 END - - CASE + 83 WHEN + 95 THEN - - 40 * COUNT( * ) END THEN - - 56 WHEN + - 87 THEN 59 * 21 + - 56 END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT + CASE - 18 WHEN + - 76 THEN NULL WHEN + 88 * - + 78 * - + CASE + - 60 WHEN 28 + + + 30 * + - 57 + + + 50 / - 65 * - CAST ( NULL AS INTEGER ) + ( - + 51 ) * + 33 THEN NULL ELSE - MAX ( ALL + 42 ) * + 64 + SUM ( + - 1 ) + 18 * - 67 END - - CASE + 83 WHEN + 95 THEN - - 40 * COUNT ( * ) END THEN - - 56 WHEN + - 87 THEN 59 * 21 + - 56 END * 85
----
NULL

query I rowsort
SELECT ALL 87 * - 99 col1
----
-8613

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8282
SELECT + ( + CAST( + 0 AS SIGNED ) ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT + ( + CAST ( + 0 AS INTEGER ) ) / - 9
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8283
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 55 AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-8283
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 55 AS col2
----
NULL
-55

query I rowsort
SELECT DISTINCT + 7 - + 47
----
-40

query I rowsort
SELECT - ( + + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL 69 * + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 69 * + COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8287
SELECT DISTINCT 77, - COUNT( * ) AS col0
----
77
-1

skipif mysql # not compatible
query II rowsort label-8287
SELECT DISTINCT 77, - COUNT ( * ) AS col0
----
77
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8288
SELECT + 16 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT + 16 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( 23 ) + 35 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT + 33 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT + 33 / - 87
----
0

query I rowsort
SELECT 35 * + 40 + - 94 + - 25 + - - ( - 97 ) AS col2
----
1184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT CAST( - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-8292
SELECT CAST ( - 69 AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8293
SELECT ALL - ( 11 ) DIV - 4 + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - ( 11 ) / - 4 + COUNT ( * ) AS col2
----
3

query I rowsort
SELECT 63 * - - 21 + + 92 AS col2
----
1415

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT COUNT( * ) * + + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT COUNT ( * ) * + + 40 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT DISTINCT 58 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT 58 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 63 + - 73 AS col2
----
-136

query I rowsort
SELECT 57 * - - 64 + 17
----
3665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT - - CAST( NULL AS SIGNED ) * ( - CAST( NULL AS SIGNED ) ) + - 43 + - 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT - - CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) + - 43 + - 45 col0
----
NULL

query II rowsort
SELECT + + 43, - 93 AS col1
----
43
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT + NULLIF ( - 13, - + ( + MAX( DISTINCT + 15 ) ) ), + 84 AS col1
----
-13
84

skipif mysql # not compatible
query II rowsort label-8301
SELECT + NULLIF ( - 13, - + ( + MAX ( DISTINCT + 15 ) ) ), + 84 AS col1
----
-13
84

query I rowsort
SELECT 45 + 89
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT DISTINCT + - 21 DIV - + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + - 21 / - + 92 AS col0
----
0

query I rowsort
SELECT ALL - + 59 + + 16 AS col1
----
-43

query I rowsort
SELECT DISTINCT - - 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + COUNT( * ) * COUNT( * ) - - 5 + + 65 * 69 + 81
----
4572

skipif mysql # not compatible
query I rowsort label-8306
SELECT + COUNT ( * ) * COUNT ( * ) - - 5 + + 65 * 69 + 81
----
4572

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT DISTINCT + 78 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT + 78 / - 91 AS col0
----
0

query I rowsort
SELECT - 48 * + + 7
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT - 58 + CAST( 82 AS SIGNED ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8309
SELECT - 58 + CAST ( 82 AS INTEGER ) AS col2
----
24

query II rowsort
SELECT - 97, 87 AS col1
----
-97
87

query I rowsort
SELECT + 41 - - 97 * 48 + - + 13 AS col0
----
4684

query I rowsort
SELECT DISTINCT + + 66 * 33
----
2178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8313
SELECT COUNT( * ) + - 87 + 22 DIV 11 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8313
SELECT COUNT ( * ) + - 87 + 22 / 11 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT + ( - COALESCE ( - COUNT( * ), + 93, - 65 + + 5, 40 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8314
SELECT + ( - COALESCE ( - COUNT ( * ), + 93, - 65 + + 5, 40 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + NULLIF ( COUNT( * ), 45 / CASE COALESCE ( + NULLIF ( + COUNT( * ), - NULLIF ( + 22, + NULLIF ( - 89, - 14 ) ) ), + 88 ) WHEN - 7 THEN - - COUNT( * ) ELSE NULL END ) - - SUM( 95 )
----
96

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + NULLIF ( COUNT ( * ), 45 / CASE COALESCE ( + NULLIF ( + COUNT ( * ), - NULLIF ( + 22, + NULLIF ( - 89, - 14 ) ) ), + 88 ) WHEN - 7 THEN - - COUNT ( * ) ELSE NULL END ) - - SUM ( 95 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT 77 + MIN( DISTINCT - 79 ) * + - CASE + 60 WHEN + + 10 * 85 / + 64 THEN - 5 WHEN + 84 * 41 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT 77 + MIN ( DISTINCT - 79 ) * + - CASE + 60 WHEN + + 10 * 85 / + 64 THEN - 5 WHEN + 84 * 41 THEN COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 14, 94 + 26 AS col2
----
14
120

query II rowsort
SELECT 87 + 6 * ( + 42 ) AS col1, - 7 AS col1
----
339
-7

query I rowsort
SELECT 6 + 63
----
69

query II rowsort
SELECT DISTINCT 78, 39 AS col2
----
78
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT 80 * - - ( 77 ) * - - 98 + - COUNT( * ) col1
----
603679

skipif mysql # not compatible
query I rowsort label-8321
SELECT 80 * - - ( 77 ) * - - 98 + - COUNT ( * ) col1
----
603679

query II rowsort
SELECT COALESCE ( - - 45, + ( - 78 ) ) * ( + 11 ) + + - 63 - - - 11 + ( + - ( 93 ) ), + 28 AS col2
----
328
28

query II rowsort
SELECT - 82 AS col1, + 51
----
-82
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT NULLIF ( - + 86, + + 15 ) * + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT NULLIF ( - + 86, + + 15 ) * + - COUNT ( * ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8325
SELECT ALL - 4 + - 17 * + - CAST( + 27 AS SIGNED ), - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
455
NULL

skipif mysql # not compatible
query II rowsort label-8325
SELECT ALL - 4 + - 17 * + - CAST ( + 27 AS INTEGER ), - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
455
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8326
SELECT ALL - 92 AS col2, CAST( NULL AS SIGNED ) * + 45
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-8326
SELECT ALL - 92 AS col2, CAST ( NULL AS INTEGER ) * + 45
----
-92
NULL

query I rowsort
SELECT ALL 32 + + 77
----
109

query II rowsort
SELECT + 4, - 78 AS col2
----
4
-78

query II rowsort
SELECT + 5, 81 AS col2
----
5
81

query I rowsort
SELECT ALL ( - 20 ) + - + 34 * 56 col1
----
-1924

query II rowsort
SELECT 36 AS col2, + ( + 55 ) AS col2
----
36
55

query I rowsort
SELECT + COALESCE ( + 36, 54 ) AS col0
----
36

query II rowsort
SELECT ALL - + 56 AS col0, - 35
----
-56
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - COUNT( * ) * 31 + - - 86 * 50
----
4269

skipif mysql # not compatible
query I rowsort label-8334
SELECT - COUNT ( * ) * 31 + - - 86 * 50
----
4269

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT COUNT( * ) * CASE - 29 WHEN + AVG ( DISTINCT - NULLIF ( 17, + + 45 + - - 21 ) ) THEN - 64 + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT COUNT ( * ) * CASE - 29 WHEN + AVG ( DISTINCT - NULLIF ( 17, + + 45 + - - 21 ) ) THEN - 64 + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT DISTINCT - SUM( - CAST( - + 71 AS SIGNED ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - SUM ( - CAST ( - + 71 AS INTEGER ) ) AS col1
----
-71

query I rowsort
SELECT ALL + 31 + 50
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT DISTINCT - 73 DIV + ( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - 73 / + ( - 46 )
----
1

query I rowsort
SELECT DISTINCT 92 + + 90 AS col2
----
182

query II rowsort
SELECT 91 col1, 46 * + 13 - ( + 80 ) AS col0
----
91
518

query I rowsort
SELECT DISTINCT - + CASE + + 40 WHEN 24 + 30 THEN NULL WHEN + 53 THEN - + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT 59 - + - COUNT( * ) + + + 79 - + 2 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT 59 - + - COUNT ( * ) + + + 79 - + 2 AS col0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8343
SELECT ALL 63 - - 26 - + + CAST( NULL AS SIGNED ) * + + 59 AS col1, 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-8343
SELECT ALL 63 - - 26 - + + CAST ( NULL AS INTEGER ) * + + 59 AS col1, 93
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - 46 * 87 * + 54 * + - COUNT( * ) + + - 49 AS col0
----
216059

skipif mysql # not compatible
query I rowsort label-8344
SELECT - 46 * 87 * + 54 * + - COUNT ( * ) + + - 49 AS col0
----
216059

query I rowsort
SELECT 62 + + - 3 AS col1
----
59

query II rowsort
SELECT DISTINCT 59 AS col1, 19
----
59
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8347
SELECT CAST( NULL AS SIGNED ) * + 27, - 88 AS col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-8347
SELECT CAST ( NULL AS INTEGER ) * + 27, - 88 AS col0
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL + 75 - + COUNT( * ) col1
----
74

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + 75 - + COUNT ( * ) col1
----
74

query I rowsort
SELECT - ( + - 77 ) AS col0
----
77

query I rowsort
SELECT 90 - + + 60 AS col2
----
30

query I rowsort
SELECT ALL - 34 * ( + 95 ) * + - 19
----
61370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT 96 * CASE + COALESCE ( - - 8, - COALESCE ( - COALESCE ( 74, + CAST( - 7 AS SIGNED ) ), - 43 ) ) WHEN + 87 + - 35 + + 35 THEN - 25 + + CASE + 37 WHEN + CASE - 60 WHEN + COUNT( * ) THEN NULL ELSE SUM( - + 8 ) END THEN NULL WHEN - 57 THEN + COUNT( * ) * + - 54 END / - 95 * + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT 96 * CASE + COALESCE ( - - 8, - COALESCE ( - COALESCE ( 74, + CAST ( - 7 AS INTEGER ) ), - 43 ) ) WHEN + 87 + - 35 + + 35 THEN - 25 + + CASE + 37 WHEN + CASE - 60 WHEN + COUNT ( * ) THEN NULL ELSE SUM ( - + 8 ) END THEN NULL WHEN - 57 THEN + COUNT ( * ) * + - 54 END / - 95 * + 52 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT ALL 46 / - 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL 46 / - 62 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - SUM( - NULLIF ( 82, - - 27 * + 81 + - - 30 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8354
SELECT - SUM ( - NULLIF ( 82, - - 27 * + 81 + - - 30 ) ) AS col1
----
82

query I rowsort
SELECT ( + + 36 ) - 94 - - 64 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL SUM( DISTINCT - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL SUM ( DISTINCT - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT DISTINCT COUNT( * ) * - - MAX( - 32 ) AS col2, NULLIF ( - 37, + 70 / + 4 ) + - ( - 78 )
----
-32
41

skipif mysql # not compatible
query II rowsort label-8357
SELECT DISTINCT COUNT ( * ) * - - MAX ( - 32 ) AS col2, NULLIF ( - 37, + 70 / + 4 ) + - ( - 78 )
----
-32
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT 12 - - + 42 + - ( - COUNT( ALL - 16 ) ) + - COUNT( * ) + - MIN( ALL - 37 ) * - COUNT( * ) * + SUM( ALL 12 ) * - MIN( - 83 )
----
-36798

skipif mysql # not compatible
query I rowsort label-8358
SELECT 12 - - + 42 + - ( - COUNT ( ALL - 16 ) ) + - COUNT ( * ) + - MIN ( ALL - 37 ) * - COUNT ( * ) * + SUM ( ALL 12 ) * - MIN ( - 83 )
----
-36798

query I rowsort
SELECT ALL + 72 + 0 - + 34 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT - COALESCE ( ( + 99 ), - COUNT( * ), 45 + - - 10 ) + - + 16 - + + ( + + 38 ) col0
----
-153

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT - COALESCE ( ( + 99 ), - COUNT ( * ), 45 + - - 10 ) + - + 16 - + + ( + + 38 ) col0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-8361
SELECT ALL - 0 + + + COUNT( * ) * - - 95 AS col2, + 30 AS col2
----
95
30

skipif mysql # not compatible
query II rowsort label-8361
SELECT ALL - 0 + + + COUNT ( * ) * - - 95 AS col2, + 30 AS col2
----
95
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT DISTINCT SUM( ALL 12 ), + 89 AS col2
----
12
89

skipif mysql # not compatible
query II rowsort label-8362
SELECT DISTINCT SUM ( ALL 12 ), + 89 AS col2
----
12
89

query I rowsort
SELECT - - 41 + - - 41
----
82

query I rowsort
SELECT ALL - 72 * - 14 * - + 38 + + + 6 AS col1
----
-38298

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT COALESCE ( 55, + MAX( DISTINCT + 83 ) * 69 * - + 99 )
----
55

skipif mysql # not compatible
query I rowsort label-8365
SELECT COALESCE ( 55, + MAX ( DISTINCT + 83 ) * 69 * - + 99 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL - + 88 * - 61 * - COUNT( * )
----
-5368

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL - + 88 * - 61 * - COUNT ( * )
----
-5368

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL ( - 73 ) * + + 25 + - 64 + - + NULLIF ( + 4, + ( COUNT( * ) ) ) * - + COUNT( * ) * COUNT( * ) AS col2
----
-1885

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL ( - 73 ) * + + 25 + - 64 + - + NULLIF ( + 4, + ( COUNT ( * ) ) ) * - + COUNT ( * ) * COUNT ( * ) AS col2
----
-1885

query I rowsort
SELECT DISTINCT + + 85
----
85

query I rowsort
SELECT + 78 + + 3
----
81

query I rowsort
SELECT DISTINCT + - 52 AS col1
----
-52

query I rowsort
SELECT + - 34 * - 99
----
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT ALL - NULLIF ( - 98, + 13 * + 61 + - 66 + + 76 ) DIV 29 col2
----
3

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - NULLIF ( - 98, + 13 * + 61 + - 66 + + 76 ) / 29 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT + CASE - 83 WHEN + COALESCE ( 65, - CASE - 64 WHEN 40 THEN + 71 + + - 6 WHEN - + 61 / 25 THEN NULL ELSE + COUNT( * ) END, - COUNT( DISTINCT - 3 ) ) * + 36 THEN NULL ELSE + 11 END
----
11

skipif mysql # not compatible
query I rowsort label-8373
SELECT + CASE - 83 WHEN + COALESCE ( 65, - CASE - 64 WHEN 40 THEN + 71 + + - 6 WHEN - + 61 / 25 THEN NULL ELSE + COUNT ( * ) END, - COUNT ( DISTINCT - 3 ) ) * + 36 THEN NULL ELSE + 11 END
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT + + 59 * CAST( - 37 AS SIGNED )
----
-2183

skipif mysql # not compatible
query I rowsort label-8374
SELECT + + 59 * CAST ( - 37 AS INTEGER )
----
-2183

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8375
SELECT ALL - 84 / COUNT( * ) * + ( + 3 ) * - - CAST( NULL AS DECIMAL ) + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL - 84 / COUNT ( * ) * + ( + 3 ) * - - CAST ( NULL AS REAL ) + - 33 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 31 ) * 95
----
-2945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT + 67 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT + 67 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8378
SELECT ALL - + 20 DIV + COUNT( * ) + 46 - 66 * + NULLIF ( - 98, - CAST( + 24 AS DECIMAL ) + + - 8 ) AS col1
----
6494

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - + 20 / + COUNT ( * ) + 46 - 66 * + NULLIF ( - 98, - CAST ( + 24 AS REAL ) + + - 8 ) AS col1
----
6494

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL 10 * - MIN( DISTINCT + + 68 ) + + 19 AS col1
----
-661

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL 10 * - MIN ( DISTINCT + + 68 ) + + 19 AS col1
----
-661

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8380
SELECT + CASE + CAST( NULL AS DECIMAL ) WHEN + + 37 * - - 32 * + 33 THEN - + 0 * + 10 * 38 END * NULLIF ( COUNT( - 35 ), + 43 ) col2, + 8 + + ( + COUNT( * ) ) * 42 * - 89 AS col0
----
NULL
-3730

skipif mysql # not compatible
query II rowsort label-8380
SELECT + CASE + CAST ( NULL AS REAL ) WHEN + + 37 * - - 32 * + 33 THEN - + 0 * + 10 * 38 END * NULLIF ( COUNT ( - 35 ), + 43 ) col2, + 8 + + ( + COUNT ( * ) ) * 42 * - 89 AS col0
----
NULL
-3730

query I rowsort
SELECT ALL 20 * - 28 + - + 74 AS col1
----
-634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT + - CAST( 62 AS SIGNED ) + - + 40 + - 70 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-8382
SELECT + - CAST ( 62 AS INTEGER ) + - + 40 + - 70 AS col0
----
-172

query I rowsort
SELECT DISTINCT + + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + CASE 85 WHEN - SUM( - 58 ) THEN 63 + + - 23 + - 83 ELSE - 77 END
----
-77

skipif mysql # not compatible
query I rowsort label-8384
SELECT + CASE 85 WHEN - SUM ( - 58 ) THEN 63 + + - 23 + - 83 ELSE - 77 END
----
-77

query I rowsort
SELECT + 99 + - - 9 AS col0
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT ALL 5 * - + 70 * + 48 DIV - COUNT( * ) DIV + COUNT( * ) AS col1
----
16800

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL 5 * - + 70 * + 48 / - COUNT ( * ) / + COUNT ( * ) AS col1
----
16800

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT + 11 * MIN( ALL + 25 ) AS col1, + COUNT( DISTINCT + - 9 ) AS col1
----
275
1

skipif mysql # not compatible
query II rowsort label-8387
SELECT + 11 * MIN ( ALL + 25 ) AS col1, + COUNT ( DISTINCT + - 9 ) AS col1
----
275
1

query I rowsort
SELECT + 16 * 55
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT + 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8389
SELECT + 28 + + COUNT ( * )
----
29

query II rowsort
SELECT ALL 68 AS col2, 56 * + 98
----
68
5488

query I rowsort
SELECT + ( - ( 67 ) ) + + 87 * - ( 65 ) * 3
----
-17032

query I rowsort
SELECT - 10 - 70 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT - 21, 41 * + MIN( DISTINCT + 32 ) AS col0
----
-21
1312

skipif mysql # not compatible
query II rowsort label-8393
SELECT - 21, 41 * + MIN ( DISTINCT + 32 ) AS col0
----
-21
1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT CAST( NULL AS SIGNED ) * + 95 * - 82 + 43 + AVG ( ALL + - 28 ) + 38 * + 9 + + - COUNT( * ) + + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT CAST ( NULL AS INTEGER ) * + 95 * - 82 + 43 + AVG ( ALL + - 28 ) + 38 * + 9 + + - COUNT ( * ) + + 14 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8395
SELECT ALL 92 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL 92 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL SUM( DISTINCT - - 12 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL SUM ( DISTINCT - - 12 ) col0
----
12

query I rowsort
SELECT + 74 + 1 AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT - ( - ( - - COUNT( * ) ) ) AS col1, - 60 * + 15 * + 66
----
1
-59400

skipif mysql # not compatible
query II rowsort label-8398
SELECT - ( - ( - - COUNT ( * ) ) ) AS col1, - 60 * + 15 * + 66
----
1
-59400

query II rowsort
SELECT ALL 33 AS col0, 58 AS col2
----
33
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL - COUNT( * ) + 29
----
28

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - COUNT ( * ) + 29
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + 50 + + COUNT( * ) * 58
----
108

skipif mysql # not compatible
query I rowsort label-8401
SELECT + 50 + + COUNT ( * ) * 58
----
108

query I rowsort
SELECT ALL 56 + - - 56
----
112

query I rowsort
SELECT - 27 + 72 AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT ALL ( 30 ) + + 94 AS col2, COUNT( * )
----
124
1

skipif mysql # not compatible
query II rowsort label-8404
SELECT ALL ( 30 ) + + 94 AS col2, COUNT ( * )
----
124
1

query I rowsort
SELECT - ( - - 91 )
----
-91

query I rowsort
SELECT - 20 * 75 AS col0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT DISTINCT - 95 * CASE 50 WHEN 21 * + ( - + 53 ) THEN + 44 ELSE + COUNT( * ) END
----
-95

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT - 95 * CASE 50 WHEN 21 * + ( - + 53 ) THEN + 44 ELSE + COUNT ( * ) END
----
-95

query I rowsort
SELECT + 91 * + ( - 66 )
----
-6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8409
SELECT - COUNT( * ) * + + 17 * - ( 23 ) + + 9 + - COUNT( * ) DIV 21 + - - 96 * COUNT( * ) - - - 76 AS col1
----
420

skipif mysql # not compatible
query I rowsort label-8409
SELECT - COUNT ( * ) * + + 17 * - ( 23 ) + + 9 + - COUNT ( * ) / 21 + - - 96 * COUNT ( * ) - - - 76 AS col1
----
420

query I rowsort
SELECT DISTINCT + 73 * CASE 17 WHEN - 90 THEN + - 50 * + - 27 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT - 35 * COALESCE ( - - ( CAST( NULL AS SIGNED ) ), + 12 ) * + - 66 + - COUNT( * ) * + + MAX( ALL - 79 ) col1
----
27799

skipif mysql # not compatible
query I rowsort label-8411
SELECT - 35 * COALESCE ( - - ( CAST ( NULL AS INTEGER ) ), + 12 ) * + - 66 + - COUNT ( * ) * + + MAX ( ALL - 79 ) col1
----
27799

query I rowsort
SELECT DISTINCT + + 74 AS col1
----
74

query II rowsort
SELECT ALL + 30 AS col1, 20 * - 63 + - COALESCE ( - 14, + 77 ) + - 39
----
30
-1285

query II rowsort
SELECT - 42 AS col2, 53
----
-42
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8415
SELECT ALL - COUNT( * ) DIV - 92 - + + 59 AS col0, - 51
----
-59
-51

skipif mysql # not compatible
query II rowsort label-8415
SELECT ALL - COUNT ( * ) / - 92 - + + 59 AS col0, - 51
----
-59
-51

query I rowsort
SELECT + - 43 * + 81
----
-3483

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - - COUNT( * ) * - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8417
SELECT - - COUNT ( * ) * - 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT + COALESCE ( - 27, - - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-8418
SELECT + COALESCE ( - 27, - - COUNT ( * ) )
----
-27

query III rowsort
SELECT + 98 * + 58 * ( - + 57 ) AS col1, - 78 + + 67, 35 col2
----
-323988
-11
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - 37 * + - 33 * + COUNT( + 17 ) * 87 AS col2
----
106227

skipif mysql # not compatible
query I rowsort label-8420
SELECT - 37 * + - 33 * + COUNT ( + 17 ) * 87 AS col2
----
106227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT - - CASE + - 56 WHEN - - COUNT( * ) + - 49 * - + 24 THEN ( 64 ) * + - 16 * - + COUNT( * ) + - 12 * - + COALESCE ( - - 3, CAST( NULL AS SIGNED ), - - 83 ) + - COUNT( * ) ELSE + 15 END * + 53
----
795

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - - CASE + - 56 WHEN - - COUNT ( * ) + - 49 * - + 24 THEN ( 64 ) * + - 16 * - + COUNT ( * ) + - 12 * - + COALESCE ( - - 3, CAST ( NULL AS INTEGER ), - - 83 ) + - COUNT ( * ) ELSE + 15 END * + 53
----
795

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT - - 43 DIV 45 col1
----
0

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - - 43 / 45 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8423
SELECT DISTINCT - COUNT( * ) * 53 + - 37 AS col0, - 96 AS col2
----
-90
-96

skipif mysql # not compatible
query II rowsort label-8423
SELECT DISTINCT - COUNT ( * ) * 53 + - 37 AS col0, - 96 AS col2
----
-90
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL - 38 * + 32 * - SUM( ALL + 60 )
----
72960

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - 38 * + 32 * - SUM ( ALL + 60 )
----
72960

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT + - CASE + - COUNT( * ) WHEN + - 4 THEN - 66 * COUNT( * ) WHEN - + 47 THEN - + 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + - CASE + - COUNT ( * ) WHEN + - 4 THEN - 66 * COUNT ( * ) WHEN - + 47 THEN - + 69 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT ALL + NULLIF ( - + 98, + 21 ) AS col2, MAX( DISTINCT + 36 ) * + + 21 - + + 54 - - + 7
----
-98
709

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL + NULLIF ( - + 98, + 21 ) AS col2, MAX ( DISTINCT + 36 ) * + + 21 - + + 54 - - + 7
----
-98
709

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + 76 * + + COUNT( * ) + - 21 * COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8427
SELECT + 76 * + + COUNT ( * ) + - 21 * COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8428
SELECT + COALESCE ( 66, 73 * - 84, - - 34 + + 47 DIV - - 70 * COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-8428
SELECT + COALESCE ( 66, 73 * - 84, - - 34 + + 47 / - - 70 * COUNT ( * ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL + SUM( ALL 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + SUM ( ALL 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT + - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT + - ( - + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT - COALESCE ( + + ( - 2 ), + COUNT( * ) * + 64 * + + 31 + - CAST( NULL AS SIGNED ) - + COUNT( * ) + + - 68, - 25 ) * 49
----
98

skipif mysql # not compatible
query I rowsort label-8431
SELECT - COALESCE ( + + ( - 2 ), + COUNT ( * ) * + 64 * + + 31 + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + - 68, - 25 ) * 49
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8432
SELECT - 87 + MAX( DISTINCT + ( + - 74 ) ) * SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT - 87 + MAX ( DISTINCT + ( + - 74 ) ) * SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 45 * + 91 + 65 - - 0 + 29
----
4189

query I rowsort
SELECT NULLIF ( + 52, + 88 + - 39 ) col2
----
52

query I rowsort
SELECT 99 * + 61 + 28 AS col2
----
6067

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT - ( - 71 ) DIV 64 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8436
SELECT - ( - 71 ) / 64 AS col1
----
1

query I rowsort
SELECT ALL - NULLIF ( - + 48, - - 77 ) * + - 5 * 15 * + + 40 + + ( + 47 )
----
-143953

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT 4 + + COUNT( 36 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT 4 + + COUNT ( 36 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT 25 + + ( + 95 ) + MIN( - 81 ), COUNT( * ) * COUNT( * ) + + 29 + MAX( + - 27 ) AS col1
----
39
3

skipif mysql # not compatible
query II rowsort label-8439
SELECT 25 + + ( + 95 ) + MIN ( - 81 ), COUNT ( * ) * COUNT ( * ) + + 29 + MAX ( + - 27 ) AS col1
----
39
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT 31 * 55 DIV + - 69 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8440
SELECT 31 * 55 / + - 69 AS col0
----
-24

query I rowsort
SELECT DISTINCT 50 * 82 * + - 32
----
-131200

query I rowsort
SELECT NULLIF ( - 47, - - 75 ) - - 11 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT DISTINCT CAST( NULL AS SIGNED ) - 39 + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 39 + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT COUNT( * ) * + ( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT COUNT ( * ) * + ( + 93 )
----
93

query I rowsort
SELECT ALL 79 - - - 1
----
78

query I rowsort
SELECT DISTINCT 8 - 88
----
-80

query I rowsort
SELECT DISTINCT + + 12 * - 78 AS col2
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + COUNT( * ) - 34 col2
----
-33

skipif mysql # not compatible
query I rowsort label-8448
SELECT + COUNT ( * ) - 34 col2
----
-33

query I rowsort
SELECT ALL - 53 - + - ( + 55 ) + - 91 AS col0
----
-89

query I rowsort
SELECT ALL NULLIF ( + - 61, - ( + AVG ( ALL - + 6 ) ) ) AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8451
SELECT 45 + - + 58 DIV + - 80 - + 48 - 59 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8451
SELECT 45 + - + 58 / + - 80 - + 48 - 59 + + COUNT ( * )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT 76 DIV + - 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8452
SELECT 76 / + - 51 AS col2
----
-1

query I rowsort
SELECT 20 * + 79 AS col1
----
1580

query I rowsort
SELECT DISTINCT ( - 99 ) * 75 AS col2
----
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT + MAX( ALL ( + 78 ) ) * + 14 + - 47 AS col2
----
1045

skipif mysql # not compatible
query I rowsort label-8455
SELECT + MAX ( ALL ( + 78 ) ) * + 14 + - 47 AS col2
----
1045

query I rowsort
SELECT ALL 43 * + 23 + + - 67
----
922

query I rowsort
SELECT 68 + + 96 + + 70
----
234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT + 53 DIV COUNT( DISTINCT + 91 ) - + 67
----
-14

skipif mysql # not compatible
query I rowsort label-8458
SELECT + 53 / COUNT ( DISTINCT + 91 ) - + 67
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT 99 DIV - 48 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8459
SELECT 99 / - 48 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT - COUNT( * ) * 89
----
-89

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT - COUNT ( * ) * 89
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT COUNT( * ) * - 8 AS col2, 95 * + 59 AS col0
----
-8
5605

skipif mysql # not compatible
query II rowsort label-8461
SELECT COUNT ( * ) * - 8 AS col2, 95 * + 59 AS col0
----
-8
5605

query I rowsort
SELECT ALL + 26 * + 30
----
780

onlyif mysql # aggregate syntax: 
query II rowsort label-8463
SELECT ALL 9 * + 99, - COUNT( * ) AS col2
----
891
-1

skipif mysql # not compatible
query II rowsort label-8463
SELECT ALL 9 * + 99, - COUNT ( * ) AS col2
----
891
-1

query I rowsort
SELECT DISTINCT 14 * + 27
----
378

query I rowsort
SELECT ALL - + COALESCE ( - 28, + 9 * 99 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT 25 * + COUNT( * ) + - 12
----
13

skipif mysql # not compatible
query I rowsort label-8466
SELECT 25 * + COUNT ( * ) + - 12
----
13

query I rowsort
SELECT 83 + + 42 AS col2
----
125

query I rowsort
SELECT 86 * 95 AS col2
----
8170

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8469
SELECT 12 * - 46 + - - 54, CASE + 36 WHEN 1 * - 98 * - COALESCE ( - + 29, - - 18 * - - ( - 2 ) + + + 7 ) THEN CAST( NULL AS DECIMAL ) ELSE NULL END * - - 43 col0
----
-498
NULL

skipif mysql # not compatible
query II rowsort label-8469
SELECT 12 * - 46 + - - 54, CASE + 36 WHEN 1 * - 98 * - COALESCE ( - + 29, - - 18 * - - ( - 2 ) + + + 7 ) THEN CAST ( NULL AS REAL ) ELSE NULL END * - - 43 col0
----
-498
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8470
SELECT + 11 AS col1, - 84 + 69 * + 16 * + + SUM( + 57 ) + + + 75 - + COUNT( * ) DIV - CASE COALESCE ( + SUM( DISTINCT + + 42 ), 9, + 90 ) WHEN + - 15 THEN NULL WHEN 28 THEN NULL ELSE 91 END + - 17 AS col1
----
11
62902

skipif mysql # not compatible
query II rowsort label-8470
SELECT + 11 AS col1, - 84 + 69 * + 16 * + + SUM ( + 57 ) + + + 75 - + COUNT ( * ) / - CASE COALESCE ( + SUM ( DISTINCT + + 42 ), 9, + 90 ) WHEN + - 15 THEN NULL WHEN 28 THEN NULL ELSE 91 END + - 17 AS col1
----
11
62902

query I rowsort
SELECT ALL 87 + - + 52 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL + COUNT( * ) * - + 65 * 3 AS col2
----
-195

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + COUNT ( * ) * - + 65 * 3 AS col2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT + COUNT( * ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + COUNT ( * ) + 84
----
85

query I rowsort
SELECT 21 + - 67
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8475
SELECT ALL + 13 * - CAST( 52 AS SIGNED ) AS col0, 37 AS col1
----
-676
37

skipif mysql # not compatible
query II rowsort label-8475
SELECT ALL + 13 * - CAST ( 52 AS INTEGER ) AS col0, 37 AS col1
----
-676
37

onlyif mysql # DIV for integer division: 
query III rowsort label-8476
SELECT DISTINCT - 63 AS col1, 45 DIV - 31 AS col1, + 98 * + 78 + - + 31
----
-63
-1
7613

skipif mysql # not compatible
query III rowsort label-8476
SELECT DISTINCT - 63 AS col1, 45 / - 31 AS col1, + 98 * + 78 + - + 31
----
-63
-1
7613

query I rowsort
SELECT 11 + + 98
----
109

query I rowsort
SELECT 15 * + 65 col2
----
975

query I rowsort
SELECT 21 + ( ( - + 42 ) ) * 31
----
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ( - 29 ) - - MAX( DISTINCT + 72 ) * 92
----
6595

skipif mysql # not compatible
query I rowsort label-8480
SELECT ( - 29 ) - - MAX ( DISTINCT + 72 ) * 92
----
6595

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8481
SELECT DISTINCT CAST( NULL AS DECIMAL ) - AVG ( DISTINCT - 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT CAST ( NULL AS REAL ) - AVG ( DISTINCT - 81 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT 78 * - - NULLIF ( 33, - 95 / - COUNT( * ) + + 72 ) + - - ( 94 ) AS col2
----
2668

skipif mysql # not compatible
query I rowsort label-8482
SELECT 78 * - - NULLIF ( 33, - 95 / - COUNT ( * ) + + 72 ) + - - ( 94 ) AS col2
----
2668

query I rowsort
SELECT ALL 38 * + 16
----
608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT NULLIF ( - - 57, - 6 ) * + 21 DIV + COUNT( ALL 46 )
----
1197

skipif mysql # not compatible
query I rowsort label-8484
SELECT NULLIF ( - - 57, - 6 ) * + 21 / + COUNT ( ALL 46 )
----
1197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8485
SELECT ALL + SUM( DISTINCT + + 69 ) DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + SUM ( DISTINCT + + 69 ) / - 25
----
-2

query I rowsort
SELECT ALL 55 * + 18
----
990

query I rowsort
SELECT 46 + + 44
----
90

query I rowsort
SELECT ALL 32 * + 53 * 7 * + 77 AS col2
----
914144

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT MAX( + 25 ) + - COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8489
SELECT MAX ( + 25 ) + - COUNT ( * ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8490
SELECT DISTINCT + CAST( - MAX( - 35 ) AS SIGNED ) * - + 11
----
-385

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT + CAST ( - MAX ( - 35 ) AS INTEGER ) * - + 11
----
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-8491
SELECT - COUNT( * ) AS col2, + 56 AS col0
----
-1
56

skipif mysql # not compatible
query II rowsort label-8491
SELECT - COUNT ( * ) AS col2, + 56 AS col0
----
-1
56

query I rowsort
SELECT 4 + - 86 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL COUNT( * ) * - 76 * + SUM( - 23 )
----
1748

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL COUNT ( * ) * - 76 * + SUM ( - 23 )
----
1748

query I rowsort
SELECT - + 37 AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT 80 + + 88 + + + 85 DIV + COUNT( * ) AS col0
----
253

skipif mysql # not compatible
query I rowsort label-8495
SELECT 80 + + 88 + + + 85 / + COUNT ( * ) AS col0
----
253

query I rowsort
SELECT DISTINCT 59 + + 13 - + + 80 * 19
----
-1448

query I rowsort
SELECT ALL ( - 79 ) AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT ALL - - COUNT( DISTINCT + - 64 ) * + 92 - + - 91 * 41 * - 78 + + 24 + + 64 - CAST( NULL AS SIGNED ) * 93 / 16 + + 41 * 43 - - + ( + - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - - COUNT ( DISTINCT + - 64 ) * + 92 - + - 91 * 41 * - 78 + + 24 + + 64 - CAST ( NULL AS INTEGER ) * 93 / 16 + + 41 * 43 - - + ( + - 35 )
----
NULL

query I rowsort
SELECT - 46 * + 49 AS col2
----
-2254

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT - 56 DIV - - 92 * - 67 col2
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 56 / - - 92 * - 67 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT - 13 * + 26 * + 95 + COUNT( * ) * + 99 * 73 col0
----
-24883

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - 13 * + 26 * + 95 + COUNT ( * ) * + 99 * 73 col0
----
-24883

query I rowsort
SELECT ALL 51 * - 97 + - - 85 * 37
----
-1802

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT - COUNT( * ) - + MIN( DISTINCT + 83 )
----
-84

skipif mysql # not compatible
query I rowsort label-8503
SELECT - COUNT ( * ) - + MIN ( DISTINCT + 83 )
----
-84

query I rowsort
SELECT + - 29 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT + 22 DIV ( - - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 22 / ( - - 63 )
----
0

query I rowsort
SELECT DISTINCT - - 81 * 29 + - - 60 + + 75
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL 67 * - 98 * + 9 + - - COUNT( * ) AS col2
----
-59093

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL 67 * - 98 * + 9 + - - COUNT ( * ) AS col2
----
-59093

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + NULLIF ( ( - 1 ), - - 56 + - - 56 * NULLIF ( - 96, + + 96 / + - 1 * COUNT( * ) ) * - + 18 * + + 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8508
SELECT + NULLIF ( ( - 1 ), - - 56 + - - 56 * NULLIF ( - 96, + + 96 / + - 1 * COUNT ( * ) ) * - + 18 * + + 71 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL + 91 * + COUNT( 28 ) + 71 - 79 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + 91 * + COUNT ( 28 ) + 71 - 79 AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT ALL - 8 * 82 * 70 + + CAST( + - 22 AS SIGNED )
----
-45942

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - 8 * 82 * 70 + + CAST ( + - 22 AS INTEGER )
----
-45942

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT SUM( - - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-8511
SELECT SUM ( - - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL COUNT( * ) * SUM( ALL + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL COUNT ( * ) * SUM ( ALL + 5 )
----
5

query I rowsort
SELECT - 10 - - 89 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT + COUNT( * ) AS col0, 39 + NULLIF ( + 25, + COALESCE ( - 69, - 42 + - 71, + 67 ) * + 71 * 28 )
----
1
64

skipif mysql # not compatible
query II rowsort label-8514
SELECT + COUNT ( * ) AS col0, 39 + NULLIF ( + 25, + COALESCE ( - 69, - 42 + - 71, + 67 ) * + 71 * 28 )
----
1
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT + CASE - 9 WHEN - 86 THEN - 11 WHEN - 67 * 64 / - - 32 - 75 - - COALESCE ( - - CAST( NULL AS SIGNED ), + 62 ) * + CAST( - 12 AS SIGNED ) + + 44 THEN NULL WHEN - COUNT( * ) THEN - 79 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT + CASE - 9 WHEN - 86 THEN - 11 WHEN - 67 * 64 / - - 32 - 75 - - COALESCE ( - - CAST ( NULL AS INTEGER ), + 62 ) * + CAST ( - 12 AS INTEGER ) + + 44 THEN NULL WHEN - COUNT ( * ) THEN - 79 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8516
SELECT + 74 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT + 74 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 29 col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT MAX( + + 92 ) AS col1, 35
----
92
35

skipif mysql # not compatible
query II rowsort label-8518
SELECT MAX ( + + 92 ) AS col1, 35
----
92
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8519
SELECT DISTINCT - 36 - + - CASE + + 58 WHEN - NULLIF ( CAST( NULL AS DECIMAL ), - 73 ) + + 31 + 28 + 43 + ( + 14 ) - + 26 * 65 * - COUNT( * ) THEN NULL WHEN 66 THEN 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT - 36 - + - CASE + + 58 WHEN - NULLIF ( CAST ( NULL AS REAL ), - 73 ) + + 31 + 28 + 43 + ( + 14 ) - + 26 * 65 * - COUNT ( * ) THEN NULL WHEN 66 THEN 36 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8520
SELECT ALL + ( + 56 ) * CAST( - MIN( + 16 ) AS SIGNED ) + + - MAX( - - 74 )
----
-970

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL + ( + 56 ) * CAST ( - MIN ( + 16 ) AS INTEGER ) + + - MAX ( - - 74 )
----
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT DISTINCT 32 - 59 * - - COALESCE ( + CAST( NULL AS SIGNED ), + 90 + + - 95 * - + 68 ) + - + 57 AS col2
----
-386475

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT 32 - 59 * - - COALESCE ( + CAST ( NULL AS INTEGER ), + 90 + + - 95 * - + 68 ) + - + 57 AS col2
----
-386475

query II rowsort
SELECT - 40, + 2 AS col1
----
-40
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL NULLIF ( - 77, - COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL NULLIF ( - 77, - COUNT ( * ) )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT DISTINCT COUNT( * ) AS col1, - 30 col1
----
1
-30

skipif mysql # not compatible
query II rowsort label-8524
SELECT DISTINCT COUNT ( * ) AS col1, - 30 col1
----
1
-30

query II rowsort
SELECT ALL + 82 * - 59 AS col1, 11 + + 1 - 91
----
-4838
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL COUNT( + ( ( + 98 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL COUNT ( + ( ( + 98 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT - ( - + COUNT( * ) ) * 24 + + 12 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - ( - + COUNT ( * ) ) * 24 + + 12 AS col0
----
36

query I rowsort
SELECT - 26 - - 55 + + ( 39 ) * - 54
----
-2077

query I rowsort
SELECT - ( + 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT ALL + 93, - 12 + + - COUNT( * ) AS col1
----
93
-13

skipif mysql # not compatible
query II rowsort label-8531
SELECT ALL + 93, - 12 + + - COUNT ( * ) AS col1
----
93
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8532
SELECT ALL - 12 / AVG ( DISTINCT - - ( + CAST( NULL AS DECIMAL ) ) ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL - 12 / AVG ( DISTINCT - - ( + CAST ( NULL AS REAL ) ) ) * - 74
----
NULL

query I rowsort
SELECT ALL - ( + 83 ) + + + 78
----
-5

query I rowsort
SELECT DISTINCT ( - - 64 ) AS col1
----
64

query II rowsort
SELECT - + 31 * 43 AS col2, 68 AS col2
----
-1333
68

query I rowsort
SELECT ALL 48 + + 0 + - 72 + + 87 + 12
----
75

query I rowsort
SELECT - 17 - + + ( - 59 ) AS col2
----
42

query II rowsort
SELECT ALL + 72 AS col1, - 43 AS col2
----
72
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), 29 ) - + ( + 71 ) + - 65 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), 29 ) - + ( + 71 ) + - 65 / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT - 75 + CAST( NULL AS SIGNED ) + + - 98 + + COALESCE ( COALESCE ( + + 77, - 92 * + 97 ), + - 81 + 55 * + 82 - 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 75 + CAST ( NULL AS INTEGER ) + + - 98 + + COALESCE ( COALESCE ( + + 77, - 92 * + 97 ), + - 81 + 55 * + 82 - 38 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + 44 * - 64 + 64 * + COUNT( * ) AS col2
----
-2752

skipif mysql # not compatible
query I rowsort label-8541
SELECT + 44 * - 64 + 64 * + COUNT ( * ) AS col2
----
-2752

query I rowsort
SELECT ALL + 60 + + + 90 AS col0
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8543
SELECT - - 54 + - CAST( NULL AS DECIMAL ) * - + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT - - 54 + - CAST ( NULL AS REAL ) * - + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - - MIN( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8544
SELECT - - MIN ( ALL + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL + 85 + - 14 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + 85 + - 14 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8546
SELECT - + CASE - 78 WHEN - 37 * 93 + - 27 THEN NULL WHEN - MIN( DISTINCT - 96 ) * 12 THEN + COUNT( * ) * - 89 ELSE NULL END + - - 77 * + 68 / + 7 + CAST( + 13 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT - + CASE - 78 WHEN - 37 * 93 + - 27 THEN NULL WHEN - MIN ( DISTINCT - 96 ) * 12 THEN + COUNT ( * ) * - 89 ELSE NULL END + - - 77 * + 68 / + 7 + CAST ( + 13 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 98 col0
----
98

query I rowsort
SELECT - - 5 + + - 73 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT DISTINCT - 66 * + - CAST( NULL AS SIGNED ) + - 76 + + + 33 + ( - 12 ) * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT - 66 * + - CAST ( NULL AS INTEGER ) + - 76 + + + 33 + ( - 12 ) * - 29 AS col0
----
NULL

query I rowsort
SELECT ALL - 63 * + 6 + - - 59 AS col0
----
-319

query I rowsort
SELECT 49 * 84 + + 73 - - 54 AS col0
----
4243

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + 10 + - COUNT( * ) + - 50 * COUNT( * ) - + + COUNT( * ) + + ( 50 ) - COUNT( * ) * + ( 7 ) * + 73 col1
----
-503

skipif mysql # not compatible
query I rowsort label-8552
SELECT + 10 + - COUNT ( * ) + - 50 * COUNT ( * ) - + + COUNT ( * ) + + ( 50 ) - COUNT ( * ) * + ( 7 ) * + 73 col1
----
-503

query I rowsort
SELECT ( - 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8554
SELECT + ( - + COUNT( * ) ) AS col1, - 18 + 86 DIV MAX( DISTINCT - 14 ) AS col0
----
-1
-24

skipif mysql # not compatible
query II rowsort label-8554
SELECT + ( - + COUNT ( * ) ) AS col1, - 18 + 86 / MAX ( DISTINCT - 14 ) AS col0
----
-1
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT + 87 + - 84 + + + COUNT( * ) + + 43 + COUNT( * ) * + + 74 * CASE + CAST( 58 AS SIGNED ) WHEN - + 23 THEN + 55 WHEN - + ( - - CASE + - 13 WHEN + + AVG ( ALL - 43 ) + - 22 THEN + 66 * + 37 * + 98 + + 51 * + CASE + CASE + COUNT( * ) WHEN + + 99 THEN NULL ELSE COUNT( ALL NULLIF ( 82, 41 * + + 45 ) ) END WHEN - AVG ( + 88 ) * - - COUNT( * ) THEN NULL WHEN + 32 THEN - - 35 END WHEN - COUNT( * ) THEN NULL ELSE NULL END ) * ( - AVG ( 70 ) ) * - 89 - + 35 THEN - 19 + 83 END + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT + 87 + - 84 + + + COUNT ( * ) + + 43 + COUNT ( * ) * + + 74 * CASE + CAST ( 58 AS INTEGER ) WHEN - + 23 THEN + 55 WHEN - + ( - - CASE + - 13 WHEN + + AVG ( ALL - 43 ) + - 22 THEN + 66 * + 37 * + 98 + + 51 * + CASE + CASE + COUNT ( * ) WHEN + + 99 THEN NULL ELSE COUNT ( ALL NULLIF ( 82, 41 * + + 45 ) ) END WHEN - AVG ( + 88 ) * - - COUNT ( * ) THEN NULL WHEN + 32 THEN - - 35 END WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) * ( - AVG ( 70 ) ) * - 89 - + 35 THEN - 19 + 83 END + + 80 AS col2
----
NULL

query I rowsort
SELECT + 98 * + 26 AS col1
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT + 4 * + 46 * + + MAX( ALL + - 78 )
----
-14352

skipif mysql # not compatible
query I rowsort label-8557
SELECT + 4 * + 46 * + + MAX ( ALL + - 78 )
----
-14352

query I rowsort
SELECT + 16 + + 48
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 56, + 34 ) AS col1
----
-56

query I rowsort
SELECT ALL 62 * + 69
----
4278

query I rowsort
SELECT DISTINCT 91 * + - 69 AS col2
----
-6279

query I rowsort
SELECT ALL + COALESCE ( - 24, + + 58 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) * + - 83 * - - 24 + - 11 + + 55 * NULLIF ( + - 11, - COUNT( * ) ) * + 30 * - 99 AS col0
----
1798831

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * + - 83 * - - 24 + - 11 + + 55 * NULLIF ( + - 11, - COUNT ( * ) ) * + 30 * - 99 AS col0
----
1798831

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT + COUNT( * ) * + 83 AS col1, 42
----
83
42

skipif mysql # not compatible
query II rowsort label-8565
SELECT + COUNT ( * ) * + 83 AS col1, 42
----
83
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT + COUNT( * ) + + 28 * ( - 36 ) * CASE + CAST( NULL AS SIGNED ) WHEN - 25 THEN CASE 73 WHEN + 33 THEN + COUNT( * ) WHEN - 69 / + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ELSE - - COALESCE ( - + COUNT( * ), - - 71 ) END * + 85 + - COUNT( - 88 ) * - CAST( + - 63 AS SIGNED )
----
85618

skipif mysql # not compatible
query I rowsort label-8566
SELECT + COUNT ( * ) + + 28 * ( - 36 ) * CASE + CAST ( NULL AS INTEGER ) WHEN - 25 THEN CASE 73 WHEN + 33 THEN + COUNT ( * ) WHEN - 69 / + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ELSE - - COALESCE ( - + COUNT ( * ), - - 71 ) END * + 85 + - COUNT ( - 88 ) * - CAST ( + - 63 AS INTEGER )
----
85618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8567
SELECT + 2 + + CASE - NULLIF ( - + 82, + COUNT( * ) ) WHEN 59 + + 65 THEN MAX( - + 22 ) ELSE 38 END DIV SUM( ALL ( + + 8 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8567
SELECT + 2 + + CASE - NULLIF ( - + 82, + COUNT ( * ) ) WHEN 59 + + 65 THEN MAX ( - + 22 ) ELSE 38 END / SUM ( ALL ( + + 8 ) ) AS col1
----
6

query I rowsort
SELECT - NULLIF ( - 56, + + 76 ) - - 73
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8569
SELECT - - 21 * - CAST( NULL AS SIGNED ), + 33 * - 61 + - - CASE - 71 WHEN 86 - + 9 THEN + 94 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8569
SELECT - - 21 * - CAST ( NULL AS INTEGER ), + 33 * - 61 + - - CASE - 71 WHEN 86 - + 9 THEN + 94 END AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + 24 + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + 24 + - COUNT ( * )
----
23

query I rowsort
SELECT - 39 col2
----
-39

query I rowsort
SELECT ALL - + 51 + 26
----
-25

query I rowsort
SELECT - + 44 + - 83
----
-127

query I rowsort
SELECT DISTINCT - + 26 * ( 3 ) AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT + CASE - 2 WHEN COUNT( * ) * + 34 + + 98 THEN - + CAST( + - 33 AS SIGNED ) - - 79 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT + CASE - 2 WHEN COUNT ( * ) * + 34 + + 98 THEN - + CAST ( + - 33 AS INTEGER ) - - 79 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - + 94 + + 96, 72 AS col1
----
2
72

query I rowsort
SELECT - - 92 AS col2
----
92

query II rowsort
SELECT ( - 97 ) AS col1, 34
----
-97
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8579
SELECT - ( + 99 ) DIV SUM( - - 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-8579
SELECT - ( + 99 ) / SUM ( - - 58 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL - CASE - - 44 WHEN - - COALESCE ( 2, - 49 * 37 + - - 57 + - 27, - 11 ) + + COUNT( * ) * + ( 51 ) THEN 37 * + 6 + 70 + - MIN( ALL + + 35 ) WHEN 84 THEN NULL ELSE + 19 END
----
-19

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - CASE - - 44 WHEN - - COALESCE ( 2, - 49 * 37 + - - 57 + - 27, - 11 ) + + COUNT ( * ) * + ( 51 ) THEN 37 * + 6 + 70 + - MIN ( ALL + + 35 ) WHEN 84 THEN NULL ELSE + 19 END
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL 61 - - + NULLIF ( 48, - ( - 2 ) * 87 * - 94 * + 19 ) * - + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL 61 - - + NULLIF ( 48, - ( - 2 ) * 87 * - 94 * + 19 ) * - + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8582
SELECT 92 DIV 14 + 87 * - 99 - - + COUNT( * ) * - 30 AS col1
----
-8637

skipif mysql # not compatible
query I rowsort label-8582
SELECT 92 / 14 + 87 * - 99 - - + COUNT ( * ) * - 30 AS col1
----
-8637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8583
SELECT ALL + ( 66 ) - - + 4 DIV + SUM( ALL - 25 )
----
66

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + ( 66 ) - - + 4 / + SUM ( ALL - 25 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8584
SELECT 24 AS col0, COUNT( * ) AS col2
----
24
1

skipif mysql # not compatible
query II rowsort label-8584
SELECT 24 AS col0, COUNT ( * ) AS col2
----
24
1

query I rowsort
SELECT 50 * - 94 * + ( - 62 ) AS col2
----
291400

query I rowsort
SELECT ALL 86 * - + 24
----
-2064

query I rowsort
SELECT - COALESCE ( CASE 84 WHEN + + 20 * + 74 THEN 13 WHEN 29 THEN NULL END, 93 ) * - + 63 * - 35 * + 36 - - 22
----
-7382318

query II rowsort
SELECT DISTINCT - 1 AS col0, 81 + 86
----
-1
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - ( - + CASE - 66 WHEN + 89 * + - 48 THEN - ( - 86 ) WHEN + - MAX( DISTINCT + 98 ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - ( - + CASE - 66 WHEN + 89 * + - 48 THEN - ( - 86 ) WHEN + - MAX ( DISTINCT + 98 ) THEN NULL END ) AS col1
----
NULL

query II rowsort
SELECT 62 AS col1, 83
----
62
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8591
SELECT ( - 66 ) + - COUNT( * ) * + ( + + 37 ) DIV 62 + - COUNT( - 94 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-8591
SELECT ( - 66 ) + - COUNT ( * ) * + ( + + 37 ) / 62 + - COUNT ( - 94 ) AS col1
----
-67

query I rowsort
SELECT 30 * 59 AS col0
----
1770

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8593
SELECT AVG ( DISTINCT 79 ) * NULLIF ( - CAST( NULL AS DECIMAL ), - 14 * - + 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT AVG ( DISTINCT 79 ) * NULLIF ( - CAST ( NULL AS REAL ), - 14 * - + 24 ) AS col2
----
NULL

query I rowsort
SELECT ALL 20 + - 61 + + 64 + 53 AS col0
----
76

query I rowsort
SELECT ALL - 4 col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT DISTINCT 38 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT 38 / + 99
----
0

query I rowsort
SELECT 49 + + 28 * 97 * 54
----
146713

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT 91, - 89 + COUNT( + - 30 ) AS col1
----
91
-88

skipif mysql # not compatible
query II rowsort label-8598
SELECT 91, - 89 + COUNT ( + - 30 ) AS col1
----
91
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-8599
SELECT ALL 73 * 86 DIV + 39 AS col2, + 81
----
160
81

skipif mysql # not compatible
query II rowsort label-8599
SELECT ALL 73 * 86 / + 39 AS col2, + 81
----
160
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL + CAST( NULL AS SIGNED ) + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + CAST ( NULL AS INTEGER ) + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL + 53 + + COUNT( * ) * 2 - 63 col2
----
-8

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + 53 + + COUNT ( * ) * 2 - 63 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL COUNT( - 35 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL COUNT ( - 35 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - COALESCE ( + COALESCE ( 85, + - 39 * + ( - 67 ) * + - 74, 42 * - 17, 83 ), + 38 * + - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-8603
SELECT - COALESCE ( + COALESCE ( 85, + - 39 * + ( - 67 ) * + - 74, 42 * - 17, 83 ), + 38 * + - COUNT ( * ) )
----
-85

query I rowsort
SELECT ALL - + 23 + ( 63 ) col2
----
40

query I rowsort
SELECT + 99 * - - 24 * - 77 AS col0
----
-182952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT 58 DIV - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8606
SELECT 58 / - COUNT ( * )
----
-58

query I rowsort
SELECT ALL 82 + - 20 AS col0
----
62

query I rowsort
SELECT 45 - 61 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT + CAST( + 80 AS SIGNED ) col0
----
80

skipif mysql # not compatible
query I rowsort label-8609
SELECT + CAST ( + 80 AS INTEGER ) col0
----
80

query I rowsort
SELECT - 66 + - 87 AS col2
----
-153

query I rowsort
SELECT 37 + - 57 * 23 AS col1
----
-1274

query II rowsort
SELECT + 86 AS col0, 90 * + 49 * - 42 AS col0
----
86
-185220

query I rowsort
SELECT ALL - 77 - + 77
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL SUM( ALL 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL SUM ( ALL 60 ) AS col2
----
60

query II rowsort
SELECT + 59 + 90 - - 24, 65 AS col2
----
173
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT COUNT( * ) - 73 + 8
----
-64

skipif mysql # not compatible
query I rowsort label-8616
SELECT COUNT ( * ) - 73 + 8
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT ALL - NULLIF ( 72, - - 92 * 59 - + + 88 ) - COUNT( * ) + - 1 DIV + ( + 63 ) * - 41 DIV 4 + + + 25 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - NULLIF ( 72, - - 92 * 59 - + + 88 ) - COUNT ( * ) + - 1 / + ( + 63 ) * - 41 / 4 + + + 25 AS col1
----
-48

query I rowsort
SELECT 94 * - + 43 * - 73 AS col2
----
295066

query I rowsort
SELECT 37 * 83 * + 29 AS col2
----
89059

query I rowsort
SELECT + NULLIF ( - + 79, + 8 ) + - 80
----
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8621
SELECT 5 + + MIN( 88 ) DIV + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8621
SELECT 5 + + MIN ( 88 ) / + COUNT ( * ) AS col0
----
93

query I rowsort
SELECT 15 + + 40 + - 88 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8623
SELECT 50 DIV + - COUNT( + 62 )
----
-50

skipif mysql # not compatible
query I rowsort label-8623
SELECT 50 / + - COUNT ( + 62 )
----
-50

query II rowsort
SELECT 21 * - 23 AS col0, 0 * + 90
----
-483
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT - 35 * + + 89 + 28 + + 47 col1, - 81 * - COUNT( * )
----
-3040
81

skipif mysql # not compatible
query II rowsort label-8625
SELECT - 35 * + + 89 + 28 + + 47 col1, - 81 * - COUNT ( * )
----
-3040
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT ALL + 23 DIV + - 10
----
-2

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + 23 / + - 10
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8627
SELECT 40 DIV NULLIF ( 89, + 0 * + 87 * + - NULLIF ( COUNT( * ), + 48 * 75 * 27 ) + - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT 40 / NULLIF ( 89, + 0 * + 87 * + - NULLIF ( COUNT ( * ), + 48 * 75 * 27 ) + - 29 )
----
0

query I rowsort
SELECT 24 * + - 15 * + + NULLIF ( - 76, + 78 * + 10 * - 44 ) AS col2
----
27360

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT ALL + 23 DIV - - 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + 23 / - - 16 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT MAX( DISTINCT + + 51 ), 83 AS col1
----
51
83

skipif mysql # not compatible
query II rowsort label-8630
SELECT MAX ( DISTINCT + + 51 ), 83 AS col1
----
51
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8631
SELECT ALL - 51 + CASE - + CASE - CAST( + 24 AS SIGNED ) WHEN + + 7 THEN NULL WHEN 30 * 66 THEN - - 90 * + 86 + - 26 - 2 / + + NULLIF ( + - 54, - COALESCE ( - - 61, + 9, - 52 ) * + 8 * 39 * + CASE + - 90 WHEN - 59 + ( - 82 ) THEN - 1 WHEN + 91 THEN NULL ELSE NULL END * 10 * 1 ) ELSE NULL END WHEN - + COALESCE ( - 88, - 74, + + 39 ) * 27 THEN - - CAST( NULL AS DECIMAL ) - - COALESCE ( 7, COUNT( ALL - + 62 ) * - COUNT( * ), CAST( 67 AS DECIMAL ) - 34 ) + 46 * CASE + 98 WHEN 30 THEN NULL WHEN 13 THEN 0 * 55 ELSE NULL END WHEN MAX( 33 ) THEN NULL END + + 30 * 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - 51 + CASE - + CASE - CAST ( + 24 AS INTEGER ) WHEN + + 7 THEN NULL WHEN 30 * 66 THEN - - 90 * + 86 + - 26 - 2 / + + NULLIF ( + - 54, - COALESCE ( - - 61, + 9, - 52 ) * + 8 * 39 * + CASE + - 90 WHEN - 59 + ( - 82 ) THEN - 1 WHEN + 91 THEN NULL ELSE NULL END * 10 * 1 ) ELSE NULL END WHEN - + COALESCE ( - 88, - 74, + + 39 ) * 27 THEN - - CAST ( NULL AS REAL ) - - COALESCE ( 7, COUNT ( ALL - + 62 ) * - COUNT ( * ), CAST ( 67 AS REAL ) - 34 ) + 46 * CASE + 98 WHEN 30 THEN NULL WHEN 13 THEN 0 * 55 ELSE NULL END WHEN MAX ( 33 ) THEN NULL END + + 30 * 62 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT 15 * - COUNT( * ) + ( 24 )
----
9

skipif mysql # not compatible
query I rowsort label-8632
SELECT 15 * - COUNT ( * ) + ( 24 )
----
9

query I rowsort
SELECT 59 * 83
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL - MIN( DISTINCT 61 ) + + + 21
----
-40

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL - MIN ( DISTINCT 61 ) + + + 21
----
-40

query I rowsort
SELECT DISTINCT - ( - 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL 67 + + CASE - + 55 WHEN 85 THEN NULL WHEN - - 66 * - + 14 THEN - - 45 / 33 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL 67 + + CASE - + 55 WHEN 85 THEN NULL WHEN - - 66 * - + 14 THEN - - 45 / 33 END + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + + 17 + + NULLIF ( - 73, + - 6 * 6 * + 24 + - - 95 + 6 ) AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT ALL + 22 + + - CAST( + 93 AS SIGNED ) * + 35 AS col1
----
-3233

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + 22 + + - CAST ( + 93 AS INTEGER ) * + 35 AS col1
----
-3233

query I rowsort
SELECT ALL - + 58 AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8640
SELECT ALL 80 DIV + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL 80 / + + COUNT ( * )
----
80

query I rowsort
SELECT 92 * + 18 + + 34
----
1690

query I rowsort
SELECT ALL + 6 - + 25 * - 16 AS col1
----
406

query I rowsort
SELECT - 43 * - - 24 * + 11 AS col2
----
-11352

query I rowsort
SELECT + ( - 37 ) + + - 56 AS col1
----
-93

query I rowsort
SELECT + 27 + + - 88
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - CASE NULLIF ( 92, COUNT( * ) ) WHEN + 1 THEN + ( 75 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT - CASE NULLIF ( 92, COUNT ( * ) ) WHEN + 1 THEN + ( 75 ) END col2
----
NULL

query II rowsort
SELECT ALL 59 AS col2, + 79
----
59
79

query II rowsort
SELECT - NULLIF ( - 59, - 55 ), + 89 AS col1
----
59
89

query I rowsort
SELECT ALL COALESCE ( + 36, ( + - 67 ) ) + 65
----
101

query I rowsort
SELECT ALL + 19 * 14 AS col2
----
266

query I rowsort
SELECT ( 86 ) AS col1
----
86

query I rowsort
SELECT ( 22 )
----
22

query II rowsort
SELECT ALL 68 * 81 + 76, 15 * + 64 + + 37 AS col1
----
5584
997

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT + COUNT( * ) * + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8654
SELECT + COUNT ( * ) * + ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT COUNT( * ) * 26 - - + 48 + + 54 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-8655
SELECT COUNT ( * ) * 26 - - + 48 + + 54 AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT NULLIF ( + - 72, - COALESCE ( - COUNT( * ), + 89 * + + COALESCE ( - 6, + MAX( + + 48 ) * 7 + + 5 ) ) / + + 76 + - 3 + + 62 + - 71 + + - 18 / - - CAST( - + COUNT( * ) AS SIGNED ) + - 88 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8656
SELECT NULLIF ( + - 72, - COALESCE ( - COUNT ( * ), + 89 * + + COALESCE ( - 6, + MAX ( + + 48 ) * 7 + + 5 ) ) / + + 76 + - 3 + + 62 + - 71 + + - 18 / - - CAST ( - + COUNT ( * ) AS INTEGER ) + - 88 ) AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT NULLIF ( - 39, - CAST( + - 90 AS SIGNED ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8657
SELECT NULLIF ( - 39, - CAST ( + - 90 AS INTEGER ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL + ( + + SUM( - 28 ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL + ( + + SUM ( - 28 ) ) AS col1
----
-28

query I rowsort
SELECT ALL 5 * + + 74 + + - 50 AS col1
----
320

query I rowsort
SELECT ALL 86 * - 31 + 97
----
-2569

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT 48 * - - COUNT( * ) + - MAX( 37 )
----
11

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT 48 * - - COUNT ( * ) + - MAX ( 37 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT - CAST( NULL AS SIGNED ) * - 67 - + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT - CAST ( NULL AS INTEGER ) * - 67 - + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8663
SELECT DISTINCT SUM( ALL - + 75 ) * 11 * - 65 - 65, 33 col2
----
53560
33

skipif mysql # not compatible
query II rowsort label-8663
SELECT DISTINCT SUM ( ALL - + 75 ) * 11 * - 65 - 65, 33 col2
----
53560
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT + CASE - 13 WHEN - 19 / 75 * 35 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT + CASE - 13 WHEN - 19 / 75 * 35 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 99 * 80 * - 41 * - - 33
----
-10715760

query I rowsort
SELECT + + 51 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT - + CASE - 19 WHEN - + 32 - 7 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + + 66 THEN - 91 END * + - MAX( - + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT - + CASE - 19 WHEN - + 32 - 7 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 66 THEN - 91 END * + - MAX ( - + 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - 28 + - COUNT( + - 37 ) * - 1 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8668
SELECT - 28 + - COUNT ( + - 37 ) * - 1 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - COUNT( * ) * + 42 * + + 22 - + 23 * ( - 88 ) + + 12 AS col2
----
1112

skipif mysql # not compatible
query I rowsort label-8669
SELECT - COUNT ( * ) * + 42 * + + 22 - + 23 * ( - 88 ) + + 12 AS col2
----
1112

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT - - SUM( - 11 ) - - 66 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8670
SELECT - - SUM ( - 11 ) - - 66 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8671
SELECT + - 89 DIV + 93 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8671
SELECT + - 89 / + 93 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT - + 20 + CASE - CAST( CASE 43 WHEN - 32 * + 94 THEN + COUNT( * ) + + 21 END AS SIGNED ) WHEN + + ( + 32 ) * 49 * + + 45 * + 0 THEN NULL WHEN + MAX( DISTINCT + - 47 ) THEN - ( - 4 ) * 28 * - COUNT( * ) * + 36 - + - 28 / + ( SUM( DISTINCT - 18 ) ) * - + 77 + 36 + + - NULLIF ( - COUNT( * ), - 47 / + COUNT( * ) - - 1 ) + + + 42 * 2 * ( + 44 ) + + + CAST( 65 AS SIGNED ) + - 36 / - 1 * - CAST( 34 * 7 AS SIGNED ) * + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT - + 20 + CASE - CAST ( CASE 43 WHEN - 32 * + 94 THEN + COUNT ( * ) + + 21 END AS INTEGER ) WHEN + + ( + 32 ) * 49 * + + 45 * + 0 THEN NULL WHEN + MAX ( DISTINCT + - 47 ) THEN - ( - 4 ) * 28 * - COUNT ( * ) * + 36 - + - 28 / + ( SUM ( DISTINCT - 18 ) ) * - + 77 + 36 + + - NULLIF ( - COUNT ( * ), - 47 / + COUNT ( * ) - - 1 ) + + + 42 * 2 * ( + 44 ) + + + CAST ( 65 AS INTEGER ) + - 36 / - 1 * - CAST ( 34 * 7 AS INTEGER ) * + 75 END
----
NULL

query I rowsort
SELECT - - COALESCE ( 26, + + 69 ) + - 67
----
-41

query I rowsort
SELECT ALL 63 * ( - 18 )
----
-1134

query II rowsort
SELECT ALL 55 AS col2, - 38 col0
----
55
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8676
SELECT - CASE + 11 WHEN + 11 + + + 23 / COUNT( * ) * + 40 + + CAST( NULL AS DECIMAL ) THEN + + CASE 18 WHEN 29 THEN COALESCE ( 80, + - 10 + - 41 ) END + - 94 + - 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT - CASE + 11 WHEN + 11 + + + 23 / COUNT ( * ) * + 40 + + CAST ( NULL AS REAL ) THEN + + CASE 18 WHEN 29 THEN COALESCE ( 80, + - 10 + - 41 ) END + - 94 + - 61 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT + 4 DIV + 55 col0
----
0

skipif mysql # not compatible
query I rowsort label-8677
SELECT + 4 / + 55 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + 22 - + + CASE WHEN - MAX( ALL + 22 ) IN ( ( + - COUNT( * ) ) / COUNT( * ) ) THEN - 44 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT + 22 - + + CASE WHEN - MAX ( ALL + 22 ) IN ( ( + - COUNT ( * ) ) / COUNT ( * ) ) THEN - 44 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL 28 * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL 28 * + COUNT ( * )
----
28

query I rowsort
SELECT - 92 + + + 87
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + COUNT( 66 ) + 16 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8681
SELECT + COUNT ( 66 ) + 16 AS col0
----
17

query II rowsort
SELECT DISTINCT 20 AS col0, + 22 AS col2
----
20
22

query II rowsort
SELECT 91, - 42 AS col0
----
91
-42

query I rowsort
SELECT ALL 56 + 67
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + COUNT( ALL - + 17 ) + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-8685
SELECT + COUNT ( ALL - + 17 ) + - 2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT DISTINCT 31 AS col1, - 12 + - 46 * - + COUNT( ALL 83 ) AS col0
----
31
34

skipif mysql # not compatible
query II rowsort label-8686
SELECT DISTINCT 31 AS col1, - 12 + - 46 * - + COUNT ( ALL 83 ) AS col0
----
31
34

query I rowsort
SELECT + 38 + + - ( - - 75 )
----
-37

query II rowsort
SELECT ALL + 1 AS col0, - 82
----
1
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT ALL 1 DIV MAX( + 93 ) + + - 37 + - 66 * - ( + 94 ) AS col1
----
6167

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL 1 / MAX ( + 93 ) + + - 37 + - 66 * - ( + 94 ) AS col1
----
6167

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + - 88 * + + 53 + - SUM( DISTINCT 97 ) + + 28 + + 89 - + 88 AS col0
----
-4732

skipif mysql # not compatible
query I rowsort label-8690
SELECT + - 88 * + + 53 + - SUM ( DISTINCT 97 ) + + 28 + + 89 - + 88 AS col0
----
-4732

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT + + 67 DIV + 89 * + 64
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT + + 67 / + 89 * + 64
----
0

query II rowsort
SELECT - 70 AS col0, + ( - 8 ) AS col2
----
-70
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT - 59 * ( + ( - COUNT( * ) ) ) * - 16 + - - 52 + - - MAX( 16 ) AS col0
----
-876

skipif mysql # not compatible
query I rowsort label-8693
SELECT - 59 * ( + ( - COUNT ( * ) ) ) * - 16 + - - 52 + - - MAX ( 16 ) AS col0
----
-876

query I rowsort
SELECT 82 * - - 23 * + - 18
----
-33948

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - SUM( - + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8695
SELECT - SUM ( - + 4 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8696
SELECT ALL - - 32 * + 46, NULLIF ( 78, 59 + - 55 + - 15 + + - SUM( - CAST( NULL AS SIGNED ) ) ) AS col1
----
1472
78

skipif mysql # not compatible
query II rowsort label-8696
SELECT ALL - - 32 * + 46, NULLIF ( 78, 59 + - 55 + - 15 + + - SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
1472
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT + COUNT( * ) + - 31 col2
----
-30

skipif mysql # not compatible
query I rowsort label-8697
SELECT + COUNT ( * ) + - 31 col2
----
-30

query I rowsort
SELECT 5 * 85 * - 63 AS col2
----
-26775

query I rowsort
SELECT 92 + 22
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT - 18 + - MAX( ALL 14 )
----
-32

skipif mysql # not compatible
query I rowsort label-8700
SELECT - 18 + - MAX ( ALL 14 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL + + COUNT( * ) * - 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL + + COUNT ( * ) * - 84 AS col2
----
-84

query I rowsort
SELECT DISTINCT + + 3 + - + 95
----
-92

query II rowsort
SELECT - + 69 AS col2, + ( - 13 )
----
-69
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL - 94 + MIN( ALL + 31 ) * - 62 * - + 19 * - 68
----
-2483318

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - 94 + MIN ( ALL + 31 ) * - 62 * - + 19 * - 68
----
-2483318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT + ( 13 ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + ( 13 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 16 + 41 AS col0
----
57

query I rowsort
SELECT 59 + - 12 * - 47 + - + 60 - + - 83 * + + 21
----
2306

query I rowsort
SELECT DISTINCT - 19 + + 56 col1
----
37

query I rowsort
SELECT ALL + 64 + + - 67 + 8 AS col2
----
5

query I rowsort
SELECT - 68 col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8711
SELECT 49 * + ( - + 4 ) / CASE ( - CAST( NULL AS SIGNED ) ) WHEN + 24 THEN - 62 + + COALESCE ( + - 46, 91, COALESCE ( - + 95, COALESCE ( - 91, 17 + 10 ) ) * + CAST( - ( ( - 95 ) ) AS SIGNED ) ) WHEN - 10 THEN NULL END AS col0, + 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-8711
SELECT 49 * + ( - + 4 ) / CASE ( - CAST ( NULL AS INTEGER ) ) WHEN + 24 THEN - 62 + + COALESCE ( + - 46, 91, COALESCE ( - + 95, COALESCE ( - 91, 17 + 10 ) ) * + CAST ( - ( ( - 95 ) ) AS INTEGER ) ) WHEN - 10 THEN NULL END AS col0, + 20
----
NULL
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT 85 + + COUNT( * ), + 86
----
86
86

skipif mysql # not compatible
query II rowsort label-8712
SELECT 85 + + COUNT ( * ), + 86
----
86
86

query I rowsort
SELECT ALL 74 * - - 47
----
3478

query I rowsort
SELECT DISTINCT 9 * - ( - - ( + 17 ) )
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT DISTINCT + 47 + + CAST( NULL AS SIGNED ) + - - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT + 47 + + CAST ( NULL AS INTEGER ) + - - 84 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT ALL NULLIF ( + CAST( - + ( + 64 ) AS SIGNED ), - - COALESCE ( 56, 31, 63 * 32 ) ) - + 59 * - ( 55 ) * - 36 + 86
----
-116798

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL NULLIF ( + CAST ( - + ( + 64 ) AS INTEGER ), - - COALESCE ( 56, 31, 63 * 32 ) ) - + 59 * - ( 55 ) * - 36 + 86
----
-116798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8717
SELECT 58 + - COUNT( * ) + 71 * - + 98 + - ( 13 ) DIV + - 94 * 89 * + 58 AS col1
----
-6901

skipif mysql # not compatible
query I rowsort label-8717
SELECT 58 + - COUNT ( * ) + 71 * - + 98 + - ( 13 ) / + - 94 * 89 * + 58 AS col1
----
-6901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT COUNT( - + CAST( NULL AS SIGNED ) ) / - 67 / + MAX( DISTINCT + + 97 ) * - ( + + ( + - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT COUNT ( - + CAST ( NULL AS INTEGER ) ) / - 67 / + MAX ( DISTINCT + + 97 ) * - ( + + ( + - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT CASE - + 73 WHEN - + 0 THEN - COUNT( * ) * - 3 - 13 ELSE 21 + + + 92 END - + ( 49 ) - - - CASE - - 38 WHEN - - 70 THEN + + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT CASE - + 73 WHEN - + 0 THEN - COUNT ( * ) * - 3 - 13 ELSE 21 + + + 92 END - + ( 49 ) - - - CASE - - 38 WHEN - - 70 THEN + + 73 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8720
SELECT + - 98 * 56 - 43 col1, + 70 * - COALESCE ( + - 13, 18 + + 55 DIV + - 9 )
----
-5531
910

skipif mysql # not compatible
query II rowsort label-8720
SELECT + - 98 * 56 - 43 col1, + 70 * - COALESCE ( + - 13, 18 + + 55 / + - 9 )
----
-5531
910

query I rowsort
SELECT DISTINCT - ( - 16 ) col1
----
16

query I rowsort
SELECT 58 * 92 AS col2
----
5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8723
SELECT ALL - SUM( 32 ) * - CAST( NULL AS SIGNED ) / - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - SUM ( 32 ) * - CAST ( NULL AS INTEGER ) / - 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT 50 - MAX( ALL - + ( 93 ) )
----
143

skipif mysql # not compatible
query I rowsort label-8725
SELECT 50 - MAX ( ALL - + ( 93 ) )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT COUNT( * ) * - - COUNT( * ) - + 94 - - 99
----
6

skipif mysql # not compatible
query I rowsort label-8726
SELECT COUNT ( * ) * - - COUNT ( * ) - + 94 - - 99
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL 49 + - COUNT( * ) * - COUNT( * ) * - + 72 * + 66 * 36 AS col2
----
-171023

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 49 + - COUNT ( * ) * - COUNT ( * ) * - + 72 * + 66 * 36 AS col2
----
-171023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT - CASE + + 63 WHEN + + 98 THEN - - CAST( - 32 AS SIGNED ) WHEN - 81 * + 55 * - + 75 + 27 THEN NULL ELSE NULL END / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT - CASE + + 63 WHEN + + 98 THEN - - CAST ( - 32 AS INTEGER ) WHEN - 81 * + 55 * - + 75 + 27 THEN NULL ELSE NULL END / - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + NULLIF ( - 55, - + 86 ) AS col0
----
-55

query I rowsort
SELECT ALL - - 76
----
76

query II rowsort
SELECT ALL - 97 + 17 AS col0, - 52
----
-80
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - COUNT( * ) + MAX( DISTINCT 9 )
----
8

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - COUNT ( * ) + MAX ( DISTINCT 9 )
----
8

query II rowsort
SELECT + 68 * - 73 col0, + 81 AS col2
----
-4964
81

query I rowsort
SELECT ALL + + 17 + 44 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8735
SELECT - CAST( + COUNT( * ) AS SIGNED ), 21 AS col2
----
-1
21

skipif mysql # not compatible
query II rowsort label-8735
SELECT - CAST ( + COUNT ( * ) AS INTEGER ), 21 AS col2
----
-1
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT COALESCE ( - 19, - - COUNT( * ) * - 1 ) + - 38 * - 8, + 27 AS col0
----
285
27

skipif mysql # not compatible
query II rowsort label-8736
SELECT COALESCE ( - 19, - - COUNT ( * ) * - 1 ) + - 38 * - 8, + 27 AS col0
----
285
27

query I rowsort
SELECT NULLIF ( - 74, - 10 / COALESCE ( - 95, + - NULLIF ( - CASE 93 WHEN 18 * - 13 + - 5 * 56 * + 18 THEN + + 67 END, + 8 ) * 63 + + 33 + - 78 ) ) * 39 * - 87
----
251082

query I rowsort
SELECT ALL - 33 + + + 37
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT 49 + CAST( + - 71 AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8739
SELECT 49 + CAST ( + - 71 AS INTEGER ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT 85 DIV + - 29
----
-2

skipif mysql # not compatible
query I rowsort label-8740
SELECT 85 / + - 29
----
-2

query I rowsort
SELECT ALL - 6 * - 33 AS col0
----
198

query I rowsort
SELECT 59 + 65 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL 45 - COUNT( ALL - 95 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL 45 - COUNT ( ALL - 95 ) AS col2
----
44

query II rowsort
SELECT 16, ( - 43 ) AS col1
----
16
-43

query I rowsort
SELECT 68 + + 48
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + 33 - 90 * - 8 * 93 * - - COUNT( * ) * 59 * - 11 AS col0
----
-43457007

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + 33 - 90 * - 8 * 93 * - - COUNT ( * ) * 59 * - 11 AS col0
----
-43457007

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT 75 - + - COUNT( * ) - - NULLIF ( + 1, - - 34 + + + 94 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8747
SELECT 75 - + - COUNT ( * ) - - NULLIF ( + 1, - - 34 + + + 94 ) AS col2
----
77

query I rowsort
SELECT 84 + - + 93 AS col2
----
-9

query I rowsort
SELECT 55 * - 48
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT COUNT( DISTINCT + 55 ) + SUM( DISTINCT ( + 22 ) )
----
23

skipif mysql # not compatible
query I rowsort label-8750
SELECT COUNT ( DISTINCT + 55 ) + SUM ( DISTINCT ( + 22 ) )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT 3 + - + CAST( COUNT( * ) AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8751
SELECT 3 + - + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT ALL COUNT( * ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL COUNT ( * ), COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT 74 + + 54 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT 10 * + - COUNT( 16 )
----
-10

skipif mysql # not compatible
query I rowsort label-8754
SELECT 10 * + - COUNT ( 16 )
----
-10

query I rowsort
SELECT 84 + + 99 * 93 * + + 27
----
248673

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8756
SELECT + - COUNT( * ) * - + 0 * + NULLIF ( + 7, + - ( - + ( 13 ) ) ) + + 76 + + 65 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT + - COUNT ( * ) * - + 0 * + NULLIF ( + 7, + - ( - + ( 13 ) ) ) + + 76 + + 65 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 34 * 62 AS col1
----
-2108

query II rowsort
SELECT ALL - 23 * + 49 + - 97 * 37 AS col0, + 12 * + 76 + - ( 8 ) AS col0
----
-4716
904

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT ALL + + 58 AS col0, - NULLIF ( 74, 82 / + 46 + 80 + - SUM( - 90 ) )
----
58
-74

skipif mysql # not compatible
query II rowsort label-8759
SELECT ALL + + 58 AS col0, - NULLIF ( 74, 82 / + 46 + 80 + - SUM ( - 90 ) )
----
58
-74

query I rowsort
SELECT ALL + + 97 AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT - 80 DIV + 64 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8761
SELECT - 80 / + 64 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT ALL - 22 * - 76 + - 35 + 44 * - COALESCE ( COUNT( * ), + CAST( + - 7 AS SIGNED ) ) * ( 34 )
----
141

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - 22 * - 76 + - 35 + 44 * - COALESCE ( COUNT ( * ), + CAST ( + - 7 AS INTEGER ) ) * ( 34 )
----
141

query II rowsort
SELECT + ( + 30 ) * - + 78 AS col0, - 43
----
-2340
-43

query I rowsort
SELECT - + 82 + + 39
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + + ( + 91 ) * COUNT( * ) + - 85 * 4 col0
----
-249

skipif mysql # not compatible
query I rowsort label-8765
SELECT + + ( + 91 ) * COUNT ( * ) + - 85 * 4 col0
----
-249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT + 69 DIV - COUNT( * ) + + 55 - + COALESCE ( - CASE - - 58 WHEN - COUNT( * ) THEN - + 22 ELSE + - 29 * 73 + 36 END, NULLIF ( - 60, CASE - - 56 WHEN 23 THEN NULL WHEN 47 THEN COUNT( * ) ELSE + + ( - COUNT( * ) ) * + + 73 DIV 84 END * - + 11 - + 65 * 2 + 46 ) ) * + 28 + 36 + 13 + ( ( + + COUNT( * ) ) )
----
-58232

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 69 / - COUNT ( * ) + + 55 - + COALESCE ( - CASE - - 58 WHEN - COUNT ( * ) THEN - + 22 ELSE + - 29 * 73 + 36 END, NULLIF ( - 60, CASE - - 56 WHEN 23 THEN NULL WHEN 47 THEN COUNT ( * ) ELSE + + ( - COUNT ( * ) ) * + + 73 / 84 END * - + 11 - + 65 * 2 + 46 ) ) * + 28 + 36 + 13 + ( ( + + COUNT ( * ) ) )
----
-58232

query I rowsort
SELECT ALL - ( + - 55 ) * + - 6 * - + 53 + - + 27
----
17463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT + MIN( DISTINCT - ( - + NULLIF ( + 62, + 49 * 62 + 6 ) ) ) + + ( - COALESCE ( + COALESCE ( + CASE - 15 WHEN 71 THEN NULL ELSE + 43 END, 96 ), COUNT( * ) ) ) * - ( + 15 ) / + - 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT + MIN ( DISTINCT - ( - + NULLIF ( + 62, + 49 * 62 + 6 ) ) ) + + ( - COALESCE ( + COALESCE ( + CASE - 15 WHEN 71 THEN NULL ELSE + 43 END, 96 ), COUNT ( * ) ) ) * - ( + 15 ) / + - 26 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + 32 ) col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT + - COUNT( * ) AS col0, ( - 92 )
----
-1
-92

skipif mysql # not compatible
query II rowsort label-8770
SELECT + - COUNT ( * ) AS col0, ( - 92 )
----
-1
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT ALL - ( - 14 ) * + - NULLIF ( + - 84, + - COUNT( * ) ) + - 17 AS col1, 88 * - + ( + 0 ) + 14
----
1159
14

skipif mysql # not compatible
query II rowsort label-8771
SELECT ALL - ( - 14 ) * + - NULLIF ( + - 84, + - COUNT ( * ) ) + - 17 AS col1, 88 * - + ( + 0 ) + 14
----
1159
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8772
SELECT MIN( CAST( - + 69 AS SIGNED ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8772
SELECT MIN ( CAST ( - + 69 AS INTEGER ) ) AS col1
----
-69

query I rowsort
SELECT + 87 * + - 83 AS col2
----
-7221

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT + MAX( DISTINCT 7 ) * + 29 * - - 11
----
2233

skipif mysql # not compatible
query I rowsort label-8774
SELECT + MAX ( DISTINCT 7 ) * + 29 * - - 11
----
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL MAX( - - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL MAX ( - - 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT ALL ( CAST( NULL AS SIGNED ) ) - + CAST( + + 2 AS SIGNED ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL ( CAST ( NULL AS INTEGER ) ) - + CAST ( + + 2 AS INTEGER ) * - 51
----
NULL

query I rowsort
SELECT + CASE - 43 WHEN - 53 THEN 70 ELSE NULL END * + 52 - + 12 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8778
SELECT DISTINCT + COUNT( * ) DIV - - CAST( 29 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + COUNT ( * ) / - - CAST ( 29 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8779
SELECT - ( + 32 ) + - - 29 * + 38 * + COUNT( 57 ) + + COUNT( * ) AS col0, + 98
----
1071
98

skipif mysql # not compatible
query II rowsort label-8779
SELECT - ( + 32 ) + - - 29 * + 38 * + COUNT ( 57 ) + + COUNT ( * ) AS col0, + 98
----
1071
98

query I rowsort
SELECT - 61 * - 61 AS col1
----
3721

query I rowsort
SELECT 88 col0
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8782
SELECT - 79 DIV + 63 AS col0, - CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8782
SELECT - 79 / + 63 AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + COUNT( * ) * - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + COUNT ( * ) * - + 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - MAX( DISTINCT 81 ) * + 97 * + 83 * - 28 + + 49
----
18259717

skipif mysql # not compatible
query I rowsort label-8784
SELECT - MAX ( DISTINCT 81 ) * + 97 * + 83 * - 28 + + 49
----
18259717

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT ALL COUNT( + - CASE + + 68 WHEN ( + + 43 ) * 25 THEN NULL WHEN - 35 - + - 93 THEN + 34 * - 64 END ), + 44 col1
----
0
44

skipif mysql # not compatible
query II rowsort label-8785
SELECT ALL COUNT ( + - CASE + + 68 WHEN ( + + 43 ) * 25 THEN NULL WHEN - 35 - + - 93 THEN + 34 * - 64 END ), + 44 col1
----
0
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT + ( - - COALESCE ( + 29, + - 4 DIV - 20 ) )
----
29

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + ( - - COALESCE ( + 29, + - 4 / - 20 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT - 24 + + MAX( ALL - - 66 )
----
42

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT - 24 + + MAX ( ALL - - 66 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8788
SELECT - + 97 + - 53 AS col1, + 42 DIV - 33 + - COUNT( NULLIF ( + 16, + - CAST( - 5 AS SIGNED ) ) ) AS col1
----
-150
-2

skipif mysql # not compatible
query II rowsort label-8788
SELECT - + 97 + - 53 AS col1, + 42 / - 33 + - COUNT ( NULLIF ( + 16, + - CAST ( - 5 AS INTEGER ) ) ) AS col1
----
-150
-2

query I rowsort
SELECT DISTINCT - + 1 + + 78
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - - COUNT( * ) * - CASE + 68 WHEN 46 THEN NULL WHEN + 94 THEN + 10 ELSE + 11 END AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8790
SELECT - - COUNT ( * ) * - CASE + 68 WHEN 46 THEN NULL WHEN + 94 THEN + 10 ELSE + 11 END AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - + ( 35 ) - + 10 * - SUM( - 70 ) - - + 89
----
-646

skipif mysql # not compatible
query I rowsort label-8791
SELECT - + ( 35 ) - + 10 * - SUM ( - 70 ) - - + 89
----
-646

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT + - COALESCE ( - COUNT( + + 78 ), + 8 ) AS col1, 15
----
1
15

skipif mysql # not compatible
query II rowsort label-8792
SELECT + - COALESCE ( - COUNT ( + + 78 ), + 8 ) AS col1, 15
----
1
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT MIN( + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8793
SELECT MIN ( + 47 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT - CAST( 8 AS SIGNED ) - - 60
----
52

skipif mysql # not compatible
query I rowsort label-8794
SELECT - CAST ( 8 AS INTEGER ) - - 60
----
52

query I rowsort
SELECT ALL - 38 * - - 88 * + 82 + - ( + 30 ) - - - 57 * - 77 + - 58
----
-269907

query I rowsort
SELECT - 8 * + NULLIF ( 2, + - 69 ) + - 96 + - + 86 col1
----
-198

query I rowsort
SELECT + - CASE + - 97 WHEN - - 87 THEN NULL WHEN + + 91 * - 75 THEN NULL WHEN + + 10 THEN 34 WHEN + 51 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8798
SELECT - - 34 DIV - 70 AS col0, + ( 10 )
----
0
10

skipif mysql # not compatible
query II rowsort label-8798
SELECT - - 34 / - 70 AS col0, + ( 10 )
----
0
10

query I rowsort
SELECT ( - 68 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT + ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT + ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT COALESCE ( - 74, COUNT( * ), - 5 )
----
-74

skipif mysql # not compatible
query I rowsort label-8801
SELECT COALESCE ( - 74, COUNT ( * ), - 5 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + MAX( - 69 ) * 78 * + + COUNT( + - 91 ) - + 30 * ( - + 2 ) * - - 88 + + + CASE - + 29 WHEN CASE SUM( ALL - - 8 ) WHEN - - 36 THEN NULL WHEN - 24 THEN NULL WHEN 8 THEN + 80 END THEN - - 70 WHEN - 13 THEN + + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + MAX ( - 69 ) * 78 * + + COUNT ( + - 91 ) - + 30 * ( - + 2 ) * - - 88 + + + CASE - + 29 WHEN CASE SUM ( ALL - - 8 ) WHEN - - 36 THEN NULL WHEN - 24 THEN NULL WHEN 8 THEN + 80 END THEN - - 70 WHEN - 13 THEN + + 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT NULLIF ( 92, AVG ( + 10 ) - - NULLIF ( - 78, - - ( + COUNT( * ) ) ) ) AS col2, 3 * 49 * COUNT( * ) + + - 8 AS col1
----
92
139

skipif mysql # not compatible
query II rowsort label-8803
SELECT NULLIF ( 92, AVG ( + 10 ) - - NULLIF ( - 78, - - ( + COUNT ( * ) ) ) ) AS col2, 3 * 49 * COUNT ( * ) + + - 8 AS col1
----
92
139

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT ALL 17 * - ( 99 ) * 53 - - 87 + + 94 DIV 11 AS col0
----
-89104

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL 17 * - ( 99 ) * 53 - - 87 + + 94 / 11 AS col0
----
-89104

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + CASE 56 WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + ( + COALESCE ( 33, - ( - - COUNT( * ) ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT + CASE 56 WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + ( + COALESCE ( 33, - ( - - COUNT ( * ) ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT + 35 * - 29 * + 5 - + COUNT( + + 84 ) * + 38 AS col2
----
-5113

skipif mysql # not compatible
query I rowsort label-8806
SELECT + 35 * - 29 * + 5 - + COUNT ( + + 84 ) * + 38 AS col2
----
-5113

onlyif mysql # aggregate syntax: 
query II rowsort label-8807
SELECT DISTINCT 69, 94 * COUNT( * ) + - MAX( - + 13 ) + - - ( - + 73 ) * 76 * 96 - COUNT( * ) AS col1
----
69
-532502

skipif mysql # not compatible
query II rowsort label-8807
SELECT DISTINCT 69, 94 * COUNT ( * ) + - MAX ( - + 13 ) + - - ( - + 73 ) * 76 * 96 - COUNT ( * ) AS col1
----
69
-532502

query II rowsort
SELECT NULLIF ( + 3, + 55 ), 84 AS col2
----
3
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - CASE - 41 WHEN + COUNT( - - 38 ) THEN - - 32 END + - + NULLIF ( - 52, - 29 - + 29 * + MAX( + 41 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT - CASE - 41 WHEN + COUNT ( - - 38 ) THEN - - 32 END + - + NULLIF ( - 52, - 29 - + 29 * + MAX ( + 41 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT SUM( DISTINCT + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8810
SELECT SUM ( DISTINCT + 85 ) AS col2
----
85

query I rowsort
SELECT ALL 91 * + - 20 AS col0
----
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT + 3 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT + 3 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8813
SELECT + 73 + COUNT( * ) + + COUNT( ALL - 2 ) DIV - 19 * NULLIF ( 63, + 13 ) * + - 71 + - 69 - 27 - + 31
----
-53

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 73 + COUNT ( * ) + + COUNT ( ALL - 2 ) / - 19 * NULLIF ( 63, + 13 ) * + - 71 + - 69 - 27 - + 31
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT MAX( 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8814
SELECT MAX ( 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL COUNT( * ) * - 57 * + 51 * - 9 col0
----
26163

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL COUNT ( * ) * - 57 * + 51 * - 9 col0
----
26163

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL 55 * + + MIN( ALL - 96 )
----
-5280

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL 55 * + + MIN ( ALL - 96 )
----
-5280

query I rowsort
SELECT ( + 9 ) * - + CASE + ( 24 ) WHEN + - 44 / - 37 THEN - ( - ( 29 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT MIN( DISTINCT - NULLIF ( - + 62, - NULLIF ( 95, - + 6 + 58 ) + 44 ) ) * - 3
----
-186

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT MIN ( DISTINCT - NULLIF ( - + 62, - NULLIF ( 95, - + 6 + 58 ) + 44 ) ) * - 3
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT CAST( NULL AS SIGNED ) + + + COALESCE ( COUNT( * ), - 88 / + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT CAST ( NULL AS INTEGER ) + + + COALESCE ( COUNT ( * ), - 88 / + 91 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT CAST( NULL AS SIGNED ) + + CASE - ( - 51 ) WHEN 67 * - 22 * - - COUNT( * ) THEN 12 WHEN - 45 * - 57 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT CAST ( NULL AS INTEGER ) + + CASE - ( - 51 ) WHEN 67 * - 22 * - - COUNT ( * ) THEN 12 WHEN - 45 * - 57 THEN NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT ALL + 99 DIV + 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + 99 / + 41 AS col1
----
2

query I rowsort
SELECT DISTINCT + ( 17 ) + + 19 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8823
SELECT - CAST( NULL AS SIGNED ), 87 AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8823
SELECT - CAST ( NULL AS INTEGER ), 87 AS col1
----
NULL
87

query I rowsort
SELECT 2 + - 88
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8825
SELECT SUM( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( 12, + 92 ) + + - 9 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT - SUM( ALL + ( + 14 ) ) * ( - MAX( DISTINCT - + 6 ) ) + - 20 * - 56 AS col1
----
1036

skipif mysql # not compatible
query I rowsort label-8827
SELECT - SUM ( ALL + ( + 14 ) ) * ( - MAX ( DISTINCT - + 6 ) ) + - 20 * - 56 AS col1
----
1036

query I rowsort
SELECT ALL + 21 * 92
----
1932

query I rowsort
SELECT DISTINCT - + 61 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT ALL - 92 AS col0, - MIN( ALL + - 11 ) AS col0
----
-92
11

skipif mysql # not compatible
query II rowsort label-8830
SELECT ALL - 92 AS col0, - MIN ( ALL + - 11 ) AS col0
----
-92
11

onlyif mysql # DIV for integer division: 
query II rowsort label-8831
SELECT - 70 * - 0 DIV - 80 AS col2, 61
----
0
61

skipif mysql # not compatible
query II rowsort label-8831
SELECT - 70 * - 0 / - 80 AS col2, 61
----
0
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8832
SELECT + - 13 DIV + COUNT( * ) + ( - 14 )
----
-27

skipif mysql # not compatible
query I rowsort label-8832
SELECT + - 13 / + COUNT ( * ) + ( - 14 )
----
-27

query I rowsort
SELECT ( 12 ) AS col1
----
12

query I rowsort
SELECT + - ( + 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8835
SELECT - 53 + - 80 + + CAST( COALESCE ( - - 68, - 34 ) AS DECIMAL ) * ( CAST( NULL AS SIGNED ) ) * - 81 + 66 - MIN( 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT - 53 + - 80 + + CAST ( COALESCE ( - - 68, - 34 ) AS REAL ) * ( CAST ( NULL AS INTEGER ) ) * - 81 + 66 - MIN ( 52 ) AS col1
----
NULL

query II rowsort
SELECT + - 84 AS col2, 5 + 5
----
-84
10

query I rowsort
SELECT 15 + - ( + 77 ) + 75 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ( COUNT( * ) ) * - - 63 * + 11 AS col2
----
693

skipif mysql # not compatible
query I rowsort label-8838
SELECT ( COUNT ( * ) ) * - - 63 * + 11 AS col2
----
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT CAST( + - 29 AS SIGNED ) * - 81 + NULLIF ( - - ( - NULLIF ( ( + 39 ), + + 99 ) ), - 6 )
----
2310

skipif mysql # not compatible
query I rowsort label-8839
SELECT CAST ( + - 29 AS INTEGER ) * - 81 + NULLIF ( - - ( - NULLIF ( ( + 39 ), + + 99 ) ), - 6 )
----
2310

query I rowsort
SELECT ALL - - 45 AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT - - 12 * + - 99 * + 51 * - + 2 DIV - + 2 + - 52
----
-60640

skipif mysql # not compatible
query I rowsort label-8841
SELECT - - 12 * + - 99 * + 51 * - + 2 / - + 2 + - 52
----
-60640

query II rowsort
SELECT ALL - 88, + ( ( + 51 ) ) AS col2
----
-88
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ALL - COALESCE ( + 51, 71 * - + COUNT( * ) ) AS col0, - 83 AS col1
----
-51
-83

skipif mysql # not compatible
query II rowsort label-8843
SELECT ALL - COALESCE ( + 51, 71 * - + COUNT ( * ) ) AS col0, - 83 AS col1
----
-51
-83

query I rowsort
SELECT 68 * 97 AS col1
----
6596

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT ALL - 74 DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - 74 / 72
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT - 56 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - 56 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL - NULLIF ( 72, - + COALESCE ( + 8, - CAST( NULL AS SIGNED ) ) + + 87 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - NULLIF ( 72, - + COALESCE ( + 8, - CAST ( NULL AS INTEGER ) ) + + 87 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT 58 * - - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8848
SELECT 58 * - - COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8849
SELECT + 71 AS col2, COUNT( * ) + 87 * + 40
----
71
3481

skipif mysql # not compatible
query II rowsort label-8849
SELECT + 71 AS col2, COUNT ( * ) + 87 * + 40
----
71
3481

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT COUNT( * ) + + 65, MIN( + - 52 ) AS col2
----
66
-52

skipif mysql # not compatible
query II rowsort label-8850
SELECT COUNT ( * ) + + 65, MIN ( + - 52 ) AS col2
----
66
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8851
SELECT 13 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-8851
SELECT 13 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT 84 * + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8852
SELECT 84 * + COUNT ( * ) AS col2
----
84

query I rowsort
SELECT DISTINCT + 84 * + 42 * + 3 * - 5
----
-52920

onlyif mysql # DIV for integer division: 
query II rowsort label-8854
SELECT ALL 85 AS col1, + 49 DIV - + CASE + + 93 WHEN 33 DIV 33 THEN 99 WHEN 48 * + 62 DIV - 94 * - 27 THEN NULL ELSE 99 * - - 80 END AS col0
----
85
0

skipif mysql # not compatible
query II rowsort label-8854
SELECT ALL 85 AS col1, + 49 / - + CASE + + 93 WHEN 33 / 33 THEN 99 WHEN 48 * + 62 / - 94 * - 27 THEN NULL ELSE 99 * - - 80 END AS col0
----
85
0

query I rowsort
SELECT ALL - 12 + - - 60 + + - 0 AS col1
----
48

query I rowsort
SELECT 83 * - + 3
----
-249

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT - 95, + 29 * + 83 * - - COUNT( * ) AS col1
----
-95
2407

skipif mysql # not compatible
query II rowsort label-8857
SELECT - 95, + 29 * + 83 * - - COUNT ( * ) AS col1
----
-95
2407

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL + 40 + - COUNT( * ) * 77
----
-37

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + 40 + - COUNT ( * ) * 77
----
-37

query II rowsort
SELECT 37, - 12 AS col2
----
37
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8860
SELECT + COUNT( * ) AS col1, - ( + 17 ) - SUM( + + COALESCE ( - 34, - + 4 * - 11 * - - 24 DIV + 49 + 16 DIV + CAST( NULL AS SIGNED ), - ( + 76 ) * + + 16 ) )
----
1
17

skipif mysql # not compatible
query II rowsort label-8860
SELECT + COUNT ( * ) AS col1, - ( + 17 ) - SUM ( + + COALESCE ( - 34, - + 4 * - 11 * - - 24 / + 49 + 16 / + CAST ( NULL AS INTEGER ), - ( + 76 ) * + + 16 ) )
----
1
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT - - 1, - 60 * - 36 * - COUNT( * ) AS col0
----
1
-2160

skipif mysql # not compatible
query II rowsort label-8861
SELECT - - 1, - 60 * - 36 * - COUNT ( * ) AS col0
----
1
-2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8862
SELECT COUNT( * ) * 85 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-8862
SELECT COUNT ( * ) * 85 / + 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT - 60 * + 35 + - 14 DIV + 2 AS col2
----
-2107

skipif mysql # not compatible
query I rowsort label-8863
SELECT - 60 * + 35 + - 14 / + 2 AS col2
----
-2107

onlyif mysql # DIV for integer division: 
query II rowsort label-8864
SELECT ALL - 42 + - 4 + + - 22 DIV 44 AS col0, 26 AS col2
----
-46
26

skipif mysql # not compatible
query II rowsort label-8864
SELECT ALL - 42 + - 4 + + - 22 / 44 AS col0, 26 AS col2
----
-46
26

query II rowsort
SELECT - 24 AS col2, - ( + + 31 )
----
-24
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT ALL + COUNT( * ) + 83 * - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL + COUNT ( * ) + 83 * - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT - - COUNT( * ) * + - 84 * - 37 - + 96 + + 85
----
3097

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - - COUNT ( * ) * + - 84 * - 37 - + 96 + + 85
----
3097

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8868
SELECT - CAST( - CASE + 17 WHEN 87 THEN + COUNT( * ) + - 3 WHEN - + 86 THEN NULL WHEN + - ( + - 54 ) THEN NULL ELSE NULL END AS DECIMAL ) / + + 33 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT - CAST ( - CASE + 17 WHEN 87 THEN + COUNT ( * ) + - 3 WHEN - + 86 THEN NULL WHEN + - ( + - 54 ) THEN NULL ELSE NULL END AS REAL ) / + + 33 * 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL CAST( NULL AS SIGNED ) + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL CAST ( NULL AS INTEGER ) + - 78
----
NULL

query II rowsort
SELECT - 8, + 55 AS col2
----
-8
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT ALL COUNT( DISTINCT - 4 ) + + NULLIF ( COUNT( * ), 85 + - 98 ) AS col1, SUM( - + 3 )
----
2
-3

skipif mysql # not compatible
query II rowsort label-8871
SELECT ALL COUNT ( DISTINCT - 4 ) + + NULLIF ( COUNT ( * ), 85 + - 98 ) AS col1, SUM ( - + 3 )
----
2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT DISTINCT 89 - + CAST( NULL AS SIGNED ) - + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT 89 - + CAST ( NULL AS INTEGER ) - + + 77 AS col2
----
NULL

query II rowsort
SELECT ALL + 63 col0, 54
----
63
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT 6 * + - COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-8874
SELECT 6 * + - COUNT ( * ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT 50 + + COALESCE ( + + 88, ( + - 7 ) * - 83 - + 2 + - + COUNT( * ) ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-8875
SELECT 50 + + COALESCE ( + + 88, ( + - 7 ) * - 83 - + 2 + - + COUNT ( * ) ) AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - + MAX( - - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-8876
SELECT - + MAX ( - - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT CASE + + ( 29 ) WHEN COUNT( * ) * - 58 THEN 78 + + 66 + - COUNT( * ) * - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT CASE + + ( 29 ) WHEN COUNT ( * ) * - 58 THEN 78 + + 66 + - COUNT ( * ) * - 19 END
----
NULL

query II rowsort
SELECT + + 83 col1, + 51 * + 75 * 98
----
83
374850

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - 60 * MIN( DISTINCT 48 ) * - 95 + COUNT( * ) + - - 29 AS col0
----
273630

skipif mysql # not compatible
query I rowsort label-8879
SELECT - 60 * MIN ( DISTINCT 48 ) * - 95 + COUNT ( * ) + - - 29 AS col0
----
273630

query II rowsort
SELECT 40 AS col0, - 75
----
40
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT DISTINCT - 96 DIV 36
----
-2

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - 96 / 36
----
-2

query I rowsort
SELECT + COALESCE ( - 72, + 11 + + + 89, + ( - 83 ) ) AS col0
----
-72

query I rowsort
SELECT DISTINCT 81 * - 51
----
-4131

query I rowsort
SELECT ALL 16 * - - 15
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + MIN( DISTINCT - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-8885
SELECT + MIN ( DISTINCT - 13 )
----
-13

query I rowsort
SELECT 68 * - 73
----
-4964

query I rowsort
SELECT + COALESCE ( 79, - 10 + + 87 )
----
79

query I rowsort
SELECT - 26 * - 39 AS col2
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL + ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + ( + - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 26 + - 55 AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8891
SELECT - 96 * 47 / CASE - + CAST( 98 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) * + - 84 + - + 68 THEN ( + COUNT( * ) ) * - CASE COALESCE ( - 47, + + NULLIF ( + 51, - COUNT( * ) ), NULLIF ( - + 19, + + COUNT( ALL + 73 ) ) * + - 7 * - + 3 ) WHEN + 62 THEN NULL WHEN + COUNT( * ) THEN 99 END END * + COUNT( * ) * MIN( 5 ) * + + 28 + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT - 96 * 47 / CASE - + CAST ( 98 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) * + - 84 + - + 68 THEN ( + COUNT ( * ) ) * - CASE COALESCE ( - 47, + + NULLIF ( + 51, - COUNT ( * ) ), NULLIF ( - + 19, + + COUNT ( ALL + 73 ) ) * + - 7 * - + 3 ) WHEN + 62 THEN NULL WHEN + COUNT ( * ) THEN 99 END END * + COUNT ( * ) * MIN ( 5 ) * + + 28 + 70 AS col1
----
NULL

query I rowsort
SELECT ALL - 8 + - 69 + + 88 AS col0
----
11

query I rowsort
SELECT ALL - 45 + 85 AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT + 14 * + 55 * - + 10 * CAST( - - 6 AS SIGNED ) AS col1
----
-46200

skipif mysql # not compatible
query I rowsort label-8894
SELECT + 14 * + 55 * - + 10 * CAST ( - - 6 AS INTEGER ) AS col1
----
-46200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT DISTINCT - - 52 * + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - - 52 * + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT DISTINCT + COUNT( ALL 87 ) - 81 + + + COALESCE ( + 94, 29 + + 48 * 43 ) AS col0, ( 60 ) AS col2
----
14
60

skipif mysql # not compatible
query II rowsort label-8897
SELECT DISTINCT + COUNT ( ALL 87 ) - 81 + + + COALESCE ( + 94, 29 + + 48 * 43 ) AS col0, ( 60 ) AS col2
----
14
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT + + 24 + - 8 col1, COALESCE ( - - 70, - 6 * + 83 * MAX( ALL ( + CASE 98 WHEN + + 52 THEN + 60 WHEN + 72 * - 76 + + + 49 + + 56 THEN NULL ELSE NULL END ) ) + + 20 ) * - COUNT( ALL 68 )
----
16
-70

skipif mysql # not compatible
query II rowsort label-8898
SELECT + + 24 + - 8 col1, COALESCE ( - - 70, - 6 * + 83 * MAX ( ALL ( + CASE 98 WHEN + + 52 THEN + 60 WHEN + 72 * - 76 + + + 49 + + 56 THEN NULL ELSE NULL END ) ) + + 20 ) * - COUNT ( ALL 68 )
----
16
-70

query I rowsort
SELECT + - 49 + + 62 * - + 60 AS col1
----
-3769

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT + COUNT( * ) * + 74 col2, + 69 col1
----
74
69

skipif mysql # not compatible
query II rowsort label-8900
SELECT + COUNT ( * ) * + 74 col2, + 69 col1
----
74
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL 0 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL 0 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT - 0 * + + 48 * + - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT - MAX( 69 ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT - MAX ( 69 ) col2
----
-69

query I rowsort
SELECT ALL + 78 * + - COALESCE ( - + 74, + 61 * + - 35 - 58 ) AS col2
----
5772

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - + NULLIF ( + SUM( DISTINCT + 32 ), + 91 ) * COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - + NULLIF ( + SUM ( DISTINCT + 32 ), + 91 ) * COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL + COALESCE ( 59, - + 79 ) AS col0
----
59

query I rowsort
SELECT + + ( - ( - + 4 ) ) AS col2
----
4

query I rowsort
SELECT ( + 31 ) col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8909
SELECT + CASE + COUNT( * ) WHEN - - ( - CAST( - 92 AS SIGNED ) ) + - - CASE - 48 WHEN - 92 THEN 75 - - + 67 END THEN NULL WHEN + + 40 THEN NULL ELSE - + 9 END AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8909
SELECT + CASE + COUNT ( * ) WHEN - - ( - CAST ( - 92 AS INTEGER ) ) + - - CASE - 48 WHEN - 92 THEN 75 - - + 67 END THEN NULL WHEN + + 40 THEN NULL ELSE - + 9 END AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8910
SELECT + CASE + 78 WHEN - 32 * 73 - MIN( + 19 ) THEN - - 59 ELSE 0 END * + + 58 + + 96 + - - 66, - 2 * + 64 * - COUNT( * ) + - + 36 * + 50 - + 86 AS col2
----
162
-1758

skipif mysql # not compatible
query II rowsort label-8910
SELECT + CASE + 78 WHEN - 32 * 73 - MIN ( + 19 ) THEN - - 59 ELSE 0 END * + + 58 + + 96 + - - 66, - 2 * + 64 * - COUNT ( * ) + - + 36 * + 50 - + 86 AS col2
----
162
-1758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8911
SELECT ALL 85 * - 75 * + - 49 * 74 + - COUNT( * ) / ( 14 ) * 81 + + 26 + + CAST( NULL AS SIGNED ) * - AVG ( ALL COALESCE ( + 94, 12 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL 85 * - 75 * + - 49 * 74 + - COUNT ( * ) / ( 14 ) * 81 + + 26 + + CAST ( NULL AS INTEGER ) * - AVG ( ALL COALESCE ( + 94, 12 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT CASE CASE - 23 WHEN - 13 + + 58 THEN NULL WHEN - - 3 THEN 58 ELSE - 53 END WHEN - COUNT( * ) - 75 THEN NULL WHEN 98 THEN NULL ELSE 58 * + - 12 - - 48 - - 46 END AS col2
----
-602

skipif mysql # not compatible
query I rowsort label-8912
SELECT CASE CASE - 23 WHEN - 13 + + 58 THEN NULL WHEN - - 3 THEN 58 ELSE - 53 END WHEN - COUNT ( * ) - 75 THEN NULL WHEN 98 THEN NULL ELSE 58 * + - 12 - - 48 - - 46 END AS col2
----
-602

query I rowsort
SELECT ALL - 1 * + - ( - 54 ) + - - 6 AS col1
----
-48

query I rowsort
SELECT + 20 + - 73
----
-53

query I rowsort
SELECT ALL 26 * + 91 AS col0
----
2366

query I rowsort
SELECT + CASE WHEN COALESCE ( + - 80, - ( + 70 ) * + 48 + + - 83 * - ( + 73 ) * 20 + + - 31 ) IS NOT NULL THEN - 41 ELSE NULL END
----
-41

query I rowsort
SELECT + ( - ( 65 ) )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8918
SELECT + SUM( ALL - 40 ) * - + 13 * - MAX( + + ( 33 ) ) * - 34 + - COALESCE ( + 45, - ( CAST( NULL AS SIGNED ) ) )
----
583395

skipif mysql # not compatible
query I rowsort label-8918
SELECT + SUM ( ALL - 40 ) * - + 13 * - MAX ( + + ( 33 ) ) * - 34 + - COALESCE ( + 45, - ( CAST ( NULL AS INTEGER ) ) )
----
583395

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT + 39, 81 + + COUNT( * ) AS col1
----
39
82

skipif mysql # not compatible
query II rowsort label-8919
SELECT + 39, 81 + + COUNT ( * ) AS col1
----
39
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT - COUNT( * ) + + 64 - 30
----
33

skipif mysql # not compatible
query I rowsort label-8920
SELECT - COUNT ( * ) + + 64 - 30
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT - SUM( DISTINCT 90 ) + - + NULLIF ( - 97, + 42 + CAST( SUM( + 58 ) AS SIGNED ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8921
SELECT - SUM ( DISTINCT 90 ) + - + NULLIF ( - 97, + 42 + CAST ( SUM ( + 58 ) AS INTEGER ) ) AS col2
----
7

query I rowsort
SELECT ALL 25 * 38
----
950

query I rowsort
SELECT ALL ( - 58 ) AS col2
----
-58

query II rowsort
SELECT - - 18 col2, 44
----
18
44

query II rowsort
SELECT DISTINCT - 62, - 80 AS col2
----
-62
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL SUM( - - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL SUM ( - - 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT 77, - COUNT( * ) AS col2
----
77
-1

skipif mysql # not compatible
query II rowsort label-8927
SELECT 77, - COUNT ( * ) AS col2
----
77
-1

query II rowsort
SELECT - + 56 AS col1, - 81
----
-56
-81

query II rowsort
SELECT - + 44, + 18 * 97 AS col0
----
-44
1746

query II rowsort
SELECT - 54 AS col2, - 10
----
-54
-10

query I rowsort
SELECT - - 62 * + 20 + + 56
----
1296

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT ALL COUNT( * ) col0, COALESCE ( - + 19, + + 86 ) + + + 97 col0
----
1
78

skipif mysql # not compatible
query II rowsort label-8932
SELECT ALL COUNT ( * ) col0, COALESCE ( - + 19, + + 86 ) + + + 97 col0
----
1
78

query I rowsort
SELECT - - 93 - - - 4
----
89

query I rowsort
SELECT - + 87 * NULLIF ( + 73, + 0 ) + - + 11
----
-6362

query I rowsort
SELECT DISTINCT + + 45 * 62 - + 73
----
2717

query I rowsort
SELECT DISTINCT - - 83 * - ( - 51 ) * 8
----
33864

query II rowsort
SELECT ALL 16 AS col0, + 93
----
16
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT - 81 DIV 27
----
-3

skipif mysql # not compatible
query I rowsort label-8938
SELECT - 81 / 27
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8939
SELECT ALL CAST( - - SUM( + 87 ) AS SIGNED ) AS col0, 86, + 9 AS col0
----
87
86
9

skipif mysql # not compatible
query III rowsort label-8939
SELECT ALL CAST ( - - SUM ( + 87 ) AS INTEGER ) AS col0, 86, + 9 AS col0
----
87
86
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - 8 - - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 8 - - COUNT ( * ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT - COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT - + 35 + 84
----
49

query I rowsort
SELECT - 81 * - 82
----
6642

query I rowsort
SELECT ALL 27 + + 67
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT + COUNT( * ) + + - 47 + 63 * 15 * - CASE COUNT( + - 90 ) WHEN 61 * - 87 THEN - 45 ELSE + + ( + 8 ) + 2 END col2
----
-9496

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + COUNT ( * ) + + - 47 + 63 * 15 * - CASE COUNT ( + - 90 ) WHEN 61 * - 87 THEN - 45 ELSE + + ( + 8 ) + 2 END col2
----
-9496

query I rowsort
SELECT DISTINCT - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8947
SELECT ALL COALESCE ( + 63, - 40 - - 22 ) + + COUNT( * ) DIV 76 * + + 39 * - - COUNT( ALL - 74 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL COALESCE ( + 63, - 40 - - 22 ) + + COUNT ( * ) / 76 * + + 39 * - - COUNT ( ALL - 74 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT 9 - COUNT( * ) * + - 22
----
31

skipif mysql # not compatible
query I rowsort label-8948
SELECT 9 - COUNT ( * ) * + - 22
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT - COUNT( 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - COUNT ( 87 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL COALESCE ( + 1, + - MIN( - 42 ) - 81 ) - 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL COALESCE ( + 1, + - MIN ( - 42 ) - 81 ) - 53 AS col2
----
-52

query I rowsort
SELECT - COALESCE ( 79, + 56 ) + - 52 - - - 91
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT CAST( NULL AS SIGNED ) + 30 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT CAST ( NULL AS INTEGER ) + 30 * - 1
----
NULL

query I rowsort
SELECT + 56 + - 17 * + 18 AS col1
----
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT + + 10 DIV 60 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + + 10 / 60 * - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL - - 97 + - COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - - 97 + - COUNT ( * ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8956
SELECT ALL + COALESCE ( - 40, + 67 - - 12 + 97 * 64 DIV 11 * - + ( ( - 51 ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + COALESCE ( - 40, + 67 - - 12 + 97 * 64 / 11 * - + ( ( - 51 ) ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT + 17 + + + 43 + + + NULLIF ( 28, - COUNT( ALL 62 ) / - 84 + - SUM( + 92 ) + + 98 / 16 + + - 44 - - 94 * - SUM( DISTINCT + 0 ) + + 53 )
----
88

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + 17 + + + 43 + + + NULLIF ( 28, - COUNT ( ALL 62 ) / - 84 + - SUM ( + 92 ) + + 98 / 16 + + - 44 - - 94 * - SUM ( DISTINCT + 0 ) + + 53 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT - 36 * 0 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT - 36 * 0 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 6 + + + 0
----
-6

query I rowsort
SELECT + ( - 17 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8961
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) + COALESCE ( - 61, - 87 + 9 + - 91 + + COUNT( + ( + 44 ) ) DIV + - CAST( NULL AS SIGNED ), + 74 * + - 99, 75 + + - 50 ) * - 10
----
611

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) + COALESCE ( - 61, - 87 + 9 + - 91 + + COUNT ( + ( + 44 ) ) / + - CAST ( NULL AS INTEGER ), + 74 * + - 99, 75 + + - 50 ) * - 10
----
611

query I rowsort
SELECT ALL - - 5 + + 98 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8963
SELECT CASE CAST( - + 41 AS SIGNED ) WHEN + NULLIF ( - COUNT( 41 ), - ( + 54 ) ) THEN - 98 + 87 WHEN AVG ( 88 ) + - - 38 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT CASE CAST ( - + 41 AS INTEGER ) WHEN + NULLIF ( - COUNT ( 41 ), - ( + 54 ) ) THEN - 98 + 87 WHEN AVG ( 88 ) + - - 38 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 74 + ( + + 36 ) + - - 28 AS col0
----
138

query I rowsort
SELECT ALL + 57 + + 97
----
154

query I rowsort
SELECT 3 * 51
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL - COALESCE ( - 7, 17 - - COUNT( * ), + ( - 98 ) * + COUNT( * ) + + 4 * - 43 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL - COALESCE ( - 7, 17 - - COUNT ( * ), + ( - 98 ) * + COUNT ( * ) + + 4 * - 43 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8968
SELECT COUNT( * ), 21 col2
----
1
21

skipif mysql # not compatible
query II rowsort label-8968
SELECT COUNT ( * ), 21 col2
----
1
21

query I rowsort
SELECT 99 + + 64 AS col1
----
163

query I rowsort
SELECT 3 * - 94
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT 95 DIV - 44 - 38 + + 92
----
52

skipif mysql # not compatible
query I rowsort label-8971
SELECT 95 / - 44 - 38 + + 92
----
52

query I rowsort
SELECT DISTINCT - ( + + 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL - COUNT( - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - COUNT ( - 54 )
----
-1

query I rowsort
SELECT 44 + + 86
----
130

query I rowsort
SELECT ( + 14 ) * - COALESCE ( 66, + 48 )
----
-924

query I rowsort
SELECT 18 * - 50 AS col2
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT 24 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT 24 / - 81
----
0

query I rowsort
SELECT + 81 * - 41 + 78
----
-3243

query I rowsort
SELECT ALL - 98 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT + SUM( ALL 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8980
SELECT + SUM ( ALL 50 ) AS col2
----
50

query I rowsort
SELECT 72 * COALESCE ( + 61, - 86 )
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL COUNT( - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL COUNT ( - 58 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 13
----
NULL

query I rowsort
SELECT 62 * 55 AS col1
----
3410

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL 12 * - COUNT( 30 )
----
-12

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL 12 * - COUNT ( 30 )
----
-12

query I rowsort
SELECT ALL 23 * 40
----
920

query I rowsort
SELECT ALL 82 + 21 AS col1
----
103

query I rowsort
SELECT DISTINCT 58 + - 7 * + 74 AS col0
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT 17 + - COALESCE ( - MIN( - 51 ) + + COUNT( * ) * 22, 94 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT 17 + - COALESCE ( - MIN ( - 51 ) + + COUNT ( * ) * 22, 94 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - COALESCE ( - 52, - COUNT( * ) + - 19, + SUM( ALL + 85 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8990
SELECT - COALESCE ( - 52, - COUNT ( * ) + - 19, + SUM ( ALL + 85 ) ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT + CAST( NULL AS SIGNED ) * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT + CAST ( NULL AS INTEGER ) * 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + ( SUM( - 95 ) ) - 35 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-8992
SELECT + ( SUM ( - 95 ) ) - 35 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + COUNT( * ) - SUM( DISTINCT 59 + + 52 )
----
-110

skipif mysql # not compatible
query I rowsort label-8993
SELECT + COUNT ( * ) - SUM ( DISTINCT 59 + + 52 )
----
-110

query I rowsort
SELECT DISTINCT COALESCE ( - ( - 31 ), + 9 ) + + ( 16 ) * 22 AS col0
----
383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT - COALESCE ( + 34, - MAX( DISTINCT 80 ), - 44 DIV 43 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8995
SELECT - COALESCE ( + 34, - MAX ( DISTINCT 80 ), - 44 / 43 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT - 80 + 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + ( COUNT( * ) ) + + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + ( COUNT ( * ) ) + + 59 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8998
SELECT + 74 + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 74 + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 80 - - 81 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT - COALESCE ( 75, - 53 * - 2, + ( - CAST( NULL AS SIGNED ) ) * 33, + 38 + - 62 )
----
-75

skipif mysql # not compatible
query I rowsort label-9000
SELECT - COALESCE ( 75, - 53 * - 2, + ( - CAST ( NULL AS INTEGER ) ) * 33, + 38 + - 62 )
----
-75

query I rowsort
SELECT - 97 + 17 AS col1
----
-80

query I rowsort
SELECT DISTINCT 3 - 12
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL - 63 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - 63 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 44 * 16 col1
----
704

query I rowsort
SELECT ( 82 ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT COALESCE ( + ( - MIN( - 76 ) ), 95 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9006
SELECT COALESCE ( + ( - MIN ( - 76 ) ), 95 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + MIN( - ( + 68 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + MIN ( - ( + 68 ) )
----
-68

query I rowsort
SELECT ALL - 31 * + 89 - - 4 AS col2
----
-2755

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT ALL - 18 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - 18 / + 96 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT - 66 DIV + 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9010
SELECT - 66 / + 36 AS col2
----
-1

query I rowsort
SELECT - 78 * + 75
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - - ( 34 ) * SUM( + 97 )
----
3298

skipif mysql # not compatible
query I rowsort label-9012
SELECT - - ( 34 ) * SUM ( + 97 )
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + MAX( ALL 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9013
SELECT + MAX ( ALL 98 ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT - 11 - - 67 DIV - 83 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9014
SELECT - 11 - - 67 / - 83 AS col2
----
-11

query I rowsort
SELECT ALL - - 18 * 56
----
1008

query I rowsort
SELECT - NULLIF ( 44, 73 ) * 17 AS col1
----
-748

query I rowsort
SELECT DISTINCT + 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT - 83 * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - 83 * - COUNT ( * )
----
83

query I rowsort
SELECT ALL 5 * 32 + 67 AS col0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT - - COUNT( * ) - + MIN( DISTINCT + ( 20 ) ) / + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT - - COUNT ( * ) - + MIN ( DISTINCT + ( 20 ) ) / + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL 26 * - COUNT( * ) + COALESCE ( 77, - 12 * 5 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL 26 * - COUNT ( * ) + COALESCE ( 77, - 12 * 5 ) AS col1
----
51

query I rowsort
SELECT - + ( 96 ) + 29 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT - 9 * - COUNT( * ) - - 68
----
77

skipif mysql # not compatible
query I rowsort label-9023
SELECT - 9 * - COUNT ( * ) - - 68
----
77

query I rowsort
SELECT - - 70 + 69 AS col2
----
139

query I rowsort
SELECT + 74 - - 70
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + COUNT( ALL - 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9026
SELECT + COUNT ( ALL - 99 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT + 88 DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-9027
SELECT + 88 / - 86
----
-1

query I rowsort
SELECT - 27 + 78
----
51

query I rowsort
SELECT DISTINCT - + 84 + + 87
----
3

query I rowsort
SELECT - + 67 AS col1
----
-67

query I rowsort
SELECT + 54 + 48
----
102

query I rowsort
SELECT ALL - 23 + + 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT + + 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9033
SELECT + + 12 * COUNT ( * )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT ALL - + 9 DIV - ( - 84 )
----
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - + 9 / - ( - 84 )
----
0

query I rowsort
SELECT ALL ( + COALESCE ( 94, - 1 + + 24 ) ) - - 57 * ( + 19 * + 66 )
----
71572

query I rowsort
SELECT ALL 69 * + - 74 * - 72
----
367632

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9037
SELECT - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT COUNT( * ) * 29 * COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT COUNT ( * ) * 29 * COUNT ( * ) AS col1
----
29

query I rowsort
SELECT ALL 62 - 31 - 53 * 50
----
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT + 33 + + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9040
SELECT + 33 + + - COUNT ( * )
----
32

query I rowsort
SELECT - CASE 70 WHEN + 8 THEN 40 - - 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT + 62 + + 44 * MIN( 28 ) AS col0
----
1294

skipif mysql # not compatible
query I rowsort label-9042
SELECT + 62 + + 44 * MIN ( 28 ) AS col0
----
1294

query I rowsort
SELECT ALL 26 * - - 55 AS col1
----
1430

query I rowsort
SELECT + 38 + + 95
----
133

query I rowsort
SELECT ALL - 31 * - 12 * - 46 AS col2
----
-17112

query I rowsort
SELECT + 90 * + - 85
----
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT 86 * SUM( - 24 ) + 77
----
-1987

skipif mysql # not compatible
query I rowsort label-9047
SELECT 86 * SUM ( - 24 ) + 77
----
-1987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT CAST( + 54 AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9048
SELECT CAST ( + 54 AS INTEGER ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT + 30 DIV COUNT( * ) * + 80 + 25
----
2425

skipif mysql # not compatible
query I rowsort label-9049
SELECT + 30 / COUNT ( * ) * + 80 + 25
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL + COUNT( ALL + - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + COUNT ( ALL + - 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT + 54 DIV - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 54 / - + COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT - 60 * - - 5 * COUNT( * ) AS col2
----
-300

skipif mysql # not compatible
query I rowsort label-9053
SELECT - 60 * - - 5 * COUNT ( * ) AS col2
----
-300

query I rowsort
SELECT + 72 + + 65 * 0
----
72

query I rowsort
SELECT - 57 * + 9 * + 31 + 86
----
-15817

query I rowsort
SELECT ALL ( 99 ) * + 10 AS col2
----
990

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT ALL 53 DIV - 19 + 22 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL 53 / - 19 + 22 AS col1
----
20

query I rowsort
SELECT DISTINCT 88 * - 49 AS col0
----
-4312

query I rowsort
SELECT - 32 + 42 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9060
SELECT ALL - ( - + 45 ) DIV 97 + COALESCE ( + 2, 37, 86 * + COUNT( * ) ) * - ( - ( 89 ) ) AS col0
----
178

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL - ( - + 45 ) / 97 + COALESCE ( + 2, 37, 86 * + COUNT ( * ) ) * - ( - ( 89 ) ) AS col0
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT + 75 DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 75 / + 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - COUNT( * ) + - ( 35 ) * 19
----
-666

skipif mysql # not compatible
query I rowsort label-9062
SELECT - COUNT ( * ) + - ( 35 ) * 19
----
-666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT ALL 61 * - 54 + ( - CASE 97 WHEN 11 * CAST( + 18 * + 61 AS SIGNED ) + 7 / + ( - 79 ) THEN NULL WHEN 46 * 23 THEN + 53 ELSE + SUM( 10 ) END + 23 )
----
-3281

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL 61 * - 54 + ( - CASE 97 WHEN 11 * CAST ( + 18 * + 61 AS INTEGER ) + 7 / + ( - 79 ) THEN NULL WHEN 46 * 23 THEN + 53 ELSE + SUM ( 10 ) END + 23 )
----
-3281

query I rowsort
SELECT 93 * - - 52 + 27 AS col0
----
4863

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL - ( + 55 ) * - COUNT( * ) + 21
----
76

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - ( + 55 ) * - COUNT ( * ) + 21
----
76

query I rowsort
SELECT + + 13 col2
----
13

query I rowsort
SELECT + + ( + ( 71 ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL - COUNT( * ) * - + ( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - COUNT ( * ) * - + ( 88 )
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9069
SELECT + 25 * - 72 * ( + CAST( NULL AS DECIMAL ) ) - - 63 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT + 25 * - 72 * ( + CAST ( NULL AS REAL ) ) - - 63 * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT - - SUM( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT - - SUM ( 94 ) AS col2
----
94

query I rowsort
SELECT - ( - + 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL + - MIN( ALL - 50 ) - - 87
----
137

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL + - MIN ( ALL - 50 ) - - 87
----
137

query I rowsort
SELECT ALL - 78 * + 0 * + 14
----
0

query I rowsort
SELECT 28 * + - ( + 73 ) - 30 * + 35
----
-3094

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT 77 - + 99 DIV 85 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9075
SELECT 77 - + 99 / 85 AS col1
----
76

query I rowsort
SELECT - 99 col1
----
-99

query I rowsort
SELECT 93 * - ( - 77 ) AS col1
----
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT COUNT( * ) * + 75 * - + 94
----
-7050

skipif mysql # not compatible
query I rowsort label-9078
SELECT COUNT ( * ) * + 75 * - + 94
----
-7050

query I rowsort
SELECT 3 - - + 44
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT 12 - + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9080
SELECT 12 - + COUNT ( * ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9082
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9083
SELECT ALL + COALESCE ( + 59, - 48 * COUNT( * ) - ( + 51 + - 51 ), 10 + CAST( NULL AS SIGNED ) ) DIV CASE 87 + - 53 WHEN 19 THEN MAX( + 86 ) ELSE - 42 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + COALESCE ( + 59, - 48 * COUNT ( * ) - ( + 51 + - 51 ), 10 + CAST ( NULL AS INTEGER ) ) / CASE 87 + - 53 WHEN 19 THEN MAX ( + 86 ) ELSE - 42 END AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9084
SELECT COALESCE ( - COUNT( - 31 ), - CAST( NULL AS SIGNED ) DIV COUNT( * ) ) DIV 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT COALESCE ( - COUNT ( - 31 ), - CAST ( NULL AS INTEGER ) / COUNT ( * ) ) / 19 AS col0
----
0

query I rowsort
SELECT 9 * 44
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT NULLIF ( + 40, - NULLIF ( 80, 37 ) ) + CAST( 59 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9086
SELECT NULLIF ( + 40, - NULLIF ( 80, 37 ) ) + CAST ( 59 AS INTEGER ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT ( + - ( COUNT( * ) ) ) * 60
----
-60

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT ( + - ( COUNT ( * ) ) ) * 60
----
-60

query I rowsort
SELECT 18 * - 12
----
-216

query II rowsort
SELECT 73, 80 col0
----
73
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ( COUNT( * ) ) - + 10 + - 71 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9090
SELECT ( COUNT ( * ) ) - + 10 + - 71 AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT - 88, + 11 AS col0
----
-88
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT ALL 43 + CASE + CAST( 51 AS SIGNED ) WHEN 52 THEN 36 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL 43 + CASE + CAST ( 51 AS INTEGER ) WHEN 52 THEN 36 END col1
----
NULL

query I rowsort
SELECT 43 * - 81
----
-3483

query I rowsort
SELECT ALL 33 + 61 + - 72
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL 77 + + + 45 - + MAX( DISTINCT 62 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL 77 + + + 45 - + MAX ( DISTINCT 62 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT DISTINCT + 25 + + COUNT( * ) - - 71 * 8 col0
----
594

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + 25 + + COUNT ( * ) - - 71 * 8 col0
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT DISTINCT + + COUNT( * ) * - CAST( - - ( 34 ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + + COUNT ( * ) * - CAST ( - - ( 34 ) AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT COUNT( * ) + 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9099
SELECT COUNT ( * ) + 8 AS col0
----
9

query II rowsort
SELECT + + 51 AS col0, ( + - 64 ) + 52
----
51
-12

query I rowsort
SELECT ALL - 42 + 3 * 47
----
99

query I rowsort
SELECT 37 * 40 * - - 23 - 75 AS col2
----
33965

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT MIN( DISTINCT - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-9103
SELECT MIN ( DISTINCT - 96 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL + 67 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + 67 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 79 - - 7 + + - 33 * + 17
----
-475

query I rowsort
SELECT DISTINCT 88 * + 63 * - 92 AS col1
----
-510048

query I rowsort
SELECT ALL - ( + 20 ) AS col1
----
-20

query I rowsort
SELECT ALL 6 * 8 AS col1
----
48

query I rowsort
SELECT DISTINCT - 49 - + 70
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - CASE + - COUNT( * ) WHEN - CASE - 74 WHEN 70 THEN + 12 WHEN + 89 * + 25 THEN NULL ELSE NULL END * COUNT( * ) THEN 39 * 92 ELSE - 15 * + 34 END + + 32
----
542

skipif mysql # not compatible
query I rowsort label-9110
SELECT - CASE + - COUNT ( * ) WHEN - CASE - 74 WHEN 70 THEN + 12 WHEN + 89 * + 25 THEN NULL ELSE NULL END * COUNT ( * ) THEN 39 * 92 ELSE - 15 * + 34 END + + 32
----
542

query I rowsort
SELECT ALL - + ( - - 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT 45 + + MAX( + 31 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9112
SELECT 45 + + MAX ( + 31 ) AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT 22 + + + CAST( NULL AS SIGNED ) + + - CASE - 92 WHEN 33 THEN NULL ELSE CAST( 92 AS SIGNED ) END - 62 / + 83 * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT 22 + + + CAST ( NULL AS INTEGER ) + + - CASE - 92 WHEN 33 THEN NULL ELSE CAST ( 92 AS INTEGER ) END - 62 / + 83 * + 55
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9114
SELECT 29 DIV + 73, + NULLIF ( - 7, + 34 * AVG ( + 11 ) ) AS col2
----
0
-7

skipif mysql # not compatible
query II rowsort label-9114
SELECT 29 / + 73, + NULLIF ( - 7, + 34 * AVG ( + 11 ) ) AS col2
----
0
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT - 86 * - CASE - - 91 WHEN - + 42 + - NULLIF ( 32 + + 65, + 50 ) THEN NULL WHEN ( + 8 ) * - 88 THEN - ( - 27 ) + + COUNT( * ) ELSE NULL END / 37 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT - 86 * - CASE - - 91 WHEN - + 42 + - NULLIF ( 32 + + 65, + 50 ) THEN NULL WHEN ( + 8 ) * - 88 THEN - ( - 27 ) + + COUNT ( * ) ELSE NULL END / 37 + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT 38 * + 50 * COUNT( * )
----
1900

skipif mysql # not compatible
query I rowsort label-9116
SELECT 38 * + 50 * COUNT ( * )
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-9117
SELECT 12 + - + 99 AS col1, MIN( + + 18 ) * + 21 AS col2
----
-87
378

skipif mysql # not compatible
query II rowsort label-9117
SELECT 12 + - + 99 AS col1, MIN ( + + 18 ) * + 21 AS col2
----
-87
378

query I rowsort
SELECT DISTINCT 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT 22 + + + MIN( - - 47 )
----
69

skipif mysql # not compatible
query I rowsort label-9119
SELECT 22 + + + MIN ( - - 47 )
----
69

query II rowsort
SELECT 28 * + 54, ( 71 ) * + 64 AS col1
----
1512
4544

query I rowsort
SELECT ALL + 59 * + 11 AS col1
----
649

query I rowsort
SELECT DISTINCT + 50 * + - 56 AS col0
----
-2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT 47 + + CAST( - 81 AS SIGNED ) + + - 78 * NULLIF ( + 69 * + ( 91 ), + 98 ) AS col0
----
-489796

skipif mysql # not compatible
query I rowsort label-9123
SELECT 47 + + CAST ( - 81 AS INTEGER ) + + - 78 * NULLIF ( + 69 * + ( 91 ), + 98 ) AS col0
----
-489796

query I rowsort
SELECT ALL + ( + 17 ) * - 52 * - 29 * - 95
----
-2435420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT 18 * + ( + CAST( + 50 AS SIGNED ) )
----
900

skipif mysql # not compatible
query I rowsort label-9125
SELECT 18 * + ( + CAST ( + 50 AS INTEGER ) )
----
900

query I rowsort
SELECT 57 + + + 11 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT COUNT( + 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT COUNT ( + 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL - ( - CASE - 78 WHEN + - 74 THEN 62 * 81 WHEN 76 THEN NULL ELSE - CASE 26 WHEN 15 / 6 THEN ( ( 92 ) ) - 3 WHEN 32 THEN NULL WHEN 20 THEN NULL END + 0 * 31 END ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - ( - CASE - 78 WHEN + - 74 THEN 62 * 81 WHEN 76 THEN NULL ELSE - CASE 26 WHEN 15 / 6 THEN ( ( 92 ) ) - 3 WHEN 32 THEN NULL WHEN 20 THEN NULL END + 0 * 31 END ) + - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL + 5 + + MIN( DISTINCT - 32 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + 5 + + MIN ( DISTINCT - 32 ) AS col2
----
-27

query I rowsort
SELECT 43 + 66 + + 45 col0
----
154

query II rowsort
SELECT DISTINCT + 87 + - 51 AS col0, + 7 + + 43 * + 53 AS col2
----
36
2286

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT COUNT( ALL + 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT COUNT ( ALL + 92 ) AS col0
----
1

query I rowsort
SELECT ALL - 60 + - 55 + - 2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT ALL ( 31 ) * - COALESCE ( - - 62, - 91 DIV + COALESCE ( + 9, 95 ), 41, 16 * 37 ) AS col1
----
-1922

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL ( 31 ) * - COALESCE ( - - 62, - 91 / + COALESCE ( + 9, 95 ), 41, 16 * 37 ) AS col1
----
-1922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL + + 94 / - MAX( - CAST( NULL AS SIGNED ) ) * 6 + + 55 * 71 - - 57 / COUNT( - 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + + 94 / - MAX ( - CAST ( NULL AS INTEGER ) ) * 6 + + 55 * 71 - - 57 / COUNT ( - 60 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 69 ) + 45 * + 52 + 66 AS col1
----
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-9137
SELECT DISTINCT + 96 DIV + + 69 + - - 96 * 63 * + 24
----
145153

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT + 96 / + + 69 + - - 96 * 63 * + 24
----
145153

query I rowsort
SELECT DISTINCT + 46 * + - 56 + - 17 AS col0
----
-2593

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT 52 / - 72 - + - CASE + 51 WHEN - 64 * 13 THEN - 68 WHEN 15 * - COUNT( * ) + - 77 THEN - 22 * - 78 ELSE NULL END + + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT 52 / - 72 - + - CASE + 51 WHEN - 64 * 13 THEN - 68 WHEN 15 * - COUNT ( * ) + - 77 THEN - 22 * - 78 ELSE NULL END + + 47 AS col0
----
NULL

query I rowsort
SELECT + + 77 + - 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL COUNT( * ) * - 40 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL COUNT ( * ) * - 40 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT - CAST( ( - ( + 60 ) ) AS SIGNED ) + 68 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-9142
SELECT - CAST ( ( - ( + 60 ) ) AS INTEGER ) + 68 AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT + SUM( ALL + CAST( NULL AS SIGNED ) ) - - AVG ( + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT + SUM ( ALL + CAST ( NULL AS INTEGER ) ) - - AVG ( + 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT ALL + - 40 * + 70 col1, - COUNT( - ( 65 ) ) AS col1
----
-2800
-1

skipif mysql # not compatible
query II rowsort label-9144
SELECT ALL + - 40 * + 70 col1, - COUNT ( - ( 65 ) ) AS col1
----
-2800
-1

query I rowsort
SELECT DISTINCT + + 72 AS col0
----
72

query I rowsort
SELECT ALL + - 14 * 14
----
-196

query I rowsort
SELECT DISTINCT + + 56 col0
----
56

query I rowsort
SELECT DISTINCT + - ( + 69 )
----
-69

query I rowsort
SELECT ALL + ( ( + 8 ) ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT - 23 * - COALESCE ( - - 83, + 78 + CAST( 22 AS SIGNED ) * 37 ) + 19 * 19 + + CASE 74 + + COUNT( * ) WHEN + 94 THEN - 79 ELSE NULL END * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT - 23 * - COALESCE ( - - 83, + 78 + CAST ( 22 AS INTEGER ) * 37 ) + 19 * 19 + + CASE 74 + + COUNT ( * ) WHEN + 94 THEN - 79 ELSE NULL END * 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL - 16 * + COUNT( * ) - - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - 16 * + COUNT ( * ) - - COUNT ( * ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT + COALESCE ( - 3, - ( + + ( - CASE 23 WHEN CAST( 32 AS SIGNED ) THEN NULL ELSE + 67 END ) ), + CASE + 90 WHEN ( COUNT( ALL 64 ) ) THEN + 86 - - 82 ELSE NULL END + 68 ) * - 45 + - 96
----
39

skipif mysql # not compatible
query I rowsort label-9152
SELECT + COALESCE ( - 3, - ( + + ( - CASE 23 WHEN CAST ( 32 AS INTEGER ) THEN NULL ELSE + 67 END ) ), + CASE + 90 WHEN ( COUNT ( ALL 64 ) ) THEN + 86 - - 82 ELSE NULL END + 68 ) * - 45 + - 96
----
39

query I rowsort
SELECT + - 88 AS col2
----
-88

query I rowsort
SELECT DISTINCT + - 35 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT COUNT( 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9155
SELECT COUNT ( 58 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT - SUM( + + ( 86 ) ) DIV - + 72
----
1

skipif mysql # not compatible
query I rowsort label-9156
SELECT - SUM ( + + ( 86 ) ) / - + 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + CASE - 27 WHEN + COUNT( * ) + + 45 + 50 * 72 THEN - 20 * 30 + + 66 * 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT + CASE - 27 WHEN + COUNT ( * ) + + 45 + 50 * 72 THEN - 20 * 30 + + 66 * 64 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL 3 * COUNT( NULLIF ( + 33, + 8 - + 72 ) )
----
3

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL 3 * COUNT ( NULLIF ( + 33, + 8 - + 72 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT MIN( + - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9159
SELECT MIN ( + - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL SUM( - 29 ) + + 27 * 39
----
1024

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL SUM ( - 29 ) + + 27 * 39
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT + 3 * COUNT( * ) * - 12
----
-36

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 3 * COUNT ( * ) * - 12
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - NULLIF ( - COUNT( * ), + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9162
SELECT - NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - 85 + - 63
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT 91 + MIN( + - 15 ) + 94 + + MIN( DISTINCT 86 ) * 6
----
686

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT 91 + MIN ( + - 15 ) + 94 + + MIN ( DISTINCT 86 ) * 6
----
686

query II rowsort
SELECT - 73 AS col0, 90 AS col2
----
-73
90

query I rowsort
SELECT + 32 - + 25 + ( 12 ) AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9167
SELECT DISTINCT ( 62 ) + 24, CAST( - AVG ( - 15 ) AS SIGNED ) * 32 - 7 col0
----
86
473

skipif mysql # not compatible
query II rowsort label-9167
SELECT DISTINCT ( 62 ) + 24, CAST ( - AVG ( - 15 ) AS INTEGER ) * 32 - 7 col0
----
86
473

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - COUNT( * ) - - + 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9168
SELECT - COUNT ( * ) - - + 84 AS col0
----
83

query I rowsort
SELECT ALL + 1 * + 18
----
18

query II rowsort
SELECT - 84 AS col1, 58 AS col0
----
-84
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT ALL CAST( NULL AS SIGNED ) + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL CAST ( NULL AS INTEGER ) + + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL SUM( 71 ) + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL SUM ( 71 ) + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT + 83 * COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + 83 * COUNT ( * ) AS col2
----
83

query I rowsort
SELECT DISTINCT - 56 + + + ( + 80 )
----
24

query I rowsort
SELECT ( - 67 ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT - 98 * + + CAST( NULL AS SIGNED ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT - 98 * + + CAST ( NULL AS INTEGER ) + 89
----
NULL

query I rowsort
SELECT - - 97 - 3
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - - ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9178
SELECT - - ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - 55 * - 55 - + 33 AS col0
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9180
SELECT ALL + 21 AS col2, + 4 * + 63 AS col2, + CASE + CAST( COUNT( * ) AS SIGNED ) WHEN - CAST( COALESCE ( - COUNT( * ), + 64 ) AS SIGNED ) / - 60 + 77 THEN NULL WHEN 7 + + 81 THEN NULL WHEN - 86 * 7 THEN - NULLIF ( + 0, 58 ) END
----
21
252
NULL

skipif mysql # not compatible
query III rowsort label-9180
SELECT ALL + 21 AS col2, + 4 * + 63 AS col2, + CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN - CAST ( COALESCE ( - COUNT ( * ), + 64 ) AS INTEGER ) / - 60 + 77 THEN NULL WHEN 7 + + 81 THEN NULL WHEN - 86 * 7 THEN - NULLIF ( + 0, 58 ) END
----
21
252
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT - 64 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT - 64 / + 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT DISTINCT - 98 DIV + - 45 - 40 - - 29 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT - 98 / + - 45 - 40 - - 29 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL - 51 / + CASE + 36 WHEN 2 THEN NULLIF ( 45, 7 * 57 ) ELSE ( CASE 39 WHEN 6 THEN 52 WHEN - 39 THEN NULL END ) + + COALESCE ( + 50, CAST( MIN( DISTINCT 67 ) AS SIGNED ) ) * 34 END - ( + MAX( ( - 77 ) ) - + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - 51 / + CASE + 36 WHEN 2 THEN NULLIF ( 45, 7 * 57 ) ELSE ( CASE 39 WHEN 6 THEN 52 WHEN - 39 THEN NULL END ) + + COALESCE ( + 50, CAST ( MIN ( DISTINCT 67 ) AS INTEGER ) ) * 34 END - ( + MAX ( ( - 77 ) ) - + 10 )
----
NULL

query I rowsort
SELECT + - NULLIF ( + - 33, - + 90 ) col2
----
33

query I rowsort
SELECT ALL + + 44 col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT ALL - + CAST( NULL AS SIGNED ) / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - + CAST ( NULL AS INTEGER ) / 9
----
NULL

query I rowsort
SELECT COALESCE ( + - 37, - 68 ) AS col1
----
-37

query I rowsort
SELECT ALL + 99 * + - 64 AS col2
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9189
SELECT + CAST( 9 AS SIGNED ) * - + 0 - 0 - - COUNT( * ) DIV - 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT + CAST ( 9 AS INTEGER ) * - + 0 - 0 - - COUNT ( * ) / - 41 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT - 85 DIV 57 * + 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 85 / 57 * + 64 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9191
SELECT + CASE 40 WHEN - 15 * 48 * - + 43 THEN NULL WHEN COALESCE ( 88, COUNT( * ) ) + 38 THEN NULL ELSE 95 END * + COALESCE ( + CAST( NULL AS SIGNED ) - + 59, 76 + - 23, + 14, 52 * - 44 )
----
5035

skipif mysql # not compatible
query I rowsort label-9191
SELECT + CASE 40 WHEN - 15 * 48 * - + 43 THEN NULL WHEN COALESCE ( 88, COUNT ( * ) ) + 38 THEN NULL ELSE 95 END * + COALESCE ( + CAST ( NULL AS INTEGER ) - + 59, 76 + - 23, + 14, 52 * - 44 )
----
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT + 91 * - COUNT( * ) + 57 + + + 2 + + 10 * CAST( 39 AS SIGNED )
----
358

skipif mysql # not compatible
query I rowsort label-9192
SELECT + 91 * - COUNT ( * ) + 57 + + + 2 + + 10 * CAST ( 39 AS INTEGER )
----
358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9193
SELECT DISTINCT + + 33, 1 + - - CAST( 52 AS SIGNED ) - - COUNT( * ) / CASE 14 * SUM( + CAST( NULL AS SIGNED ) ) + MIN( ALL 73 ) * + CAST( NULL AS SIGNED ) WHEN + 37 + 6 THEN COUNT( * ) WHEN 37 THEN - 42 END AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9193
SELECT DISTINCT + + 33, 1 + - - CAST ( 52 AS INTEGER ) - - COUNT ( * ) / CASE 14 * SUM ( + CAST ( NULL AS INTEGER ) ) + MIN ( ALL 73 ) * + CAST ( NULL AS INTEGER ) WHEN + 37 + 6 THEN COUNT ( * ) WHEN 37 THEN - 42 END AS col2
----
33
NULL

query I rowsort
SELECT + 74 * + 7 AS col2
----
518

query I rowsort
SELECT ALL 83 * + 11 + - + 5 + + + 78 * - + 3 AS col2
----
674

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT COUNT( ALL + 13 ) * + + COUNT( * ) + + COUNT( * ) + + 60 - + 4
----
58

skipif mysql # not compatible
query I rowsort label-9196
SELECT COUNT ( ALL + 13 ) * + + COUNT ( * ) + + COUNT ( * ) + + 60 - + 4
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL + ( + 47 ) * + 97 * - + COUNT( * ) + + - 22 + 3 + - 94
----
-4672

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + ( + 47 ) * + 97 * - + COUNT ( * ) + + - 22 + 3 + - 94
----
-4672

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT - 62 + - 90 * 7 DIV 75
----
-70

skipif mysql # not compatible
query I rowsort label-9198
SELECT - 62 + - 90 * 7 / 75
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT COALESCE ( + ( - + 60 ), + + AVG ( 36 ) DIV 75 )
----
-60

skipif mysql # not compatible
query I rowsort label-9199
SELECT COALESCE ( + ( - + 60 ), + + AVG ( 36 ) / 75 )
----
-60

query I rowsort
SELECT - 38 * + 49 AS col1
----
-1862

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9201
SELECT + 44 + - 17 AS col1, + CAST( NULL AS SIGNED ) - + 5
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9201
SELECT + 44 + - 17 AS col1, + CAST ( NULL AS INTEGER ) - + 5
----
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - NULLIF ( + 23, + 49 + - ( + 42 ) + - NULLIF ( 28, - 17 * NULLIF ( - ( 89 ) * 14, - 29 ) ) - 74 * COUNT( - 26 + - NULLIF ( 92, + 43 ) ) / 31 )
----
-23

skipif mysql # not compatible
query I rowsort label-9202
SELECT - NULLIF ( + 23, + 49 + - ( + 42 ) + - NULLIF ( 28, - 17 * NULLIF ( - ( 89 ) * 14, - 29 ) ) - 74 * COUNT ( - 26 + - NULLIF ( 92, + 43 ) ) / 31 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT CASE - 47 WHEN + MAX( 78 ) THEN + 11 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT CASE - 47 WHEN + MAX ( 78 ) THEN + 11 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT + COALESCE ( + 14, + 41 * 11 * - ( - 91 ) * 86 ) + 75 DIV 17 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9204
SELECT + COALESCE ( + 14, + 41 * 11 * - ( - 91 ) * 86 ) + 75 / 17 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9205
SELECT ALL 27 * CAST( NULL AS SIGNED ) + - SUM( DISTINCT + + 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL 27 * CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT + + 54 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - ( + + MIN( + ( + ( 1 ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9206
SELECT - ( + + MIN ( + ( + ( 1 ) ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT DISTINCT + NULLIF ( CAST( NULL AS SIGNED ), + + CAST( - 0 AS SIGNED ) ) * - 46 * - COUNT( * ) + 59 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + NULLIF ( CAST ( NULL AS INTEGER ), + + CAST ( - 0 AS INTEGER ) ) * - 46 * - COUNT ( * ) + 59 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT MAX( ALL - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9208
SELECT MAX ( ALL - 99 )
----
-99

query I rowsort
SELECT ALL 31 * + 29 AS col1
----
899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT DISTINCT 7 * - - COUNT( * ) * + ( + COUNT( DISTINCT + 18 ) ) DIV + 26 + 35 * 69 AS col2
----
2415

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT 7 * - - COUNT ( * ) * + ( + COUNT ( DISTINCT + 18 ) ) / + 26 + 35 * 69 AS col2
----
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT COUNT( * ) * - + 59
----
-59

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT COUNT ( * ) * - + 59
----
-59

query I rowsort
SELECT ALL CASE - - 78 WHEN + + 56 THEN + ( + 60 ) * - 64 END
----
NULL

query I rowsort
SELECT ALL - 42 - - 19
----
-23

query I rowsort
SELECT + 78 * 53 AS col2
----
4134

query I rowsort
SELECT + 90 + - 31
----
59

query II rowsort
SELECT - 40 col0, - 19 AS col0
----
-40
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9217
SELECT 82 + + CAST( + 39 AS SIGNED ) + + 66, 92 AS col1
----
187
92

skipif mysql # not compatible
query II rowsort label-9217
SELECT 82 + + CAST ( + 39 AS INTEGER ) + + 66, 92 AS col1
----
187
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT DISTINCT COUNT( * ), 4 AS col2
----
1
4

skipif mysql # not compatible
query II rowsort label-9218
SELECT DISTINCT COUNT ( * ), 4 AS col2
----
1
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9219
SELECT - 0 + + - COUNT( ALL + 12 ) + CAST( NULL AS SIGNED ) + - - 69 * ( + COUNT( * ) ) * + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT - 0 + + - COUNT ( ALL + 12 ) + CAST ( NULL AS INTEGER ) + - - 69 * ( + COUNT ( * ) ) * + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - COUNT( * ) * - 84
----
84

skipif mysql # not compatible
query I rowsort label-9220
SELECT - COUNT ( * ) * - 84
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT + COUNT( * ) + - - 61 AS col2, + 35 * + COUNT( + + 1 ) + + - MIN( + 44 ) AS col1
----
62
-9

skipif mysql # not compatible
query II rowsort label-9221
SELECT + COUNT ( * ) + - - 61 AS col2, + 35 * + COUNT ( + + 1 ) + + - MIN ( + 44 ) AS col1
----
62
-9

query I rowsort
SELECT 49 * + 64
----
3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT ALL NULLIF ( + - 84, - 42 * + NULLIF ( CAST( NULL AS SIGNED ), COUNT( * ) - - 41 ) + - 4 )
----
-84

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL NULLIF ( + - 84, - 42 * + NULLIF ( CAST ( NULL AS INTEGER ), COUNT ( * ) - - 41 ) + - 4 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT SUM( - + 55 ) + + - MAX( + + 99 )
----
-154

skipif mysql # not compatible
query I rowsort label-9224
SELECT SUM ( - + 55 ) + + - MAX ( + + 99 )
----
-154

query I rowsort
SELECT + 76 + - + 74 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL COUNT( * ) AS col1, + 31 AS col0
----
1
31

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL COUNT ( * ) AS col1, + 31 AS col0
----
1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL - + 39 * 94 + 52 * + MIN( DISTINCT 53 ) + + + COUNT( * ) AS col1
----
-909

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - + 39 * 94 + 52 * + MIN ( DISTINCT 53 ) + + + COUNT ( * ) AS col1
----
-909

query I rowsort
SELECT - 98 + + 48 col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9229
SELECT DISTINCT CASE ( + 10 ) WHEN - + CAST( - 81 AS DECIMAL ) THEN + 38 + 29 * 57 END * + CAST( ( + COUNT( * ) ) + + 13 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT CASE ( + 10 ) WHEN - + CAST ( - 81 AS REAL ) THEN + 38 + 29 * 57 END * + CAST ( ( + COUNT ( * ) ) + + 13 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 7 ) * - - 53 * 59 AS col0
----
-21889

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT MIN( ALL - + 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9231
SELECT MIN ( ALL - + 32 ) AS col2
----
-32

query I rowsort
SELECT 51 * - 67 * 68 AS col1
----
-232356

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT + 56 / + + 64 + - - 31 - + CASE ( CASE + 32 WHEN - 18 * + NULLIF ( - 67, AVG ( 56 ) * 14 + COUNT( 58 ) ) THEN NULL WHEN - COUNT( * ) * + 99 THEN MIN( ALL - 55 ) END ) WHEN + COUNT( 50 ) THEN COUNT( * ) WHEN 41 + COALESCE ( COUNT( DISTINCT + 88 ), - 1 ) * 59 THEN + 9 END * ( 48 * ( COALESCE ( - 8, 54 * - 90 + 53, + 58 + - 73 * 57 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT + 56 / + + 64 + - - 31 - + CASE ( CASE + 32 WHEN - 18 * + NULLIF ( - 67, AVG ( 56 ) * 14 + COUNT ( 58 ) ) THEN NULL WHEN - COUNT ( * ) * + 99 THEN MIN ( ALL - 55 ) END ) WHEN + COUNT ( 50 ) THEN COUNT ( * ) WHEN 41 + COALESCE ( COUNT ( DISTINCT + 88 ), - 1 ) * 59 THEN + 9 END * ( 48 * ( COALESCE ( - 8, 54 * - 90 + 53, + 58 + - 73 * 57 ) ) )
----
NULL

query I rowsort
SELECT + 65 + CASE WHEN NOT + 97 < ( NULL ) THEN NULL ELSE 59 END + 37
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT + MIN( DISTINCT - 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9235
SELECT + MIN ( DISTINCT - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL - - 72 + 43 - 93 * + 68 * - + 98 - - 43 * - NULLIF ( - 99, + 37 * + MIN( ALL 1 ) )
----
624124

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL - - 72 + 43 - 93 * + 68 * - + 98 - - 43 * - NULLIF ( - 99, + 37 * + MIN ( ALL 1 ) )
----
624124

query I rowsort
SELECT + 92 * + 49 * - - 33
----
148764

query I rowsort
SELECT ALL - 67 + 49 * 9 AS col0
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT DISTINCT - ( + + CASE 11 WHEN COALESCE ( 51, - 3 * - + 55 + NULLIF ( COUNT( * ), - 38 + - NULLIF ( NULLIF ( + COUNT( ALL + ( 18 ) ), - 17 ), 76 ) ) ) * 79 THEN NULL WHEN + 53 THEN NULL ELSE 29 END ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT - ( + + CASE 11 WHEN COALESCE ( 51, - 3 * - + 55 + NULLIF ( COUNT ( * ), - 38 + - NULLIF ( NULLIF ( + COUNT ( ALL + ( 18 ) ), - 17 ), 76 ) ) ) * 79 THEN NULL WHEN + 53 THEN NULL ELSE 29 END ) AS col1
----
-29

query I rowsort
SELECT 38 + - - 12 * 46 + 57
----
647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT ALL + CAST( NULL AS SIGNED ) / - 27 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + CAST ( NULL AS INTEGER ) / - 27 * + 41
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9242
SELECT ALL - NULLIF ( 86, - 87 ) + - 42 * - CAST( NULL AS DECIMAL ) AS col2, 24 * + 79 col2
----
NULL
1896

skipif mysql # not compatible
query II rowsort label-9242
SELECT ALL - NULLIF ( 86, - 87 ) + - 42 * - CAST ( NULL AS REAL ) AS col2, 24 * + 79 col2
----
NULL
1896

query I rowsort
SELECT DISTINCT + 91 + - 82 * - - 59 AS col2
----
-4747

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9244
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 70 col0, + 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9244
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 70 col0, + 94
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL + CASE + 44 WHEN + COALESCE ( + COUNT( * ), + 16 - - + 94, 90 / 27 ) / 93 THEN NULL WHEN + 25 THEN - 77 ELSE NULL END + + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL + CASE + 44 WHEN + COALESCE ( + COUNT ( * ), + 16 - - + 94, 90 / 27 ) / 93 THEN NULL WHEN + 25 THEN - 77 ELSE NULL END + + 41 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 55 + - - 3
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT ALL 44 * + CAST( + 58 AS SIGNED ) AS col1
----
2552

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL 44 * + CAST ( + 58 AS INTEGER ) AS col1
----
2552

query I rowsort
SELECT DISTINCT - 21 col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT DISTINCT 38 + + 23 + 85 * 36 * - - CASE + AVG ( ALL - 49 ) WHEN ( + CAST( NULL AS SIGNED ) ) * 97 + 43 THEN 55 + ( + ( + 24 ) ) WHEN 73 + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT 38 + + 23 + 85 * 36 * - - CASE + AVG ( ALL - 49 ) WHEN ( + CAST ( NULL AS INTEGER ) ) * 97 + 43 THEN 55 + ( + ( + 24 ) ) WHEN 73 + - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 96 - + ( 12 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9251
SELECT 37 + + 83 + + 91 + + - 30 * 44 DIV 36 * - - COUNT( * ) * - COUNT( * ) AS col2
----
247

skipif mysql # not compatible
query I rowsort label-9251
SELECT 37 + + 83 + + 91 + + - 30 * 44 / 36 * - - COUNT ( * ) * - COUNT ( * ) AS col2
----
247

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT 82 * - - 51 AS col1, COUNT( * )
----
4182
1

skipif mysql # not compatible
query II rowsort label-9252
SELECT 82 * - - 51 AS col1, COUNT ( * )
----
4182
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT 53 * - CAST( 4 AS SIGNED )
----
-212

skipif mysql # not compatible
query I rowsort label-9253
SELECT 53 * - CAST ( 4 AS INTEGER )
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT SUM( - 60 ) + 59
----
-1

skipif mysql # not compatible
query I rowsort label-9254
SELECT SUM ( - 60 ) + 59
----
-1

query I rowsort
SELECT ALL 37 - 0
----
37

query II rowsort
SELECT DISTINCT 95 * - - 95 AS col0, 35 AS col0
----
9025
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9257
SELECT ALL + 84 * - 50 AS col0, ( 60 ) + + + 4 + - + 12 DIV 97 * SUM( 81 ) AS col0
----
-4200
64

skipif mysql # not compatible
query II rowsort label-9257
SELECT ALL + 84 * - 50 AS col0, ( 60 ) + + + 4 + - + 12 / 97 * SUM ( 81 ) AS col0
----
-4200
64

query I rowsort
SELECT ALL - 15 - 76 col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT + ( + + SUM( ALL - - 59 ) ) * 16 * - 43 AS col0
----
-40592

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT + ( + + SUM ( ALL - - 59 ) ) * 16 * - 43 AS col0
----
-40592

query I rowsort
SELECT DISTINCT 76 col2
----
76

query I rowsort
SELECT DISTINCT + ( + - 98 ) AS col0
----
-98

query I rowsort
SELECT 63 * 53
----
3339

query I rowsort
SELECT ALL + 57 + + 55 AS col2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT MIN( DISTINCT 33 ) DIV - SUM( - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT MIN ( DISTINCT 33 ) / - SUM ( - 94 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT DISTINCT + MAX( ALL - 24 ) * + MAX( ALL - 53 ) + + - 61 + + + COUNT( ALL 84 ) DIV 68
----
1211

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT + MAX ( ALL - 24 ) * + MAX ( ALL - 53 ) + + - 61 + + + COUNT ( ALL 84 ) / 68
----
1211

query I rowsort
SELECT - 90 * - 67 * 54 * - 21
----
-6838020

query I rowsort
SELECT ALL - 53 * + 45 + + - 34
----
-2419

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT - SUM( - + 28 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - SUM ( - + 28 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL + - 68 * MIN( ALL + 64 ) + - + 78 AS col2
----
-4430

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + - 68 * MIN ( ALL + 64 ) + - + 78 AS col2
----
-4430

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL + 57 * + MIN( - 54 ) + + + 45
----
-3033

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL + 57 * + MIN ( - 54 ) + + + 45
----
-3033

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9271
SELECT 13 * + 44 * + - CAST( COUNT( * ) AS SIGNED ) + + 1 * + - 5 * + - COUNT( * ) AS col1
----
-567

skipif mysql # not compatible
query I rowsort label-9271
SELECT 13 * + 44 * + - CAST ( COUNT ( * ) AS INTEGER ) + + 1 * + - 5 * + - COUNT ( * ) AS col1
----
-567

onlyif mysql # aggregate syntax: 
query II rowsort label-9272
SELECT ALL + COUNT( * ) * 23 + + 3, 1 AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-9272
SELECT ALL + COUNT ( * ) * 23 + + 3, 1 AS col0
----
26
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT COUNT( * ), ( 7 ) * - ( 33 ) AS col0
----
1
-231

skipif mysql # not compatible
query II rowsort label-9273
SELECT COUNT ( * ), ( 7 ) * - ( 33 ) AS col0
----
1
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT + 63 * + 71 + + + CASE - - COUNT( * ) WHEN - 63 THEN NULL WHEN 79 THEN - 35 END + + ( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + 63 * + 71 + + + CASE - - COUNT ( * ) WHEN - 63 THEN NULL WHEN 79 THEN - 35 END + + ( - 37 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT ALL - NULLIF ( - - COUNT( * ), COUNT( * ) * CAST( + 29 AS SIGNED ) * + COUNT( - CAST( NULL AS SIGNED ) ) + + + 52 * + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - NULLIF ( - - COUNT ( * ), COUNT ( * ) * CAST ( + 29 AS INTEGER ) * + COUNT ( - CAST ( NULL AS INTEGER ) ) + + + 52 * + 80 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT DISTINCT + 59 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + 59 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT - SUM( DISTINCT + + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT - SUM ( DISTINCT + + 41 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9278
SELECT + 6 * + 81 + - - 64 + ( + + CAST( NULL AS SIGNED ) ) + COUNT( * ), 95 col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-9278
SELECT + 6 * + 81 + - - 64 + ( + + CAST ( NULL AS INTEGER ) ) + COUNT ( * ), 95 col0
----
NULL
95

query I rowsort
SELECT ALL + 42 - + + ( 1 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9280
SELECT COUNT( * ), + 29 + 26 + + AVG ( ALL - - CAST( NULL AS SIGNED ) ) + 23 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9280
SELECT COUNT ( * ), + 29 + 26 + + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) + 23 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT - COUNT( * ) + + 87 - + 81 AS col1, - COUNT( * ) * - 10
----
5
10

skipif mysql # not compatible
query II rowsort label-9281
SELECT - COUNT ( * ) + + 87 - + 81 AS col1, - COUNT ( * ) * - 10
----
5
10

query I rowsort
SELECT - ( + + 8 ) + + ( + 48 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9283
SELECT ALL + 42 - - - 93 + - 45 DIV 26 - + 72 - - 99 + - 96 + - COUNT( * ) - - 38 DIV 55
----
-122

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL + 42 - - - 93 + - 45 / 26 - + 72 - - 99 + - 96 + - COUNT ( * ) - - 38 / 55
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT - COUNT( * ) + + 41 col1
----
40

skipif mysql # not compatible
query I rowsort label-9284
SELECT - COUNT ( * ) + + 41 col1
----
40

query I rowsort
SELECT - 43 * + 68
----
-2924

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT ALL - 70 * - COUNT( * ) * + - 31, COUNT( + 21 ) AS col0
----
-2170
1

skipif mysql # not compatible
query II rowsort label-9286
SELECT ALL - 70 * - COUNT ( * ) * + - 31, COUNT ( + 21 ) AS col0
----
-2170
1

query I rowsort
SELECT ALL CASE + 46 WHEN - 48 * 12 THEN + 90 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9288
SELECT DISTINCT + + 43 * - + COUNT( * ) DIV - - 53 AS col2, + 11
----
0
11

skipif mysql # not compatible
query II rowsort label-9288
SELECT DISTINCT + + 43 * - + COUNT ( * ) / - - 53 AS col2, + 11
----
0
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT - 44 * 50 * - CAST( + + 15 AS SIGNED ) col0
----
33000

skipif mysql # not compatible
query I rowsort label-9289
SELECT - 44 * 50 * - CAST ( + + 15 AS INTEGER ) col0
----
33000

query I rowsort
SELECT ALL + 65 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL - MAX( DISTINCT 3 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - MAX ( DISTINCT 3 ) col1
----
-3

query I rowsort
SELECT - - 72 + - 69
----
3

query I rowsort
SELECT + - ( - 15 ) * - - 30 AS col1
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT DISTINCT - COALESCE ( + + 97, 31 DIV + 26 * - 49 )
----
-97

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT - COALESCE ( + + 97, 31 / + 26 * - 49 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9295
SELECT + COUNT( - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT + COUNT ( - + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT DISTINCT + 6 AS col0, COUNT( * ) + - + 92
----
6
-91

skipif mysql # not compatible
query II rowsort label-9296
SELECT DISTINCT + 6 AS col0, COUNT ( * ) + - + 92
----
6
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9297
SELECT ALL 77 + - + CASE + + 15 WHEN - 74 THEN NULL WHEN + 55 THEN + 27 ELSE NULL END AS col1, - MAX( + 79 ) - 68 * - 89
----
NULL
5973

skipif mysql # not compatible
query II rowsort label-9297
SELECT ALL 77 + - + CASE + + 15 WHEN - 74 THEN NULL WHEN + 55 THEN + 27 ELSE NULL END AS col1, - MAX ( + 79 ) - 68 * - 89
----
NULL
5973

query II rowsort
SELECT DISTINCT + - 63 + + 77 - + - 94 * + 67 AS col2, 58
----
6312
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT CASE - + 29 WHEN + 86 * + 79 THEN + COUNT( 65 ) / - 15 + - MAX( - 39 ) WHEN + 78 - 42 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT CASE - + 29 WHEN + 86 * + 79 THEN + COUNT ( 65 ) / - 15 + - MAX ( - 39 ) WHEN + 78 - 42 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT + + COUNT( + 11 ) + - 14 * 16
----
-223

skipif mysql # not compatible
query I rowsort label-9301
SELECT + + COUNT ( + 11 ) + - 14 * 16
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + COUNT( * ) * 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9302
SELECT + COUNT ( * ) * 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT COUNT( + - ( - + 53 ) ) AS col1, 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-9303
SELECT COUNT ( + - ( - + 53 ) ) AS col1, 25 AS col0
----
1
25

query II rowsort
SELECT ( - + NULLIF ( - 11, 59 ) ) AS col2, + 37
----
11
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT 45 DIV + MAX( ALL 87 ) + + ( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9305
SELECT 45 / + MAX ( ALL 87 ) + + ( 84 ) AS col1
----
84

query I rowsort
SELECT ( - NULLIF ( + - 39, 61 * 13 * + + 79 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - ( + COUNT( * ) ) + + COUNT( * ) + - + MIN( 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9307
SELECT - ( + COUNT ( * ) ) + + COUNT ( * ) + - + MIN ( 51 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT ALL 27 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL 27 / 61
----
0

query I rowsort
SELECT ALL 58 * - 85 - + - 56
----
-4874

query II rowsort
SELECT ( + 95 ) AS col2, - 23 * - - CASE - 51 WHEN 43 THEN 97 END + - 47
----
95
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL 95 * - CAST( - 97 AS SIGNED ) - 21 * - 62 col2
----
10517

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL 95 * - CAST ( - 97 AS INTEGER ) - 21 * - 62 col2
----
10517

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT 20 * + - MIN( DISTINCT - 50 )
----
1000

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT 20 * + - MIN ( DISTINCT - 50 )
----
1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9313
SELECT + NULLIF ( COUNT( DISTINCT 9 ), - COUNT( * ) * + CAST( NULL AS SIGNED ) + - CAST( - 50 AS SIGNED ) - - - AVG ( ALL 36 ) ) - 42 DIV NULLIF ( + MIN( ( 50 ) ) * + MAX( ALL - 19 ) + + 19 DIV + COUNT( * ), 83 + 99 * - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-9313
SELECT + NULLIF ( COUNT ( DISTINCT 9 ), - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - CAST ( - 50 AS INTEGER ) - - - AVG ( ALL 36 ) ) - 42 / NULLIF ( + MIN ( ( 50 ) ) * + MAX ( ALL - 19 ) + + 19 / + COUNT ( * ), 83 + 99 * - 96 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT - CAST( NULL AS SIGNED ) * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT - CAST ( NULL AS INTEGER ) * 41
----
NULL

query II rowsort
SELECT DISTINCT 66 * + - 31, 48 AS col2
----
-2046
48

query I rowsort
SELECT ALL + ( + + 73 )
----
73

query I rowsort
SELECT ALL + ( + - 46 ) AS col0
----
-46

query I rowsort
SELECT ALL + ( - + 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9319
SELECT SUM( - CAST( NULL AS SIGNED ) ) col1, 64 * 3 * + - 41 + MAX( + - 28 ) AS col1
----
NULL
-7900

skipif mysql # not compatible
query II rowsort label-9319
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col1, 64 * 3 * + - 41 + MAX ( + - 28 ) AS col1
----
NULL
-7900

query I rowsort
SELECT - 65 + ( - + ( + 80 ) ) AS col1
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9321
SELECT DISTINCT - 45 * 51 * 69 + - COUNT( + CASE - 73 WHEN 91 THEN 54 WHEN CAST( + 47 AS SIGNED ) THEN NULL END ) DIV + 68 AS col2
----
-158355

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - 45 * 51 * 69 + - COUNT ( + CASE - 73 WHEN 91 THEN 54 WHEN CAST ( + 47 AS INTEGER ) THEN NULL END ) / + 68 AS col2
----
-158355

query I rowsort
SELECT ALL NULLIF ( 53, - + 21 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT - 74 * + - ( - 42 ) + - NULLIF ( + - COUNT( * ), - - 39 * MAX( DISTINCT 35 ) * + - 87 + + 38 )
----
-3107

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT - 74 * + - ( - 42 ) + - NULLIF ( + - COUNT ( * ), - - 39 * MAX ( DISTINCT 35 ) * + - 87 + + 38 )
----
-3107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT ALL - NULLIF ( 96, + COALESCE ( - - 56, - 29 * CAST( NULL AS SIGNED ) * + 45 * + + 74 ) ) + CAST( NULL AS SIGNED ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - NULLIF ( 96, + COALESCE ( - - 56, - 29 * CAST ( NULL AS INTEGER ) * + 45 * + + 74 ) ) + CAST ( NULL AS INTEGER ) * 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9325
SELECT - - 35 DIV + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9325
SELECT - - 35 / + COUNT ( * ) AS col1
----
35

query I rowsort
SELECT DISTINCT - 30 + 41 - - 34 AS col0
----
45

query I rowsort
SELECT DISTINCT + 38 * + 21 * + - 13
----
-10374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL - 80 + - 81 + - + CAST( + NULLIF ( - 31, - COUNT( * ) ) AS SIGNED )
----
-130

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - 80 + - 81 + - + CAST ( + NULLIF ( - 31, - COUNT ( * ) ) AS INTEGER )
----
-130

query I rowsort
SELECT ALL + - 61 * - - 45 + + 40 col1
----
-2705

query I rowsort
SELECT - + 0 * - COALESCE ( 93, - 23 * - 13 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT DISTINCT + 89 + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + 89 + + COUNT ( * )
----
90

query I rowsort
SELECT - - NULLIF ( + - 59, - AVG ( 78 ) )
----
-59

query II rowsort
SELECT ALL - + 48 + - 13 col0, - 53 AS col2
----
-61
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL CAST( - SUM( ALL + 37 ) AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL CAST ( - SUM ( ALL + 37 ) AS INTEGER )
----
-37

query I rowsort
SELECT - 47 - + - 4
----
-43

query I rowsort
SELECT DISTINCT 86 - - 32 col0
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT - MAX( 31 ) * 25, - 67 AS col2
----
-775
-67

skipif mysql # not compatible
query II rowsort label-9337
SELECT - MAX ( 31 ) * 25, - 67 AS col2
----
-775
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT ALL CAST( - 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL CAST ( - 81 AS INTEGER ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9339
SELECT ALL 79 DIV + - 25 - - NULLIF ( COUNT( * ), - COUNT( * ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL 79 / + - 25 - - NULLIF ( COUNT ( * ), - COUNT ( * ) ) AS col2
----
-2

query I rowsort
SELECT 66 * + 76 AS col1
----
5016

query I rowsort
SELECT ALL - 51 * - + 40
----
2040

query I rowsort
SELECT 37 + + 40
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT ALL - 17 AS col0, + CASE + 6 WHEN 28 THEN - + COUNT( * ) + + 53 + + ( - + 99 ) / + - 73 WHEN + + 10 * COUNT( * ) + ( - 74 ) THEN - 55 + 30 * - 49 WHEN + 35 * 78 THEN + 42 ELSE NULL END * 65 AS col2
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-9343
SELECT ALL - 17 AS col0, + CASE + 6 WHEN 28 THEN - + COUNT ( * ) + + 53 + + ( - + 99 ) / + - 73 WHEN + + 10 * COUNT ( * ) + ( - 74 ) THEN - 55 + 30 * - 49 WHEN + 35 * 78 THEN + 42 ELSE NULL END * 65 AS col2
----
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT SUM( - 4 ) * 17
----
-68

skipif mysql # not compatible
query I rowsort label-9344
SELECT SUM ( - 4 ) * 17
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT 79 * 47 * ( + COUNT( * ) ) + + + 26 AS col0
----
3739

skipif mysql # not compatible
query I rowsort label-9345
SELECT 79 * 47 * ( + COUNT ( * ) ) + + + 26 AS col0
----
3739

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT 55 DIV 2 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT 55 / 2 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT CASE - + NULLIF ( + NULLIF ( - - COUNT( * ), + + 37 - + - 60 / - + 51 ), COUNT( * ) ) WHEN + 6 + - + SUM( + 19 ) THEN 26 * SUM( - 52 * - 58 ) WHEN + 6 * 57 THEN NULL WHEN 74 * CAST( NULL AS SIGNED ) + CASE - CAST( NULL AS SIGNED ) WHEN - 55 THEN - 89 END THEN NULL ELSE - 3 END + + 75 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9347
SELECT CASE - + NULLIF ( + NULLIF ( - - COUNT ( * ), + + 37 - + - 60 / - + 51 ), COUNT ( * ) ) WHEN + 6 + - + SUM ( + 19 ) THEN 26 * SUM ( - 52 * - 58 ) WHEN + 6 * 57 THEN NULL WHEN 74 * CAST ( NULL AS INTEGER ) + CASE - CAST ( NULL AS INTEGER ) WHEN - 55 THEN - 89 END THEN NULL ELSE - 3 END + + 75 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9348
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, CAST( - 27 AS SIGNED )
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-9348
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, CAST ( - 27 AS INTEGER )
----
NULL
-27

query II rowsort
SELECT DISTINCT - 10 AS col1, - 88
----
-10
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT 81 + - MIN( ALL - 41 ) * 28 * + + CASE + + 70 WHEN + - NULLIF ( + - 49, + 27 + COUNT( * ) ) THEN NULL WHEN 81 THEN 88 END * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT 81 + - MIN ( ALL - 41 ) * 28 * + + CASE + + 70 WHEN + - NULLIF ( + - 49, + 27 + COUNT ( * ) ) THEN NULL WHEN 81 THEN 88 END * + 32 AS col0
----
NULL

query I rowsort
SELECT ALL 7 * + 54 * - - 38 * 32 * + - 32 AS col2
----
-14708736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT 88 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT 88 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + ( 36 ) * 85 + 18 * - COUNT( * ) * - 63 + + + 69 + - + 59 * - 24 AS col0
----
5679

skipif mysql # not compatible
query I rowsort label-9353
SELECT + ( 36 ) * 85 + 18 * - COUNT ( * ) * - 63 + + + 69 + - + 59 * - 24 AS col0
----
5679

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL 78 + - - MIN( ALL 42 ) * + NULLIF ( 5, - 36 ) * + - 97 - - 92
----
-20200

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL 78 + - - MIN ( ALL 42 ) * + NULLIF ( 5, - 36 ) * + - 97 - - 92
----
-20200

query I rowsort
SELECT ALL - 52 + - 10
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9356
SELECT + NULLIF ( - - 19, + COUNT( * ) * - AVG ( ALL CAST( - ( + 43 ) AS SIGNED ) ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9356
SELECT + NULLIF ( - - 19, + COUNT ( * ) * - AVG ( ALL CAST ( - ( + 43 ) AS INTEGER ) ) ) AS col2
----
19

query I rowsort
SELECT + ( + 23 ) * + ( + - 40 ) * - 26
----
23920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT - 53 + + COUNT( * ) + 71 * - 72 * - ( + CASE + - 16 WHEN + 78 THEN CASE + 26 WHEN 68 THEN CAST( NULL AS SIGNED ) - NULLIF ( ( NULLIF ( - 83, + 71 ) ) + COUNT( * ) * - 81, - CASE 18 WHEN - AVG ( DISTINCT 13 ) THEN NULL WHEN + ( 53 ) THEN 49 END ) WHEN 95 * CASE WHEN NOT NULL IS NOT NULL THEN - NULLIF ( ( - 40 ), NULLIF ( - COUNT( * ), 77 ) ) ELSE 46 END THEN NULL END * SUM( - 63 * - 38 + 48 ) + 1 * - 66 ELSE MIN( ALL + 34 ) END ) - 11
----
173745

skipif mysql # not compatible
query I rowsort label-9358
SELECT - 53 + + COUNT ( * ) + 71 * - 72 * - ( + CASE + - 16 WHEN + 78 THEN CASE + 26 WHEN 68 THEN CAST ( NULL AS INTEGER ) - NULLIF ( ( NULLIF ( - 83, + 71 ) ) + COUNT ( * ) * - 81, - CASE 18 WHEN - AVG ( DISTINCT 13 ) THEN NULL WHEN + ( 53 ) THEN 49 END ) WHEN 95 * CASE WHEN NOT NULL IS NOT NULL THEN - NULLIF ( ( - 40 ), NULLIF ( - COUNT ( * ), 77 ) ) ELSE 46 END THEN NULL END * SUM ( - 63 * - 38 + 48 ) + 1 * - 66 ELSE MIN ( ALL + 34 ) END ) - 11
----
173745

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9359
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) + + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL ( - CAST ( NULL AS REAL ) ) + + + 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT DISTINCT - 45 + - COUNT( * ) DIV + 99 + + 59
----
14

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT - 45 + - COUNT ( * ) / + 99 + + 59
----
14

query II rowsort
SELECT - 45 AS col0, - 65 + + + 2 * - 92 * - 18
----
-45
3247

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT MIN( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9362
SELECT MIN ( + 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT ALL - + 38 + 57 + - + 33 + AVG ( - 31 ) * + - 49 * - 81 * + 9 + - + 3 * + - 42 / + COUNT( * ) - 50 / ( CAST( NULL AS SIGNED ) + - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - + 38 + 57 + - + 33 + AVG ( - 31 ) * + - 49 * - 81 * + 9 + - + 3 * + - 42 / + COUNT ( * ) - 50 / ( CAST ( NULL AS INTEGER ) + - 35 )
----
NULL

query II rowsort
SELECT - 20 + + - 86 + - + 39, + 94 AS col0
----
-145
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9365
SELECT + COUNT ( * ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT ALL - 51 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL - 51 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 + 14
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT NULLIF ( + 61, - + 59 / - ( + + COALESCE ( 67, - NULLIF ( 13, - CAST( + - 67 AS SIGNED ) * + AVG ( 5 + - 16 * 10 ) + 37 ), 20 ) ) )
----
61

skipif mysql # not compatible
query I rowsort label-9368
SELECT NULLIF ( + 61, - + 59 / - ( + + COALESCE ( 67, - NULLIF ( 13, - CAST ( + - 67 AS INTEGER ) * + AVG ( 5 + - 16 * 10 ) + 37 ), 20 ) ) )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9369
SELECT ALL - MIN( 78 ) DIV + 47 + - + 58 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - MIN ( 78 ) / + 47 + - + 58 AS col1
----
-59

query I rowsort
SELECT 20 * 35
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT - SUM( DISTINCT - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9371
SELECT - SUM ( DISTINCT - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - - COUNT( * ) * - - 81
----
81

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - - COUNT ( * ) * - - 81
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9373
SELECT - 49 DIV + 55 + + NULLIF ( SUM( 95 ), - 35 ) DIV + 67 - 68 col2
----
-67

skipif mysql # not compatible
query I rowsort label-9373
SELECT - 49 / + 55 + + NULLIF ( SUM ( 95 ), - 35 ) / + 67 - 68 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL MIN( DISTINCT + 37 ) * - 93 * 31 AS col2
----
-106671

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL MIN ( DISTINCT + 37 ) * - 93 * 31 AS col2
----
-106671

query I rowsort
SELECT DISTINCT - 9 - + 89 AS col2
----
-98

query II rowsort
SELECT ALL 96, 55 col1
----
96
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9377
SELECT 25 AS col0, - CAST( 61 AS SIGNED ) DIV + 77 AS col1
----
25
0

skipif mysql # not compatible
query II rowsort label-9377
SELECT 25 AS col0, - CAST ( 61 AS INTEGER ) / + 77 AS col1
----
25
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT ALL + CAST( - 19 AS SIGNED ) * - 99
----
1881

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + CAST ( - 19 AS INTEGER ) * - 99
----
1881

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT DISTINCT 50 AS col2, - 6 + - 84 * + COUNT( * )
----
50
-90

skipif mysql # not compatible
query II rowsort label-9379
SELECT DISTINCT 50 AS col2, - 6 + - 84 * + COUNT ( * )
----
50
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT - 52 AS col2, SUM( DISTINCT - 77 ) + 49
----
-52
-28

skipif mysql # not compatible
query II rowsort label-9380
SELECT - 52 AS col2, SUM ( DISTINCT - 77 ) + 49
----
-52
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9381
SELECT 76 * + COALESCE ( + - 74, - CASE + - COALESCE ( + 37, COALESCE ( + - 50, + 42 ), - CAST( NULL AS DECIMAL ) ) WHEN + + 47 * + COUNT( * ) THEN + COUNT( * ) WHEN MAX( ALL 35 ) THEN + 84 WHEN 49 * 18 + + 56 * MAX( 79 ) THEN 14 - + 48 * - 19 WHEN 30 THEN NULL END * + CAST( NULL AS SIGNED ) ) AS col2
----
-5624

skipif mysql # not compatible
query I rowsort label-9381
SELECT 76 * + COALESCE ( + - 74, - CASE + - COALESCE ( + 37, COALESCE ( + - 50, + 42 ), - CAST ( NULL AS REAL ) ) WHEN + + 47 * + COUNT ( * ) THEN + COUNT ( * ) WHEN MAX ( ALL 35 ) THEN + 84 WHEN 49 * 18 + + 56 * MAX ( 79 ) THEN 14 - + 48 * - 19 WHEN 30 THEN NULL END * + CAST ( NULL AS INTEGER ) ) AS col2
----
-5624

query I rowsort
SELECT ALL - NULLIF ( - 46, + 52 ) AS col1
----
46

query II rowsort
SELECT DISTINCT - 24 AS col0, - ( - 6 )
----
-24
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL - ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - ( - COUNT ( * ) ) AS col2
----
1

query II rowsort
SELECT + 67 AS col2, 18
----
67
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9386
SELECT + 20 AS col2, 57 + + + 50 * - - ( + - COUNT( * ) )
----
20
7

skipif mysql # not compatible
query II rowsort label-9386
SELECT + 20 AS col2, 57 + + + 50 * - - ( + - COUNT ( * ) )
----
20
7

query I rowsort
SELECT ALL 31 * 26
----
806

query I rowsort
SELECT DISTINCT - 38 + + + 51 col2
----
13

query I rowsort
SELECT 91 * + + 15
----
1365

query I rowsort
SELECT DISTINCT - 2 + - 95 * + COALESCE ( - - 88, + + 38 ) AS col1
----
-8362

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL 30 * - + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL 30 * - + COUNT ( * )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT - 68 DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-9392
SELECT - 68 / - 68
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT 7 * 87 - + CAST( - - 35 AS SIGNED ) col0
----
574

skipif mysql # not compatible
query I rowsort label-9393
SELECT 7 * 87 - + CAST ( - - 35 AS INTEGER ) col0
----
574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9394
SELECT + - SUM( DISTINCT + CAST( COALESCE ( + 34, - 68 ) AS SIGNED ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9394
SELECT + - SUM ( DISTINCT + CAST ( COALESCE ( + 34, - 68 ) AS INTEGER ) )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT + - NULLIF ( - - CAST( 59 AS SIGNED ), - 19 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9395
SELECT + - NULLIF ( - - CAST ( 59 AS INTEGER ), - 19 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT + 74 + + + ( + + 70 ) AS col1
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT + 90 - 85 + - NULLIF ( + + 4, - - 43 ) + + CAST( NULL AS SIGNED ) + COUNT( * ) / COUNT( * ) - NULLIF ( - 23, ( + 18 ) ) + + 99 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT + 90 - 85 + - NULLIF ( + + 4, - - 43 ) + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / COUNT ( * ) - NULLIF ( - 23, ( + 18 ) ) + + 99 * 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT + COUNT( * ) AS col2, MAX( + ( - 99 ) ) + 90 + + - 8
----
1
-17

skipif mysql # not compatible
query II rowsort label-9398
SELECT + COUNT ( * ) AS col2, MAX ( + ( - 99 ) ) + 90 + + - 8
----
1
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9399
SELECT ALL - 41 + + 30 DIV - 46 - - - CAST( ( 7 ) AS SIGNED ) * - 10
----
29

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - 41 + + 30 / - 46 - - - CAST ( ( 7 ) AS INTEGER ) * - 10
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9400
SELECT ALL + COUNT( * ) DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + COUNT ( * ) / - 43
----
0

query II rowsort
SELECT 10 AS col0, 62 AS col2
----
10
62

query I rowsort
SELECT DISTINCT + + 57 + - 81 AS col0
----
-24

query I rowsort
SELECT ALL + 80 - - + 30
----
110

query I rowsort
SELECT ( - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT 47, COUNT( * ) col1
----
47
1

skipif mysql # not compatible
query II rowsort label-9405
SELECT 47, COUNT ( * ) col1
----
47
1

query I rowsort
SELECT 0 * + 97 * - + 0 - - - 74 + + - 85 + - - 89
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT 56 - + + COUNT( * ) - - 46 * ( - 50 ) DIV + 38 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9407
SELECT 56 - + + COUNT ( * ) - - 46 * ( - 50 ) / + 38 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT CASE + + 60 WHEN MAX( - ( - + 62 ) ) / - + COUNT( * ) THEN 86 END + + CASE 23 WHEN - 95 THEN NULL WHEN + 7 + + 50 * COUNT( * ) THEN + COUNT( * ) * 37 ELSE 19 + + 33 END - COUNT( * ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT CASE + + 60 WHEN MAX ( - ( - + 62 ) ) / - + COUNT ( * ) THEN 86 END + + CASE 23 WHEN - 95 THEN NULL WHEN + 7 + + 50 * COUNT ( * ) THEN + COUNT ( * ) * 37 ELSE 19 + + 33 END - COUNT ( * ) * 15
----
NULL

query I rowsort
SELECT - COALESCE ( 2, 3, + 66 * + + 97 * + - 27 + - + 97 + - 96 ) AS col2
----
-2

query II rowsort
SELECT ALL - 76, 53 + 87 AS col2
----
-76
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT COUNT( * ) * 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9411
SELECT COUNT ( * ) * 73 AS col0
----
73

query I rowsort
SELECT ALL + ( + 91 ) * - 33 * + 85
----
-255255

query II rowsort
SELECT 3 AS col0, 79
----
3
79

query I rowsort
SELECT + 34 + 13 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - 95 * - 7 - + 87 + - 86 * + 55 + + COUNT( * ) col2
----
-4151

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - 95 * - 7 - + 87 + - 86 * + 55 + + COUNT ( * ) col2
----
-4151

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT COUNT( ALL 81 ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-9416
SELECT COUNT ( ALL 81 ) * 31
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9417
SELECT - COALESCE ( + 78, + - 11 DIV CASE + 81 WHEN + - 16 * COALESCE ( - - ( + 79 ), ( + 62 ) DIV + CAST( 23 AS SIGNED ), 38 + + ( 14 + - 3 ) ) DIV 61 THEN 6 ELSE NULL END, - 85 * 27 )
----
-78

skipif mysql # not compatible
query I rowsort label-9417
SELECT - COALESCE ( + 78, + - 11 / CASE + 81 WHEN + - 16 * COALESCE ( - - ( + 79 ), ( + 62 ) / + CAST ( 23 AS INTEGER ), 38 + + ( 14 + - 3 ) ) / 61 THEN 6 ELSE NULL END, - 85 * 27 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL - 51 + + 32 DIV 92
----
-51

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - 51 + + 32 / 92
----
-51

query I rowsort
SELECT + 44 - ( - - 22 ) AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT ALL 8 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL 8 / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - COALESCE ( 33, MIN( DISTINCT - 49 ) * - SUM( ALL + - 60 ) * 35 * 43 - - 9 + + - 90 ) * 60 + - 38
----
-2018

skipif mysql # not compatible
query I rowsort label-9421
SELECT - COALESCE ( 33, MIN ( DISTINCT - 49 ) * - SUM ( ALL + - 60 ) * 35 * 43 - - 9 + + - 90 ) * 60 + - 38
----
-2018

query I rowsort
SELECT ALL + 73 * - 79 + - + 24 AS col2
----
-5791

query I rowsort
SELECT + 51 * + 12 - + CASE + 24 WHEN 96 * 25 / + 93 + - - 4 THEN + 31 * + 85 * 95 WHEN - 26 + 59 * 36 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, 72 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT + 60 + CASE - 37 WHEN - 12 + - + 23 + 15 * + 42 - + + 40 * + 93 THEN + - 0 WHEN 93 + + + 70 THEN CAST( NULL AS SIGNED ) END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT + 60 + CASE - 37 WHEN - 12 + - + 23 + 15 * + 42 - + + 40 * + 93 THEN + - 0 WHEN 93 + + + 70 THEN CAST ( NULL AS INTEGER ) END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9426
SELECT ALL + ( + - 75 ) AS col2, CAST( - 5 AS SIGNED ) + + 25 DIV - 18 col2
----
-75
-6

skipif mysql # not compatible
query II rowsort label-9426
SELECT ALL + ( + - 75 ) AS col2, CAST ( - 5 AS INTEGER ) + + 25 / - 18 col2
----
-75
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT + 51 * - - 28 + 69 + - 30 - - 45 - 9 - + - 49 DIV 18 AS col0
----
1505

skipif mysql # not compatible
query I rowsort label-9427
SELECT + 51 * - - 28 + 69 + - 30 - - 45 - 9 - + - 49 / 18 AS col0
----
1505

query I rowsort
SELECT COALESCE ( - 89, 16 - - 69, - - 60 * - 26 + + 14, - ( - 58 ) ) AS col2
----
-89

query I rowsort
SELECT COALESCE ( + 11, + + 51, - 4 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - COUNT( * ) * - - 94 * 98 + 93 AS col1
----
-9119

skipif mysql # not compatible
query I rowsort label-9430
SELECT - COUNT ( * ) * - - 94 * 98 + 93 AS col1
----
-9119

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT ALL + + ( - 58 ) AS col0, - COUNT( * )
----
-58
-1

skipif mysql # not compatible
query II rowsort label-9431
SELECT ALL + + ( - 58 ) AS col0, - COUNT ( * )
----
-58
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT - 88 + - - 26 AS col0, + 75 + 21 * + - SUM( DISTINCT + NULLIF ( 28, + 14 ) )
----
-62
-513

skipif mysql # not compatible
query II rowsort label-9432
SELECT - 88 + - - 26 AS col0, + 75 + 21 * + - SUM ( DISTINCT + NULLIF ( 28, + 14 ) )
----
-62
-513

query II rowsort
SELECT ALL - 95 * - - 53 * 46, + 73 AS col2
----
-231610
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - COUNT( * ) * - 43 - + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9434
SELECT - COUNT ( * ) * - 43 - + + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9435
SELECT 15 * + 37 + 50 - + + 29 * COUNT( * ) DIV + 21
----
604

skipif mysql # not compatible
query I rowsort label-9435
SELECT 15 * + 37 + 50 - + + 29 * COUNT ( * ) / + 21
----
604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9436
SELECT - 63 * + 60 + - 7 + - + 19 + + 40 - + - 49 - - COUNT( + + 63 ) * - NULLIF ( 77, + CAST( NULL AS SIGNED ) ) * - - 62
----
-8491

skipif mysql # not compatible
query I rowsort label-9436
SELECT - 63 * + 60 + - 7 + - + 19 + + 40 - + - 49 - - COUNT ( + + 63 ) * - NULLIF ( 77, + CAST ( NULL AS INTEGER ) ) * - - 62
----
-8491

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT DISTINCT + 1 * - COUNT( * ), SUM( DISTINCT - 88 ) * - COUNT( * ) AS col0
----
-1
88

skipif mysql # not compatible
query II rowsort label-9437
SELECT DISTINCT + 1 * - COUNT ( * ), SUM ( DISTINCT - 88 ) * - COUNT ( * ) AS col0
----
-1
88

query I rowsort
SELECT + + 74 + + 52 * 68 + + 82 AS col2
----
3692

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT - - 63 DIV + 24
----
2

skipif mysql # not compatible
query I rowsort label-9439
SELECT - - 63 / + 24
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL + SUM( DISTINCT 52 ) * COUNT( - - 96 ) * - - 90 col2
----
4680

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL + SUM ( DISTINCT 52 ) * COUNT ( - - 96 ) * - - 90 col2
----
4680

onlyif mysql # DIV for integer division: 
query II rowsort label-9441
SELECT DISTINCT + 35 DIV - 69 AS col2, - 18 * - - 91 + 85
----
0
-1553

skipif mysql # not compatible
query II rowsort label-9441
SELECT DISTINCT + 35 / - 69 AS col2, - 18 * - - 91 + 85
----
0
-1553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) - - + COUNT( * ) + - 39 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) - - + COUNT ( * ) + - 39 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9443
SELECT + 40 DIV + + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9443
SELECT + 40 / + + 72 AS col1
----
0

query I rowsort
SELECT ALL + 86 * + + 34
----
2924

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT ALL 40, MIN( 7 ) col0
----
40
7

skipif mysql # not compatible
query II rowsort label-9445
SELECT ALL 40, MIN ( 7 ) col0
----
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - 74 + - COUNT( * ) + - 49
----
-124

skipif mysql # not compatible
query I rowsort label-9446
SELECT - 74 + - COUNT ( * ) + - 49
----
-124

query II rowsort
SELECT 50 AS col1, + 75
----
50
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + COUNT( * ) * + - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9448
SELECT + COUNT ( * ) * + - 82 AS col0
----
-82

query I rowsort
SELECT ALL 38 + 42 AS col1
----
80

query I rowsort
SELECT DISTINCT 67 + 92 AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL MIN( DISTINCT - - 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL MIN ( DISTINCT - - 17 ) AS col0
----
17

query I rowsort
SELECT ALL 61 + - 13 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9453
SELECT 88, MAX( + CAST( NULL AS SIGNED ) ) col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-9453
SELECT 88, MAX ( + CAST ( NULL AS INTEGER ) ) col0
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL - COALESCE ( 58, + 63 ) + - 77 + - CASE + COUNT( * ) WHEN + + 32 / + 64 * + 10 - + - 39 THEN NULL WHEN + 81 + - 54 + 16 THEN NULL WHEN + 87 + 88 THEN + 54 ELSE NULL END + 57 * 42 * + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - COALESCE ( 58, + 63 ) + - 77 + - CASE + COUNT ( * ) WHEN + + 32 / + 64 * + 10 - + - 39 THEN NULL WHEN + 81 + - 54 + 16 THEN NULL WHEN + 87 + 88 THEN + 54 ELSE NULL END + 57 * 42 * + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT + 90 + - CASE + - ( 74 ) WHEN - + COUNT( * ) THEN NULL ELSE + - 2 / - 77 + COUNT( * ) + 31 * - 3 + + 53 + + COUNT( * ) END + + 68 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 90 + - CASE + - ( 74 ) WHEN - + COUNT ( * ) THEN NULL ELSE + - 2 / - 77 + COUNT ( * ) + 31 * - 3 + + 53 + + COUNT ( * ) END + + 68 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 20, 65 + 18 col0
----
20
83

query II rowsort
SELECT ALL 72, + 67 AS col0
----
72
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT + CASE NULLIF ( COALESCE ( - 73, + COALESCE ( - + 92, COUNT( * ) ) + + - NULLIF ( + ( 40 ), + 26 + - - 48 + + COUNT( DISTINCT 93 ) DIV 1 ) + 40 * SUM( 31 * - 70 ), 9 ), + AVG ( ALL 71 ) + 99 ) WHEN - 30 * COUNT( * ) THEN NULL ELSE 88 * + COUNT( * ) END DIV 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9458
SELECT + CASE NULLIF ( COALESCE ( - 73, + COALESCE ( - + 92, COUNT ( * ) ) + + - NULLIF ( + ( 40 ), + 26 + - - 48 + + COUNT ( DISTINCT 93 ) / 1 ) + 40 * SUM ( 31 * - 70 ), 9 ), + AVG ( ALL 71 ) + 99 ) WHEN - 30 * COUNT ( * ) THEN NULL ELSE 88 * + COUNT ( * ) END / 43 AS col2
----
2

query I rowsort
SELECT - 66 + + + 78
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT 57 / - + CAST( NULL AS SIGNED ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT 57 / - + CAST ( NULL AS INTEGER ) + + 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT ALL - 52 DIV + 67 * + 55 * + 88 + - 72 * - 60 + + 34 AS col1
----
4354

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - 52 / + 67 * + 55 * + 88 + - 72 * - 60 + + 34 AS col1
----
4354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT CAST( - 22 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9462
SELECT CAST ( - 22 AS INTEGER ) AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT ALL - 2 DIV + 88 + + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - 2 / + 88 + + - 93
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT DISTINCT + 46 DIV - 81 * 27 * 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT + 46 / - 81 * 27 * 5 AS col2
----
0

query I rowsort
SELECT - + 27 * 70
----
-1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL + CAST( NULL AS SIGNED ) * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + CAST ( NULL AS INTEGER ) * + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9467
SELECT + ( - - SUM( DISTINCT + 46 ) ) col1, + MAX( ALL - 7 ) - + + NULLIF ( + - ( - 41 ), - MAX( DISTINCT - 17 ) ) - + 98 - - CAST( NULL AS SIGNED ) + 36 - 18 / + 29 AS col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-9467
SELECT + ( - - SUM ( DISTINCT + 46 ) ) col1, + MAX ( ALL - 7 ) - + + NULLIF ( + - ( - 41 ), - MAX ( DISTINCT - 17 ) ) - + 98 - - CAST ( NULL AS INTEGER ) + 36 - 18 / + 29 AS col0
----
46
NULL

query II rowsort
SELECT 77 col2, 99 AS col2
----
77
99

query I rowsort
SELECT ALL + - 5 AS col0
----
-5

query I rowsort
SELECT - 75 * - 71
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - 45 * - + 0 * - + 31 + - + 80 + - - COUNT( * ) + - + 76 + + - NULLIF ( + 99, 39 * - 96 * + + 58 ) * + - 39 AS col2
----
3706

skipif mysql # not compatible
query I rowsort label-9471
SELECT - 45 * - + 0 * - + 31 + - + 80 + - - COUNT ( * ) + - + 76 + + - NULLIF ( + 99, 39 * - 96 * + + 58 ) * + - 39 AS col2
----
3706

query I rowsort
SELECT ALL + - 19 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT - CASE + 10 WHEN + NULLIF ( - CAST( NULL AS SIGNED ), + - 12 + + - 55 + - 53 / + - COUNT( * ) * + - MIN( - ( + 25 ) ) * + 46 ) THEN - + ( + 78 ) * + MAX( ALL - 35 + 46 ) ELSE NULL END - - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT - CASE + 10 WHEN + NULLIF ( - CAST ( NULL AS INTEGER ), + - 12 + + - 55 + - 53 / + - COUNT ( * ) * + - MIN ( - ( + 25 ) ) * + 46 ) THEN - + ( + 78 ) * + MAX ( ALL - 35 + 46 ) ELSE NULL END - - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL + - COALESCE ( - + 77, - - COUNT( * ), + COUNT( * ) ) col2
----
77

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + - COALESCE ( - + 77, - - COUNT ( * ), + COUNT ( * ) ) col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT - + 1 * CAST( NULL AS SIGNED ) * 51 / ( + 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT - + 1 * CAST ( NULL AS INTEGER ) * 51 / ( + 14 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT DISTINCT + - NULLIF ( - - 4, + + ( - 96 ) * + + 12 * - + 85 + - - SUM( ALL + 65 ) * 4 ) * + 54 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + - NULLIF ( - - 4, + + ( - 96 ) * + + 12 * - + 85 + - - SUM ( ALL + 65 ) * 4 ) * + 54 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 78 * 73 AS col2
----
-5694

query I rowsort
SELECT - ( - 66 ) * - - 25 + - - 84 AS col1
----
1734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT + 52 - - NULLIF ( + - 92, 78 + 61 ) * - + 38 * + + 39 + - CAST( NULL AS SIGNED ) + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT + 52 - - NULLIF ( + - 92, 78 + 61 ) * - + 38 * + + 39 + - CAST ( NULL AS INTEGER ) + 83
----
NULL

query I rowsort
SELECT 82 + 58 + 13 * - - 60
----
920

query I rowsort
SELECT DISTINCT - 51 + - - 82
----
31

query I rowsort
SELECT ALL 97 + NULLIF ( ( - 56 ), - ( - - 56 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 15 + + 11 AS col0
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-9484
SELECT 82 DIV - NULLIF ( 57, - 30 * + 83 ), - 72 AS col0
----
-1
-72

skipif mysql # not compatible
query II rowsort label-9484
SELECT 82 / - NULLIF ( 57, - 30 * + 83 ), - 72 AS col0
----
-1
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT 9 + - + 14 * - - NULLIF ( + + 99, - COUNT( * ) ) + 35 AS col0
----
-1342

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT 9 + - + 14 * - - NULLIF ( + + 99, - COUNT ( * ) ) + 35 AS col0
----
-1342

query I rowsort
SELECT 65 * + 30 col2
----
1950

query I rowsort
SELECT 1 * + ( 60 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL 55 DIV + - 34 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL 55 / + - 34 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT DISTINCT 14 + 11 + - + 23 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT 14 + 11 + - + 23 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL COUNT( * ) + 77 + - COALESCE ( 21, 92 + + 68 + + 40, + 25 * + 67 * - ( 80 ) ) * + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL COUNT ( * ) + 77 + - COALESCE ( 21, 92 + + 68 + + 40, + 25 * + 67 * - ( 80 ) ) * + COUNT ( * ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT MIN( ALL + - 81 ) - - 98 + + 35
----
52

skipif mysql # not compatible
query I rowsort label-9491
SELECT MIN ( ALL + - 81 ) - - 98 + + 35
----
52

query I rowsort
SELECT 97 - + ( + 18 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT COALESCE ( 34, + 38 ) * - MIN( ALL + 10 ) AS col0, - 72 AS col0
----
-340
-72

skipif mysql # not compatible
query II rowsort label-9493
SELECT COALESCE ( 34, + 38 ) * - MIN ( ALL + 10 ) AS col0, - 72 AS col0
----
-340
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL COUNT( * ) - - 32 * + + 91
----
2913

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL COUNT ( * ) - - 32 * + + 91
----
2913

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT - MAX( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT - MAX ( 73 )
----
-73

query I rowsort
SELECT ALL + 37 - 28
----
9

query I rowsort
SELECT + + 85 col1
----
85

query I rowsort
SELECT ALL - + ( + 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT - MAX( ALL + + 29 ) * 17 * + - 68 + + 0 AS col0
----
33524

skipif mysql # not compatible
query I rowsort label-9499
SELECT - MAX ( ALL + + 29 ) * 17 * + - 68 + + 0 AS col0
----
33524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT 61 - + + CAST( + + COALESCE ( + ( ( + COALESCE ( - 34, + ( 81 ), + MAX( - - 44 ), - NULLIF ( 53, + + COUNT( - 88 ) * 83 + 96 ), - NULLIF ( + 78, + 92 - 10 ) - 10 ) ) ), - 68, 25 ) AS SIGNED ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9500
SELECT 61 - + + CAST ( + + COALESCE ( + ( ( + COALESCE ( - 34, + ( 81 ), + MAX ( - - 44 ), - NULLIF ( 53, + + COUNT ( - 88 ) * 83 + 96 ), - NULLIF ( + 78, + 92 - 10 ) - 10 ) ) ), - 68, 25 ) AS INTEGER ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9501
SELECT COUNT( * ) * 47 + + 54 + + 85 AS col2, - 78
----
186
-78

skipif mysql # not compatible
query II rowsort label-9501
SELECT COUNT ( * ) * 47 + + 54 + + 85 AS col2, - 78
----
186
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9502
SELECT - CAST( 16 AS SIGNED ) DIV + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-9502
SELECT - CAST ( 16 AS INTEGER ) / + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL - - 12 * - - CASE - - COUNT( * ) WHEN - 6 + 86 + + ( + + ( - - 61 ) ) * + 60 * - 49 THEN 51 ELSE NULL END + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL - - 12 * - - CASE - - COUNT ( * ) WHEN - 6 + 86 + + ( + + ( - - 61 ) ) * + 60 * - 49 THEN 51 ELSE NULL END + - 86
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9504
SELECT ALL + 41 DIV + 16 col1, NULLIF ( + 47, + 2 ) AS col2
----
2
47

skipif mysql # not compatible
query II rowsort label-9504
SELECT ALL + 41 / + 16 col1, NULLIF ( + 47, + 2 ) AS col2
----
2
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT + 95 DIV 74 + - + NULLIF ( - + 56, + 0 + + + COUNT( * ) ) * - 87 * - 84 * - 9
----
-3683231

skipif mysql # not compatible
query I rowsort label-9505
SELECT + 95 / 74 + - + NULLIF ( - + 56, + 0 + + + COUNT ( * ) ) * - 87 * - 84 * - 9
----
-3683231

query I rowsort
SELECT + 16 * 68 + - 12 AS col0
----
1076

query I rowsort
SELECT ALL 79 * - 23 AS col0
----
-1817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT - SUM( ALL 46 ) DIV 14
----
-3

skipif mysql # not compatible
query I rowsort label-9508
SELECT - SUM ( ALL 46 ) / 14
----
-3

query I rowsort
SELECT DISTINCT - + 70 + + 21
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9510
SELECT - CAST( NULL AS DECIMAL ) * + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT - CAST ( NULL AS REAL ) * + 54 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT - COALESCE ( + 97, - ( + + MIN( ALL - CAST( 93 AS SIGNED ) ) ), + NULLIF ( - CAST( NULL AS SIGNED ), + 14 ) - - 10 + + ( - 9 ) * 13 * + + 12 )
----
-97

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - COALESCE ( + 97, - ( + + MIN ( ALL - CAST ( 93 AS INTEGER ) ) ), + NULLIF ( - CAST ( NULL AS INTEGER ), + 14 ) - - 10 + + ( - 9 ) * 13 * + + 12 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT COUNT( ( + - 82 ) ) + - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9512
SELECT COUNT ( ( + - 82 ) ) + - 78 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT + 20 + + + MIN( - - 93 ) + 68 * 99
----
6845

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT + 20 + + + MIN ( - - 93 ) + 68 * 99
----
6845

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL - COUNT( + + CASE + 40 WHEN 9 * 77 THEN 60 ELSE - 18 END ) * + 34
----
-34

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - COUNT ( + + CASE + 40 WHEN 9 * 77 THEN 60 ELSE - 18 END ) * + 34
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT ALL - 93 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL - 93 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT 62 + - COUNT( * ) + - 22 * 8
----
-115

skipif mysql # not compatible
query I rowsort label-9516
SELECT 62 + - COUNT ( * ) + - 22 * 8
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9517
SELECT ( + + COALESCE ( + - ( - + COALESCE ( COALESCE ( + 50, - + 1, + 81 * - ( 39 ) * - 93 + + - 44 + + ( - - CASE - CASE + ( + 78 ) WHEN CASE COUNT( * ) WHEN + 30 THEN - 31 + - 71 ELSE NULL END THEN 39 + + 19 WHEN 99 THEN NULL ELSE NULL END WHEN 68 THEN - CAST( NULL AS SIGNED ) WHEN - 9 * 58 THEN NULL END ), 70 DIV + 74 + - 62 ), 99, - 67 ) ), - 39 ) ) - + 22
----
28

skipif mysql # not compatible
query I rowsort label-9517
SELECT ( + + COALESCE ( + - ( - + COALESCE ( COALESCE ( + 50, - + 1, + 81 * - ( 39 ) * - 93 + + - 44 + + ( - - CASE - CASE + ( + 78 ) WHEN CASE COUNT ( * ) WHEN + 30 THEN - 31 + - 71 ELSE NULL END THEN 39 + + 19 WHEN 99 THEN NULL ELSE NULL END WHEN 68 THEN - CAST ( NULL AS INTEGER ) WHEN - 9 * 58 THEN NULL END ), 70 / + 74 + - 62 ), 99, - 67 ) ), - 39 ) ) - + 22
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT 72 + + + COUNT( * ) * 18 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9518
SELECT 72 + + + COUNT ( * ) * 18 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT 7 + + 28 + - - 93 * + 15 * - MAX( - 14 ) * - 88 * 45
----
-77338765

skipif mysql # not compatible
query I rowsort label-9519
SELECT 7 + + 28 + - - 93 * + 15 * - MAX ( - 14 ) * - 88 * 45
----
-77338765

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT + COUNT( * ) - - 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT + COUNT ( * ) - - 67 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL MIN( + 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL MIN ( + 56 ) col1
----
56

query II rowsort
SELECT - 69 AS col1, - ( + 47 ) + + - 3 AS col2
----
-69
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT DISTINCT - 75 * 30 DIV 79 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT - 75 * 30 / 79 AS col1
----
-28

query I rowsort
SELECT 0 * - + 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT 6 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT 6 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT COUNT( * ) + - CAST( - 59 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-9526
SELECT COUNT ( * ) + - CAST ( - 59 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT 25 * + + ( - COALESCE ( - MIN( + ( - - 33 ) ), - 92, + 63 - - 12, 89 ) ) * + COUNT( * ) DIV + COUNT( * )
----
825

skipif mysql # not compatible
query I rowsort label-9527
SELECT 25 * + + ( - COALESCE ( - MIN ( + ( - - 33 ) ), - 92, + 63 - - 12, 89 ) ) * + COUNT ( * ) / + COUNT ( * )
----
825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT ALL - COUNT( * ) DIV + 61 * - 67 * + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - COUNT ( * ) / + 61 * - 67 * + 67 AS col2
----
0

query I rowsort
SELECT - 37 col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - 77 + COUNT( * ) + 96 * 45 + + COUNT( * ) - + 45 AS col0
----
4200

skipif mysql # not compatible
query I rowsort label-9530
SELECT - 77 + COUNT ( * ) + 96 * 45 + + COUNT ( * ) - + 45 AS col0
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT 99 * - + 14 * - + MAX( DISTINCT 40 ) + - 93 AS col1
----
55347

skipif mysql # not compatible
query I rowsort label-9531
SELECT 99 * - + 14 * - + MAX ( DISTINCT 40 ) + - 93 AS col1
----
55347

query II rowsort
SELECT - 49 AS col1, - 90 - + 41 AS col2
----
-49
-131

query I rowsort
SELECT - 91 + 19 + - 84 AS col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL + SUM( - - 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL + SUM ( - - 57 ) AS col0
----
57

query I rowsort
SELECT DISTINCT 78 * + - 17 * + - 25
----
33150

query I rowsort
SELECT DISTINCT 96 * COALESCE ( NULLIF ( - 57, 12 + - 21 ), + ( + + 10 ) ) AS col2
----
-5472

query I rowsort
SELECT ALL - + 1 AS col1
----
-1

query I rowsort
SELECT + - 56 AS col2
----
-56

query I rowsort
SELECT ALL - + COALESCE ( + 55, + 49, + 79 )
----
-55

query I rowsort
SELECT DISTINCT - - 93 * + - 44 col2
----
-4092

query I rowsort
SELECT + + 1 * + - COALESCE ( - 68, - 45 + - 33 )
----
68

query I rowsort
SELECT ALL + - 24 AS col0
----
-24

query I rowsort
SELECT + + 32 AS col0
----
32

query I rowsort
SELECT DISTINCT 63 * - 54 AS col1
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL + - 35 * - 53 * - 62 + 66 * COUNT( * ) + + 21 AS col2
----
-114923

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + - 35 * - 53 * - 62 + 66 * COUNT ( * ) + + 21 AS col2
----
-114923

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + SUM( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9546
SELECT + SUM ( 15 )
----
15

query II rowsort
SELECT + + 12 AS col2, 58 AS col1
----
12
58

query I rowsort
SELECT + + 18 + + + 26 col0
----
44

query I rowsort
SELECT - ( + 87 ) AS col0
----
-87

query I rowsort
SELECT + NULLIF ( + + 14, + 98 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL 55 * + + 76 + + - COUNT( * ) AS col0
----
4179

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL 55 * + + 76 + + - COUNT ( * ) AS col0
----
4179

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT + - 50 * + - COUNT( 49 ) + + 88 + + 26 + - + 63 * - - COUNT( + 52 )
----
101

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT + - 50 * + - COUNT ( 49 ) + + 88 + + 26 + - + 63 * - - COUNT ( + 52 )
----
101

query I rowsort
SELECT ALL 15 * + - 99
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT MAX( ALL + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9554
SELECT MAX ( ALL + 57 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT DISTINCT 45 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT 45 / + 70
----
0

query II rowsort
SELECT ALL + 56 AS col1, 3
----
56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT + CASE + - ( - 4 ) WHEN + COUNT( * ) * 56 THEN - 95 END * - 79 + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + CASE + - ( - 4 ) WHEN + COUNT ( * ) * 56 THEN - 95 END * - 79 + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9558
SELECT ALL 79 * - - COUNT( * ), COUNT( - + 76 ) DIV + 58 AS col0
----
79
0

skipif mysql # not compatible
query II rowsort label-9558
SELECT ALL 79 * - - COUNT ( * ), COUNT ( - + 76 ) / + 58 AS col0
----
79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT MIN( DISTINCT + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9559
SELECT MIN ( DISTINCT + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT + 44 + SUM( + 16 )
----
60

skipif mysql # not compatible
query I rowsort label-9560
SELECT + 44 + SUM ( + 16 )
----
60

query I rowsort
SELECT - 67 + - 77 col1
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT DISTINCT 73 - - 19 DIV + 86
----
73

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT 73 - - 19 / + 86
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL MIN( - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL MIN ( - 5 ) AS col2
----
-5

query I rowsort
SELECT - 2 * + 80 * + 94 col2
----
-15040

query I rowsort
SELECT + 14 * - 54
----
-756

onlyif mysql # aggregate syntax: 
query III rowsort label-9566
SELECT ALL COUNT( * ) AS col2, + COUNT( * ), ( + + 62 ) * + + 89 + - 49 + + 63 AS col1
----
1
1
5532

skipif mysql # not compatible
query III rowsort label-9566
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ), ( + + 62 ) * + + 89 + - 49 + + 63 AS col1
----
1
1
5532

query I rowsort
SELECT - ( + 83 )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9568
SELECT DISTINCT 37 - - 88 + + COUNT( * ) DIV - 64, CASE + COUNT( * ) WHEN + - 33 THEN - 3 END - + - AVG ( 19 ) * 12 + 9 + - NULLIF ( + + AVG ( 70 ), - 92 + + 12 ) AS col0
----
125
NULL

skipif mysql # not compatible
query II rowsort label-9568
SELECT DISTINCT 37 - - 88 + + COUNT ( * ) / - 64, CASE + COUNT ( * ) WHEN + - 33 THEN - 3 END - + - AVG ( 19 ) * 12 + 9 + - NULLIF ( + + AVG ( 70 ), - 92 + + 12 ) AS col0
----
125
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT - 66 + COUNT( - 11 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-9569
SELECT - 66 + COUNT ( - 11 ) col0
----
-65

query II rowsort
SELECT ALL 23, 67 - + + 19 col1
----
23
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT DISTINCT MIN( + 16 ) col0, 92 * - 11
----
16
-1012

skipif mysql # not compatible
query II rowsort label-9571
SELECT DISTINCT MIN ( + 16 ) col0, 92 * - 11
----
16
-1012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL - CAST( NULL AS SIGNED ) * + - 80 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 80 * + 32
----
NULL

query I rowsort
SELECT DISTINCT - 17 * - 94 * 80 AS col1
----
127840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9574
SELECT + CAST( MIN( DISTINCT 68 ) AS SIGNED ) + + 79 + - 99 + 3 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9574
SELECT + CAST ( MIN ( DISTINCT 68 ) AS INTEGER ) + + 79 + - 99 + 3 AS col2
----
51

query I rowsort
SELECT - ( - 92 ) col1
----
92

query I rowsort
SELECT ALL - 34 * - + 74 * - - 4 AS col1
----
10064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT - CAST( + 59 AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9577
SELECT - CAST ( + 59 AS INTEGER ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9578
SELECT - + 54 - - NULLIF ( CAST( NULL AS SIGNED ), + ( + - CASE - 21 WHEN - - 8 THEN + COUNT( * ) * - 11 + - 22 WHEN + 45 * 43 + + 34 * + + 61 - - CASE - + 48 WHEN CASE CAST( 81 AS DECIMAL ) WHEN 34 THEN 7 - + 4 WHEN 60 + 25 THEN 87 WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE 76 + COUNT( * ) / + COUNT( * ) END / 91 - 28 THEN + 42 ELSE NULL END THEN NULL ELSE + 41 END ) + - CASE + 66 + 0 WHEN 98 - CAST( - 82 - + 11 AS SIGNED ) THEN NULL WHEN 81 THEN NULL ELSE + 76 * 53 END * - 63 ) * MAX( + 50 + ( + CAST( NULL AS DECIMAL ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - + 54 - - NULLIF ( CAST ( NULL AS INTEGER ), + ( + - CASE - 21 WHEN - - 8 THEN + COUNT ( * ) * - 11 + - 22 WHEN + 45 * 43 + + 34 * + + 61 - - CASE - + 48 WHEN CASE CAST ( 81 AS REAL ) WHEN 34 THEN 7 - + 4 WHEN 60 + 25 THEN 87 WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE 76 + COUNT ( * ) / + COUNT ( * ) END / 91 - 28 THEN + 42 ELSE NULL END THEN NULL ELSE + 41 END ) + - CASE + 66 + 0 WHEN 98 - CAST ( - 82 - + 11 AS INTEGER ) THEN NULL WHEN 81 THEN NULL ELSE + 76 * 53 END * - 63 ) * MAX ( + 50 + ( + CAST ( NULL AS REAL ) ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT - - 96 DIV - ( + 24 )
----
-4

skipif mysql # not compatible
query I rowsort label-9579
SELECT - - 96 / - ( + 24 )
----
-4

query I rowsort
SELECT ALL - 85 + - ( - 35 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - COUNT( * ) - - COUNT( DISTINCT + 16 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9581
SELECT - COUNT ( * ) - - COUNT ( DISTINCT + 16 ) AS col0
----
0

query I rowsort
SELECT - 55 + - 67 AS col0
----
-122

query I rowsort
SELECT - 82 * - - 31
----
-2542

query I rowsort
SELECT - 21 + 89
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9585
SELECT CASE + + 50 WHEN COALESCE ( 89, 64, - 66 ) * + 24 * - 17 + 67 THEN + + CAST( CAST( + AVG ( - - 73 ) AS SIGNED ) AS SIGNED ) * - + COUNT( * ) WHEN + COALESCE ( - 95, 39 * COUNT( * ) ) * - 92 THEN NULL END * 21 + - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT CASE + + 50 WHEN COALESCE ( 89, 64, - 66 ) * + 24 * - 17 + 67 THEN + + CAST ( CAST ( + AVG ( - - 73 ) AS INTEGER ) AS INTEGER ) * - + COUNT ( * ) WHEN + COALESCE ( - 95, 39 * COUNT ( * ) ) * - 92 THEN NULL END * 21 + - 12 AS col1
----
NULL

query I rowsort
SELECT + - 89 + 52 AS col2
----
-37

query I rowsort
SELECT + ( + 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9588
SELECT DISTINCT 97 * - + 42 * + 66 - MIN( - + 81 ) + - - 89 DIV 77 * + - COUNT( * )
----
-268804

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT 97 * - + 42 * + 66 - MIN ( - + 81 ) + - - 89 / 77 * + - COUNT ( * )
----
-268804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT + + 6 DIV 5 + 23 + - + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9589
SELECT + + 6 / 5 + 23 + - + COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9590
SELECT ALL + - 41 AS col0, COUNT( * ) * + 25 * 68 AS col0
----
-41
1700

skipif mysql # not compatible
query II rowsort label-9590
SELECT ALL + - 41 AS col0, COUNT ( * ) * + 25 * 68 AS col0
----
-41
1700

query II rowsort
SELECT ALL + - 24, - 55 + + - 58 * - 37 AS col0
----
-24
2091

query I rowsort
SELECT DISTINCT - 92 * + + 73 col0
----
-6716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT ( - CAST( - 50 AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-9593
SELECT ( - CAST ( - 50 AS INTEGER ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - COUNT( * ) * + 77 * + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-9594
SELECT - COUNT ( * ) * + 77 * + + COUNT ( * )
----
-77

query I rowsort
SELECT + 50 * + 90 AS col2
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - MAX( ALL - - 21 ) + - 66 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9596
SELECT - MAX ( ALL - - 21 ) + - 66 AS col1
----
-87

query I rowsort
SELECT COALESCE ( 30, 79 * + - 17 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT + 26 + CAST( + - 31 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9598
SELECT + 26 + CAST ( + - 31 AS INTEGER ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT CASE + 88 WHEN - + COUNT( * ) THEN - 18 * - + ( + 96 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT CASE + 88 WHEN - + COUNT ( * ) THEN - 18 * - + ( + 96 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT + 3 + - CAST( 54 AS SIGNED ) * + + SUM( ALL 15 )
----
-807

skipif mysql # not compatible
query I rowsort label-9600
SELECT + 3 + - CAST ( 54 AS INTEGER ) * + + SUM ( ALL 15 )
----
-807

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + 20 * - - SUM( DISTINCT + 45 ) * + 30
----
27000

skipif mysql # not compatible
query I rowsort label-9601
SELECT + 20 * - - SUM ( DISTINCT + 45 ) * + 30
----
27000

query I rowsort
SELECT 30 * - 81 + + 61 AS col2
----
-2369

query I rowsort
SELECT + 84 * - + 66 AS col1
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL COALESCE ( + MAX( DISTINCT - - 21 ), - 67 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL COALESCE ( + MAX ( DISTINCT - - 21 ), - 67 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + 31 - - COUNT( * ) - + 26 + - 13 + + + ( + + SUM( DISTINCT + 95 ) )
----
88

skipif mysql # not compatible
query I rowsort label-9605
SELECT + 31 - - COUNT ( * ) - + 26 + - 13 + + + ( + + SUM ( DISTINCT + 95 ) )
----
88

query I rowsort
SELECT + 24 * COALESCE ( - 59, 22 * + - 19 * + 76 + + - 19 )
----
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - COUNT( * ) + + - 80 + + 50 + 39 + - ( + - 1 )
----
9

skipif mysql # not compatible
query I rowsort label-9607
SELECT - COUNT ( * ) + + - 80 + + 50 + 39 + - ( + - 1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL - 53 + + + ( + - COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - 53 + + + ( + - COUNT ( * ) )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9609
SELECT + COALESCE ( - CASE - 32 WHEN - + 19 + + CAST( + - 16 AS SIGNED ) * COUNT( DISTINCT 84 ) + + - 22 THEN 39 * + 17 ELSE - + ( 17 ) + + + 55 END, 36, - + COUNT( DISTINCT + 13 ) * + 47 ) * + 96
----
-3648

skipif mysql # not compatible
query I rowsort label-9609
SELECT + COALESCE ( - CASE - 32 WHEN - + 19 + + CAST ( + - 16 AS INTEGER ) * COUNT ( DISTINCT 84 ) + + - 22 THEN 39 * + 17 ELSE - + ( 17 ) + + + 55 END, 36, - + COUNT ( DISTINCT + 13 ) * + 47 ) * + 96
----
-3648

query I rowsort
SELECT ( - - 68 ) + 38 * - 67 + + + 87 col1
----
-2391

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT + 89 + + 55 DIV 61
----
89

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 89 + + 55 / 61
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - SUM( 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-9612
SELECT - SUM ( 33 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9613
SELECT + 9 DIV + - ( COUNT( * ) ) + + COUNT( * ) * - 7 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9613
SELECT + 9 / + - ( COUNT ( * ) ) + + COUNT ( * ) * - 7 AS col0
----
-16

query II rowsort
SELECT 95 * - 24 AS col0, CASE - 74 WHEN - + 75 THEN NULL ELSE 33 END col1
----
-2280
33

query I rowsort
SELECT + + 11
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT DISTINCT + - CAST( CASE + 29 WHEN 70 THEN COUNT( * ) - + 19 WHEN + 65 * + + 54 THEN NULL WHEN + 87 / CASE 29 WHEN - ( 62 ) THEN 70 ELSE NULL END + - 20 THEN ( - - 93 ) END AS SIGNED ) + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT + - CAST ( CASE + 29 WHEN 70 THEN COUNT ( * ) - + 19 WHEN + 65 * + + 54 THEN NULL WHEN + 87 / CASE 29 WHEN - ( 62 ) THEN 70 ELSE NULL END + - 20 THEN ( - - 93 ) END AS INTEGER ) + 10
----
NULL

query I rowsort
SELECT ALL + - 34 * + 16 * 86 col2
----
-46784

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT 87 DIV + ( 6 )
----
14

skipif mysql # not compatible
query I rowsort label-9618
SELECT 87 / + ( 6 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT + - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9619
SELECT + - ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT + 72 * 35 - - ( + COUNT( * ) ) + ( - MIN( ALL CAST( NULL AS SIGNED ) ) ) * - 68 - + - COUNT( * ) * ( - NULLIF ( - 85, + + MAX( - 54 ) ) ) - - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT + 72 * 35 - - ( + COUNT ( * ) ) + ( - MIN ( ALL CAST ( NULL AS INTEGER ) ) ) * - 68 - + - COUNT ( * ) * ( - NULLIF ( - 85, + + MAX ( - 54 ) ) ) - - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9621
SELECT COUNT( * ) DIV + - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT COUNT ( * ) / + - 68 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9622
SELECT ALL + 34 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + 34 / - 95 AS col2
----
0

query II rowsort
SELECT 72 * + 25 * - 91 AS col1, 69 * + 78
----
-163800
5382

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT 43 DIV + 20 + - ( + - 3 ) + + - 55
----
-50

skipif mysql # not compatible
query I rowsort label-9624
SELECT 43 / + 20 + - ( + - 3 ) + + - 55
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9625
SELECT ALL MIN( - 76 ) * + 8 AS col2, + 20
----
-608
20

skipif mysql # not compatible
query II rowsort label-9625
SELECT ALL MIN ( - 76 ) * + 8 AS col2, + 20
----
-608
20

query I rowsort
SELECT 0 - 15 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9627
SELECT DISTINCT - 39 AS col1, - CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-9627
SELECT DISTINCT - 39 AS col1, - CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
-39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT ALL - 52 col0, CAST( NULL AS SIGNED ) / - 30 * + CAST( NULL AS SIGNED ) + + 18
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-9628
SELECT ALL - 52 col0, CAST ( NULL AS INTEGER ) / - 30 * + CAST ( NULL AS INTEGER ) + + 18
----
-52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL + 44 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + 44 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT COUNT( * ) * + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-9630
SELECT COUNT ( * ) * + - 25
----
-25

query I rowsort
SELECT 97 * + - 60
----
-5820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9632
SELECT 44 * + + ( + + 20 ) + 52 AS col2, CAST( NULL AS SIGNED ) * - CASE + COALESCE ( + - 95, - 30 / - ( - 12 ), 58 ) WHEN + SUM( - 68 ) THEN NULL WHEN - 1 THEN 59 END + 10 + - - 39 + - 87 * - 89
----
932
NULL

skipif mysql # not compatible
query II rowsort label-9632
SELECT 44 * + + ( + + 20 ) + 52 AS col2, CAST ( NULL AS INTEGER ) * - CASE + COALESCE ( + - 95, - 30 / - ( - 12 ), 58 ) WHEN + SUM ( - 68 ) THEN NULL WHEN - 1 THEN 59 END + 10 + - - 39 + - 87 * - 89
----
932
NULL

query I rowsort
SELECT 42 + 92 + 99 * + - 60 AS col1
----
-5806

query I rowsort
SELECT NULLIF ( 78, - 72 * - + 79 ) - + 89 AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT COUNT( * ) DIV - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT COUNT ( * ) / - 42 AS col1
----
0

query I rowsort
SELECT ( + 23 ) * + 89 AS col2
----
2047

query I rowsort
SELECT ALL ( 84 ) + + 71 AS col1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-9638
SELECT COUNT( * ) AS col2, CASE - + 26 WHEN - - 47 THEN - - 43 WHEN - 20 * + + 41 * + 89 THEN NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9638
SELECT COUNT ( * ) AS col2, CASE - + 26 WHEN - - 47 THEN - - 43 WHEN - 20 * + + 41 * + 89 THEN NULL END
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT - + 99 + 0 + 24 + + 19 * + ( + + 65 ) DIV - COUNT( * )
----
-1310

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - + 99 + 0 + 24 + + 19 * + ( + + 65 ) / - COUNT ( * )
----
-1310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9640
SELECT ALL + 82 + ( - COUNT( * ) ) AS col2, - 92 - NULLIF ( 16, CAST( NULL AS SIGNED ) ) col1
----
81
-108

skipif mysql # not compatible
query II rowsort label-9640
SELECT ALL + 82 + ( - COUNT ( * ) ) AS col2, - 92 - NULLIF ( 16, CAST ( NULL AS INTEGER ) ) col1
----
81
-108

query I rowsort
SELECT DISTINCT + 24 + - 54 col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9642
SELECT DISTINCT 29 * - COUNT( * ) * 67 * + 46 + + 39 + - 86 * 20 * + - ( - 13 ) + 43 * - - COUNT( * ) * - - 16 DIV + COALESCE ( + CASE 19 WHEN - + 12 * - - 54 - - 18 + - 33 THEN + CAST( NULL AS SIGNED ) + COALESCE ( + 85, - CAST( NULL AS SIGNED ) ) WHEN ( - 52 ) THEN NULL END, + 60 * - 50 ) * - 22 AS col1
----
-111699

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT 29 * - COUNT ( * ) * 67 * + 46 + + 39 + - 86 * 20 * + - ( - 13 ) + 43 * - - COUNT ( * ) * - - 16 / + COALESCE ( + CASE 19 WHEN - + 12 * - - 54 - - 18 + - 33 THEN + CAST ( NULL AS INTEGER ) + COALESCE ( + 85, - CAST ( NULL AS INTEGER ) ) WHEN ( - 52 ) THEN NULL END, + 60 * - 50 ) * - 22 AS col1
----
-111699

query I rowsort
SELECT ALL + 33 * - - 70
----
2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9644
SELECT 30 * - ( 8 ) DIV - COUNT( * ) AS col0, - 31 * + 11
----
240
-341

skipif mysql # not compatible
query II rowsort label-9644
SELECT 30 * - ( 8 ) / - COUNT ( * ) AS col0, - 31 * + 11
----
240
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT MAX( + + 62 ) - - COALESCE ( + COUNT( * ), + ( - 66 ), - - 65 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9645
SELECT MAX ( + + 62 ) - - COALESCE ( + COUNT ( * ), + ( - 66 ), - - 65 ) AS col2
----
63

query II rowsort
SELECT + 74 AS col2, 47
----
74
47

query I rowsort
SELECT 10 - + - 75 col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL - CASE - 45 WHEN + 12 * 25 THEN + - 99 * + 86 + - 97 - - - ( - 5 ) / + 75 * + - 77 * + 36 / + - CAST( NULL AS SIGNED ) WHEN - 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - CASE - 45 WHEN + 12 * 25 THEN + - 99 * + 86 + - 97 - - - ( - 5 ) / + 75 * + - 77 * + 36 / + - CAST ( NULL AS INTEGER ) WHEN - 88 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + MIN( ALL + - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-9649
SELECT + MIN ( ALL + - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT + COUNT( * ) + - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-9650
SELECT + COUNT ( * ) + - + 5
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT + 77 / - CASE - 21 WHEN - - MIN( ALL + + 98 ) * - 95 + - + 36 + CASE + - 90 WHEN + - 71 * - CAST( NULL AS SIGNED ) + - - COUNT( * ) THEN - 65 * + 87 * - - 89 * + 65 * - + COALESCE ( SUM( ( 42 ) ), 77 * 68 + - 77 * - 38 ) ELSE NULL END THEN NULL ELSE 76 END * ( 35 * COUNT( * ) - CAST( NULL AS SIGNED ) ) - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 77 / - CASE - 21 WHEN - - MIN ( ALL + + 98 ) * - 95 + - + 36 + CASE + - 90 WHEN + - 71 * - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) THEN - 65 * + 87 * - - 89 * + 65 * - + COALESCE ( SUM ( ( 42 ) ), 77 * 68 + - 77 * - 38 ) ELSE NULL END THEN NULL ELSE 76 END * ( 35 * COUNT ( * ) - CAST ( NULL AS INTEGER ) ) - 87
----
NULL

query I rowsort
SELECT ALL - 56 * 42 AS col0
----
-2352

query I rowsort
SELECT 10 - + 41
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9654
SELECT CAST( - 3 AS SIGNED ) * 44 + MAX( 53 )
----
-79

skipif mysql # not compatible
query I rowsort label-9654
SELECT CAST ( - 3 AS INTEGER ) * 44 + MAX ( 53 )
----
-79

query I rowsort
SELECT DISTINCT + 30 * + + 38 AS col0
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9656
SELECT 7 * + CAST( + 60 AS SIGNED ) * + + 28 * + 1, - 93 AS col0
----
11760
-93

skipif mysql # not compatible
query II rowsort label-9656
SELECT 7 * + CAST ( + 60 AS INTEGER ) * + + 28 * + 1, - 93 AS col0
----
11760
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT 49 * + - 47 + - 80 + - ( + 20 ) DIV + 73
----
-2383

skipif mysql # not compatible
query I rowsort label-9657
SELECT 49 * + - 47 + - 80 + - ( + 20 ) / + 73
----
-2383

onlyif mysql # DIV for integer division: 
query II rowsort label-9658
SELECT 6 + - 51 + + 65 - - - 26 AS col1, + 48 DIV + + 4 - - + 45
----
-6
57

skipif mysql # not compatible
query II rowsort label-9658
SELECT 6 + - 51 + + 65 - - - 26 AS col1, + 48 / + + 4 - - + 45
----
-6
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - SUM( 22 ) + - 34 + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - SUM ( 22 ) + - 34 + COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT 31 + - - 18 - + 2 AS col2
----
47

query I rowsort
SELECT DISTINCT + 95 * + 98
----
9310

onlyif mysql # aggregate syntax: 
query II rowsort label-9662
SELECT DISTINCT SUM( - 12 ) AS col2, 3
----
-12
3

skipif mysql # not compatible
query II rowsort label-9662
SELECT DISTINCT SUM ( - 12 ) AS col2, 3
----
-12
3

query I rowsort
SELECT - - 17 + 55 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL 61 + + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL 61 + + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT + NULLIF ( + - 34, + 46 ) + 71 + - - 87 * 75 * + - 62 + ( 10 ) + + COUNT( * ) + - - COUNT( * )
----
-404501

skipif mysql # not compatible
query I rowsort label-9665
SELECT + NULLIF ( + - 34, + 46 ) + 71 + - - 87 * 75 * + - 62 + ( 10 ) + + COUNT ( * ) + - - COUNT ( * )
----
-404501

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + 48 * - + 8 * - + COUNT( * )
----
384

skipif mysql # not compatible
query I rowsort label-9666
SELECT + 48 * - + 8 * - + COUNT ( * )
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT + MIN( - 10 ) + - 86 + - + CASE + + 6 WHEN + + 13 THEN - 22 WHEN 13 THEN + CAST( + MIN( DISTINCT + - 56 ) AS SIGNED ) * 14 + 60 * + + 99 ELSE NULL END / 74 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT + MIN ( - 10 ) + - 86 + - + CASE + + 6 WHEN + + 13 THEN - 22 WHEN 13 THEN + CAST ( + MIN ( DISTINCT + - 56 ) AS INTEGER ) * 14 + 60 * + + 99 ELSE NULL END / 74 * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT + + MAX( ALL - 25 ) + + 53 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9668
SELECT + + MAX ( ALL - 25 ) + + 53 AS col0
----
28

query II rowsort
SELECT - - 65 + - 0, 24 AS col0
----
65
24

query II rowsort
SELECT - 15 * 26 AS col1, 67 col1
----
-390
67

query I rowsort
SELECT + + 90 + - 6 AS col0
----
84

query I rowsort
SELECT DISTINCT ( - 14 ) * 81 + ( - 98 ) AS col2
----
-1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT + - 15 + - - CAST( + 35 AS SIGNED ) - - 20
----
40

skipif mysql # not compatible
query I rowsort label-9673
SELECT + - 15 + - - CAST ( + 35 AS INTEGER ) - - 20
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT + 60 DIV - ( 66 )
----
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT + 60 / - ( 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT 29 * 69 * ( COUNT( * ) ) AS col0
----
2001

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT 29 * 69 * ( COUNT ( * ) ) AS col0
----
2001

query II rowsort
SELECT + 73 + + - 96 AS col0, + 25
----
-23
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + COALESCE ( COUNT( DISTINCT 63 ), - - 65 ) * + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-9677
SELECT + COALESCE ( COUNT ( DISTINCT 63 ), - - 65 ) * + - 91
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9678
SELECT + 3 + 90 * + - ( + COALESCE ( CAST( NULL AS SIGNED ), - CASE + 30 WHEN 39 THEN NULL WHEN + 66 + - 46 * - 1 * + CASE - 99 WHEN + + 11 THEN - 82 WHEN + COUNT( * ) THEN NULL ELSE + 48 END - 58 THEN 86 WHEN - 44 THEN 4 * + 47 END, - 7 DIV 64 + + 82, + 29 * 10 ) ) + 27 AS col1
----
-7350

skipif mysql # not compatible
query I rowsort label-9678
SELECT + 3 + 90 * + - ( + COALESCE ( CAST ( NULL AS INTEGER ), - CASE + 30 WHEN 39 THEN NULL WHEN + 66 + - 46 * - 1 * + CASE - 99 WHEN + + 11 THEN - 82 WHEN + COUNT ( * ) THEN NULL ELSE + 48 END - 58 THEN 86 WHEN - 44 THEN 4 * + 47 END, - 7 / 64 + + 82, + 29 * 10 ) ) + 27 AS col1
----
-7350

query I rowsort
SELECT ( + 77 ) AS col0
----
77

query I rowsort
SELECT ALL 21 * + 35
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL + CASE + 71 WHEN + - 2 / + MIN( ALL ( + - 97 ) ) THEN NULL WHEN - 28 * - ( - 73 ) THEN 27 WHEN 43 THEN NULL WHEN - ( + 10 ) / ( COUNT( * ) ) THEN NULL ELSE - - 48 END
----
48

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL + CASE + 71 WHEN + - 2 / + MIN ( ALL ( + - 97 ) ) THEN NULL WHEN - 28 * - ( - 73 ) THEN 27 WHEN 43 THEN NULL WHEN - ( + 10 ) / ( COUNT ( * ) ) THEN NULL ELSE - - 48 END
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9682
SELECT + CASE ( - CAST( NULL AS SIGNED ) ) WHEN + + 65 THEN + - 60 * - ( 57 ) - - 50 END AS col2, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9682
SELECT + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN + + 65 THEN + - 60 * - ( 57 ) - - 50 END AS col2, 72
----
NULL
72

query I rowsort
SELECT + 85 * - 78
----
-6630

query I rowsort
SELECT ( - - 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9685
SELECT + 19 * CASE - 97 WHEN - COALESCE ( - + MIN( ALL + CAST( NULL AS DECIMAL ) ), - 98 * 17 * - CAST( NULL AS SIGNED ) + - ( 20 ) ) THEN NULL WHEN + - COALESCE ( COUNT( * ), + ( COUNT( * ) ) + - 24 ) THEN - COUNT( * ) ELSE NULL END * 13 * + + 57 - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT + 19 * CASE - 97 WHEN - COALESCE ( - + MIN ( ALL + CAST ( NULL AS REAL ) ), - 98 * 17 * - CAST ( NULL AS INTEGER ) + - ( 20 ) ) THEN NULL WHEN + - COALESCE ( COUNT ( * ), + ( COUNT ( * ) ) + - 24 ) THEN - COUNT ( * ) ELSE NULL END * 13 * + + 57 - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ( - 23 ) AS col0
----
-23

query I rowsort
SELECT 81 * + 78 - 95
----
6223

query I rowsort
SELECT NULLIF ( 4, + 15 )
----
4

query I rowsort
SELECT + 49 * + - 68
----
-3332

query I rowsort
SELECT + 8 + - 56
----
-48

query I rowsort
SELECT - 90 * 10 AS col1
----
-900

query I rowsort
SELECT ALL 7 * 78 AS col0
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9693
SELECT DISTINCT + COUNT( + - 9 ) * ( - ( 79 ) ) * + - 50 * 56 * 18 - - 82 + 1 * - 12 + - 40 DIV + 55 AS col0, 74 * + 76
----
3981670
5624

skipif mysql # not compatible
query II rowsort label-9693
SELECT DISTINCT + COUNT ( + - 9 ) * ( - ( 79 ) ) * + - 50 * 56 * 18 - - 82 + 1 * - 12 + - 40 / + 55 AS col0, 74 * + 76
----
3981670
5624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT DISTINCT - 73 * - + 0 + - + CAST( NULL AS SIGNED ) / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - 73 * - + 0 + - + CAST ( NULL AS INTEGER ) / + 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL + COALESCE ( + 34, - - ( ( + CAST( - 23 AS SIGNED ) ) ) + - + 93 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL + COALESCE ( + 34, - - ( ( + CAST ( - 23 AS INTEGER ) ) ) + - + 93 ) AS col2
----
34

query I rowsort
SELECT COALESCE ( + 21, + 62 * + 58 )
----
21

query I rowsort
SELECT DISTINCT - 24 * 65 + + - 63 + 53 * - 31 AS col1
----
-3266

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT COUNT( * ) * - - 71 * + + 5 + - 94 * + 60 col2
----
-5285

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT COUNT ( * ) * - - 71 * + + 5 + - 94 * + 60 col2
----
-5285

query I rowsort
SELECT - 33 * - 55 + - 1 AS col0
----
1814

query II rowsort
SELECT - 86, + 25 AS col1
----
-86
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9701
SELECT - CASE - 55 WHEN + 81 * - 38 * + ( + 10 ) + - 82 - 47 THEN NULL WHEN - ( + + NULLIF ( - 38, - + COUNT( * ) ) ) + COUNT( * ) + - + 37 THEN 31 * - COUNT( + 20 ) / - - CAST( - - COUNT( * ) AS SIGNED ) + CAST( + COUNT( * ) AS DECIMAL ) + 11 * + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT - CASE - 55 WHEN + 81 * - 38 * + ( + 10 ) + - 82 - 47 THEN NULL WHEN - ( + + NULLIF ( - 38, - + COUNT ( * ) ) ) + COUNT ( * ) + - + 37 THEN 31 * - COUNT ( + 20 ) / - - CAST ( - - COUNT ( * ) AS INTEGER ) + CAST ( + COUNT ( * ) AS REAL ) + 11 * + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 69 * - ( + + 63 ) - + - 2
----
-4345

query I rowsort
SELECT ALL - 19 * - + 91 - - - 42 * 66 AS col1
----
-1043

query I rowsort
SELECT - + 36 * 1 col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT ALL + + 2 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL + + 2 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL + ( COUNT( * ) ) - 92 + + 17
----
-74

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + ( COUNT ( * ) ) - 92 + + 17
----
-74

query I rowsort
SELECT ALL - + 6 * 90 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT ( COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL 98 col0
----
98

query I rowsort
SELECT ALL + 27 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - - MIN( DISTINCT 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9711
SELECT - - MIN ( DISTINCT 67 )
----
67

query I rowsort
SELECT DISTINCT - NULLIF ( - + 80, - ( + + 9 ) )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9713
SELECT ALL - - 14 * COUNT( * ) DIV - - ( 94 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - - 14 * COUNT ( * ) / - - ( 94 ) * + COUNT ( * )
----
0

query I rowsort
SELECT - + ( + 41 ) + - - 51 + + 97 AS col2
----
107

query I rowsort
SELECT - + 16 col2
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9716
SELECT - - 9 + - CAST( NULL AS DECIMAL ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT - - 9 + - CAST ( NULL AS REAL ) + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL ( NULLIF ( - CASE + 55 WHEN ( 73 ) THEN COUNT( * ) * - + ( 77 ) * - - ( 81 ) END, - 2 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL ( NULLIF ( - CASE + 55 WHEN ( 73 ) THEN COUNT ( * ) * - + ( 77 ) * - - ( 81 ) END, - 2 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - MIN( - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9718
SELECT - MIN ( - 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9719
SELECT - + 34 * 75 DIV - NULLIF ( MAX( ( + 9 ) ), - CAST( - COALESCE ( - CAST( NULL AS SIGNED ), + 20, - 54 ) AS SIGNED ) * + MIN( DISTINCT - - 83 ) ) + - 22
----
261

skipif mysql # not compatible
query I rowsort label-9719
SELECT - + 34 * 75 / - NULLIF ( MAX ( ( + 9 ) ), - CAST ( - COALESCE ( - CAST ( NULL AS INTEGER ), + 20, - 54 ) AS INTEGER ) * + MIN ( DISTINCT - - 83 ) ) + - 22
----
261

query I rowsort
SELECT - 24 - + + 57
----
-81

query I rowsort
SELECT DISTINCT - 30 + + - 46 * - 31 AS col0
----
1396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9723
SELECT + 68 + - 99 + 75 + CASE + 8 WHEN - 2 / + CAST( NULL AS SIGNED ) * - ( + 99 ) * - - 78 * - 63 * + 50 - - + COUNT( * ) + CASE 86 WHEN + COUNT( * ) THEN - - 58 + - COUNT( * ) ELSE NULL END / - + 17 + + 42 THEN + + 96 ELSE + 77 END
----
121

skipif mysql # not compatible
query I rowsort label-9723
SELECT + 68 + - 99 + 75 + CASE + 8 WHEN - 2 / + CAST ( NULL AS INTEGER ) * - ( + 99 ) * - - 78 * - 63 * + 50 - - + COUNT ( * ) + CASE 86 WHEN + COUNT ( * ) THEN - - 58 + - COUNT ( * ) ELSE NULL END / - + 17 + + 42 THEN + + 96 ELSE + 77 END
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL - COUNT( * ) + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - COUNT ( * ) + - 86
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT DISTINCT CAST( - AVG ( ALL - + 64 ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT CAST ( - AVG ( ALL - + 64 ) AS INTEGER )
----
64

query I rowsort
SELECT + ( - 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT ALL - COUNT( * ) DIV 43 * - 52 + + 46 DIV + 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - COUNT ( * ) / 43 * - 52 + + 46 / + 36 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT - 32 + + ( + - CAST( - - SUM( ALL + + 89 ) AS SIGNED ) )
----
-121

skipif mysql # not compatible
query I rowsort label-9728
SELECT - 32 + + ( + - CAST ( - - SUM ( ALL + + 89 ) AS INTEGER ) )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT 85 * - 53 + + - SUM( DISTINCT 78 ) * + 72
----
-10121

skipif mysql # not compatible
query I rowsort label-9729
SELECT 85 * - 53 + + - SUM ( DISTINCT 78 ) * + 72
----
-10121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9730
SELECT + CAST( - 35 AS SIGNED ) * 2 + + 74 AS col1, 56 AS col2
----
4
56

skipif mysql # not compatible
query II rowsort label-9730
SELECT + CAST ( - 35 AS INTEGER ) * 2 + + 74 AS col1, 56 AS col2
----
4
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), - 2, 86 ) * - - NULLIF ( + COUNT( * ), COUNT( * ) ) + + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), - 2, 86 ) * - - NULLIF ( + COUNT ( * ), COUNT ( * ) ) + + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT COALESCE ( COUNT( * ), 6 + - - 63 ) + - + MIN( 55 )
----
-54

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT COALESCE ( COUNT ( * ), 6 + - - 63 ) + - + MIN ( 55 )
----
-54

query I rowsort
SELECT ALL 84 * - 78
----
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT COALESCE ( + ( + MAX( - 24 ) ), 67 ) + - 1 + + CASE - - 31 WHEN - COUNT( * ) * + - 27 * - 40 - + 20 - + MIN( 66 ) * SUM( - ( 54 ) ) THEN NULL ELSE + + 70 END AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9734
SELECT COALESCE ( + ( + MAX ( - 24 ) ), 67 ) + - 1 + + CASE - - 31 WHEN - COUNT ( * ) * + - 27 * - 40 - + 20 - + MIN ( 66 ) * SUM ( - ( 54 ) ) THEN NULL ELSE + + 70 END AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL ( + 4 ) + + - NULLIF ( + - CASE - COUNT( * ) WHEN + - 64 THEN + 17 END, + - 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL ( + 4 ) + + - NULLIF ( + - CASE - COUNT ( * ) WHEN + - 64 THEN + 17 END, + - 11 ) AS col0
----
NULL

query I rowsort
SELECT 23 * - 85 + 12 * - 84 + + 56
----
-2907

query II rowsort
SELECT 25 * 1 AS col2, + 45
----
25
45

query II rowsort
SELECT + 29 AS col1, + 48 AS col1
----
29
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT 41 * + COUNT( * ) + 37 + + COUNT( * ) * + MIN( 78 ) * 17 + - - 36 AS col0
----
1440

skipif mysql # not compatible
query I rowsort label-9739
SELECT 41 * + COUNT ( * ) + 37 + + COUNT ( * ) * + MIN ( 78 ) * 17 + - - 36 AS col0
----
1440

query I rowsort
SELECT + 63 * 60 + - 17 + - 93 + 4
----
3674

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT DISTINCT - 80 AS col0, + ( - ( 34 ) ) + - COUNT( * ) col1
----
-80
-35

skipif mysql # not compatible
query II rowsort label-9741
SELECT DISTINCT - 80 AS col0, + ( - ( 34 ) ) + - COUNT ( * ) col1
----
-80
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL + 45 * + NULLIF ( + 40, - 93 * MAX( 75 ) * - 64 + AVG ( 96 ) + + 9 ) - - + 25 * + 21 AS col0
----
2325

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL + 45 * + NULLIF ( + 40, - 93 * MAX ( 75 ) * - 64 + AVG ( 96 ) + + 9 ) - - + 25 * + 21 AS col0
----
2325

query II rowsort
SELECT - 3 AS col1, - 68 + + + 80
----
-3
12

query II rowsort
SELECT + + 85 AS col0, 60 + - 97 AS col1
----
85
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9745
SELECT + NULLIF ( - 88, - + CAST( NULL AS SIGNED ) ) * - - 76 + + ( - + 2 ) + - 92 AS col1, ( - + 57 ) * 2 AS col2
----
-6782
-114

skipif mysql # not compatible
query II rowsort label-9745
SELECT + NULLIF ( - 88, - + CAST ( NULL AS INTEGER ) ) * - - 76 + + ( - + 2 ) + - 92 AS col1, ( - + 57 ) * 2 AS col2
----
-6782
-114

query I rowsort
SELECT ALL 66 * + - 97 AS col2
----
-6402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT DISTINCT + MAX( - 26 ) * - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + MAX ( - 26 ) * - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + + 23 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT - - CAST( + 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-9748
SELECT - - CAST ( + 41 AS INTEGER )
----
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9749
SELECT + 33 DIV CAST( + 33 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9749
SELECT + 33 / CAST ( + 33 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - CASE - 56 WHEN + MIN( ALL 7 ) * + 39 + ( 28 ) + - COUNT( ALL - NULLIF ( - 58, - 82 ) ) - + + 63 * + + 68 THEN NULLIF ( 23, + - 53 ) WHEN + - 7 * 6 * - + 99 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT - CASE - 56 WHEN + MIN ( ALL 7 ) * + 39 + ( 28 ) + - COUNT ( ALL - NULLIF ( - 58, - 82 ) ) - + + 63 * + + 68 THEN NULLIF ( 23, + - 53 ) WHEN + - 7 * 6 * - + 99 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 55 + 83 AS col0
----
138

query II rowsort
SELECT ALL 22 AS col1, 78 * + 77 AS col2
----
22
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL + 69 / - 64 * - CAST( NULL AS SIGNED ) * - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + 69 / - 64 * - CAST ( NULL AS INTEGER ) * - - 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT + 99 DIV + + 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9754
SELECT + 99 / + + 35 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT DISTINCT + 36 * + 63 * + - 41 / - - 39 + + 7 * CAST( NULL AS SIGNED ) + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + 36 * + 63 * + - 41 / - - 39 + + 7 * CAST ( NULL AS INTEGER ) + + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - COUNT( DISTINCT + - 89 ) + - 98 + + - 74 * + COUNT( * )
----
-173

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - COUNT ( DISTINCT + - 89 ) + - 98 + + - 74 * + COUNT ( * )
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT - 22 + - 13 * - 56 * + ( + NULLIF ( - 10, - + MIN( DISTINCT 75 ) + - CAST( NULL AS SIGNED ) ) ) AS col1
----
-7302

skipif mysql # not compatible
query I rowsort label-9757
SELECT - 22 + - 13 * - 56 * + ( + NULLIF ( - 10, - + MIN ( DISTINCT 75 ) + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-7302

query II rowsort
SELECT ALL - 54 AS col1, + 16 AS col2
----
-54
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT - - MAX( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-9759
SELECT - - MAX ( DISTINCT + 59 )
----
59

query I rowsort
SELECT ALL + ( + 92 ) + - 1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL + 53 + 0 * + 48 * - - MIN( DISTINCT + ( + 64 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL + 53 + 0 * + 48 * - - MIN ( DISTINCT + ( + 64 ) ) AS col1
----
53

query I rowsort
SELECT 45 + + 74 AS col1
----
119

query I rowsort
SELECT ALL + ( - - 60 ) + + 51 AS col1
----
111

query I rowsort
SELECT DISTINCT 7 - + 76 + + ( + 49 ) * - ( 22 )
----
-1147

query I rowsort
SELECT ALL - 15 col1
----
-15

query I rowsort
SELECT 55 * + 20 + + 10 AS col2
----
1110

query I rowsort
SELECT 76 + - 41
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT ALL 6 - + 15 + - MAX( DISTINCT - 41 ) - + - 48 * - 92 * 94 AS col2, 56 * - 82 * + + NULLIF ( 62, - - 60 - + 93 ) AS col0
----
-415072
-284704

skipif mysql # not compatible
query II rowsort label-9768
SELECT ALL 6 - + 15 + - MAX ( DISTINCT - 41 ) - + - 48 * - 92 * 94 AS col2, 56 * - 82 * + + NULLIF ( 62, - - 60 - + 93 ) AS col0
----
-415072
-284704

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT 51 * 30 AS col1, COUNT( * ) AS col0
----
1530
1

skipif mysql # not compatible
query II rowsort label-9769
SELECT 51 * 30 AS col1, COUNT ( * ) AS col0
----
1530
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9770
SELECT ALL - - NULLIF ( - COUNT( * ), - + 45 / 3 / - - CAST( + COUNT( * ) AS DECIMAL ) + + 59 * + - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - - NULLIF ( - COUNT ( * ), - + 45 / 3 / - - CAST ( + COUNT ( * ) AS REAL ) + + 59 * + - 86 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + + 85 - - 98 AS col0
----
183

query I rowsort
SELECT + 43 * 44 + + 82 - + 72 AS col1
----
1902

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT CASE + 36 WHEN + 6 THEN + - ( + + 88 ) WHEN MAX( ALL - 24 ) * + MIN( DISTINCT - 79 ) + - - 88 * 31 + ( COUNT( * ) ) THEN NULL ELSE NULL END * - + 58 * + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT CASE + 36 WHEN + 6 THEN + - ( + + 88 ) WHEN MAX ( ALL - 24 ) * + MIN ( DISTINCT - 79 ) + - - 88 * 31 + ( COUNT ( * ) ) THEN NULL ELSE NULL END * - + 58 * + - 67
----
NULL

query I rowsort
SELECT DISTINCT - 5 col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT + ( + + 37 ) + + - COALESCE ( - 49, 87 + 97, - COUNT( * ) + + 27 + + 23 + - ( - 32 ) DIV 74 + - + 95 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9775
SELECT + ( + + 37 ) + + - COALESCE ( - 49, 87 + 97, - COUNT ( * ) + + 27 + + 23 + - ( - 32 ) / 74 + - + 95 ) AS col2
----
86

query I rowsort
SELECT DISTINCT - 82 col2
----
-82

query I rowsort
SELECT 0 * - 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9778
SELECT - 68 * 56 DIV + - 75 + - 54 - - 87 + MAX( - 27 ) - - - 12
----
44

skipif mysql # not compatible
query I rowsort label-9778
SELECT - 68 * 56 / + - 75 + - 54 - - 87 + MAX ( - 27 ) - - - 12
----
44

query I rowsort
SELECT - - 2 AS col0
----
2

query I rowsort
SELECT DISTINCT 58 + 47 + 56 + + 85 * - 33
----
-2644

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ( - COUNT( * ) ) * 30 - + + ( - - 56 )
----
-86

skipif mysql # not compatible
query I rowsort label-9781
SELECT ( - COUNT ( * ) ) * 30 - + + ( - - 56 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL - - 34 + MIN( + 36 )
----
70

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - - 34 + MIN ( + 36 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL MAX( DISTINCT + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL MAX ( DISTINCT + - 42 )
----
-42

query I rowsort
SELECT ALL - 46 + 15 + - 43 * + 8 AS col1
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ( + + COUNT( * ) ) + + SUM( DISTINCT - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-9785
SELECT ( + + COUNT ( * ) ) + + SUM ( DISTINCT - 53 )
----
-52

query I rowsort
SELECT 26 - COALESCE ( - - 93, 69 + - - 71, - 59 * 31 ) col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT COUNT( * ) + - NULLIF ( - 59, + MIN( - 77 ) )
----
60

skipif mysql # not compatible
query I rowsort label-9787
SELECT COUNT ( * ) + - NULLIF ( - 59, + MIN ( - 77 ) )
----
60

query II rowsort
SELECT ALL 40 AS col0, 51 * 17
----
40
867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT CAST( NULL AS SIGNED ) + - + MAX( ALL - 92 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT CAST ( NULL AS INTEGER ) + - + MAX ( ALL - 92 ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT 45 DIV + MAX( DISTINCT 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9790
SELECT 45 / + MAX ( DISTINCT 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - NULLIF ( - 2, COUNT( * ) / + - 37 )
----
2

skipif mysql # not compatible
query I rowsort label-9791
SELECT - NULLIF ( - 2, COUNT ( * ) / + - 37 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL - CAST( NULL AS SIGNED ) * + 72 * + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL - CAST ( NULL AS INTEGER ) * + 72 * + + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 84 - 91 * - 46 AS col2
----
4270

query II rowsort
SELECT DISTINCT 8 AS col0, - 98 + - 71
----
8
-169

query I rowsort
SELECT ALL + 50 - 44 + - 95 AS col2
----
-89

query I rowsort
SELECT DISTINCT NULLIF ( + 31, + - 32 ) AS col1
----
31

query I rowsort
SELECT - 31 + + + CASE - 15 WHEN + 61 * + 21 * + 78 * 90 THEN 43 * CASE + 95 WHEN + 85 THEN NULL WHEN + 49 THEN - COALESCE ( + - 54, + 97 ) * 56 + + + 86 ELSE 3 END WHEN 5 * + 25 THEN NULL END * - + 55
----
NULL

query I rowsort
SELECT + 43 + + 78
----
121

query II rowsort
SELECT + 16 AS col0, + 10 AS col0
----
16
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT + 18 DIV - 88 DIV + - 84 DIV 73 + - - 82
----
82

skipif mysql # not compatible
query I rowsort label-9800
SELECT + 18 / - 88 / + - 84 / 73 + - - 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL + 50 * COUNT( * ) * - + 7 AS col0
----
-350

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL + 50 * COUNT ( * ) * - + 7 AS col0
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT - COUNT( * ) * + 16
----
-16

skipif mysql # not compatible
query I rowsort label-9802
SELECT - COUNT ( * ) * + 16
----
-16

query II rowsort
SELECT + 24, - 83 AS col0
----
24
-83

query I rowsort
SELECT - 1 + + 83
----
82

query I rowsort
SELECT DISTINCT + ( + 63 ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9806
SELECT + CAST( - + ( - - 89 ) AS SIGNED ) / - - 93 + + 65 + - CASE 69 WHEN - COUNT( * ) - - 3 * + + CASE - 29 WHEN + + NULLIF ( + 62, + 49 ) / 52 * CAST( NULL AS SIGNED ) * CASE + 77 WHEN - - COALESCE ( - 12, 5, 33 + + - 27 ) THEN NULL WHEN + 14 + - SUM( DISTINCT - 27 ) * 39 THEN - 36 ELSE 26 + + NULLIF ( 76, - 48 / ( 35 ) ) END * 63 + + 0 - - CAST( 11 AS DECIMAL ) THEN NULL WHEN 18 THEN NULL ELSE + 29 END * 36 THEN 21 * + 16 - - 69 WHEN + COUNT( ( + 84 ) ) THEN NULL END * - 33 + COUNT( ALL 65 + + 96 / + 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT + CAST ( - + ( - - 89 ) AS INTEGER ) / - - 93 + + 65 + - CASE 69 WHEN - COUNT ( * ) - - 3 * + + CASE - 29 WHEN + + NULLIF ( + 62, + 49 ) / 52 * CAST ( NULL AS INTEGER ) * CASE + 77 WHEN - - COALESCE ( - 12, 5, 33 + + - 27 ) THEN NULL WHEN + 14 + - SUM ( DISTINCT - 27 ) * 39 THEN - 36 ELSE 26 + + NULLIF ( 76, - 48 / ( 35 ) ) END * 63 + + 0 - - CAST ( 11 AS REAL ) THEN NULL WHEN 18 THEN NULL ELSE + 29 END * 36 THEN 21 * + 16 - - 69 WHEN + COUNT ( ( + 84 ) ) THEN NULL END * - 33 + COUNT ( ALL 65 + + 96 / + 96 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT - - NULLIF ( - + 13, - + MIN( + + 74 ) * - 2 - + 90 + + - 37 + + - ( 95 ) * + 19 ) + 44 * + - 22
----
-981

skipif mysql # not compatible
query I rowsort label-9807
SELECT - - NULLIF ( - + 13, - + MIN ( + + 74 ) * - 2 - + 90 + + - 37 + + - ( 95 ) * + 19 ) + 44 * + - 22
----
-981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT - CAST( NULL AS SIGNED ) * + + 37 + + ( + 4 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT - CAST ( NULL AS INTEGER ) * + + 37 + + ( + 4 ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( 59 ) * - 4
----
236

query I rowsort
SELECT + - 91 * - 40 * - 5 * - 98
----
1783600

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT + COUNT( * ) + + + MIN( DISTINCT 0 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9811
SELECT + COUNT ( * ) + + + MIN ( DISTINCT 0 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL - COUNT( * ) * - ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - COUNT ( * ) * - ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT SUM( DISTINCT + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9813
SELECT SUM ( DISTINCT + 3 ) AS col1
----
3

query I rowsort
SELECT ALL + - NULLIF ( 74, + - COALESCE ( - 78, ( + 58 ) ) ) * 26 * - 37
----
71188

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT MAX( ALL + + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT MAX ( ALL + + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT - 70 * - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9816
SELECT - 70 * - COUNT ( * ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT + 40 + 57 - 87 + MIN( + + 21 ) + - 97 * - 47 * - 24 AS col2
----
-109385

skipif mysql # not compatible
query I rowsort label-9817
SELECT + 40 + 57 - 87 + MIN ( + + 21 ) + - 97 * - 47 * - 24 AS col2
----
-109385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL ( + 89 ) + - CAST( NULL AS SIGNED ) + + 57 * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL ( + 89 ) + - CAST ( NULL AS INTEGER ) + + 57 * - 84 AS col2
----
NULL

query I rowsort
SELECT + 15 + + 68
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT ALL CAST( - 20 AS SIGNED ) * COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL CAST ( - 20 AS INTEGER ) * COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT + 3 * 79
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - ( + COUNT( ALL - - 7 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9822
SELECT - ( + COUNT ( ALL - - 7 ) )
----
-1

query I rowsort
SELECT ALL 61 * - 17
----
-1037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT - CASE - + 32 WHEN 78 * - - 63 THEN - - CASE + COUNT( DISTINCT + 89 ) WHEN 7 + - + 95 THEN - 50 END + - - 83 * - + NULLIF ( + 54, - 55 ) DIV - COUNT( * ) * + + ( + MIN( DISTINCT ( 19 ) ) ) + - 6 WHEN 10 - - - 58 * - 1 DIV + + COUNT( * ) * 92 + + 16 THEN NULL ELSE 95 END
----
-95

skipif mysql # not compatible
query I rowsort label-9824
SELECT - CASE - + 32 WHEN 78 * - - 63 THEN - - CASE + COUNT ( DISTINCT + 89 ) WHEN 7 + - + 95 THEN - 50 END + - - 83 * - + NULLIF ( + 54, - 55 ) / - COUNT ( * ) * + + ( + MIN ( DISTINCT ( 19 ) ) ) + - 6 WHEN 10 - - - 58 * - 1 / + + COUNT ( * ) * 92 + + 16 THEN NULL ELSE 95 END
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT - 8 * - - NULLIF ( CAST( - 95 AS SIGNED ), + 79 )
----
760

skipif mysql # not compatible
query I rowsort label-9825
SELECT - 8 * - - NULLIF ( CAST ( - 95 AS INTEGER ), + 79 )
----
760

query I rowsort
SELECT - ( + + 39 )
----
-39

query I rowsort
SELECT + 37 * + 94 AS col2
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + COUNT( * ) * 30 col2
----
30

skipif mysql # not compatible
query I rowsort label-9828
SELECT + COUNT ( * ) * 30 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + 72 * - - ( + - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-9829
SELECT + 72 * - - ( + - COUNT ( * ) )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT CAST( 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-9830
SELECT CAST ( 62 AS INTEGER )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL + COUNT( * ) * 93 * - 76
----
-7068

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + COUNT ( * ) * 93 * - 76
----
-7068

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT - ( - ( + 60 ) ) * + - 72, - ( + - 38 ) * COUNT( * ) AS col0
----
-4320
38

skipif mysql # not compatible
query II rowsort label-9832
SELECT - ( - ( + 60 ) ) * + - 72, - ( + - 38 ) * COUNT ( * ) AS col0
----
-4320
38

query I rowsort
SELECT ALL + - 33 col0
----
-33

query I rowsort
SELECT + - 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + - 0 * COUNT( * ) * 28 * + - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT + - 0 * COUNT ( * ) * 28 * + - 81 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9836
SELECT 42 DIV - - COUNT( * ) + + + 11 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9836
SELECT 42 / - - COUNT ( * ) + + + 11 AS col0
----
53

query I rowsort
SELECT - 43 + - 56 * 84 AS col2
----
-4747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT - + 62 * - CAST( - + NULLIF ( - - 0, - - 97 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9838
SELECT - + 62 * - CAST ( - + NULLIF ( - - 0, - - 97 ) AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + NULLIF ( - 81, MIN( - 79 ) * 81 * 12 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9839
SELECT + NULLIF ( - 81, MIN ( - 79 ) * 81 * 12 ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT ALL + + ( + - 59 ) * - 7 + - NULLIF ( CAST( + ( + 33 ) AS SIGNED ), - SUM( - 43 ) + + 34 - 1 / - 57 * - - 81 ) * + - 62 + + COUNT( * ) AS col2
----
2460

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + + ( + - 59 ) * - 7 + - NULLIF ( CAST ( + ( + 33 ) AS INTEGER ), - SUM ( - 43 ) + + 34 - 1 / - 57 * - - 81 ) * + - 62 + + COUNT ( * ) AS col2
----
2460

query I rowsort
SELECT DISTINCT 13 * - 65 + + - 2
----
-847

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT 1 * - 39 * + + 52 + + + 0 - - - 9 DIV + 34
----
-2028

skipif mysql # not compatible
query I rowsort label-9842
SELECT 1 * - 39 * + + 52 + + + 0 - - - 9 / + 34
----
-2028

query I rowsort
SELECT + - 62 col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT + COALESCE ( + 83, + 51 DIV + - 16 + 83, + 0 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-9844
SELECT + COALESCE ( + 83, + 51 / + - 16 + 83, + 0 ) col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT - 46 + + CAST( + 92 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9845
SELECT - 46 + + CAST ( + 92 AS INTEGER ) AS col0
----
46

query I rowsort
SELECT ALL - + 88 * - - 77 AS col2
----
-6776

query I rowsort
SELECT ALL + + 98 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT - 97 * 50 * - COUNT( * )
----
4850

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - 97 * 50 * - COUNT ( * )
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT 19 * + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9849
SELECT 19 * + - COUNT ( * )
----
-19

query I rowsort
SELECT 86 * 25 * + - 75 - + - 68 AS col2
----
-161182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT DISTINCT - 49 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - 49 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 40 * + + 27
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT ALL 50 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL 50 / - 60
----
0

query I rowsort
SELECT 44 * + 4
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT + 68 - + 80 + - MIN( DISTINCT - 50 )
----
38

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + 68 - + 80 + - MIN ( DISTINCT - 50 )
----
38

query I rowsort
SELECT 19 * - 16 AS col1
----
-304

query II rowsort
SELECT 25 + + - 20 + + 93 AS col2, ( 43 )
----
98
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT 60 - - MIN( DISTINCT - 11 ) * + 49 AS col1
----
-479

skipif mysql # not compatible
query I rowsort label-9858
SELECT 60 - - MIN ( DISTINCT - 11 ) * + 49 AS col1
----
-479

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT 34 + - + ( COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9859
SELECT 34 + - + ( COUNT ( * ) ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT 44 + + + ( 26 ) DIV - 8 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9860
SELECT 44 + + + ( 26 ) / - 8 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT CASE 56 WHEN + ( COALESCE ( + COUNT( * ), - CAST( + - 82 AS SIGNED ) ) ) THEN + ( - SUM( + - 81 ) ) + + ( + + NULLIF ( - 11, - - COUNT( * ) ) ) WHEN + 67 + - COUNT( * ) * + + 64 THEN 55 END + COUNT( * ) - - + CAST( + - 70 AS SIGNED ) + 53 + - COUNT( * ) * COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT CASE 56 WHEN + ( COALESCE ( + COUNT ( * ), - CAST ( + - 82 AS INTEGER ) ) ) THEN + ( - SUM ( + - 81 ) ) + + ( + + NULLIF ( - 11, - - COUNT ( * ) ) ) WHEN + 67 + - COUNT ( * ) * + + 64 THEN 55 END + COUNT ( * ) - - + CAST ( + - 70 AS INTEGER ) + 53 + - COUNT ( * ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 13 + + + 6 + + ( - 85 ) * + - 30 + 90 * + + 43 * - 39 + + + 48 * - 50 + - 98 * 3 * + 1 AS col0
----
-151055

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT 89 + + MIN( 47 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT 89 + + MIN ( 47 ) AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL 48 + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL 48 + + COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT 6 * + ( - + CAST( - - 54 AS SIGNED ) ) AS col1
----
-324

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT 6 * + ( - + CAST ( - - 54 AS INTEGER ) ) AS col1
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + COUNT( * ) * - 40 col0
----
-40

skipif mysql # not compatible
query I rowsort label-9866
SELECT + COUNT ( * ) * - 40 col0
----
-40

query I rowsort
SELECT ALL - + NULLIF ( + 27, - 37 )
----
-27

query I rowsort
SELECT - ( + 67 ) AS col1
----
-67

query I rowsort
SELECT + 83 + - + 1 - + ( 65 ) + + 12 * + 14
----
185

query II rowsort
SELECT - 92 * + ( - - 40 ), + 48 AS col1
----
-3680
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT 62 + + - CAST( - 93 AS SIGNED ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT 62 + + - CAST ( - 93 AS INTEGER ) AS col2
----
155

query I rowsort
SELECT ALL - - COALESCE ( - 65, - 99 ) col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT + 52 DIV + - 49 + - 39 + + + CAST( - - ( + + 90 ) AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + 52 / + - 49 + - 39 + + + CAST ( - - ( + + 90 ) AS INTEGER ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9874
SELECT DISTINCT + 41 DIV + ( - 20 ), - CAST( - 52 AS SIGNED ) AS col1
----
-2
52

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT + 41 / + ( - 20 ), - CAST ( - 52 AS INTEGER ) AS col1
----
-2
52

query I rowsort
SELECT DISTINCT + 83 + - 92
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL + + 40 * CAST( + + 11 AS SIGNED ) * 55 - ( + 29 ) AS col2
----
24171

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + + 40 * CAST ( + + 11 AS INTEGER ) * 55 - ( + 29 ) AS col2
----
24171

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL - COUNT( * ) + - + 14
----
-15

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - COUNT ( * ) + - + 14
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL COUNT( * ) + + - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL COUNT ( * ) + + - 34 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT - 40 DIV + + COUNT( ALL - 82 ) + 18 - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 40 / + + COUNT ( ALL - 82 ) + 18 - COUNT ( * )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT 26 * - 61 - + + 18 + + CAST( NULL AS SIGNED ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT 26 * - 61 - + + 18 + + CAST ( NULL AS INTEGER ) + 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT 15 + + MIN( ( + 6 ) ) + ( - 60 ) col0, 76 + 60
----
-39
136

skipif mysql # not compatible
query II rowsort label-9881
SELECT 15 + + MIN ( ( + 6 ) ) + ( - 60 ) col0, 76 + 60
----
-39
136

query I rowsort
SELECT DISTINCT 31 * - - 64 AS col2
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - 75 + + SUM( ALL - - 94 ) * 61
----
5659

skipif mysql # not compatible
query I rowsort label-9883
SELECT - 75 + + SUM ( ALL - - 94 ) * 61
----
5659

query I rowsort
SELECT 29 * + 76 * - + 69 AS col0
----
-152076

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL 68 * - + COUNT( * ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL 68 * - + COUNT ( * ) col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9886
SELECT DISTINCT - MAX( CASE + 82 WHEN - 79 * - 17 THEN - + ( CAST( NULL AS SIGNED ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT - MAX ( CASE + 82 WHEN - 79 * - 17 THEN - + ( CAST ( NULL AS INTEGER ) ) END )
----
NULL

query I rowsort
SELECT 45 + + - 33 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT ALL 91 col1, + 31 + - 85 - - - COUNT( - + 34 ) AS col0
----
91
-55

skipif mysql # not compatible
query II rowsort label-9888
SELECT ALL 91 col1, + 31 + - 85 - - - COUNT ( - + 34 ) AS col0
----
91
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT COUNT( * ) * ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9889
SELECT COUNT ( * ) * ( COUNT ( * ) ) col2
----
1

query I rowsort
SELECT 54 * NULLIF ( + ( + 80 ), + + 29 ) AS col1
----
4320

query II rowsort
SELECT - 46, 97 col2
----
-46
97

query I rowsort
SELECT 60 + - + 87 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9893
SELECT DISTINCT - NULLIF ( 73, - - 90 - 55 * + 26 ) DIV - COUNT( * ) AS col2, - 0 - + + 60 AS col0
----
73
-60

skipif mysql # not compatible
query II rowsort label-9893
SELECT DISTINCT - NULLIF ( 73, - - 90 - 55 * + 26 ) / - COUNT ( * ) AS col2, - 0 - + + 60 AS col0
----
73
-60

query II rowsort
SELECT ALL 99 AS col2, 66 + 86 * - 99
----
99
-8448

query II rowsort
SELECT 44 * + 67 * - + 51 * 16 AS col1, + 55 AS col2
----
-2405568
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9896
SELECT ALL + 91 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + 91 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9897
SELECT DISTINCT + 19 DIV - CAST( - - 78 AS SIGNED ) * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + 19 / - CAST ( - - 78 AS INTEGER ) * - COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL + NULLIF ( - 14, - - 78 ) * - NULLIF ( - + 45, - 78 - - + 36 ) AS col1
----
-630

query I rowsort
SELECT ALL + 92 * + + 99
----
9108

query I rowsort
SELECT 79 * ( - 67 ) AS col2
----
-5293

query I rowsort
SELECT ALL - 28 + - - COALESCE ( - 54, - - 73, + 72 ) + 26 - - 34
----
-22

query II rowsort
SELECT 55 AS col0, + 10
----
55
10

query II rowsort
SELECT - 78 AS col2, - 70
----
-78
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL MAX( + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL MAX ( + 7 )
----
7

query I rowsort
SELECT ALL - 2 + - 57 AS col0
----
-59

query I rowsort
SELECT + 98 * 19 AS col0
----
1862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT DISTINCT 46 + 5 + + 12 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT 46 + 5 + + 12 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 51 + - + 92 + - 98
----
-139

query II rowsort
SELECT ALL - - NULLIF ( - + 17, - - COALESCE ( - - 70, - - 5 ) ) + 77, - 8 - - + 74 * 25 col1
----
60
1842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT - 5 * - COALESCE ( + 1, - 87, + + 48 * - - 24 - + + 64 * 51 ) - COALESCE ( + ( + 11 ), - 36 * + - 23 + 79 DIV MIN( DISTINCT NULLIF ( - + 12, 15 ) ) ) DIV 36 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9910
SELECT - 5 * - COALESCE ( + 1, - 87, + + 48 * - - 24 - + + 64 * 51 ) - COALESCE ( + ( + 11 ), - 36 * + - 23 + 79 / MIN ( DISTINCT NULLIF ( - + 12, 15 ) ) ) / 36 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL - 23 * + 12 * + ( - + COUNT( * ) ) * - 56 AS col2
----
-15456

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL - 23 * + 12 * + ( - + COUNT ( * ) ) * - 56 AS col2
----
-15456

onlyif mysql # DIV for integer division: 
query II rowsort label-9912
SELECT ALL 9 * + ( - NULLIF ( + - 42, - 42 ) ) + - 40 AS col2, + 69 DIV - 91 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9912
SELECT ALL 9 * + ( - NULLIF ( + - 42, - 42 ) ) + - 40 AS col2, + 69 / - 91 AS col2
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9913
SELECT 48 AS col2, - CAST( NULL AS SIGNED ) + 36
----
48
NULL

skipif mysql # not compatible
query II rowsort label-9913
SELECT 48 AS col2, - CAST ( NULL AS INTEGER ) + 36
----
48
NULL

query I rowsort
SELECT 2 * - 80 col0
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT - 25 * - COUNT( * ) + + COUNT( * ) - - - 32 * + + 30 + - - 36 * CAST( + + ( + 82 ) AS SIGNED ) AS col1
----
2018

skipif mysql # not compatible
query I rowsort label-9915
SELECT - 25 * - COUNT ( * ) + + COUNT ( * ) - - - 32 * + + 30 + - - 36 * CAST ( + + ( + 82 ) AS INTEGER ) AS col1
----
2018

query II rowsort
SELECT + 86 AS col0, + 98
----
86
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9917
SELECT + 97 DIV 25 AS col2, - 51 - - 3 - - COUNT( * ) AS col0
----
3
-47

skipif mysql # not compatible
query II rowsort label-9917
SELECT + 97 / 25 AS col2, - 51 - - 3 - - COUNT ( * ) AS col0
----
3
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + 37 * + AVG ( - - 52 ) * ( + CASE - ( - SUM( DISTINCT 70 ) ) WHEN + 38 / - 61 - + 42 * - COUNT( * ) + 84 THEN - + 58 WHEN - 59 + + - COUNT( * ) * + 30 THEN 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9918
SELECT + 37 * + AVG ( - - 52 ) * ( + CASE - ( - SUM ( DISTINCT 70 ) ) WHEN + 38 / - 61 - + 42 * - COUNT ( * ) + 84 THEN - + 58 WHEN - 59 + + - COUNT ( * ) * + 30 THEN 55 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - - 34 * - CASE - - 8 WHEN - - COUNT( * ) * 58 THEN NULL ELSE 33 * 82 + - 5 END + - SUM( DISTINCT 44 ) + 53 * + + 91
----
-87055

skipif mysql # not compatible
query I rowsort label-9919
SELECT - - 34 * - CASE - - 8 WHEN - - COUNT ( * ) * 58 THEN NULL ELSE 33 * 82 + - 5 END + - SUM ( DISTINCT 44 ) + 53 * + + 91
----
-87055

query I rowsort
SELECT DISTINCT + 12 col2
----
12

query II rowsort
SELECT DISTINCT + 30, 67 * 65 * - 72 col2
----
30
-313560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT + 64 + + 84 + - 36 + + - 62 DIV - COUNT( * )
----
174

skipif mysql # not compatible
query I rowsort label-9922
SELECT + 64 + + 84 + - 36 + + - 62 / - COUNT ( * )
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT DISTINCT + COUNT( * ) DIV - 50 * 42
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + COUNT ( * ) / - 50 * 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT + NULLIF ( + 26, - 57 + 6 + + CASE + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN - 42 - + 34 * - 64 WHEN - - 61 * + 85 + + 71 + + COUNT( * ) + 88 THEN NULL END * - 10 * - + COUNT( ALL + COALESCE ( + 24, ( + COALESCE ( 98, + 41 ) ) + - 70 ) ) + + ( - 35 ) * - 90 * 35 + + 25 * - CAST( NULL AS SIGNED ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9924
SELECT + NULLIF ( + 26, - 57 + 6 + + CASE + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN - 42 - + 34 * - 64 WHEN - - 61 * + 85 + + 71 + + COUNT ( * ) + 88 THEN NULL END * - 10 * - + COUNT ( ALL + COALESCE ( + 24, ( + COALESCE ( 98, + 41 ) ) + - 70 ) ) + + ( - 35 ) * - 90 * 35 + + 25 * - CAST ( NULL AS INTEGER ) ) AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9925
SELECT + 26 DIV + COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 26 / + COUNT ( * ) col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9926
SELECT ALL + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT COUNT( CAST( + - 52 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9927
SELECT COUNT ( CAST ( + - 52 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT 4 * - 82 + + NULLIF ( - + COUNT( * ), - - COUNT( * ) ) AS col2
----
-329

skipif mysql # not compatible
query I rowsort label-9928
SELECT 4 * - 82 + + NULLIF ( - + COUNT ( * ), - - COUNT ( * ) ) AS col2
----
-329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL NULLIF ( CASE + + 47 WHEN MIN( ALL - - 89 ) THEN + 76 END, ( CASE + + 68 WHEN 60 THEN - MIN( + - 7 ) END ) ) * 78 + + 23 + - + NULLIF ( COUNT( * ), - 13 ) - - + 44 + - CAST( NULL AS SIGNED ) * - ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL NULLIF ( CASE + + 47 WHEN MIN ( ALL - - 89 ) THEN + 76 END, ( CASE + + 68 WHEN 60 THEN - MIN ( + - 7 ) END ) ) * 78 + + 23 + - + NULLIF ( COUNT ( * ), - 13 ) - - + 44 + - CAST ( NULL AS INTEGER ) * - ( 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT + CASE + 80 WHEN 41 / + - CASE + 89 WHEN 98 THEN - 70 * + - 41 * - COUNT( ALL - + 74 ) + - + 72 + - 30 WHEN 1 THEN NULL WHEN - + 28 * + - 43 THEN NULL WHEN + 23 THEN + CAST( + 26 AS SIGNED ) END * 77 THEN 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT + CASE + 80 WHEN 41 / + - CASE + 89 WHEN 98 THEN - 70 * + - 41 * - COUNT ( ALL - + 74 ) + - + 72 + - 30 WHEN 1 THEN NULL WHEN - + 28 * + - 43 THEN NULL WHEN + 23 THEN + CAST ( + 26 AS INTEGER ) END * 77 THEN 40 END
----
NULL

query I rowsort
SELECT ALL - 59 + 95
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT 37 + - + 8 + 56 + CASE + 14 WHEN + 84 THEN - 88 - - ( - COUNT( - 91 ) ) WHEN - - 60 * + 10 THEN + 71 + + 34 + ( - + COALESCE ( COUNT( * ), 28 ) ) / + ( + COUNT( * ) ) + + + 10 + 63 END * 61 + + 7 / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT 37 + - + 8 + 56 + CASE + 14 WHEN + 84 THEN - 88 - - ( - COUNT ( - 91 ) ) WHEN - - 60 * + 10 THEN + 71 + + 34 + ( - + COALESCE ( COUNT ( * ), 28 ) ) / + ( + COUNT ( * ) ) + + + 10 + 63 END * 61 + + 7 / - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT CASE + COUNT( 4 ) WHEN 98 - - 32 THEN NULL ELSE 96 + + 29 END AS col1
----
125

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT CASE + COUNT ( 4 ) WHEN 98 - - 32 THEN NULL ELSE 96 + + 29 END AS col1
----
125

query I rowsort
SELECT ALL - 33 + - 82 + + + 26 AS col2
----
-89

query II rowsort
SELECT ALL AVG ( CASE - + 86 WHEN 93 * - 43 * + 3 THEN + 90 / - + 33 END ) AS col0, 98 + + 73 * 95 AS col1
----
NULL
7033

query I rowsort
SELECT + 30 + - + 8
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - 36 - + - COUNT( * ) + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9937
SELECT - 36 - + - COUNT ( * ) + 36 AS col0
----
1

query I rowsort
SELECT - NULLIF ( - + 37, + 61 + - 90 * - 50 ) + - + 96 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9939
SELECT - 12 - + MIN( - 65 ) AS col1, + 94 * + 89
----
53
8366

skipif mysql # not compatible
query II rowsort label-9939
SELECT - 12 - + MIN ( - 65 ) AS col1, + 94 * + 89
----
53
8366

query I rowsort
SELECT ALL + 61 + - ( + + 31 ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT - 83 + - 36 + - 27 + + + 23 * + - MIN( ALL + - 55 ) - COUNT( * ) DIV - - 11 - + 19 + - - 51 AS col1
----
1151

skipif mysql # not compatible
query I rowsort label-9941
SELECT - 83 + - 36 + - 27 + + + 23 * + - MIN ( ALL + - 55 ) - COUNT ( * ) / - - 11 - + 19 + - - 51 AS col1
----
1151

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL - - 61 + CASE - 70 WHEN 68 THEN - - NULLIF ( 3, + COUNT( * ) ) WHEN + + 5 THEN NULL ELSE - 17 END
----
44

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - - 61 + CASE - 70 WHEN 68 THEN - - NULLIF ( 3, + COUNT ( * ) ) WHEN + + 5 THEN NULL ELSE - 17 END
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT - MIN( + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-9943
SELECT - MIN ( + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL - CASE - NULLIF ( + 85, + COALESCE ( 43, - - ( 86 ) + 67 * - + 28 * + 58 ) ) WHEN - - COUNT( * ) + + + 86 + 60 + + 83 * - - 50 * - - ( 5 ) * + 11 * + 46 THEN + 45 * - 58 ELSE - - 8 END AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - CASE - NULLIF ( + 85, + COALESCE ( 43, - - ( 86 ) + 67 * - + 28 * + 58 ) ) WHEN - - COUNT ( * ) + + + 86 + 60 + + 83 * - - 50 * - - ( 5 ) * + 11 * + 46 THEN + 45 * - 58 ELSE - - 8 END AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL COUNT( DISTINCT + 24 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL COUNT ( DISTINCT + 24 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL - + 69 - COUNT( * ) * COUNT( * ) + + - 99 AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - + 69 - COUNT ( * ) * COUNT ( * ) + + - 99 AS col2
----
-169

query I rowsort
SELECT DISTINCT + 25 * 53 + - 65 + - 53
----
1207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9948
SELECT - 54 * + - 11 AS col2, - 84 + ( + CAST( + 27 AS SIGNED ) )
----
594
-57

skipif mysql # not compatible
query II rowsort label-9948
SELECT - 54 * + - 11 AS col2, - 84 + ( + CAST ( + 27 AS INTEGER ) )
----
594
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9949
SELECT - + 39 + - - 8 AS col0, - 4 DIV + NULLIF ( + - SUM( 43 ), - 9 ) AS col2
----
-31
0

skipif mysql # not compatible
query II rowsort label-9949
SELECT - + 39 + - - 8 AS col0, - 4 / + NULLIF ( + - SUM ( 43 ), - 9 ) AS col2
----
-31
0

query I rowsort
SELECT - 98 * 98 AS col1
----
-9604

query I rowsort
SELECT + 68 * 92 + 28 + + - 61 + 0 * - 28 AS col2
----
6223

query I rowsort
SELECT + 82 + + 20 * 86
----
1802

onlyif mysql # aggregate syntax: 
query II rowsort label-9953
SELECT ALL + - MIN( DISTINCT 16 ) AS col0, - 10
----
-16
-10

skipif mysql # not compatible
query II rowsort label-9953
SELECT ALL + - MIN ( DISTINCT 16 ) AS col0, - 10
----
-16
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - + 45 * COUNT( * ) + - - 20 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9954
SELECT - + 45 * COUNT ( * ) + - - 20 AS col0
----
-25

query I rowsort
SELECT - - 62 * - + 96 AS col0
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL + + COALESCE ( - 38, - + 17 - + COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + + COALESCE ( - 38, - + 17 - + COUNT ( * ) )
----
-38

query I rowsort
SELECT DISTINCT + - 13
----
-13

query I rowsort
SELECT ALL + + 87 AS col2
----
87

query I rowsort
SELECT + - 17 col1
----
-17

query I rowsort
SELECT DISTINCT + - 27 col1
----
-27

query I rowsort
SELECT ALL + + 2 * + 46
----
92

query I rowsort
SELECT DISTINCT + - ( ( - 46 ) )
----
46

query I rowsort
SELECT DISTINCT ( 67 ) * - 9 + - 48
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT 27 * - 77 + - 96 - - - COUNT( * ) AS col0
----
-2176

skipif mysql # not compatible
query I rowsort label-9964
SELECT 27 * - 77 + - 96 - - - COUNT ( * ) AS col0
----
-2176

query I rowsort
SELECT + ( + + 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - COUNT( * ) + 63
----
62

skipif mysql # not compatible
query I rowsort label-9966
SELECT - COUNT ( * ) + 63
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9967
SELECT ALL + 9 AS col1, + 10 + - 3 * 77 * COUNT( * ) + 35 * 64 + - - 71
----
9
2090

skipif mysql # not compatible
query II rowsort label-9967
SELECT ALL + 9 AS col1, + 10 + - 3 * 77 * COUNT ( * ) + 35 * 64 + - - 71
----
9
2090

query I rowsort
SELECT + CASE - - ( + 16 ) WHEN 48 THEN - NULLIF ( 43, - 93 - + 48 ) * + 15 END AS col2
----
NULL

query I rowsort
SELECT ALL + 11 * - + 97 + 23 col2
----
-1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT + 90 + 26 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT + 90 + 26 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT + 45 * + ( + 34 ) * 17 + 27 * + COUNT( * ) * + 44 * 59 + NULLIF ( + 15, - CASE NULLIF ( 7, - + 82 ) WHEN + 21 + - - COALESCE ( SUM( ALL + 1 ), + - COUNT( * ) * + 61 + COUNT( * ) + + 29 * + 90 * - 97 * - 34 ) + + + 32 * + + 35 + - 85 / 33 THEN 83 * 39 + COALESCE ( 26 + COUNT( * ), 71 / 93 + + COALESCE ( 9, + 48 * 6, COALESCE ( 36, MAX( + 16 ) / 0, + 49 * - CAST( NULL AS SIGNED ) ), + 31 ), AVG ( ALL 42 ) / - 80 ) ELSE NULL END ) + 92
----
96209

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + 45 * + ( + 34 ) * 17 + 27 * + COUNT ( * ) * + 44 * 59 + NULLIF ( + 15, - CASE NULLIF ( 7, - + 82 ) WHEN + 21 + - - COALESCE ( SUM ( ALL + 1 ), + - COUNT ( * ) * + 61 + COUNT ( * ) + + 29 * + 90 * - 97 * - 34 ) + + + 32 * + + 35 + - 85 / 33 THEN 83 * 39 + COALESCE ( 26 + COUNT ( * ), 71 / 93 + + COALESCE ( 9, + 48 * 6, COALESCE ( 36, MAX ( + 16 ) / 0, + 49 * - CAST ( NULL AS INTEGER ) ), + 31 ), AVG ( ALL 42 ) / - 80 ) ELSE NULL END ) + 92
----
96209

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL 85 * + COUNT( * ) + + ( COUNT( * ) ) + + 35 * + 21 + - - 46
----
867

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL 85 * + COUNT ( * ) + + ( COUNT ( * ) ) + + 35 * + 21 + - - 46
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + CASE 50 WHEN - MAX( DISTINCT + + 80 ) THEN - 96 WHEN - 48 THEN + - 80 * + 68 * 56 ELSE NULL END * ( + + 27 ) + - ( 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT + CASE 50 WHEN - MAX ( DISTINCT + + 80 ) THEN - 96 WHEN - 48 THEN + - 80 * + 68 * 56 ELSE NULL END * ( + + 27 ) + - ( 70 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT ALL 31 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL 31 / + 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9975
SELECT DISTINCT + 11 AS col0, 95 - + CAST( + 9 AS SIGNED )
----
11
86

skipif mysql # not compatible
query II rowsort label-9975
SELECT DISTINCT + 11 AS col0, 95 - + CAST ( + 9 AS INTEGER )
----
11
86

query I rowsort
SELECT + 54 * 3 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT SUM( ALL - 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9977
SELECT SUM ( ALL - 96 ) AS col2
----
-96

query I rowsort
SELECT ALL 22 * - 10 + - 76
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT - 13 + COUNT( * ) * - + 68 * + 54
----
-3685

skipif mysql # not compatible
query I rowsort label-9979
SELECT - 13 + COUNT ( * ) * - + 68 * + 54
----
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT SUM( DISTINCT - 97 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-9980
SELECT SUM ( DISTINCT - 97 ) col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9981
SELECT - 59 * COUNT( * ) + + 5 AS col0, + 79 * 39 AS col1
----
-54
3081

skipif mysql # not compatible
query II rowsort label-9981
SELECT - 59 * COUNT ( * ) + + 5 AS col0, + 79 * 39 AS col1
----
-54
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT + ( + 67 ) * + + MAX( DISTINCT - 24 ) * + COUNT( * ) AS col0
----
-1608

skipif mysql # not compatible
query I rowsort label-9982
SELECT + ( + 67 ) * + + MAX ( DISTINCT - 24 ) * + COUNT ( * ) AS col0
----
-1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT CASE + 89 WHEN - CASE 59 WHEN + 80 * + 88 + - 34 + MIN( ALL - ( 60 ) ) + ( + COUNT( * ) ) THEN + 48 - + 79 + - CAST( + - 2 AS SIGNED ) WHEN - + 3 THEN 60 + + 3 * - - 84 END THEN + + ( 93 ) * - CASE + COUNT( * ) WHEN + 54 + - - 14 + 85 + - 10 * NULLIF ( - NULLIF ( + 74, + ( - 73 ) ), - COUNT( * ) + + 89 ) THEN NULL ELSE COUNT( * ) END WHEN 85 * + ( 76 ) + 70 THEN NULL WHEN + COUNT( * ) + 70 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT CASE + 89 WHEN - CASE 59 WHEN + 80 * + 88 + - 34 + MIN ( ALL - ( 60 ) ) + ( + COUNT ( * ) ) THEN + 48 - + 79 + - CAST ( + - 2 AS INTEGER ) WHEN - + 3 THEN 60 + + 3 * - - 84 END THEN + + ( 93 ) * - CASE + COUNT ( * ) WHEN + 54 + - - 14 + 85 + - 10 * NULLIF ( - NULLIF ( + 74, + ( - 73 ) ), - COUNT ( * ) + + 89 ) THEN NULL ELSE COUNT ( * ) END WHEN 85 * + ( 76 ) + 70 THEN NULL WHEN + COUNT ( * ) + 70 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( - 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT DISTINCT + COUNT( ALL + + ( 44 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + COUNT ( ALL + + ( 44 ) ) AS col0
----
1

query I rowsort
SELECT + 69 - + - 94 AS col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + CASE CASE - 43 WHEN - 55 THEN COUNT( * ) ELSE + COALESCE ( 97, - COUNT( * ), + + COUNT( DISTINCT - - 28 ) - - - COUNT( * ) ) END WHEN - ( + COUNT( * ) ) * + CASE - COUNT( ALL - 60 ) WHEN + - 93 THEN + MAX( 69 ) ELSE NULL END THEN NULL WHEN 47 / + ( - ( - 24 ) ) + - + 45 THEN - MAX( DISTINCT - - 81 ) + - ( + 76 ) END - - 82 * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT + CASE CASE - 43 WHEN - 55 THEN COUNT ( * ) ELSE + COALESCE ( 97, - COUNT ( * ), + + COUNT ( DISTINCT - - 28 ) - - - COUNT ( * ) ) END WHEN - ( + COUNT ( * ) ) * + CASE - COUNT ( ALL - 60 ) WHEN + - 93 THEN + MAX ( 69 ) ELSE NULL END THEN NULL WHEN 47 / + ( - ( - 24 ) ) + - + 45 THEN - MAX ( DISTINCT - - 81 ) + - ( + 76 ) END - - 82 * + 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT - 52 DIV - ( + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT - 52 / - ( + 97 )
----
0

query I rowsort
SELECT + + 41 * 73
----
2993

query I rowsort
SELECT DISTINCT - 30 * 10 AS col2
----
-300

query I rowsort
SELECT ALL NULLIF ( - + 42, + - 99 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT DISTINCT - - 79 * + NULLIF ( + 77, + CAST( NULL AS SIGNED ) ) + - CAST( - ( + 92 ) AS SIGNED )
----
6175

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - - 79 * + NULLIF ( + 77, + CAST ( NULL AS INTEGER ) ) + - CAST ( - ( + 92 ) AS INTEGER )
----
6175

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT + 19 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 19 / - 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT DISTINCT - CAST( - CASE + 23 WHEN 22 + - 32 + MIN( + 9 ) * - COUNT( * ) THEN NULL ELSE + - 12 END AS SIGNED ) * - 90 AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - CAST ( - CASE + 23 WHEN 22 + - 32 + MIN ( + 9 ) * - COUNT ( * ) THEN NULL ELSE + - 12 END AS INTEGER ) * - 90 AS col2
----
1080

query I rowsort
SELECT ALL - 36 * - + 81 AS col1
----
2916

query II rowsort
SELECT ALL - NULLIF ( - 56, + - 52 ) AS col2, + 66
----
56
66

query II rowsort
SELECT 81 * - - 32 + 79 AS col1, 98
----
2671
98

query II rowsort
SELECT - 33, 81 + - + 97 AS col0
----
-33
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9999
SELECT 70 + + + 35 + + 82 DIV COUNT( * ) AS col0, - COALESCE ( + ( - 71 ), COUNT( * ) ) + + 4
----
187
75

skipif mysql # not compatible
query II rowsort label-9999
SELECT 70 + + + 35 + + 82 / COUNT ( * ) AS col0, - COALESCE ( + ( - 71 ), COUNT ( * ) ) + + 4
----
187
75

