sqllogictest
Artifact Content
Not logged in

Artifact 905640ea145e96c9e44bc8394fb65ac01f5a035d:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL + - MIN( DISTINCT 82 ) * - 61 + - COUNT( + + 77 ) col0
----
5001

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + - MIN ( DISTINCT 82 ) * - 61 + - COUNT ( + + 77 ) col0
----
5001

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT + 69 * + 37 + - COUNT( * ) col0
----
2552

skipif mysql # not compatible
query I rowsort label-2
SELECT + 69 * + 37 + - COUNT ( * ) col0
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT - COUNT( * ) * + - 66 + - 56
----
10

skipif mysql # not compatible
query I rowsort label-3
SELECT - COUNT ( * ) * + - 66 + - 56
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT CASE - + 60 WHEN + + ( 26 ) THEN NULL ELSE 40 + + COUNT( * ) END
----
41

skipif mysql # not compatible
query I rowsort label-4
SELECT CASE - + 60 WHEN + + ( 26 ) THEN NULL ELSE 40 + + COUNT ( * ) END
----
41

query I rowsort
SELECT DISTINCT + 60 * - 94 + + - 86
----
-5726

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6
SELECT + - CAST( + - 69 AS DECIMAL ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT + - CAST ( + - 69 AS REAL ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 17, 86 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT ALL - CASE - 49 WHEN + - 39 * - - CAST( NULL AS SIGNED ) + - + 69 THEN + CAST( NULL AS SIGNED ) * 94 * + 3 + + 30 WHEN 75 THEN + 86 WHEN + CAST( + CAST( + 2 AS SIGNED ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL - CASE - 49 WHEN + - 39 * - - CAST ( NULL AS INTEGER ) + - + 69 THEN + CAST ( NULL AS INTEGER ) * 94 * + 3 + + 30 WHEN 75 THEN + 86 WHEN + CAST ( + CAST ( + 2 AS INTEGER ) AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL - 16 * + 36 + + + CAST( NULL AS SIGNED ) / + 73 * + - 97 + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 16 * + 36 + + + CAST ( NULL AS INTEGER ) / + 73 * + - 97 + 57 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT - 82 * - 57 - 88 DIV + COALESCE ( - + 96, + 22 ) AS col0
----
4674

skipif mysql # not compatible
query I rowsort label-10
SELECT - 82 * - 57 - 88 / + COALESCE ( - + 96, + 22 ) AS col0
----
4674

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-12
SELECT ALL CAST( + CASE + 56 WHEN + - 78 THEN + - CAST( + 91 AS SIGNED ) * 64 + COUNT( * ) END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL CAST ( + CASE + 56 WHEN + - 78 THEN + - CAST ( + 91 AS INTEGER ) * 64 + COUNT ( * ) END AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT DISTINCT - 45 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - 45 / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL + ( - - 63 ) * - 16 * - - COUNT( * ) * - - 8 * + 0 * - - 60 + - CASE + + ( - 16 ) WHEN + + 90 * 10 THEN NULL WHEN + + 3 THEN 21 + - 76 + - 53 + 14 + + + 29 * + 45 + + COUNT( ALL - 97 ) * - 69 * + 23 END * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + ( - - 63 ) * - 16 * - - COUNT ( * ) * - - 8 * + 0 * - - 60 + - CASE + + ( - 16 ) WHEN + + 90 * 10 THEN NULL WHEN + + 3 THEN 21 + - 76 + - 53 + 14 + + + 29 * + 45 + + COUNT ( ALL - 97 ) * - 69 * + 23 END * 59 AS col0
----
NULL

query I rowsort
SELECT - 97 * - + 79
----
7663

query I rowsort
SELECT ALL - 27 * + 40
----
-1080

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

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

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

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL CAST ( + 96 AS INTEGER ) AS col0
----
96

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

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

query I rowsort
SELECT + 43 * + ( - 92 ) AS col0
----
-3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-21
SELECT - COUNT( * ) + COUNT( * ) * - 3 AS col0, + ( + + 85 ) + - CASE - ( - ( - 1 ) ) WHEN - - ( - MIN( ALL + + 6 ) ) * - 42 * - COUNT( * ) THEN + 17 WHEN + + CASE - 27 WHEN CAST( 69 AS DECIMAL ) THEN + + 74 / 23 - + 16 END THEN NULL ELSE CAST( NULL AS SIGNED ) END * + 72
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-21
SELECT - COUNT ( * ) + COUNT ( * ) * - 3 AS col0, + ( + + 85 ) + - CASE - ( - ( - 1 ) ) WHEN - - ( - MIN ( ALL + + 6 ) ) * - 42 * - COUNT ( * ) THEN + 17 WHEN + + CASE - 27 WHEN CAST ( 69 AS REAL ) THEN + + 74 / 23 - + 16 END THEN NULL ELSE CAST ( NULL AS INTEGER ) END * + 72
----
-4
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT - CAST( + 79 AS SIGNED ) * 68 AS col0
----
-5372

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - CAST ( + 79 AS INTEGER ) * 68 AS col0
----
-5372

query I rowsort
SELECT 76 * - 67
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL - 64 * + CASE + + 73 WHEN - 32 + + - COUNT( * ) * + - 70 THEN NULL ELSE - 63 END AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL - 64 * + CASE + + 73 WHEN - 32 + + - COUNT ( * ) * + - 70 THEN NULL ELSE - 63 END AS col2
----
4032

query I rowsort
SELECT 48 col1
----
48

query I rowsort
SELECT 66 * - - 74 AS col0
----
4884

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

query I rowsort
SELECT + - 68
----
-68

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

skipif mysql # not compatible
query I rowsort label-30
SELECT COUNT ( * ) / 61 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT - 10 * - CAST( + 12 AS SIGNED ) - - + 93 - - + 29 * - 40 + - 43 * - + 69 * 34 col2
----
99931

skipif mysql # not compatible
query I rowsort label-31
SELECT - 10 * - CAST ( + 12 AS INTEGER ) - - + 93 - - + 29 * - 40 + - 43 * - + 69 * 34 col2
----
99931

query I rowsort
SELECT ALL 0 * + 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT + SUM( ALL - + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-33
SELECT + SUM ( ALL - + 90 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT 93 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-34
SELECT 93 / + 26
----
3

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

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - - 26 + - - COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT DISTINCT - SUM( 24 ) + + 89 DIV + 83 - + + 56
----
-79

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT - SUM ( 24 ) + + 89 / + 83 - + + 56
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT + COALESCE ( + - COUNT( * ), 78 ) - 10 col1
----
-11

skipif mysql # not compatible
query I rowsort label-38
SELECT + COALESCE ( + - COUNT ( * ), 78 ) - 10 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + 57 * MIN( ALL 25 ) * + 12 + - 31
----
17069

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + 57 * MIN ( ALL 25 ) * + 12 + - 31
----
17069

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT - + COUNT( + 80 ) DIV + COUNT( DISTINCT + ( + - 29 ) ) + + 22
----
21

skipif mysql # not compatible
query I rowsort label-41
SELECT - + COUNT ( + 80 ) / + COUNT ( DISTINCT + ( + - 29 ) ) + + 22
----
21

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

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

query I rowsort
SELECT ALL - 33 + + + 13
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT COUNT( - 66 ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-44
SELECT COUNT ( - 66 ) + - 52
----
-51

query I rowsort
SELECT DISTINCT - - ( 55 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT ALL - 41 DIV + 48 + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - 41 / + 48 + 31 AS col2
----
31

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

query I rowsort
SELECT ( - + 8 ) + - + 19 + + 13 + 48 AS col0
----
34

query II rowsort
SELECT ALL - 80 AS col1, 52
----
-80
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT DISTINCT 44 - - 4 - - - 6 DIV - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT 44 - - 4 - - - 6 / - COUNT ( * )
----
54

query I rowsort
SELECT ALL - 40 * + 80 * + 83 AS col2
----
-265600

query I rowsort
SELECT 61 + - 55 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL SUM( ALL + ( + 42 ) ) * - + 21
----
-882

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL SUM ( ALL + ( + 42 ) ) * - + 21
----
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT 32 * - - 86 * + CAST( + 50 AS SIGNED ) col2
----
137600

skipif mysql # not compatible
query I rowsort label-54
SELECT 32 * - - 86 * + CAST ( + 50 AS INTEGER ) col2
----
137600

query II rowsort
SELECT 7, 87 + - ( 74 ) AS col2
----
7
13

query I rowsort
SELECT 70 + + 40
----
110

query II rowsort
SELECT ALL 94, + 40 AS col1
----
94
40

query I rowsort
SELECT ALL - 41 * - 56 AS col1
----
2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT MAX( + 68 ) / CAST( NULL AS SIGNED ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT MAX ( + 68 ) / CAST ( NULL AS INTEGER ) + - 99
----
NULL

query I rowsort
SELECT 86 * - 16 * + 24
----
-33024

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT + 23 - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + 23 - + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT DISTINCT CASE - - 43 WHEN 81 THEN + 86 ELSE NULL END * + SUM( + - 66 ) * + CASE 3 WHEN 35 THEN NULL ELSE - - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT CASE - - 43 WHEN 81 THEN + 86 ELSE NULL END * + SUM ( + - 66 ) * + CASE 3 WHEN 35 THEN NULL ELSE - - 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL 37 * - COUNT( - 85 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL 37 * - COUNT ( - 85 ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT ALL + 5 DIV 98 * + 50 * + 32
----
0

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + 5 / 98 * + 50 * + 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT ALL + 96 DIV - + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL + 96 / - + 99 AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-67
SELECT 25 col1, 57 DIV - - 66
----
25
0

skipif mysql # not compatible
query II rowsort label-67
SELECT 25 col1, 57 / - - 66
----
25
0

query I rowsort
SELECT 1 + - 76 - + ( 50 ) AS col2
----
-125

query I rowsort
SELECT 11 * + 92 * + ( 43 )
----
43516

query I rowsort
SELECT ALL - 33 + + - 80
----
-113

query II rowsort
SELECT - 14 AS col2, 69
----
-14
69

query I rowsort
SELECT 70 + + 83
----
153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL - COUNT( * ) * + 74 * - 29 * - 48 + + + NULLIF ( 72, - 81 ) * - + 6 * - 82
----
-67584

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - COUNT ( * ) * + 74 * - 29 * - 48 + + + NULLIF ( 72, - 81 ) * - + 6 * - 82
----
-67584

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL - 97 + + + 30 - + 52 + 48 * + + 96 + 39 * 24 DIV + 50 AS col0
----
4507

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 97 + + + 30 - + 52 + 48 * + + 96 + 39 * 24 / + 50 AS col0
----
4507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-77
SELECT COUNT( ALL + 81 ) DIV 21 + - MAX( + ( + 84 ) ) + + 41 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-77
SELECT COUNT ( ALL + 81 ) / 21 + - MAX ( + ( + 84 ) ) + + 41 AS col1
----
-43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT - 7 * - + 12 + - + COUNT( * ) * 73 * CASE + COUNT( * ) WHEN - - 26 * 25 * - CAST( - 14 AS SIGNED ) THEN + 88 * + - 51 / - 56 * 71 * + 66 * - COUNT( * ) + + 54 WHEN 25 + - ( - - 20 ) + + 77 + - COUNT( * ) / COUNT( DISTINCT 89 ) THEN COALESCE ( + 3, 13 + ( - 75 ) * - 29 ) ELSE NULL END + 74 * 62 + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT - 7 * - + 12 + - + COUNT ( * ) * 73 * CASE + COUNT ( * ) WHEN - - 26 * 25 * - CAST ( - 14 AS INTEGER ) THEN + 88 * + - 51 / - 56 * 71 * + 66 * - COUNT ( * ) + + 54 WHEN 25 + - ( - - 20 ) + + 77 + - COUNT ( * ) / COUNT ( DISTINCT 89 ) THEN COALESCE ( + 3, 13 + ( - 75 ) * - 29 ) ELSE NULL END + 74 * 62 + 90 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL + ( + + 83 ) + - CAST( NULL AS SIGNED ) + - 2 + - NULLIF ( 93, 24 ) * - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + ( + + 83 ) + - CAST ( NULL AS INTEGER ) + - 2 + - NULLIF ( 93, 24 ) * - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-81
SELECT 18 * - 31 + + 60 + - 93 col0, COUNT( * ) DIV 5 * - ( + 9 ) * + 20
----
-591
0

skipif mysql # not compatible
query II rowsort label-81
SELECT 18 * - 31 + + 60 + - 93 col0, COUNT ( * ) / 5 * - ( + 9 ) * + 20
----
-591
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-83
SELECT + 94 AS col0, - COUNT( * ) * - - MIN( 98 )
----
94
-98

skipif mysql # not compatible
query II rowsort label-83
SELECT + 94 AS col0, - COUNT ( * ) * - - MIN ( 98 )
----
94
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL + + COALESCE ( 87, + 9 DIV NULLIF ( + 61, 32 + 88 + + COUNT( * ) + - 97 ) * + - COUNT( * ) * - 7 + - + 40 - + COUNT( * ), - - 34 ) - - 28 + + - 58 - - 89 + - 67 * + 99 * 69 * + + 36 AS col0
----
-16476226

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + + COALESCE ( 87, + 9 / NULLIF ( + 61, 32 + 88 + + COUNT ( * ) + - 97 ) * + - COUNT ( * ) * - 7 + - + 40 - + COUNT ( * ), - - 34 ) - - 28 + + - 58 - - 89 + - 67 * + 99 * 69 * + + 36 AS col0
----
-16476226

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT + SUM( DISTINCT - - 49 ) * - 80 AS col2
----
-3920

skipif mysql # not compatible
query I rowsort label-85
SELECT + SUM ( DISTINCT - - 49 ) * - 80 AS col2
----
-3920

query I rowsort
SELECT 87 * 19 * - 81 AS col0
----
-133893

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT COUNT( * ) * + - 57 * 14
----
-798

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT COUNT ( * ) * + - 57 * 14
----
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-89
SELECT 41 * - MIN( 27 ) * + 18 * COALESCE ( + + 57, - - MAX( + 96 ) * 39 + 57 DIV - - 3 ) AS col2
----
-1135782

skipif mysql # not compatible
query I rowsort label-89
SELECT 41 * - MIN ( 27 ) * + 18 * COALESCE ( + + 57, - - MAX ( + 96 ) * 39 + 57 / - - 3 ) AS col2
----
-1135782

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT SUM( 39 ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-90
SELECT SUM ( 39 ) * - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-91
SELECT CASE + 59 WHEN - 52 + + 12 + + 94 * 66 THEN - 41 WHEN + - SUM( ALL + CAST( NULL AS SIGNED ) ) THEN 11 WHEN - 75 THEN NULL END - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT CASE + 59 WHEN - 52 + + 12 + + 94 * 66 THEN - 41 WHEN + - SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN 11 WHEN - 75 THEN NULL END - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-92
SELECT 9 * 82 - - + CAST( + + COALESCE ( 48, + MAX( ALL - - 35 ) + + 29 ) AS SIGNED ) + - 85 + - 43 AS col2, CAST( NULL AS SIGNED )
----
658
NULL

skipif mysql # not compatible
query II rowsort label-92
SELECT 9 * 82 - - + CAST ( + + COALESCE ( 48, + MAX ( ALL - - 35 ) + + 29 ) AS INTEGER ) + - 85 + - 43 AS col2, CAST ( NULL AS INTEGER )
----
658
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT DISTINCT 60 * CASE - 54 WHEN - COUNT( * ) THEN NULL ELSE + 64 DIV + ( - 88 ) * - 41 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT 60 * CASE - 54 WHEN - COUNT ( * ) THEN NULL ELSE + 64 / + ( - 88 ) * - 41 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-95
SELECT ALL + COUNT( * ) * + - 53, 24 AS col2
----
-53
24

skipif mysql # not compatible
query II rowsort label-95
SELECT ALL + COUNT ( * ) * + - 53, 24 AS col2
----
-53
24

query I rowsort
SELECT DISTINCT 24 * + 65
----
1560

query I rowsort
SELECT ALL 83 + - + 1 col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-98
SELECT - 53 DIV 83, - 58 * SUM( ALL - 13 ) DIV + 93 + 57 AS col2
----
0
65

skipif mysql # not compatible
query II rowsort label-98
SELECT - 53 / 83, - 58 * SUM ( ALL - 13 ) / + 93 + 57 AS col2
----
0
65

onlyif mysql # DIV for integer division: 
query I rowsort label-99
SELECT - COALESCE ( 27, - - 85 DIV 95 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-99
SELECT - COALESCE ( 27, - - 85 / 95 ) AS col2
----
-27

query I rowsort
SELECT - COALESCE ( 10, + 50 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT + - MIN( - 63 ) DIV + 72 * - ( - 34 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT + - MIN ( - 63 ) / + 72 * - ( - 34 ) AS col0
----
0

query I rowsort
SELECT ALL + 82 + - 36
----
46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT ( - - 7 ) col1, + SUM( ALL + - 25 )
----
7
-25

skipif mysql # not compatible
query II rowsort label-104
SELECT ( - - 7 ) col1, + SUM ( ALL + - 25 )
----
7
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-105
SELECT ALL - 1 + - CASE - - AVG ( + 51 ) WHEN - 13 THEN + + 7 + - CAST( NULL AS SIGNED ) - 84 END - + ( NULLIF ( 72, + 16 + - CAST( NULL AS SIGNED ) ) ) * - 62 * 55 AS col0, 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-105
SELECT ALL - 1 + - CASE - - AVG ( + 51 ) WHEN - 13 THEN + + 7 + - CAST ( NULL AS INTEGER ) - 84 END - + ( NULLIF ( 72, + 16 + - CAST ( NULL AS INTEGER ) ) ) * - 62 * 55 AS col0, 34 AS col1
----
NULL
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL + 43 + + + CAST( - 15 AS SIGNED ) + + 32 * MIN( DISTINCT 45 ) AS col1
----
1468

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + 43 + + + CAST ( - 15 AS INTEGER ) + + 32 * MIN ( DISTINCT 45 ) AS col1
----
1468

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-107
SELECT CASE - - 92 WHEN - CASE - 70 WHEN - + 90 - 41 THEN 12 END THEN - NULLIF ( - + 5, CAST( NULL AS DECIMAL ) ) * + COUNT( * ) + + 48 WHEN + 10 THEN - 56 * 71 + - - 83 - - 0 ELSE + COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-107
SELECT CASE - - 92 WHEN - CASE - 70 WHEN - + 90 - 41 THEN 12 END THEN - NULLIF ( - + 5, CAST ( NULL AS REAL ) ) * + COUNT ( * ) + + 48 WHEN + 10 THEN - 56 * 71 + - - 83 - - 0 ELSE + COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - 92 * - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-108
SELECT - 92 * - COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-109
SELECT ALL + - COUNT( * ) * 26 + + - 40 DIV + + COALESCE ( - 6, COUNT( * ) * + - COUNT( * ) + CAST( NULL AS SIGNED ) + - - COUNT( * ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + - COUNT ( * ) * 26 + + - 40 / + + COALESCE ( - 6, COUNT ( * ) * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-110
SELECT 35 DIV 66 - - 20 + 11 + + - 72 * + CAST( 83 AS SIGNED ) AS col2, - 75
----
-5945
-75

skipif mysql # not compatible
query II rowsort label-110
SELECT 35 / 66 - - 20 + 11 + + - 72 * + CAST ( 83 AS INTEGER ) AS col2, - 75
----
-5945
-75

query I rowsort
SELECT - 45 - - 80 AS col2
----
35

query I rowsort
SELECT + + 30
----
30

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-114
SELECT ALL + - CAST( NULL AS DECIMAL ) * 79 * + - 54 * - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + - CAST ( NULL AS REAL ) * 79 * + - 54 * - 4 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 58 * 22, 68 AS col1
----
1276
68

query I rowsort
SELECT DISTINCT + 47 * + 95 + 27 AS col2
----
4492

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT ALL + - 54 * + + AVG ( - - CAST( NULL AS SIGNED ) ) + - 46 + + ( - + 64 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + - 54 * + + AVG ( - - CAST ( NULL AS INTEGER ) ) + - 46 + + ( - + 64 ) col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - 8 - 86 * + COUNT( + 24 ) / - COALESCE ( - - ( + COUNT( * ) ), - 5 - - NULLIF ( - + 21, - COUNT( * ) ) ) * - + 7 + - 41 + + + CASE - COUNT( * ) WHEN + COUNT( * ) + + + 39 + CASE - 51 WHEN + ( - 35 ) THEN - 0 ELSE - COUNT( * ) + - 9 END + 15 * + NULLIF ( + ( COUNT( * ) ), - AVG ( ALL + 33 ) * 50 ) * + 91 THEN 75 * 80 WHEN 15 * 97 THEN NULL ELSE NULL END + 24 * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT - 8 - 86 * + COUNT ( + 24 ) / - COALESCE ( - - ( + COUNT ( * ) ), - 5 - - NULLIF ( - + 21, - COUNT ( * ) ) ) * - + 7 + - 41 + + + CASE - COUNT ( * ) WHEN + COUNT ( * ) + + + 39 + CASE - 51 WHEN + ( - 35 ) THEN - 0 ELSE - COUNT ( * ) + - 9 END + 15 * + NULLIF ( + ( COUNT ( * ) ), - AVG ( ALL + 33 ) * 50 ) * + 91 THEN 75 * 80 WHEN 15 * 97 THEN NULL ELSE NULL END + 24 * - 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT - 44 + - - CAST( + - 38 AS SIGNED ) + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-121
SELECT - 44 + - - CAST ( + - 38 AS INTEGER ) + COUNT ( * ) AS col0
----
-81

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

query I rowsort
SELECT + ( 26 ) * + 42 * - 4 AS col2
----
-4368

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT - 38 + + + 34 + 77 + + 93 + + CASE WHEN - COUNT( 97 ) = NULL THEN 34 + + 26 END + + 83 + - COUNT( * ) * + 84, MAX( - 75 ) AS col0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-125
SELECT - 38 + + + 34 + 77 + + 93 + + CASE WHEN - COUNT ( 97 ) = NULL THEN 34 + + 26 END + + 83 + - COUNT ( * ) * + 84, MAX ( - 75 ) AS col0
----
NULL
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-126
SELECT ALL + COUNT( * ), ( + 29 ) * 32 AS col2
----
1
928

skipif mysql # not compatible
query II rowsort label-126
SELECT ALL + COUNT ( * ), ( + 29 ) * 32 AS col2
----
1
928

query I rowsort
SELECT ALL 26 * + 96
----
2496

query I rowsort
SELECT ALL - 5 * 57 * - 76 AS col1
----
21660

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT DISTINCT 77 * - - 98 + - 59 DIV + 47 col0
----
7545

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT 77 * - - 98 + - 59 / + 47 col0
----
7545

query I rowsort
SELECT + 78 * - - 88
----
6864

query I rowsort
SELECT DISTINCT 52 * 64 * + 99 + + - ( + 20 ) * + 98 * + 78
----
176592

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

query II rowsort
SELECT - ( + ( + 74 ) ), - 20 + + 88 AS col1
----
-74
68

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

skipif mysql # not compatible
query I rowsort label-134
SELECT SUM ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT + ( 74 ) + COUNT( * ) + - + 9 - + + 29 * - - 10
----
-224

skipif mysql # not compatible
query I rowsort label-135
SELECT + ( 74 ) + COUNT ( * ) + - + 9 - + + 29 * - - 10
----
-224

query I rowsort
SELECT DISTINCT + 34 + + 93 * + 42
----
3940

query I rowsort
SELECT + 18 + + - 49
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT DISTINCT 29 + + SUM( DISTINCT 58 )
----
87

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT 29 + + SUM ( DISTINCT 58 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL ( - - 1 ) + + + 6 + - CASE + MAX( DISTINCT + - 52 ) WHEN - 1 * 72 THEN - 80 END * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL ( - - 1 ) + + + 6 + - CASE + MAX ( DISTINCT + - 52 ) WHEN - 1 * 72 THEN - 80 END * - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL + 72 + + COUNT( DISTINCT + + 92 )
----
73

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + 72 + + COUNT ( DISTINCT + + 92 )
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-142
SELECT + + 89 + 14 - + CAST( 95 AS SIGNED ) * - + COUNT( * ) + - 34
----
164

skipif mysql # not compatible
query I rowsort label-142
SELECT + + 89 + 14 - + CAST ( 95 AS INTEGER ) * - + COUNT ( * ) + - 34
----
164

query I rowsort
SELECT - + 26 * 28 + 52 + - 59 + 60 AS col0
----
-675

query I rowsort
SELECT ALL + NULLIF ( - - 45, - 7 * - + 41 - + - 47 + 15 + 21 / - + 79 - + - 78 / - - 4 * - 57 - + 63 * + 98 ) * 44
----
1980

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT + - 15 + + 32 + - + 14 + 20 AS col2, MIN( ALL - ( + 23 ) ) * + 35 AS col1
----
23
-805

skipif mysql # not compatible
query II rowsort label-145
SELECT + - 15 + + 32 + - + 14 + 20 AS col2, MIN ( ALL - ( + 23 ) ) * + 35 AS col1
----
23
-805

query I rowsort
SELECT ALL - 9 - + 87
----
-96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT ALL 19 DIV COALESCE ( - 23, - + 29 ) - - 58 - COALESCE ( - COUNT( * ), + COUNT( 31 ) ) DIV + + 76 * + 42 col2
----
58

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL 19 / COALESCE ( - 23, - + 29 ) - - 58 - COALESCE ( - COUNT ( * ), + COUNT ( 31 ) ) / + + 76 * + 42 col2
----
58

query I rowsort
SELECT DISTINCT 35 * 90 * 42
----
132300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT + - COALESCE ( 62, CAST( NULLIF ( + ( + 48 ), + - ( - ( 63 ) ) ) AS SIGNED ) + - SUM( ALL + 13 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-150
SELECT + - COALESCE ( 62, CAST ( NULLIF ( + ( + 48 ), + - ( - ( 63 ) ) ) AS INTEGER ) + - SUM ( ALL + 13 ) )
----
-62

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

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

query I rowsort
SELECT + - 63 * + 80 AS col2
----
-5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-154
SELECT + 36 * CAST( + 50 AS SIGNED ) * 65 * - - COALESCE ( 82, - 6 + - 24 + ( - 72 ), + - 66 ) + MIN( ALL 70 ) DIV COUNT( * ) col2
----
9594070

skipif mysql # not compatible
query I rowsort label-154
SELECT + 36 * CAST ( + 50 AS INTEGER ) * 65 * - - COALESCE ( 82, - 6 + - 24 + ( - 72 ), + - 66 ) + MIN ( ALL 70 ) / COUNT ( * ) col2
----
9594070

onlyif mysql # aggregate syntax: 
query II rowsort label-155
SELECT ALL + 60 AS col2, SUM( + 82 ) * - + COUNT( * ) - 79 AS col1
----
60
-161

skipif mysql # not compatible
query II rowsort label-155
SELECT ALL + 60 AS col2, SUM ( + 82 ) * - + COUNT ( * ) - 79 AS col1
----
60
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT CASE + 90 WHEN - 77 THEN 44 - + + 27 / - - COUNT( * ) + - 54 * + 43 WHEN - 34 THEN + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT CASE + 90 WHEN - 77 THEN 44 - + + 27 / - - COUNT ( * ) + - 54 * + 43 WHEN - 34 THEN + 69 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-157
SELECT ALL + 36 * - NULLIF ( + - 8, ( 70 ) - 31 + - + CASE - 50 WHEN + - 95 THEN NULL WHEN + - SUM( ALL + - 65 ) THEN - COUNT( * ) END * - + 26 * + - CAST( + CAST( - + 93 AS SIGNED ) AS DECIMAL ) * 55 + 15 * CASE + - 72 WHEN - COALESCE ( 11, + 8 * 17 / COUNT( * ), - 89 ) - AVG ( + COALESCE ( + 60, + 34, 11 - 96, 55 ) ) * - 50 THEN NULL WHEN + 61 THEN 21 + 12 END ) AS col1
----
288

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + 36 * - NULLIF ( + - 8, ( 70 ) - 31 + - + CASE - 50 WHEN + - 95 THEN NULL WHEN + - SUM ( ALL + - 65 ) THEN - COUNT ( * ) END * - + 26 * + - CAST ( + CAST ( - + 93 AS INTEGER ) AS REAL ) * 55 + 15 * CASE + - 72 WHEN - COALESCE ( 11, + 8 * 17 / COUNT ( * ), - 89 ) - AVG ( + COALESCE ( + 60, + 34, 11 - 96, 55 ) ) * - 50 THEN NULL WHEN + 61 THEN 21 + 12 END ) AS col1
----
288

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL - COUNT ( * ) + - - 41 + - - COUNT ( * ) * + COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT SUM( - + 22 ) * 66 AS col1
----
-1452

skipif mysql # not compatible
query I rowsort label-161
SELECT SUM ( - + 22 ) * 66 AS col1
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT 38 * + + 69 * 12 + - - MAX( ALL + 21 )
----
31485

skipif mysql # not compatible
query I rowsort label-162
SELECT 38 * + + 69 * 12 + - - MAX ( ALL + 21 )
----
31485

query I rowsort
SELECT ALL + 47 + - 20 AS col2
----
27

query I rowsort
SELECT 47 * + - 18 - + 3 * + 85
----
-1101

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL - 74 DIV + - 19 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - 74 / + - 19 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT 92 DIV - 8 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-166
SELECT 92 / - 8 AS col1
----
-11

query II rowsort
SELECT DISTINCT - 2 + + 99 AS col2, ( ( 96 ) )
----
97
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-168
SELECT 4 DIV - - COUNT( * ) AS col2
----
4

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

query I rowsort
SELECT ALL 88 * + 38
----
3344

query I rowsort
SELECT ALL ( - 93 ) + - + 86 AS col0
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-171
SELECT ALL 77 * + - COUNT( * ) * + COALESCE ( 9, - 10, - - 72 / - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * - CASE 8 WHEN + 70 * - COUNT( * ) + - 42 THEN 68 * COUNT( * ) ELSE NULL END - 84 + - 0 * - + 40 * - 39 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL 77 * + - COUNT ( * ) * + COALESCE ( 9, - 10, - - 72 / - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) * - CASE 8 WHEN + 70 * - COUNT ( * ) + - 42 THEN 68 * COUNT ( * ) ELSE NULL END - 84 + - 0 * - + 40 * - 39 * + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT COUNT( 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-172
SELECT COUNT ( 31 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT 47 * - - 13 + + COUNT( * ) - 15
----
597

skipif mysql # not compatible
query I rowsort label-173
SELECT 47 * - - 13 + + COUNT ( * ) - 15
----
597

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT DISTINCT COUNT( + + NULLIF ( - + 13, + 15 - - - 59 + + NULLIF ( + - CAST( - + 38 AS SIGNED ), - 77 ) * ( CAST( NULL AS SIGNED ) ) * + 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT COUNT ( + + NULLIF ( - + 13, + 15 - - - 59 + + NULLIF ( + - CAST ( - + 38 AS INTEGER ), - 77 ) * ( CAST ( NULL AS INTEGER ) ) * + 59 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-177
SELECT DISTINCT 98 * + COUNT( * ) AS col2, + CASE NULLIF ( 55, - - MIN( ALL 71 ) + + - 67 + + - COALESCE ( 69, + 51 * + + AVG ( DISTINCT 19 ) + - - 41 + - 48 + + 36 * - 59 + + - 1 ) + - 46 ) WHEN 7 + - 72 + 49 + - - 83 * ( COALESCE ( 60, 39 ) ) THEN 90 * - 15 + + COALESCE ( - 63, 24 + ( 17 ), - 11 / + COALESCE ( + CAST( - 11 AS DECIMAL ), - 11 ) + 59 ) END
----
98
NULL

skipif mysql # not compatible
query II rowsort label-177
SELECT DISTINCT 98 * + COUNT ( * ) AS col2, + CASE NULLIF ( 55, - - MIN ( ALL 71 ) + + - 67 + + - COALESCE ( 69, + 51 * + + AVG ( DISTINCT 19 ) + - - 41 + - 48 + + 36 * - 59 + + - 1 ) + - 46 ) WHEN 7 + - 72 + 49 + - - 83 * ( COALESCE ( 60, 39 ) ) THEN 90 * - 15 + + COALESCE ( - 63, 24 + ( 17 ), - 11 / + COALESCE ( + CAST ( - 11 AS REAL ), - 11 ) + 59 ) END
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - 67 * COUNT( * ) * + + 11 AS col0
----
-737

skipif mysql # not compatible
query I rowsort label-178
SELECT - 67 * COUNT ( * ) * + + 11 AS col0
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT 96 + - MIN( ALL - 36 )
----
132

skipif mysql # not compatible
query I rowsort label-179
SELECT 96 + - MIN ( ALL - 36 )
----
132

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT + 43 + - COUNT( + - 56 )
----
42

skipif mysql # not compatible
query I rowsort label-183
SELECT + 43 + - COUNT ( + - 56 )
----
42

query I rowsort
SELECT ALL - 73 + + ( + 27 ) AS col2
----
-46

query I rowsort
SELECT + 1 * - 55 + - 27 + + COALESCE ( - 88, + - 39, - 49 ) - + 24 * - 21
----
334

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

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

query I rowsort
SELECT ALL - 78 + - + 9 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-188
SELECT ALL 73 + - MIN( + 91 ) AS col1, COUNT( * ) + + 16 * ( COUNT( * ) ) col0
----
-18
17

skipif mysql # not compatible
query II rowsort label-188
SELECT ALL 73 + - MIN ( + 91 ) AS col1, COUNT ( * ) + + 16 * ( COUNT ( * ) ) col0
----
-18
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT CAST( - + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) - - 60 * + - 27 * + 88 * + ( + - 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT CAST ( - + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - 60 * + - 27 * + 88 * + ( + - 42 ) AS col0
----
NULL

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

query I rowsort
SELECT 95 - - + 15
----
110

query I rowsort
SELECT ALL 66 + - 78 * + + 92 * + 85 * + - 42 AS col0
----
25618386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT CAST( + MIN( DISTINCT - 28 ) AS SIGNED ) * 61
----
-1708

skipif mysql # not compatible
query I rowsort label-193
SELECT CAST ( + MIN ( DISTINCT - 28 ) AS INTEGER ) * 61
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT - 63 * + - NULLIF ( ( 20 ), - COUNT( * ) ) + 41 + - 20
----
1281

skipif mysql # not compatible
query I rowsort label-194
SELECT - 63 * + - NULLIF ( ( 20 ), - COUNT ( * ) ) + 41 + - 20
----
1281

query II rowsort
SELECT + 98 AS col2, 81 * + 4 AS col0
----
98
324

query II rowsort
SELECT DISTINCT - 47 AS col2, + 39 AS col0
----
-47
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-197
SELECT CASE 82 WHEN - MIN( DISTINCT + 94 ) + - SUM( - 0 ) + + 0 * + + 81 + - 70 * + CAST( NULL AS SIGNED ) DIV 86 * - CASE - - MAX( DISTINCT - 15 ) WHEN - 29 THEN + 96 + - - 74 ELSE 78 END + - - MAX( - - 32 ) THEN NULL ELSE + COUNT( * ) END + - - COUNT( * ) DIV - 15 * + 72 * MIN( ALL - NULLIF ( 56, 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-197
SELECT CASE 82 WHEN - MIN ( DISTINCT + 94 ) + - SUM ( - 0 ) + + 0 * + + 81 + - 70 * + CAST ( NULL AS INTEGER ) / 86 * - CASE - - MAX ( DISTINCT - 15 ) WHEN - 29 THEN + 96 + - - 74 ELSE 78 END + - - MAX ( - - 32 ) THEN NULL ELSE + COUNT ( * ) END + - - COUNT ( * ) / - 15 * + 72 * MIN ( ALL - NULLIF ( 56, 42 ) )
----
1

query I rowsort
SELECT ALL - ( + - 13 ) * + - 47
----
-611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT ALL 7 + - COUNT( * ) + - - CAST( NULL AS SIGNED ) * + + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL 7 + - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + + 20 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT ALL 59 * - + SUM( 55 ) col2, + 21
----
-3245
21

skipif mysql # not compatible
query II rowsort label-201
SELECT ALL 59 * - + SUM ( 55 ) col2, + 21
----
-3245
21

query I rowsort
SELECT 20 * - 34 AS col0
----
-680

query I rowsort
SELECT 91 + + 47 * - 94 AS col0
----
-4327

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL - CASE + 32 WHEN 35 + + + 7 - + 53 - + 92 * - 46 * - + COUNT( * ) * 59 - - + 25 THEN - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - CASE + 32 WHEN 35 + + + 7 - + 53 - + 92 * - 46 * - + COUNT ( * ) * 59 - - + 25 THEN - 32 END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT COUNT( ALL - CASE + 63 WHEN + - ( - - ( 45 ) ) THEN NULL WHEN - 92 THEN NULL ELSE + 12 END )
----
1

skipif mysql # not compatible
query I rowsort label-208
SELECT COUNT ( ALL - CASE + 63 WHEN + - ( - - ( 45 ) ) THEN NULL WHEN - 92 THEN NULL ELSE + 12 END )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-209
SELECT COUNT( DISTINCT - 65 ) * + 29, + 75 + 11 col0
----
29
86

skipif mysql # not compatible
query II rowsort label-209
SELECT COUNT ( DISTINCT - 65 ) * + 29, + 75 + 11 col0
----
29
86

query I rowsort
SELECT + 58 * - + 38
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT 93 + - + 39 - 0 * - 15 - + 57 - 94 * 85 + 89 * COUNT( * )
----
-7904

skipif mysql # not compatible
query I rowsort label-211
SELECT 93 + - + 39 - 0 * - 15 - + 57 - 94 * 85 + 89 * COUNT ( * )
----
-7904

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT 39 + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-212
SELECT 39 + COUNT ( * ) col1
----
40

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, + 30, - + 47 )
----
-71

query II rowsort
SELECT ALL + 87 AS col2, 39 AS col0
----
87
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-215
SELECT - CASE + ( + + COUNT( * ) ) WHEN - 88 * 64 + - + 37 + - CAST( NULL AS SIGNED ) * CASE COALESCE ( - 84, - CAST( NULL AS SIGNED ), - - COUNT( * ), + 17 ) WHEN + - 59 / 64 THEN 57 + + 27 ELSE NULL END * 74 THEN NULL WHEN + CASE + 96 WHEN 37 THEN COALESCE ( - COUNT( * ), - + 50, + + 79 ) * COALESCE ( - COALESCE ( + 52, SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 88, - 48 ) / - 62, - 45 ) END THEN 98 END / ( 64 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT - CASE + ( + + COUNT ( * ) ) WHEN - 88 * 64 + - + 37 + - CAST ( NULL AS INTEGER ) * CASE COALESCE ( - 84, - CAST ( NULL AS INTEGER ), - - COUNT ( * ), + 17 ) WHEN + - 59 / 64 THEN 57 + + 27 ELSE NULL END * 74 THEN NULL WHEN + CASE + 96 WHEN 37 THEN COALESCE ( - COUNT ( * ), - + 50, + + 79 ) * COALESCE ( - COALESCE ( + 52, SUM ( DISTINCT - CAST ( NULL AS REAL ) ) * + 88, - 48 ) / - 62, - 45 ) END THEN 98 END / ( 64 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + ( + + 79 ) * + 44 * MAX( DISTINCT - 90 ) AS col2
----
-312840

skipif mysql # not compatible
query I rowsort label-216
SELECT + ( + + 79 ) * + 44 * MAX ( DISTINCT - 90 ) AS col2
----
-312840

query I rowsort
SELECT 8 + - - 71 AS col0
----
79

query I rowsort
SELECT ALL + 26 * - 46 + + 92 AS col0
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + MIN( ALL - 42 ) + - - 68
----
26

skipif mysql # not compatible
query I rowsort label-219
SELECT + MIN ( ALL - 42 ) + - - 68
----
26

query I rowsort
SELECT 41 + - - 24
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT + COALESCE ( - 2, + 97 ) DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-221
SELECT + COALESCE ( - 2, + 97 ) / + - 61
----
0

query I rowsort
SELECT ALL + 77 + - 90 * 77
----
-6853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT - 41 + - 17 DIV 87 * - 84 + + 84 + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-223
SELECT - 41 + - 17 / 87 * - 84 + + 84 + - COUNT ( * )
----
42

query I rowsort
SELECT DISTINCT - 74 + + - 49
----
-123

query I rowsort
SELECT DISTINCT 97 * + - 85 + 75 * 95 * + 99 AS col2
----
697130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT DISTINCT 22 * + 15 + COUNT( * ) + - 35 * 65 DIV - - MAX( 57 )
----
292

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 22 * + 15 + COUNT ( * ) + - 35 * 65 / - - MAX ( 57 )
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT COALESCE ( - 51, + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-227
SELECT COALESCE ( - 51, + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT COALESCE ( - 34, ( - + COALESCE ( - 63, + 49 + + 16 ) ), + + CASE - + 49 WHEN - + CASE 19 WHEN - - ( - ( 87 ) ) / + + 89 THEN - + NULLIF ( CASE + 83 WHEN 31 THEN + ( + 90 ) WHEN + + 0 * - 0 THEN 61 WHEN COUNT( * ) - + ( - 10 ) + + 71 THEN + 82 * AVG ( 36 ) ELSE NULL END, COUNT( * ) * + 46 + + 20 * 91 ) + - COALESCE ( 59 - - 7 * 49, - 54 * SUM( 99 ) ) ELSE - 16 - CAST( NULL AS SIGNED ) END THEN 65 - + 64 WHEN + 23 * 67 THEN NULL ELSE NULL END )
----
-34

skipif mysql # not compatible
query I rowsort label-228
SELECT COALESCE ( - 34, ( - + COALESCE ( - 63, + 49 + + 16 ) ), + + CASE - + 49 WHEN - + CASE 19 WHEN - - ( - ( 87 ) ) / + + 89 THEN - + NULLIF ( CASE + 83 WHEN 31 THEN + ( + 90 ) WHEN + + 0 * - 0 THEN 61 WHEN COUNT ( * ) - + ( - 10 ) + + 71 THEN + 82 * AVG ( 36 ) ELSE NULL END, COUNT ( * ) * + 46 + + 20 * 91 ) + - COALESCE ( 59 - - 7 * 49, - 54 * SUM ( 99 ) ) ELSE - 16 - CAST ( NULL AS INTEGER ) END THEN 65 - + 64 WHEN + 23 * 67 THEN NULL ELSE NULL END )
----
-34

query I rowsort
SELECT + 37 + 54 col2
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL - 71 * + 22 + + - 69 * - MAX( DISTINCT + + 81 ) * MIN( ALL + 67 ) AS col1
----
372901

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - 71 * + 22 + + - 69 * - MAX ( DISTINCT + + 81 ) * MIN ( ALL + 67 ) AS col1
----
372901

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT ALL + 66, ( + - COUNT( * ) ) * - - 11 AS col1
----
66
-11

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL + 66, ( + - COUNT ( * ) ) * - - 11 AS col1
----
66
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + CASE + 50 WHEN COUNT( * ) THEN COALESCE ( - + 71, - - 36 ) * 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + CASE + 50 WHEN COUNT ( * ) THEN COALESCE ( - + 71, - - 36 ) * 56 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 25 * + 78 * - 70 AS col0
----
-136500

query II rowsort
SELECT DISTINCT + 82, 22 * + 12 AS col0
----
82
264

query I rowsort
SELECT + ( 11 ) * + 33 * 64
----
23232

query I rowsort
SELECT + 41 + + 68 * - - 47 * + + 60 AS col0
----
191801

query II rowsort
SELECT ALL + 65 col0, 16 col2
----
65
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-240
SELECT 12 * - 21 + + + 16 + - 40 + COUNT( * ) + COUNT( * ) * CASE + CAST( NULL AS SIGNED ) WHEN + + 75 THEN 76 ELSE NULL END * + COUNT( * ) + - 85 AS col1, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-240
SELECT 12 * - 21 + + + 16 + - 40 + COUNT ( * ) + COUNT ( * ) * CASE + CAST ( NULL AS INTEGER ) WHEN + + 75 THEN 76 ELSE NULL END * + COUNT ( * ) + - 85 AS col1, + 39
----
NULL
39

query I rowsort
SELECT - 42 * - - 29 AS col2
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ( - MIN( + 15 ) ) * + 6 * - 91 - - 82 - + 73 AS col2
----
8199

skipif mysql # not compatible
query I rowsort label-242
SELECT ( - MIN ( + 15 ) ) * + 6 * - 91 - - 82 - + 73 AS col2
----
8199

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

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

query I rowsort
SELECT + 0 - 61
----
-61

query II rowsort
SELECT DISTINCT + 82 col1, 8
----
82
8

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

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

query I rowsort
SELECT ALL - + 12 * + - CASE + 57 WHEN + ( + - 54 ) THEN 83 * - ( + 59 ) ELSE NULL END + + + 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 1 * NULLIF ( + - 41, + 94 ) + - + 2 + 15 - + 73 - - - 17 + - 45 + - 26 * - 55
----
1267

query II rowsort
SELECT - - 33 AS col1, - ( + - 44 ) + - 73 AS col0
----
33
-29

query II rowsort
SELECT + 58 AS col0, 88 * + + 4 AS col0
----
58
352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT - + COALESCE ( - 86, + 31 * 66 DIV + - ( - - COUNT( * ) ) ) - + 1
----
85

skipif mysql # not compatible
query I rowsort label-251
SELECT - + COALESCE ( - 86, + 31 * 66 / + - ( - - COUNT ( * ) ) ) - + 1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT - 59 * - + 70 * 13 + + - CASE ( - + MIN( ALL 65 ) ) WHEN + COUNT( * ) THEN + + 77 * - - 28 * - - 43 + + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT - 59 * - + 70 * 13 + + - CASE ( - + MIN ( ALL 65 ) ) WHEN + COUNT ( * ) THEN + + 77 * - - 28 * - - 43 + + 54 END
----
NULL

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

query II rowsort
SELECT - 81 AS col0, 56
----
-81
56

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

query I rowsort
SELECT - - 26 * + 96
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT + + 20 + + COUNT( * ) + 21 + + 7 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT + + 20 + + COUNT ( * ) + 21 + + 7 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT - + NULLIF ( - 45, + - 11 * COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-258
SELECT - + NULLIF ( - 45, + - 11 * COUNT ( * ) )
----
45

query I rowsort
SELECT ALL - + 41 + - 51 * 67
----
-3458

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

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + COUNT ( DISTINCT 83 ) + - 19 - COUNT ( * ) col0
----
-19

query I rowsort
SELECT - ( + + 60 ) * 0 * - + 63 AS col1
----
0

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

query I rowsort
SELECT - ( 89 ) + - 86
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - ( 72 ) + - ( 24 ) - + - 6 * - COUNT( * ) * - - 51 AS col0
----
-402

skipif mysql # not compatible
query I rowsort label-264
SELECT - ( 72 ) + - ( 24 ) - + - 6 * - COUNT ( * ) * - - 51 AS col0
----
-402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-265
SELECT + 55 * + + 33 DIV CAST( - - COALESCE ( CAST( NULL AS DECIMAL ), - COUNT( * ) ) AS SIGNED ) AS col2
----
-1815

skipif mysql # not compatible
query I rowsort label-265
SELECT + 55 * + + 33 / CAST ( - - COALESCE ( CAST ( NULL AS REAL ), - COUNT ( * ) ) AS INTEGER ) AS col2
----
-1815

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

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

query I rowsort
SELECT ALL - 88 * + 60
----
-5280

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

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-270
SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT( * ) + - + 89
----
78
168
-88

skipif mysql # not compatible
query III rowsort label-270
SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT ( * ) + - + 89
----
78
168
-88

query I rowsort
SELECT DISTINCT - 6 * + + 29 AS col1
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-272
SELECT CAST( + 84 AS SIGNED ) AS col2, - 12 + + 98 AS col2
----
84
86

skipif mysql # not compatible
query II rowsort label-272
SELECT CAST ( + 84 AS INTEGER ) AS col2, - 12 + + 98 AS col2
----
84
86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-274
SELECT + 71 - COUNT( * ) AS col1, + 78
----
70
78

skipif mysql # not compatible
query II rowsort label-274
SELECT + 71 - COUNT ( * ) AS col1, + 78
----
70
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT + 98 * - - 10 DIV 69 DIV - 64 * - + 3 * - ( + + 13 ) * COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-275
SELECT + 98 * - - 10 / 69 / - 64 * - + 3 * - ( + + 13 ) * COUNT ( * ) + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT - COALESCE ( - 70, + + 14 ) * - 99 + + - 31 DIV - 41 AS col1
----
-6930

skipif mysql # not compatible
query I rowsort label-276
SELECT - COALESCE ( - 70, + + 14 ) * - 99 + + - 31 / - 41 AS col1
----
-6930

query I rowsort
SELECT - 59 * + 83 AS col2
----
-4897

query I rowsort
SELECT + 65 * - + 11
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ( - CASE - COUNT( * ) WHEN 29 THEN COUNT( * ) WHEN - 2 * + 96 THEN 48 / + 70 * + + 19 + - 66 + 37 / + - 5 / - + 59 + - - ( + - COUNT( * ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT ( - CASE - COUNT ( * ) WHEN 29 THEN COUNT ( * ) WHEN - 2 * + 96 THEN 48 / + 70 * + + 19 + - 66 + 37 / + - 5 / - + 59 + - - ( + - COUNT ( * ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + COUNT( * ) + + + SUM( ALL + 40 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-280
SELECT + COUNT ( * ) + + + SUM ( ALL + 40 ) col0
----
41

query I rowsort
SELECT ALL ( 37 ) * - 92 + - 48 col1
----
-3452

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

skipif mysql # not compatible
query I rowsort label-282
SELECT + COUNT ( * ) / + - MIN ( ALL - 37 )
----
0

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

query I rowsort
SELECT DISTINCT + 26 * + 25 * 82 * - 26 * - - 19
----
-26330200

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL + + COALESCE ( + COUNT( * ), - - ( - 47 ) * - 64 + + 50 * + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL + + COALESCE ( + COUNT ( * ), - - ( - 47 ) * - 64 + + 50 * + 23 ) AS col2
----
1

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

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

query II rowsort
SELECT ALL + ( 1 ), 79 + 88 AS col2
----
1
167

query II rowsort
SELECT + - 37 * - 52 AS col1, 97 + - + NULLIF ( - 84, - + 26 * + - 37 )
----
1924
181

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT + 34 + - 69 AS col2, 85 * 88 + + MAX( ALL - + 45 ) AS col0
----
-35
7435

skipif mysql # not compatible
query II rowsort label-289
SELECT + 34 + - 69 AS col2, 85 * 88 + + MAX ( ALL - + 45 ) AS col0
----
-35
7435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT CAST( 15 AS SIGNED ) + + ( 74 )
----
89

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT CAST ( 15 AS INTEGER ) + + ( 74 )
----
89

query I rowsort
SELECT ALL + 49 + 80 + - 89 * + 40 AS col2
----
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL SUM( + + 85 ) + + 75 - 4 * + 27 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL SUM ( + + 85 ) + + 75 - 4 * + 27 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-293
SELECT - + CAST( + 43 AS SIGNED ) AS col1, 46
----
-43
46

skipif mysql # not compatible
query II rowsort label-293
SELECT - + CAST ( + 43 AS INTEGER ) AS col1, 46
----
-43
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-294
SELECT ALL - AVG ( DISTINCT - 44 ) + CAST( NULL AS SIGNED ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST( - - 95 AS SIGNED ) + MAX( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST( NULL AS SIGNED ) * - - 27
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-294
SELECT ALL - AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST ( - - 95 AS INTEGER ) + MAX ( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST ( NULL AS INTEGER ) * - - 27
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-295
SELECT DISTINCT 15 + - 31 - - 75 + + + 40 + - + 84 * - 64 + + + 39 DIV + NULLIF ( 54, + 65 ) + + - 62
----
5413

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT 15 + - 31 - - 75 + + + 40 + - + 84 * - 64 + + + 39 / + NULLIF ( 54, + 65 ) + + - 62
----
5413

query I rowsort
SELECT ALL 19 * - 37 col1
----
-703

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT 40 + 73, COUNT( * ) * - - ( - 72 ) AS col1
----
113
-72

skipif mysql # not compatible
query II rowsort label-297
SELECT 40 + 73, COUNT ( * ) * - - ( - 72 ) AS col1
----
113
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT DISTINCT + COUNT( 3 ) * 72 + + - ( - 99 ) + 43 * 84 + + - 57 + - COUNT( * ) * 59 + + - 91 AS col1, 72 * + 95 + + 17 * + 55
----
3576
7775

skipif mysql # not compatible
query II rowsort label-298
SELECT DISTINCT + COUNT ( 3 ) * 72 + + - ( - 99 ) + 43 * 84 + + - 57 + - COUNT ( * ) * 59 + + - 91 AS col1, 72 * + 95 + + 17 * + 55
----
3576
7775

query I rowsort
SELECT ALL - 19 + 76 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT CAST( 27 AS SIGNED ) * + 85 col1
----
2295

skipif mysql # not compatible
query I rowsort label-300
SELECT CAST ( 27 AS INTEGER ) * + 85 col1
----
2295

query I rowsort
SELECT 14 + + + 28 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT 21 + - - 20 + + + NULLIF ( ( + 94 ), 10 ) * - COUNT( * ) * ( + - 13 ) col0
----
1263

skipif mysql # not compatible
query I rowsort label-302
SELECT 21 + - - 20 + + + NULLIF ( ( + 94 ), 10 ) * - COUNT ( * ) * ( + - 13 ) col0
----
1263

query II rowsort
SELECT - 92, - 34 AS col2
----
-92
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL - CASE + 35 WHEN - COUNT( DISTINCT - ( - 26 ) ) THEN 19 * + COUNT( * ) WHEN - 19 + + 29 + - - 96 / + 43 + 50 + - COUNT( * ) * - 96 * + ( 5 ) / + 66 * - - COUNT( * ) * NULLIF ( - + COUNT( * ), + - 26 + - 55 + 64 * + ( + 79 ) ) THEN - COUNT( * ) + 19 * + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - CASE + 35 WHEN - COUNT ( DISTINCT - ( - 26 ) ) THEN 19 * + COUNT ( * ) WHEN - 19 + + 29 + - - 96 / + 43 + 50 + - COUNT ( * ) * - 96 * + ( 5 ) / + 66 * - - COUNT ( * ) * NULLIF ( - + COUNT ( * ), + - 26 + - 55 + 64 * + ( + 79 ) ) THEN - COUNT ( * ) + 19 * + 49 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT ALL - 30 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL - 30 / + 51
----
0

query I rowsort
SELECT 94 * 30
----
2820

query I rowsort
SELECT 30 + 27
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT 1 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-309
SELECT 1 / + 81 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT DISTINCT - COALESCE ( 60, - COUNT( DISTINCT + 13 ) ) * - - CAST( NULL AS SIGNED ) - + 30 + + COUNT( * ) / AVG ( + - 91 ) - - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - COALESCE ( 60, - COUNT ( DISTINCT + 13 ) ) * - - CAST ( NULL AS INTEGER ) - + 30 + + COUNT ( * ) / AVG ( + - 91 ) - - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT COUNT( * ) * 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-311
SELECT COUNT ( * ) * 94 AS col2
----
94

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT COALESCE ( 60, + + 94, + COUNT( * ) * + COUNT( * ) + + 70 ) + - ( + 63 ) - - 60
----
57

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT COALESCE ( 60, + + 94, + COUNT ( * ) * + COUNT ( * ) + + 70 ) + - ( + 63 ) - - 60
----
57

query I rowsort
SELECT ALL 35 + 63
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT + 37 * - + 79 - 14 + SUM( ALL 92 ) - COUNT( * ) + COUNT( DISTINCT + 93 )
----
-2845

skipif mysql # not compatible
query I rowsort label-317
SELECT + 37 * - + 79 - 14 + SUM ( ALL 92 ) - COUNT ( * ) + COUNT ( DISTINCT + 93 )
----
-2845

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT + MAX( + 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-318
SELECT + MAX ( + 67 ) col2
----
67

query I rowsort
SELECT ALL - 39 + - 34 + + 4 + + 14 col2
----
-55

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

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

query I rowsort
SELECT ALL - + 86 + 18 AS col1
----
-68

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

skipif mysql # not compatible
query I rowsort label-322
SELECT + SUM ( + 56 )
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-323
SELECT - CAST( NULL AS DECIMAL ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT - CAST ( NULL AS REAL ) * 20
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-324
SELECT - - 65 AS col0, - 6 DIV + ( 87 )
----
65
0

skipif mysql # not compatible
query II rowsort label-324
SELECT - - 65 AS col0, - 6 / + ( 87 )
----
65
0

query I rowsort
SELECT 24 - - 51 * 53 col0
----
2727

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-326
SELECT 79 * 91 col0, 55 * 61 DIV - COUNT( * ) * COUNT( * ) + + 45 * + 87
----
7189
560

skipif mysql # not compatible
query II rowsort label-326
SELECT 79 * 91 col0, 55 * 61 / - COUNT ( * ) * COUNT ( * ) + + 45 * + 87
----
7189
560

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT 14 * + MIN( - + 95 )
----
-1330

skipif mysql # not compatible
query I rowsort label-327
SELECT 14 * + MIN ( - + 95 )
----
-1330

query I rowsort
SELECT DISTINCT + 43 * + 53 * 27
----
61533

query I rowsort
SELECT ALL 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT COUNT( * ) - COUNT( * ) * 77 * + 8 * + + 12 * SUM( DISTINCT 8 )
----
-59135

skipif mysql # not compatible
query I rowsort label-330
SELECT COUNT ( * ) - COUNT ( * ) * 77 * + 8 * + + 12 * SUM ( DISTINCT 8 )
----
-59135

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT MIN( DISTINCT - 33 ) + + 80
----
47

skipif mysql # not compatible
query I rowsort label-331
SELECT MIN ( DISTINCT - 33 ) + + 80
----
47

query I rowsort
SELECT 4 * 69
----
276

query II rowsort
SELECT 39 * + 27, 63 AS col2
----
1053
63

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT 10 + + - 98 AS col2, + COUNT( * ) AS col0
----
-88
1

skipif mysql # not compatible
query II rowsort label-334
SELECT 10 + + - 98 AS col2, + COUNT ( * ) AS col0
----
-88
1

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT 46 DIV - 77 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT 46 / - 77 * - 56
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT DISTINCT - MIN( + + 50 ) * 66 + - 17 AS col1
----
-3317

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT - MIN ( + + 50 ) * 66 + - 17 AS col1
----
-3317

query I rowsort
SELECT DISTINCT - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL 39 * + ( + 79 ) + COUNT( * ) + - 87 + + - 66 - - + 1 * 49
----
2978

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 39 * + ( + 79 ) + COUNT ( * ) + - 87 + + - 66 - - + 1 * 49
----
2978

query II rowsort
SELECT + COALESCE ( - 99, 83, - 54 ), + 71 AS col1
----
-99
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL + 24 * - + 2 + 14 + + 10 - + COUNT( * ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + 24 * - + 2 + 14 + + 10 - + COUNT ( * ) col1
----
-25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 95 * + 70 / - COUNT( * ) + - ( + 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 95 * + 70 / - COUNT ( * ) + - ( + 72 ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT + - 13 + - ( 72 )
----
-85

query I rowsort
SELECT + - NULLIF ( + + 52, + 93 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT DISTINCT + - ( 48 ) - + - 37 * MIN( 0 )
----
-48

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + - ( 48 ) - + - 37 * MIN ( 0 )
----
-48

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-350
SELECT + + 66 * + 76 + + ( - - COUNT( * ) ) DIV + - 64 * + - 17 * + - 95
----
5016

skipif mysql # not compatible
query I rowsort label-350
SELECT + + 66 * + 76 + + ( - - COUNT ( * ) ) / + - 64 * + - 17 * + - 95
----
5016

query I rowsort
SELECT ALL 97 * 89
----
8633

query I rowsort
SELECT - 2 + - 71 * 91 + - 21 AS col2
----
-6484

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT ALL - 56 DIV 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - 56 / 38 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-354
SELECT ALL + 2 - + CASE + - CAST( - NULLIF ( 66, - 98 ) AS DECIMAL ) WHEN - 2 * - 53 + - + 83 THEN 17 + CAST( NULL AS SIGNED ) ELSE + - ( + 51 ) END + - 64 * 51
----
-3211

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 2 - + CASE + - CAST ( - NULLIF ( 66, - 98 ) AS REAL ) WHEN - 2 * - 53 + - + 83 THEN 17 + CAST ( NULL AS INTEGER ) ELSE + - ( + 51 ) END + - 64 * 51
----
-3211

query I rowsort
SELECT DISTINCT - 47 * - 67 AS col2
----
3149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL - COUNT( * ) * + NULLIF ( + ( - + 8 ), + + 14 * - 62 ) * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL - COUNT ( * ) * + NULLIF ( + ( - + 8 ), + + 14 * - 62 ) * + COUNT ( * )
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT + 49 + + 27 + + 73 + - ( - 88 ) + + 7 * 48 + + - 61 - 7 * CAST( NULL AS SIGNED ) + - 69 / - + ( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT + 49 + + 27 + + 73 + - ( - 88 ) + + 7 * 48 + + - 61 - 7 * CAST ( NULL AS INTEGER ) + - 69 / - + ( + 27 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT - 19 DIV + - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-360
SELECT - 19 / + - 47 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT ALL CASE - CAST( - 3 AS SIGNED ) WHEN - 87 THEN - + COUNT( DISTINCT - COALESCE ( + - 28, - + 10 ) ) WHEN - COUNT( * ) * - 96 * CAST( NULL AS SIGNED ) THEN NULL END + - - 29 * CASE 36 WHEN - MAX( DISTINCT + + 82 ) + - ( + 82 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL CASE - CAST ( - 3 AS INTEGER ) WHEN - 87 THEN - + COUNT ( DISTINCT - COALESCE ( + - 28, - + 10 ) ) WHEN - COUNT ( * ) * - 96 * CAST ( NULL AS INTEGER ) THEN NULL END + - - 29 * CASE 36 WHEN - MAX ( DISTINCT + + 82 ) + - ( + 82 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-363
SELECT + 89 / 8 * - COUNT ( * ) AS col0
----
-11

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-365
SELECT ALL CAST( + 24 AS SIGNED ) DIV - 95 + 72
----
72

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL CAST ( + 24 AS INTEGER ) / - 95 + 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT CAST( + - COALESCE ( - 10, COUNT( * ), - + 50 * 15 - + - 48, - + COUNT( * ) + + - SUM( CAST( NULL AS SIGNED ) ) + - 5 - + COALESCE ( - 94, 23 * 76 * - 16 + - 41 ) + - 94 / CAST( - COUNT( * ) AS SIGNED ) ) AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-366
SELECT CAST ( + - COALESCE ( - 10, COUNT ( * ), - + 50 * 15 - + - 48, - + COUNT ( * ) + + - SUM ( CAST ( NULL AS INTEGER ) ) + - 5 - + COALESCE ( - 94, 23 * 76 * - 16 + - 41 ) + - 94 / CAST ( - COUNT ( * ) AS INTEGER ) ) AS INTEGER ) AS col1
----
10

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

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

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

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

skipif mysql # not compatible
query II rowsort label-369
SELECT ( - ( COUNT ( * ) ) ) AS col2, 27 AS col1
----
-1
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-371
SELECT + + ( + + 49 ) * + ( + 50 ) * + 45 / - - NULLIF ( 38, + 15 * + CAST( + CASE COUNT( * ) WHEN - + 45 - - 95 * + ( + 4 ) * + 32 - 52 + 40 THEN NULL ELSE 28 * + 83 - + - ( 81 ) END AS SIGNED ) + - + 86 ) * - COUNT( * ) * 39 * - CAST( NULL AS DECIMAL ) + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT + + ( + + 49 ) * + ( + 50 ) * + 45 / - - NULLIF ( 38, + 15 * + CAST ( + CASE COUNT ( * ) WHEN - + 45 - - 95 * + ( + 4 ) * + 32 - 52 + 40 THEN NULL ELSE 28 * + 83 - + - ( 81 ) END AS INTEGER ) + - + 86 ) * - COUNT ( * ) * 39 * - CAST ( NULL AS REAL ) + 29 AS col2
----
NULL

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

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

query II rowsort
SELECT + 72 col0, + 14
----
72
14

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL + 41 * + + 56 * 47 * + COUNT( * ) - + + 60 + 47 + ( + 1 ) AS col1
----
107900

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + 41 * + + 56 * 47 * + COUNT ( * ) - + + 60 + 47 + ( + 1 ) AS col1
----
107900

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-377
SELECT ALL + 66, - 81 + 60 - COUNT( * ) + + COUNT( * ) / - CASE - CAST( - - 91 AS SIGNED ) WHEN 71 THEN - 32 ELSE NULL END AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-377
SELECT ALL + 66, - 81 + 60 - COUNT ( * ) + + COUNT ( * ) / - CASE - CAST ( - - 91 AS INTEGER ) WHEN 71 THEN - 32 ELSE NULL END AS col1
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT - + ( 22 ) * - + MAX( + - 27 ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-378
SELECT - + ( 22 ) * - + MAX ( + - 27 ) AS col2
----
-594

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

query I rowsort
SELECT + + 23 + - + 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT 1 * - 90 + 53 * + COUNT( * ) * NULLIF ( + COUNT( * ), + - 3 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-381
SELECT 1 * - 90 + 53 * + COUNT ( * ) * NULLIF ( + COUNT ( * ), + - 3 ) col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT - CAST( NULL AS SIGNED ) * MIN( ALL + 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT - CAST ( NULL AS INTEGER ) * MIN ( ALL + 10 ) AS col1
----
NULL

query I rowsort
SELECT + 69 * - 12
----
-828

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

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - + 6 * - COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT DISTINCT + + NULLIF ( + COUNT( ALL + 36 ), - 72 * - ( - + MAX( - 0 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT + + NULLIF ( + COUNT ( ALL + 36 ), - 72 * - ( - + MAX ( - 0 ) ) )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT - - ( + 67 ) * - 33 + - 63 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT - - ( + 67 ) * - 33 + - 63 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-388
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, + 31 - 77
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-388
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + 31 - 77
----
NULL
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT DISTINCT CASE + 23 WHEN - + 79 THEN - MIN( ALL + - 12 ) - + - 88 + - 2 ELSE NULL END col0, ( ( + - 5 ) ) - NULLIF ( 66, + + 24 ) AS col1
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-389
SELECT DISTINCT CASE + 23 WHEN - + 79 THEN - MIN ( ALL + - 12 ) - + - 88 + - 2 ELSE NULL END col0, ( ( + - 5 ) ) - NULLIF ( 66, + + 24 ) AS col1
----
NULL
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT ALL CAST( ( + + COALESCE ( 9, - 6, + + COUNT( * ) / COUNT( * ) + - COUNT( * ) + + + AVG ( - + 94 ) * - 89 ) ) AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL CAST ( ( + + COALESCE ( 9, - 6, + + COUNT ( * ) / COUNT ( * ) + - COUNT ( * ) + + + AVG ( - + 94 ) * - 89 ) ) AS INTEGER )
----
9

query I rowsort
SELECT DISTINCT ( - 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-392
SELECT DISTINCT ( - - 69 ), MAX( DISTINCT + 82 ) DIV MAX( DISTINCT + NULLIF ( 19, + ( - - 21 ) ) ) + - 87 + - CAST( + - 95 AS SIGNED ) col1
----
69
12

skipif mysql # not compatible
query II rowsort label-392
SELECT DISTINCT ( - - 69 ), MAX ( DISTINCT + 82 ) / MAX ( DISTINCT + NULLIF ( 19, + ( - - 21 ) ) ) + - 87 + - CAST ( + - 95 AS INTEGER ) col1
----
69
12

query I rowsort
SELECT - 49 * - 62 AS col2
----
3038

query I rowsort
SELECT - CASE - 34 WHEN 25 - 4 THEN + 31 ELSE NULL END
----
NULL

query I rowsort
SELECT + 1 * - ( - 26 ) col0
----
26

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

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

query I rowsort
SELECT ALL - 26 + + - 74 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT - COUNT( * ), 28 * - 44 AS col2
----
-1
-1232

skipif mysql # not compatible
query II rowsort label-398
SELECT - COUNT ( * ), 28 * - 44 AS col2
----
-1
-1232

query I rowsort
SELECT - 53 + - 15 AS col1
----
-68

query II rowsort
SELECT 58, 19 AS col0
----
58
19

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

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

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

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

query I rowsort
SELECT 35 * 66
----
2310

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT + MIN( + 0 ) * - COUNT( * ) + - - 93 * - 70 AS col0
----
-6510

skipif mysql # not compatible
query I rowsort label-406
SELECT + MIN ( + 0 ) * - COUNT ( * ) + - - 93 * - 70 AS col0
----
-6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT COUNT( * ) DIV - + 28 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-407
SELECT COUNT ( * ) / - + 28 + - 97
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-408
SELECT ALL + COALESCE ( + 3, - 90, 92 DIV 36 ) - - MAX( + + 4 )
----
7

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL + COALESCE ( + 3, - 90, 92 / 36 ) - - MAX ( + + 4 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + - ( + - MAX( DISTINCT - + 31 ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-409
SELECT + - ( + - MAX ( DISTINCT - + 31 ) ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL - CAST( NULLIF ( - - CASE - + ( - COUNT( * ) ) WHEN 58 + - + 62 - + CAST( NULL AS SIGNED ) * 53 * + 23 THEN - 82 WHEN + ( - 39 ) THEN + COUNT( * ) + - - 9 ELSE NULL END, - + 91 / 83 * - - 58 / + - 92 + - 14 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - CAST ( NULLIF ( - - CASE - + ( - COUNT ( * ) ) WHEN 58 + - + 62 - + CAST ( NULL AS INTEGER ) * 53 * + 23 THEN - 82 WHEN + ( - 39 ) THEN + COUNT ( * ) + - - 9 ELSE NULL END, - + 91 / 83 * - - 58 / + - 92 + - 14 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-411
SELECT ALL - + COUNT( * ) col2, 55 AS col1, - 3 + - - 39 + - 16 + - 73
----
-1
55
-53

skipif mysql # not compatible
query III rowsort label-411
SELECT ALL - + COUNT ( * ) col2, 55 AS col1, - 3 + - - 39 + - 16 + - 73
----
-1
55
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + MIN( - + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-412
SELECT + MIN ( - + 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT( * ) / - COUNT( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT( * ) + + 58 ) / - COALESCE ( COUNT( * ), + ( + - 33 ) - - - 32 - + + COUNT( * ) - + + COUNT( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-413
SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT ALL 57 * - 60
----
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT - - 43 DIV + 80 + - + 54 DIV 83 + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-415
SELECT - - 43 / + 80 + - + 54 / 83 + 58 AS col2
----
58

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

skipif mysql # not compatible
query I rowsort label-416
SELECT + 23 * + + COUNT ( * ) / + 68 AS col1
----
0

query I rowsort
SELECT ALL - 50 col0
----
-50

query I rowsort
SELECT DISTINCT - 64 * - 29
----
1856

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT DISTINCT NULLIF ( + 6, - COUNT( * ) ) * - + 82 * + ( + + CASE + COUNT( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-420
SELECT DISTINCT NULLIF ( + 6, - COUNT ( * ) ) * - + 82 * + ( + + CASE + COUNT ( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73
----
NULL
73

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

query I rowsort
SELECT DISTINCT + 84 * + + 68 * - CASE WHEN NULL = 35 THEN - 57 ELSE NULL END
----
NULL

query I rowsort
SELECT 85 + - 58
----
27

query I rowsort
SELECT 24 + 38 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-425
SELECT ALL NULLIF ( - MIN( + ( - - 23 ) ), - 72 ) DIV - + 72 * + - 45 AS col1, + 3 - + 72 * + COUNT( * ) - + 94 AS col0
----
0
-163

skipif mysql # not compatible
query II rowsort label-425
SELECT ALL NULLIF ( - MIN ( + ( - - 23 ) ), - 72 ) / - + 72 * + - 45 AS col1, + 3 - + 72 * + COUNT ( * ) - + 94 AS col0
----
0
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 30 * CASE COUNT( * ) WHEN + 59 THEN NULL WHEN + + 5 THEN 97 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT 30 * CASE COUNT ( * ) WHEN + 59 THEN NULL WHEN + + 5 THEN 97 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 33 + 42 AS col0
----
75

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

skipif mysql # not compatible
query I rowsort label-428
SELECT COUNT ( * ) + 48 + + 76 * - 69 AS col1
----
-5195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-429
SELECT ALL + 66 + + + CAST( NULL AS SIGNED ) - 43 * + - 21 * + 20 - + + COUNT( * ) + + 12 col2, + SUM( - 10 ) + + - ( - 3 ) AS col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-429
SELECT ALL + 66 + + + CAST ( NULL AS INTEGER ) - 43 * + - 21 * + 20 - + + COUNT ( * ) + + 12 col2, + SUM ( - 10 ) + + - ( - 3 ) AS col1
----
NULL
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-430
SELECT DISTINCT ( + COUNT( * ) ) * - + MIN( 87 ) - + CASE ( + + CASE + 19 WHEN - COUNT( * ) THEN - 83 + - - 65 ELSE NULL END ) WHEN - + 4 THEN - + 68 * + CAST( NULL AS SIGNED ) * - COUNT( * ) END * - 91 * 32 / + 40 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT ( + COUNT ( * ) ) * - + MIN ( 87 ) - + CASE ( + + CASE + 19 WHEN - COUNT ( * ) THEN - 83 + - - 65 ELSE NULL END ) WHEN - + 4 THEN - + 68 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END * - 91 * 32 / + 40 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 94 + - 13
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT ALL CAST( 52 AS SIGNED ) + - ( - ( - + 7 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL CAST ( 52 AS INTEGER ) + - ( - ( - + 7 ) ) AS col1
----
45

query I rowsort
SELECT DISTINCT + 12 + - 95 - + - 25 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT COALESCE ( - 68, - ( - 80 ) DIV + 10 + 62 * + 34 * - 77, 27 ) * 71
----
-4828

skipif mysql # not compatible
query I rowsort label-434
SELECT COALESCE ( - 68, - ( - 80 ) / + 10 + 62 * + 34 * - 77, 27 ) * 71
----
-4828

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT 64 + 1, 89 * 95 * + MIN( ALL - + 22 ) AS col0
----
65
-186010

skipif mysql # not compatible
query II rowsort label-436
SELECT 64 + 1, 89 * 95 * + MIN ( ALL - + 22 ) AS col0
----
65
-186010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-437
SELECT - COALESCE ( + CAST( + 40 AS SIGNED ), - CAST( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) DIV 75 DIV - COUNT( * ) * + NULLIF ( + 90, - 46 * - COUNT( * ) * - ( COUNT( * ) ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-437
SELECT - COALESCE ( + CAST ( + 40 AS INTEGER ), - CAST ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) / 75 / - COUNT ( * ) * + NULLIF ( + 90, - 46 * - COUNT ( * ) * - ( COUNT ( * ) ) ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL - 11 - CAST( + - 33 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - 11 - CAST ( + - 33 AS INTEGER ) AS col0
----
22

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

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

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

query I rowsort
SELECT - 44 * 24 * + 24
----
-25344

query I rowsort
SELECT DISTINCT + 20 * 3 + + 48 + 28
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT ALL + MAX( + + 70 ) * - 51
----
-3570

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL + MAX ( + + 70 ) * - 51
----
-3570

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

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

query I rowsort
SELECT + 44 * + 18 - + 11
----
781

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT - 60 * 44, + MAX( - 19 ) + 16 AS col0
----
-2640
-3

skipif mysql # not compatible
query II rowsort label-447
SELECT - 60 * 44, + MAX ( - 19 ) + 16 AS col0
----
-2640
-3

query I rowsort
SELECT DISTINCT - - 30
----
30

query I rowsort
SELECT ALL 4 * + 76
----
304

onlyif mysql # DIV for integer division: 
query II rowsort label-450
SELECT ALL - + 35 DIV 82, COALESCE ( 28, + + 58 ) AS col2
----
0
28

skipif mysql # not compatible
query II rowsort label-450
SELECT ALL - + 35 / 82, COALESCE ( 28, + + 58 ) AS col2
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-451
SELECT ALL + 85 + + 83 DIV + ( - + COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL + 85 + + 83 / + ( - + COUNT ( * ) ) AS col2
----
2

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

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

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

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

query I rowsort
SELECT - 68 * - 4 - + 26 AS col0
----
246

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT ALL - 59, COALESCE ( + 88, - + 22 * - - COALESCE ( + COUNT( * ), - + 45 * + 96 ) ) - + 61 AS col1
----
-59
27

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL - 59, COALESCE ( + 88, - + 22 * - - COALESCE ( + COUNT ( * ), - + 45 * + 96 ) ) - + 61 AS col1
----
-59
27

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT 98 * - COUNT( * ) * - + COUNT( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99
----
99

skipif mysql # not compatible
query I rowsort label-456
SELECT 98 * - COUNT ( * ) * - + COUNT ( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99
----
99

query II rowsort
SELECT DISTINCT - 72 AS col1, + 4 + 11 + + ( 49 ) * + + 0 * + 94 AS col1
----
-72
15

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL ( - - COUNT( * ) ) + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL ( - - COUNT ( * ) ) + 40 AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT DISTINCT CAST( + 24 AS SIGNED ) + + CAST( NULL AS SIGNED ) / ( - 12 ) * AVG ( DISTINCT + CASE - 19 WHEN 84 THEN NULL ELSE + ( 87 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT CAST ( + 24 AS INTEGER ) + + CAST ( NULL AS INTEGER ) / ( - 12 ) * AVG ( DISTINCT + CASE - 19 WHEN 84 THEN NULL ELSE + ( 87 ) END ) AS col2
----
NULL

query I rowsort
SELECT ( + + 52 ) + - 63
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL CASE - + 95 WHEN 78 + - 20 THEN + - COUNT( + + ( + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) WHEN + COUNT( * ) + ( - + 39 ) THEN NULL ELSE NULL END * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL CASE - + 95 WHEN 78 + - 20 THEN + - COUNT ( + + ( + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) WHEN + COUNT ( * ) + ( - + 39 ) THEN NULL ELSE NULL END * + 55 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL ( - 50 ) + + + ( - 16 ) AS col1
----
-66

query II rowsort
SELECT ALL 43 AS col1, + 98
----
43
98

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

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

query I rowsort
SELECT DISTINCT 65 + + - 36 * + 21 * - - 54
----
-40759

onlyif mysql # DIV for integer division: 
query II rowsort label-467
SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 DIV 1 AS col0
----
52
-7024

skipif mysql # not compatible
query II rowsort label-467
SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 / 1 AS col0
----
52
-7024

query II rowsort
SELECT 70 AS col2, ( + 68 ) AS col2
----
70
68

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT - 54 AS col2, + 80 + ( - COUNT( * ) )
----
-54
79

skipif mysql # not compatible
query II rowsort label-469
SELECT - 54 AS col2, + 80 + ( - COUNT ( * ) )
----
-54
79

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT + 6 * 80 * - 85 * - 15 * + ( + + COUNT( * ) )
----
612000

skipif mysql # not compatible
query I rowsort label-470
SELECT + 6 * 80 * - 85 * - 15 * + ( + + COUNT ( * ) )
----
612000

query I rowsort
SELECT ALL 18 * 59 AS col2
----
1062

query I rowsort
SELECT + 24 - - 27 AS col2
----
51

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

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

query II rowsort
SELECT ALL 63 AS col2, ( 87 ) * 6 * - 63 * 31
----
63
-1019466

query I rowsort
SELECT ALL + 63 * - 16 col1
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT - + 55 DIV + + 53
----
-1

skipif mysql # not compatible
query I rowsort label-476
SELECT - + 55 / + + 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - 74 * - 67 * NULLIF ( - COUNT( * ), 3 + COUNT( * ) * 32 * - - 24 )
----
-4958

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - 74 * - 67 * NULLIF ( - COUNT ( * ), 3 + COUNT ( * ) * 32 * - - 24 )
----
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + + ( - NULLIF ( - + COUNT( * ), 11 ) ) + - - 87
----
88

skipif mysql # not compatible
query I rowsort label-478
SELECT + + ( - NULLIF ( - + COUNT ( * ), 11 ) ) + - - 87
----
88

query III rowsort
SELECT - + 5 - - 25 * - 12 AS col0, + 21, - 40 AS col0
----
-305
21
-40

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-481
SELECT - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST ( NULL AS INTEGER ) )
----
-76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT ALL ( - ( - + 57 ) ) AS col2, ( ( 63 ) ) + + + 48 + + - COUNT( * ) + - - COUNT( * ) AS col1
----
57
111

skipif mysql # not compatible
query II rowsort label-483
SELECT ALL ( - ( - + 57 ) ) AS col2, ( ( 63 ) ) + + + 48 + + - COUNT ( * ) + - - COUNT ( * ) AS col1
----
57
111

query I rowsort
SELECT - 22 + 96 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL + - COALESCE ( - + COUNT( - - ( 49 ) ), NULLIF ( ( + - 98 ), + 60 - + + 22 ) + + 34 + - 47 - - 83 ) * + 22 * 53 AS col1
----
1166

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + - COALESCE ( - + COUNT ( - - ( 49 ) ), NULLIF ( ( + - 98 ), + 60 - + + 22 ) + + 34 + - 47 - - 83 ) * + 22 * 53 AS col1
----
1166

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

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

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

query I rowsort
SELECT - 62 + - 40 - - 6 + 47 - 80 AS col1
----
-129

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-490
SELECT - - 93 DIV - MAX( 72 ), - 8 AS col2
----
-1
-8

skipif mysql # not compatible
query II rowsort label-490
SELECT - - 93 / - MAX ( 72 ), - 8 AS col2
----
-1
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-491
SELECT + 20 AS col1, - COUNT( * ) * + 58
----
20
-58

skipif mysql # not compatible
query II rowsort label-491
SELECT + 20 AS col1, - COUNT ( * ) * + 58
----
20
-58

query I rowsort
SELECT - - 29 + + 66 + 52 * + 86 AS col2
----
4567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-493
SELECT - + 59 DIV COUNT( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-493
SELECT - + 59 / COUNT ( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

query I rowsort
SELECT COALESCE ( + ( - + 82 ), 21 ) AS col1
----
-82

query I rowsort
SELECT ALL + 39 * 5
----
195

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

query I rowsort
SELECT NULLIF ( + 19, - 51 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL + COUNT( * ) * 18 + 95 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL + COUNT ( * ) * 18 + 95 AS col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT ALL + 66 * 69 + 3 DIV - 36
----
4554

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL + 66 * 69 + 3 / - 36
----
4554

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

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

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

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

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

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

query II rowsort
SELECT - 54 + + 23 AS col0, + ( + 23 )
----
-31
23

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT COUNT( DISTINCT - 52 ) * + ( 12 ) + 58
----
70

skipif mysql # not compatible
query I rowsort label-504
SELECT COUNT ( DISTINCT - 52 ) * + ( 12 ) + 58
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT + NULLIF ( + COALESCE ( + 45, + 52 ), + + COUNT( * ) ) * - 44 - - + 64 * + + 25
----
-380

skipif mysql # not compatible
query I rowsort label-505
SELECT + NULLIF ( + COALESCE ( + 45, + 52 ), + + COUNT ( * ) ) * - 44 - - + 64 * + + 25
----
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT + MAX( + 12 ) AS col0, 61 AS col1
----
12
61

skipif mysql # not compatible
query II rowsort label-506
SELECT + MAX ( + 12 ) AS col0, 61 AS col1
----
12
61

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT COUNT( ALL 36 )
----
1

skipif mysql # not compatible
query I rowsort label-507
SELECT COUNT ( ALL 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL 42 * - NULLIF ( + 48, + + MAX( + 79 ) )
----
-2016

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL 42 * - NULLIF ( + 48, + + MAX ( + 79 ) )
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT - MAX( + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-509
SELECT - MAX ( + 95 ) AS col0
----
-95

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-511
SELECT - 31 * + + 22 + + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT - 31 * + + 22 + + - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + 83 * - CASE + 41 WHEN 52 + 24 THEN - COUNT( * ) * - 24 END / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT + 83 * - CASE + 41 WHEN 52 + 24 THEN - COUNT ( * ) * - 24 END / + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-513
SELECT ALL - CAST( - + CAST( - - 4 AS SIGNED ) AS SIGNED ) * + 23 AS col0, - COUNT( - 30 ) col0
----
92
-1

skipif mysql # not compatible
query II rowsort label-513
SELECT ALL - CAST ( - + CAST ( - - 4 AS INTEGER ) AS INTEGER ) * + 23 AS col0, - COUNT ( - 30 ) col0
----
92
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT DISTINCT CAST( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT( * ) / + - 87 END, - - 28 ) + - - 42 ) AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT CAST ( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT ( * ) / + - 87 END, - - 28 ) + - - 42 ) AS INTEGER ) AS col1
----
-29

query II rowsort
SELECT DISTINCT 12 - - - 18 col0, - 39
----
-6
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT 41 - + MAX( DISTINCT 91 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT 41 - + MAX ( DISTINCT 91 ) AS col1
----
-50

query I rowsort
SELECT + 53 * + + 17 AS col2
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT + + 9 + + ( + + MAX( ALL 90 ) )
----
99

skipif mysql # not compatible
query I rowsort label-518
SELECT + + 9 + + ( + + MAX ( ALL 90 ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-519
SELECT + + CAST( - AVG ( ALL - 3 ) AS SIGNED ) * - 19 * - - 52 AS col1, 92 - + 56 * - + MAX( ALL + - ( + 28 ) ) - 90 * - + COUNT( * ) * - - 97
----
-2964
7254

skipif mysql # not compatible
query II rowsort label-519
SELECT + + CAST ( - AVG ( ALL - 3 ) AS INTEGER ) * - 19 * - - 52 AS col1, 92 - + 56 * - + MAX ( ALL + - ( + 28 ) ) - 90 * - + COUNT ( * ) * - - 97
----
-2964
7254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL CAST( NULL AS SIGNED ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL CAST ( NULL AS INTEGER ) / 78
----
NULL

query I rowsort
SELECT - - 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT + MAX( 63 ) + - 15
----
48

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT + MAX ( 63 ) + - 15
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL + 30 * - - 71 + - - 66 - + - 97 * + NULLIF ( 2, + CAST( - CAST( - - 52 AS SIGNED ) AS SIGNED ) * - 40 + - ( 6 ) * + 86 )
----
2390

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 30 * - - 71 + - - 66 - + - 97 * + NULLIF ( 2, + CAST ( - CAST ( - - 52 AS INTEGER ) AS INTEGER ) * - 40 + - ( 6 ) * + 86 )
----
2390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-524
SELECT ALL + 19 + CAST( NULL AS DECIMAL ) + + 38 + - 34 / + - 87 / - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + 19 + CAST ( NULL AS REAL ) + + 38 + - 34 / + - 87 / - - COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-525
SELECT - 47 DIV - 83, + 9 * - - 97 AS col1
----
0
873

skipif mysql # not compatible
query II rowsort label-525
SELECT - 47 / - 83, + 9 * - - 97 AS col1
----
0
873

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

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

query I rowsort
SELECT + + 63 * - - 89
----
5607

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-530
SELECT DISTINCT + 37 DIV - 70 + 14 + + - MIN( + + 84 ) * + + 64 AS col1
----
-5362

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + 37 / - 70 + 14 + + - MIN ( + + 84 ) * + + 64 AS col1
----
-5362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-531
SELECT ALL + - 86 DIV 21 + - 90 + - + COUNT( * ) AS col2, + COALESCE ( 52, + + COALESCE ( - 61, + ( - 39 ), COUNT( * ), + CAST( NULL AS SIGNED ) ) ) DIV - + 77 + + MIN( + + 96 )
----
-95
96

skipif mysql # not compatible
query II rowsort label-531
SELECT ALL + - 86 / 21 + - 90 + - + COUNT ( * ) AS col2, + COALESCE ( 52, + + COALESCE ( - 61, + ( - 39 ), COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) / - + 77 + + MIN ( + + 96 )
----
-95
96

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

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

query II rowsort
SELECT + 75, - 20 AS col2
----
75
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL + COUNT( - NULLIF ( 92, 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + COUNT ( - NULLIF ( 92, 47 ) )
----
1

query I rowsort
SELECT ALL - 35 * - 5 AS col2
----
175

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT - 53 * - + ( CAST( + 84 AS SIGNED ) ) * - ( - ( + 13 ) )
----
57876

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - 53 * - + ( CAST ( + 84 AS INTEGER ) ) * - ( - ( + 13 ) )
----
57876

query II rowsort
SELECT 23 + - + ( + 98 ) AS col0, 2 + - - 77
----
-75
79

query I rowsort
SELECT 81 * - 16 - 55 AS col0
----
-1351

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 29 * 69 * + - 41 * + MIN( DISTINCT + 32 ) AS col0
----
-2625312

skipif mysql # not compatible
query I rowsort label-541
SELECT 29 * 69 * + - 41 * + MIN ( DISTINCT + 32 ) AS col0
----
-2625312

query II rowsort
SELECT 46 col0, 80 AS col2
----
46
80

query I rowsort
SELECT ALL + 81 - + 41
----
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT DISTINCT 30 DIV - - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT 30 / - - 87 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT 74 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT 74 / - - 86
----
0

query I rowsort
SELECT ALL 64 * - 21 AS col0
----
-1344

query I rowsort
SELECT 51 col1
----
51

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

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

query II rowsort
SELECT - 81 * - 69 + + 73 AS col2, ( + + 41 ) * + 46 AS col2
----
5662
1886

query I rowsort
SELECT 50 * - + 30
----
-1500

query I rowsort
SELECT - - 53 AS col2
----
53

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

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

query I rowsort
SELECT 30 * + 39 * - 93 * - - 55 AS col0
----
-5984550

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL CASE - COALESCE ( 57, - + 81, + 46 + - 13 ) WHEN - 0 THEN NULL ELSE + 98 END + + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL CASE - COALESCE ( 57, - + 81, + 46 + - 13 ) WHEN - 0 THEN NULL ELSE + 98 END + + - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT - 40 - 7
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT 9 + - 51 DIV - + 19
----
11

skipif mysql # not compatible
query I rowsort label-559
SELECT 9 + - 51 / - + 19
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT - 65, - 21 - COUNT( * ) AS col1
----
-65
-22

skipif mysql # not compatible
query II rowsort label-560
SELECT - 65, - 21 - COUNT ( * ) AS col1
----
-65
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-561
SELECT DISTINCT 41 DIV + COUNT( 58 ), - 43 AS col2
----
41
-43

skipif mysql # not compatible
query II rowsort label-561
SELECT DISTINCT 41 / + COUNT ( 58 ), - 43 AS col2
----
41
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT COUNT( * ) + + - 95 - - ( - - 88 )
----
-6

skipif mysql # not compatible
query I rowsort label-562
SELECT COUNT ( * ) + + - 95 - - ( - - 88 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-563
SELECT ALL + 15 * ( + - CASE - + CAST( - - 67 AS DECIMAL ) WHEN - COUNT( * ) * - 90 + + COUNT( - - 23 ) THEN NULL ELSE - - 99 END ) + 44 AS col2, 86 - + 63 + + + 16
----
-1441
39

skipif mysql # not compatible
query II rowsort label-563
SELECT ALL + 15 * ( + - CASE - + CAST ( - - 67 AS REAL ) WHEN - COUNT ( * ) * - 90 + + COUNT ( - - 23 ) THEN NULL ELSE - - 99 END ) + 44 AS col2, 86 - + 63 + + + 16
----
-1441
39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-565
SELECT 52 * + 41 - - 8 + + 88 + + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1, + 13 * MIN( DISTINCT - 64 ) col2
----
NULL
-832

skipif mysql # not compatible
query II rowsort label-565
SELECT 52 * + 41 - - 8 + + 88 + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, + 13 * MIN ( DISTINCT - 64 ) col2
----
NULL
-832

query I rowsort
SELECT ALL - 46 - + - 90
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT ALL CASE + CAST( 62 AS SIGNED ) WHEN 43 * 82 * + 22 + + 92 + + 98 THEN + + COUNT( * ) * - - CAST( NULL AS SIGNED ) - + - NULLIF ( + - 50, + - 68 ) + - 53 * ( - 46 ) * - NULLIF ( ( + 96 ), 2 + - - 70 * + 23 ) * + - 55 + 22 + - 58 + - + 74 WHEN COUNT( * ) + NULLIF ( COUNT( * ), + - ( 86 ) ) - 52 THEN + ( + + MAX( - ( 89 ) ) ) ELSE - 71 END * 75 col2
----
-5325

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL CASE + CAST ( 62 AS INTEGER ) WHEN 43 * 82 * + 22 + + 92 + + 98 THEN + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) - + - NULLIF ( + - 50, + - 68 ) + - 53 * ( - 46 ) * - NULLIF ( ( + 96 ), 2 + - - 70 * + 23 ) * + - 55 + 22 + - 58 + - + 74 WHEN COUNT ( * ) + NULLIF ( COUNT ( * ), + - ( 86 ) ) - 52 THEN + ( + + MAX ( - ( 89 ) ) ) ELSE - 71 END * 75 col2
----
-5325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT 49 * + ( - NULLIF ( - ( + 73 ), CASE ( - - COUNT( * ) ) WHEN - COUNT( * ) * + COUNT( * ) + 55 + 25 + - 22 + + 96 / - + 48 THEN + + COALESCE ( 32, + 29 * - 40 ) * + 1 / - 37 ELSE NULL END + + 48 ) )
----
3577

skipif mysql # not compatible
query I rowsort label-570
SELECT 49 * + ( - NULLIF ( - ( + 73 ), CASE ( - - COUNT ( * ) ) WHEN - COUNT ( * ) * + COUNT ( * ) + 55 + 25 + - 22 + + 96 / - + 48 THEN + + COALESCE ( 32, + 29 * - 40 ) * + 1 / - 37 ELSE NULL END + + 48 ) )
----
3577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL 49 * - - CASE - 69 WHEN 2 + - + 71 THEN NULL WHEN - + 68 THEN + - CASE - 74 WHEN 27 * + 36 THEN NULL WHEN + - 73 + + - 89 THEN NULL ELSE + + ( COUNT( * ) ) END * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL 49 * - - CASE - 69 WHEN 2 + - + 71 THEN NULL WHEN - + 68 THEN + - CASE - 74 WHEN 27 * + 36 THEN NULL WHEN + - 73 + + - 89 THEN NULL ELSE + + ( COUNT ( * ) ) END * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 90 AS col2, 28 AS col0
----
-90
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-573
SELECT ALL - 49 - + 5 AS col2, - 66 * - MAX( - CASE + 17 WHEN + ( 12 ) / - + 60 + - 42 THEN NULL WHEN - - 3 THEN - - CAST( - 48 AS SIGNED ) END ) AS col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-573
SELECT ALL - 49 - + 5 AS col2, - 66 * - MAX ( - CASE + 17 WHEN + ( 12 ) / - + 60 + - 42 THEN NULL WHEN - - 3 THEN - - CAST ( - 48 AS INTEGER ) END ) AS col1
----
-54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT COUNT( * ) * + 52 * + 8 AS col1
----
416

skipif mysql # not compatible
query I rowsort label-574
SELECT COUNT ( * ) * + 52 * + 8 AS col1
----
416

query I rowsort
SELECT 74 * 3
----
222

query I rowsort
SELECT 64 * + + 61
----
3904

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT DISTINCT 0 DIV 33 * 98
----
0

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT 0 / 33 * 98
----
0

query II rowsort
SELECT ALL - 9 AS col2, - COALESCE ( + + 68, - + 50 * + 38 ) col0
----
-9
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT NULLIF ( - ( + CASE 63 WHEN + 38 + - 22 * - CASE 19 WHEN - AVG ( 16 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 96 ELSE - 37 + 0 END + - 13 + - + 88 * - 74 - + ( 81 ) - - 50 * - COUNT( * ) - - 53 THEN 84 WHEN - COALESCE ( - COALESCE ( 75, - 35 ), 1 / + COALESCE ( - 71, - + 65 + + 12 + 20 * + + 68 ) / + 94 - - 5 + - 74 + 23 ) + 52 THEN COUNT( * ) * + 62 WHEN + AVG ( 79 ) THEN 90 + + 9 * - COUNT( * ) ELSE AVG ( - 31 ) END ), CAST( NULL AS SIGNED ) ) - + 5 * - CASE 96 * - ( 74 ) WHEN COUNT( * ) THEN COUNT( DISTINCT + NULLIF ( 67, - 72 * - 38 ) ) + - 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT NULLIF ( - ( + CASE 63 WHEN + 38 + - 22 * - CASE 19 WHEN - AVG ( 16 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 96 ELSE - 37 + 0 END + - 13 + - + 88 * - 74 - + ( 81 ) - - 50 * - COUNT ( * ) - - 53 THEN 84 WHEN - COALESCE ( - COALESCE ( 75, - 35 ), 1 / + COALESCE ( - 71, - + 65 + + 12 + 20 * + + 68 ) / + 94 - - 5 + - 74 + 23 ) + 52 THEN COUNT ( * ) * + 62 WHEN + AVG ( 79 ) THEN 90 + + 9 * - COUNT ( * ) ELSE AVG ( - 31 ) END ), CAST ( NULL AS INTEGER ) ) - + 5 * - CASE 96 * - ( 74 ) WHEN COUNT ( * ) THEN COUNT ( DISTINCT + NULLIF ( 67, - 72 * - 38 ) ) + - 8 END AS col2
----
NULL

query I rowsort
SELECT ALL + 14 * - 13
----
-182

query I rowsort
SELECT ( - 69 ) * - 51 AS col1
----
3519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT + 48 * + 73 / + CAST( NULL AS SIGNED ) + + - 66 - - ( 19 ) * + - 53 + - + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT + 48 * + 73 / + CAST ( NULL AS INTEGER ) + + - 66 - - ( 19 ) * + - 53 + - + 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT + 5 * + 91 * - - COUNT( * ) * - - 50 * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + 5 * + 91 * - - COUNT ( * ) * - - 50 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT ALL - 12 + - + CAST( 82 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - 12 + - + CAST ( 82 AS INTEGER ) AS col0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT 19 DIV + ( - 90 ) * 37
----
0

skipif mysql # not compatible
query I rowsort label-585
SELECT 19 / + ( - 90 ) * 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT + 85 * + ( + CAST( NULL AS SIGNED ) ) + - 66 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-587
SELECT + CASE - + 66 WHEN + 77 THEN NULL ELSE + + CASE - 97 WHEN + 14 + - + 81 THEN + 84 WHEN + 42 THEN - + COUNT( * ) WHEN - COUNT( * ) + - + 32 THEN NULL END + ( - CAST( NULL AS SIGNED ) ) END AS col1, MAX( 45 ) + + ( - + COUNT( * ) ) - - SUM( ALL + CAST( + 23 AS SIGNED ) ) AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-587
SELECT + CASE - + 66 WHEN + 77 THEN NULL ELSE + + CASE - 97 WHEN + 14 + - + 81 THEN + 84 WHEN + 42 THEN - + COUNT ( * ) WHEN - COUNT ( * ) + - + 32 THEN NULL END + ( - CAST ( NULL AS INTEGER ) ) END AS col1, MAX ( 45 ) + + ( - + COUNT ( * ) ) - - SUM ( ALL + CAST ( + 23 AS INTEGER ) ) AS col0
----
NULL
67

query I rowsort
SELECT ALL - 63 + + - NULLIF ( 82, - 39 )
----
-145

query I rowsort
SELECT + 88 + + 45 * - 5 AS col1
----
-137

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT ( - - 32 ) DIV + - 21
----
-1

skipif mysql # not compatible
query I rowsort label-591
SELECT ( - - 32 ) / + - 21
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT DISTINCT + ( + + 10 ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT + ( + + 10 ) / + + 67
----
0

query I rowsort
SELECT 75 + + 98 AS col0
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-595
SELECT SUM( - - CAST( 6 AS SIGNED ) ) DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-595
SELECT SUM ( - - CAST ( 6 AS INTEGER ) ) / + + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT - 38 + - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-596
SELECT - 38 + - + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + 11 + COUNT( * ) + + 40 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + 11 + COUNT ( * ) + + 40 AS col1
----
52

query I rowsort
SELECT 67 + 65 AS col0
----
132

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT CASE + 92 WHEN 54 + + - 55 THEN NULL WHEN + 49 THEN CAST( NULL AS SIGNED ) / + 23 * - ( + AVG ( 46 ) ) END * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT CASE + 92 WHEN 54 + + - 55 THEN NULL WHEN + 49 THEN CAST ( NULL AS INTEGER ) / + 23 * - ( + AVG ( 46 ) ) END * CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 90 col0, - 4 * + + 54 AS col0
----
90
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-602
SELECT DISTINCT COUNT( * ) * 12, - 29 AS col0
----
12
-29

skipif mysql # not compatible
query II rowsort label-602
SELECT DISTINCT COUNT ( * ) * 12, - 29 AS col0
----
12
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT DISTINCT + 8 - - - COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
8

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

query I rowsort
SELECT ALL + NULLIF ( 0, + + 2 - - 67 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT DISTINCT 53 - - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT 53 - - COUNT ( * ) AS col0
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT ALL CASE - 49 WHEN + COUNT( * ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN 76 THEN + COALESCE ( - 8, - 70 ) * + + CAST( NULL AS SIGNED ) * + 91 + - - 31 * ( - 62 ) / + - 77 + + 54 + - - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL CASE - 49 WHEN + COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 76 THEN + COALESCE ( - 8, - 70 ) * + + CAST ( NULL AS INTEGER ) * + 91 + - - 31 * ( - 62 ) / + - 77 + + 54 + - - 12 END
----
NULL

query I rowsort
SELECT - 37 - - 30 AS col2
----
-7

query I rowsort
SELECT - 55 * 71 * + 80
----
-312400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-610
SELECT 8 DIV + + CAST( - NULLIF ( - 70, + + COUNT( + - 86 ) ) AS SIGNED ) + + 2
----
2

skipif mysql # not compatible
query I rowsort label-610
SELECT 8 / + + CAST ( - NULLIF ( - 70, + + COUNT ( + - 86 ) ) AS INTEGER ) + + 2
----
2

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

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

query I rowsort
SELECT + ( - - ( - 46 ) ) * + 78 col1
----
-3588

query I rowsort
SELECT ALL 19 * 50 AS col1
----
950

query I rowsort
SELECT ALL 54 * + - ( + NULLIF ( + 4, + 31 ) ) AS col1
----
-216

query I rowsort
SELECT + CASE + + 99 WHEN - 39 THEN CASE + + 96 WHEN - AVG ( ALL - - 54 ) THEN NULL WHEN - 4 THEN NULL WHEN - 51 * 82 THEN + - 13 ELSE NULL END ELSE - 96 + - 99 END - - + 83 AS col1
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT + ( + 38 ) DIV + 46 + + COALESCE ( - NULLIF ( + 5, - 98 ), 19, 0 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-616
SELECT + ( + 38 ) / + 46 + + COALESCE ( - NULLIF ( + 5, - 98 ), 19, 0 ) AS col0
----
-5

query I rowsort
SELECT ALL 59 * 31
----
1829

query I rowsort
SELECT + 24 + - + 50
----
-26

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

skipif mysql # not compatible
query I rowsort label-619
SELECT + 41 / COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT COUNT( * ) * + 63 + + 58 * + 73 * 95 AS col1
----
402293

skipif mysql # not compatible
query I rowsort label-620
SELECT COUNT ( * ) * + 63 + + 58 * + 73 * 95 AS col1
----
402293

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT MIN( ALL + 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-621
SELECT MIN ( ALL + 91 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT - ( - 91 ) * - MIN( ALL + - 3 ) * + + CAST( + - ( + 56 ) AS SIGNED )
----
-15288

skipif mysql # not compatible
query I rowsort label-622
SELECT - ( - 91 ) * - MIN ( ALL + - 3 ) * + + CAST ( + - ( + 56 ) AS INTEGER )
----
-15288

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL 0 * COUNT( * ) * - - 99 + + 87 + 4 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL 0 * COUNT ( * ) * - - 99 + + 87 + 4 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL + - COALESCE ( - COUNT( + + 82 ), - + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + - COALESCE ( - COUNT ( + + 82 ), - + 52 )
----
1

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

query I rowsort
SELECT ALL - 0 + - 91 * - - 33 AS col2
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL + + 91 * MIN( + 78 )
----
7098

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + + 91 * MIN ( + 78 )
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL CASE + 13 WHEN + 90 THEN NULL WHEN - 35 * - + 56 THEN + + 33 / + 53 ELSE NULL END * - + 31 + + MAX( ALL - 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL CASE + 13 WHEN + 90 THEN NULL WHEN - 35 * - + 56 THEN + + 33 / + 53 ELSE NULL END * - + 31 + + MAX ( ALL - 12 ) AS col0
----
NULL

query II rowsort
SELECT - - 20 * - + 97 AS col1, 83 AS col2
----
-1940
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL + - CAST( - 65 AS SIGNED ) * + + MIN( DISTINCT 8 ) AS col2
----
520

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + - CAST ( - 65 AS INTEGER ) * + + MIN ( DISTINCT 8 ) AS col2
----
520

query I rowsort
SELECT - 94 col2
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT - 75 - 97 * + 0 * - 56 - + COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-633
SELECT - 75 - 97 * + 0 * - 56 - + COUNT ( * ) col1
----
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL - COALESCE ( + 34, - CAST( + 1 AS SIGNED ) - + 31, - 28 * 41 ) - 8
----
-42

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - COALESCE ( + 34, - CAST ( + 1 AS INTEGER ) - + 31, - 28 * 41 ) - 8
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT ALL - - MIN( - 76 ) DIV 93 DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - - MIN ( - 76 ) / 93 / - 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT ALL + 24 - + 93 + + 42 * - 78 * + + 39 * - COUNT( * ) + + + COUNT( * ), - 54 * + 72 * + 35 AS col1
----
127696
-136080

skipif mysql # not compatible
query II rowsort label-637
SELECT ALL + 24 - + 93 + + 42 * - 78 * + + 39 * - COUNT ( * ) + + + COUNT ( * ), - 54 * + 72 * + 35 AS col1
----
127696
-136080

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-639
SELECT - + ( - 96 ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT - + ( - 96 ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT + 96 + - - SUM( ALL - 56 ) + + MIN( + 14 )
----
54

skipif mysql # not compatible
query I rowsort label-641
SELECT + 96 + - - SUM ( ALL - 56 ) + + MIN ( + 14 )
----
54

query I rowsort
SELECT - 8 + - - 94
----
86

query I rowsort
SELECT ALL + 22 * - 88 AS col2
----
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT - COUNT( + 36 ) + - 18 col2, 86
----
-19
86

skipif mysql # not compatible
query II rowsort label-644
SELECT - COUNT ( + 36 ) + - 18 col2, 86
----
-19
86

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT ALL + 22 AS col2, + 76 * - + COUNT( * ) AS col0
----
22
-76

skipif mysql # not compatible
query II rowsort label-645
SELECT ALL + 22 AS col2, + 76 * - + COUNT ( * ) AS col0
----
22
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-646
SELECT COUNT( * ) DIV COUNT( * ) + 92
----
93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT ALL + 29 AS col0, COALESCE ( + MIN( ALL + 80 ), - 5 - - COUNT( * ), + COUNT( * ) ) AS col2
----
29
80

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL + 29 AS col0, COALESCE ( + MIN ( ALL + 80 ), - 5 - - COUNT ( * ), + COUNT ( * ) ) AS col2
----
29
80

query I rowsort
SELECT ALL + 14 * + NULLIF ( - - 17, 31 )
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT DISTINCT 9 DIV 99 + + + ( - - 49 ) - CASE + 22 WHEN - 25 THEN - + 98 WHEN - 89 THEN NULL ELSE 79 * + 42 END DIV - 4
----
878

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT 9 / 99 + + + ( - - 49 ) - CASE + 22 WHEN - 25 THEN - + 98 WHEN - 89 THEN NULL ELSE 79 * + 42 END / - 4
----
878

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT + 24 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT + 24 / - 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT DISTINCT 47 DIV + - 76 * COUNT( + 32 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT 47 / + - 76 * COUNT ( + 32 ) col1
----
0

query II rowsort
SELECT ALL 27 * - 59 + 40, + 74 AS col1
----
-1553
74

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT + 39 DIV - ( + 90 ) + 99
----
99

skipif mysql # not compatible
query I rowsort label-655
SELECT + 39 / - ( + 90 ) + 99
----
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT + ( SUM( ALL + 16 ) ), ( - - 87 ) AS col1
----
16
87

skipif mysql # not compatible
query II rowsort label-657
SELECT + ( SUM ( ALL + 16 ) ), ( - - 87 ) AS col1
----
16
87

query I rowsort
SELECT ALL 47 * - - 60 + - 31 + - - 44 AS col1
----
2833

onlyif mysql # aggregate syntax: 
query II rowsort label-659
SELECT ALL ( 70 ) * + - 46 col1, 7 * NULLIF ( - + 72, NULLIF ( + 86, + ( - 10 ) ) / - 39 * COUNT( ALL - 45 ) )
----
-3220
-504

skipif mysql # not compatible
query II rowsort label-659
SELECT ALL ( 70 ) * + - 46 col1, 7 * NULLIF ( - + 72, NULLIF ( + 86, + ( - 10 ) ) / - 39 * COUNT ( ALL - 45 ) )
----
-3220
-504

query I rowsort
SELECT ALL - 78 * ( + 87 ) + - + ( 40 ) + - + 29
----
-6855

query II rowsort
SELECT + - ( + 7 ) * - - 29 * + 1 AS col1, - 53
----
-203
-53

query I rowsort
SELECT - - 55 + - 47 AS col2
----
8

query I rowsort
SELECT DISTINCT + - 74 * + 5 + + - 31
----
-401

query I rowsort
SELECT - NULLIF ( 54, - - 76 + - - 8 * - 48 * - 71 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + 6 + 11 - - 31 * - COALESCE ( 13, + COUNT( * ) ) col0
----
-386

skipif mysql # not compatible
query I rowsort label-665
SELECT + 6 + 11 - - 31 * - COALESCE ( 13, + COUNT ( * ) ) col0
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL - + 75 * - + COUNT( * ) + - 94 + 22 * - 39 * + 4 + - - 67 + - + 29 * 43 - + - 87 col0
----
-4544

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL - + 75 * - + COUNT ( * ) + - 94 + 22 * - 39 * + 4 + - - 67 + - + 29 * 43 - + - 87 col0
----
-4544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + 20 + COUNT( * ) - MIN( DISTINCT 19 )
----
2

skipif mysql # not compatible
query I rowsort label-668
SELECT + 20 + COUNT ( * ) - MIN ( DISTINCT 19 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-669
SELECT + CAST( - - CAST( - - 20 AS SIGNED ) AS SIGNED ) + + 68
----
88

skipif mysql # not compatible
query I rowsort label-669
SELECT + CAST ( - - CAST ( - - 20 AS INTEGER ) AS INTEGER ) + + 68
----
88

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-671
SELECT ALL - 63 * + CAST( 82 AS SIGNED ) + + - COALESCE ( - 42, + CAST( - - COUNT( DISTINCT 36 ) AS SIGNED ) ) - - 32 AS col2
----
-5092

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL - 63 * + CAST ( 82 AS INTEGER ) + + - COALESCE ( - 42, + CAST ( - - COUNT ( DISTINCT 36 ) AS INTEGER ) ) - - 32 AS col2
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL - 70 * + - COUNT( * ) + 18 + - - 82 * - + 20
----
-1552

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL - 70 * + - COUNT ( * ) + 18 + - - 82 * - + 20
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL + SUM( DISTINCT + + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL + SUM ( DISTINCT + + 42 ) AS col1
----
42

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

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

query II rowsort
SELECT - 84 AS col2, NULLIF ( - 93, - 39 )
----
-84
-93

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

query I rowsort
SELECT 7 + - + 53
----
-46

query I rowsort
SELECT ALL - + 54 * - - 91 col0
----
-4914

query I rowsort
SELECT DISTINCT - 8 * - + 91
----
728

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

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

query I rowsort
SELECT 15 col2
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-682
SELECT DISTINCT + 45 + 78 / - + COALESCE ( 40, 40 * + 81 ) - + 48 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT + 45 + 78 / - + COALESCE ( 40, 40 * + 81 ) - + 48 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 91 + + 15 - 37 AS col1
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT ALL + 27 + + 97 * - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) * - 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + 27 + + 97 * - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - 61 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 55 + - + 57
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT 82 DIV - 29 + 42
----
40

skipif mysql # not compatible
query I rowsort label-686
SELECT 82 / - 29 + 42
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT - 46 + - COUNT( + 96 ) + + COUNT( * ) * - - 64
----
17

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT - 46 + - COUNT ( + 96 ) + + COUNT ( * ) * - - 64
----
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT + ( 18 ) DIV + 71 - 89 - 33
----
-122

skipif mysql # not compatible
query I rowsort label-689
SELECT + ( 18 ) / + 71 - 89 - 33
----
-122

query I rowsort
SELECT DISTINCT - 1 * ( + - 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT - NULLIF ( - 46, + 20 - + - ( + 11 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL - 83 * - COALESCE ( - - COUNT( + 17 ), 39 ) * + 62 * 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - 83 * - COALESCE ( - - COUNT ( + 17 ), 39 ) * + 62 * 0 * COUNT ( * )
----
0

query I rowsort
SELECT 53 + - 37
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + MAX( + - 13 ) * + - 82 * - 19 * - + 40 AS col0
----
810160

skipif mysql # not compatible
query I rowsort label-694
SELECT + MAX ( + - 13 ) * + - 82 * - 19 * - + 40 AS col0
----
810160

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT - NULLIF ( - - COUNT( * ), AVG ( + 32 ) * - - 74 * 21 ) * + ( - 59 ) + - 30 AS col0, + 40
----
29
40

skipif mysql # not compatible
query II rowsort label-697
SELECT - NULLIF ( - - COUNT ( * ), AVG ( + 32 ) * - - 74 * 21 ) * + ( - 59 ) + - 30 AS col0, + 40
----
29
40

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

query I rowsort
SELECT ALL + 99 * - 28 * - 64 AS col0
----
177408

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL - 88 * - COUNT( * ) * - 68 - - 42
----
-5942

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL - 88 * - COUNT ( * ) * - 68 - - 42
----
-5942

query I rowsort
SELECT - - 29 col2
----
29

query I rowsort
SELECT 32 + 60 AS col2
----
92

query I rowsort
SELECT ALL 76 * - 97
----
-7372

query I rowsort
SELECT 22 * - 81 * + + 46 col1
----
-81972

query I rowsort
SELECT - 64 * - 25
----
1600

query I rowsort
SELECT ALL 79 + + 98
----
177

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

query II rowsort
SELECT ALL 23, 44 col2
----
23
44

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

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

query I rowsort
SELECT 48 + - 14 AS col1
----
34

query I rowsort
SELECT 83 - 83
----
0

query I rowsort
SELECT ALL 36 * - 50 AS col1
----
-1800

query I rowsort
SELECT ( + 16 ) + - + 37
----
-21

query I rowsort
SELECT 93 + - 30
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL - MIN( - 55 ) + 4 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - MIN ( - 55 ) + 4 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL + MIN( DISTINCT - - 85 ) + - 41 + + - 58 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL + MIN ( DISTINCT - - 85 ) + - 41 + + - 58 AS col2
----
-14

query I rowsort
SELECT ALL - 54 col0
----
-54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-719
SELECT DISTINCT - 25 AS col1, - COUNT( * ) + - 32
----
-25
-33

skipif mysql # not compatible
query II rowsort label-719
SELECT DISTINCT - 25 AS col1, - COUNT ( * ) + - 32
----
-25
-33

query I rowsort
SELECT 99 * + + 35
----
3465

query I rowsort
SELECT 2 + - 96 + + - 8
----
-102

query I rowsort
SELECT 79 + 74 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT ( + ( - ( 35 ) ) ) DIV - + 57 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-723
SELECT ( + ( - ( 35 ) ) ) / - + 57 * 40 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT ALL + 44 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL + 44 / + 86
----
0

query I rowsort
SELECT - 5 * - 28 * + 64 + + - 78 AS col2
----
8882

onlyif mysql # aggregate syntax: 
query II rowsort label-726
SELECT 56, - MAX( - 84 ) * 18 * + 70 * - 35 AS col0
----
56
-3704400

skipif mysql # not compatible
query II rowsort label-726
SELECT 56, - MAX ( - 84 ) * 18 * + 70 * - 35 AS col0
----
56
-3704400

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT 74 * - 38 + - - COUNT( * ) + - + 55
----
-2866

skipif mysql # not compatible
query I rowsort label-727
SELECT 74 * - 38 + - - COUNT ( * ) + - + 55
----
-2866

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT DISTINCT + + 17 * + NULLIF ( - COUNT( * ), + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT + + 17 * + NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - + CAST ( + 74 AS INTEGER ) AS col1
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT + COUNT( * ) + - - 30 * - 57 AS col2
----
-1709

skipif mysql # not compatible
query I rowsort label-731
SELECT + COUNT ( * ) + - - 30 * - 57 AS col2
----
-1709

query I rowsort
SELECT ALL - + 79 * - + 56
----
4424

query I rowsort
SELECT ALL - 92 * - 73 AS col2
----
6716

query II rowsort
SELECT ALL + + 99, + 69 * + - 82 + - NULLIF ( - 63, + 2 ) AS col0
----
99
-5595

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

query II rowsort
SELECT - 21 * + ( 51 ) + - 34 + + 74 AS col1, - 84
----
-1031
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-737
SELECT COUNT( * ) * - 92 + COALESCE ( 21, + 32 / - 48 / 61 - - 42, - 7 * + - NULLIF ( - 11, 4 ), 83, + COALESCE ( + + COUNT( * ), - + 73 ) * - 80 ) - CAST( NULL AS SIGNED ), + 21 + + - COUNT( * ) * - 1 - 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-737
SELECT COUNT ( * ) * - 92 + COALESCE ( 21, + 32 / - 48 / 61 - - 42, - 7 * + - NULLIF ( - 11, 4 ), 83, + COALESCE ( + + COUNT ( * ), - + 73 ) * - 80 ) - CAST ( NULL AS INTEGER ), + 21 + + - COUNT ( * ) * - 1 - 11 AS col1
----
NULL
11

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

query II rowsort
SELECT ALL + - 65 AS col0, + 34 AS col2
----
-65
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT - 48 DIV - 4 + - - 55 - 39 * COUNT( * ) * + 65 * 58 + 52 + 0
----
-146911

skipif mysql # not compatible
query I rowsort label-740
SELECT - 48 / - 4 + - - 55 - 39 * COUNT ( * ) * + 65 * 58 + 52 + 0
----
-146911

query I rowsort
SELECT + - 81 + - + 86
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT - COUNT( ALL 53 ) * + - ( 33 ) + - - 86
----
119

skipif mysql # not compatible
query I rowsort label-742
SELECT - COUNT ( ALL 53 ) * + - ( 33 ) + - - 86
----
119

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-744
SELECT - MAX( DISTINCT + + 77 ) * 10 + - 37, CAST( NULL AS SIGNED ) * - 82 / + - 23 + - COALESCE ( + - MAX( + 44 ), MIN( DISTINCT + 14 ) ) AS col1
----
-807
NULL

skipif mysql # not compatible
query II rowsort label-744
SELECT - MAX ( DISTINCT + + 77 ) * 10 + - 37, CAST ( NULL AS INTEGER ) * - 82 / + - 23 + - COALESCE ( + - MAX ( + 44 ), MIN ( DISTINCT + 14 ) ) AS col1
----
-807
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL + ( COALESCE ( + NULLIF ( + + 63, COUNT( * ) ), + - 36 ) ) + + 47 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + ( COALESCE ( + NULLIF ( + + 63, COUNT ( * ) ), + - 36 ) ) + + 47 AS col0
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT ALL - 27 + - 69 col2, ( - COUNT( * ) ) * 70
----
-96
-70

skipif mysql # not compatible
query II rowsort label-746
SELECT ALL - 27 + - 69 col2, ( - COUNT ( * ) ) * 70
----
-96
-70

query I rowsort
SELECT ALL 49 + - 7
----
42

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT - COUNT( * ) DIV COALESCE ( + + 44, 24 ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-750
SELECT - COUNT ( * ) / COALESCE ( + + 44, 24 ) * - + COUNT ( * )
----
0

query I rowsort
SELECT ALL 37 * + 61 * + 81
----
182817

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT 54 + - ( - 55 ) + 12 * + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT 54 + - ( - 55 ) + 12 * + COUNT ( * )
----
121

query II rowsort
SELECT 86 AS col1, - 8 AS col0
----
86
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL MAX( DISTINCT 95 ) + + 94 + - COUNT( * ) + 11 + - 29 * + 0 * - ( + 17 ) + + + 81 * + + 9 * + 27 * 1 AS col0
----
19882

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL MAX ( DISTINCT 95 ) + + 94 + - COUNT ( * ) + 11 + - 29 * + 0 * - ( + 17 ) + + + 81 * + + 9 * + 27 * 1 AS col0
----
19882

query I rowsort
SELECT + ( + + 97 ) * 79 + + 85 * + + 71 + 4 + + + 90
----
13792

query I rowsort
SELECT ALL ( 95 ) col0
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + MAX( DISTINCT 63 ) * + + 98
----
6174

skipif mysql # not compatible
query I rowsort label-758
SELECT + MAX ( DISTINCT 63 ) * + + 98
----
6174

onlyif mysql # aggregate syntax: 
query II rowsort label-759
SELECT ALL 44 AS col0, 78 * + CASE - 65 WHEN + SUM( DISTINCT - 69 ) THEN + + CASE + 59 WHEN 0 THEN NULL ELSE - 26 * + + 80 END END
----
44
NULL

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL 44 AS col0, 78 * + CASE - 65 WHEN + SUM ( DISTINCT - 69 ) THEN + + CASE + 59 WHEN 0 THEN NULL ELSE - 26 * + + 80 END END
----
44
NULL

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

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

query I rowsort
SELECT ALL + 29 - - ( COALESCE ( - 21, 32, - 21 ) ) + + ( + 44 ) col1
----
52

query I rowsort
SELECT + 41 * - NULLIF ( - - 74, - + 99 + - 92 ) AS col0
----
-3034

query II rowsort
SELECT ALL 55, ( + + 88 ) AS col2
----
55
88

onlyif mysql # DIV for integer division: 
query II rowsort label-764
SELECT ALL 10 AS col1, + 51 DIV 53 AS col1
----
10
0

skipif mysql # not compatible
query II rowsort label-764
SELECT ALL 10 AS col1, + 51 / 53 AS col1
----
10
0

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

skipif mysql # not compatible
query I rowsort label-765
SELECT ( + SUM ( + + 33 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT 20 DIV + + 80 + - 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-766
SELECT 20 / + + 80 + - 38 AS col2
----
-38

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

query I rowsort
SELECT + - 93 * 1 AS col1
----
-93

query I rowsort
SELECT - - 87 * 3 + 6 - - 54 * - 74 AS col1
----
-3729

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + - NULLIF ( - 90, + + 28 * - 36 * + COUNT( ALL 20 ) * + + COUNT( * ) + SUM( - - 81 ) + 94 * 42 + 52 + - + 60 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-770
SELECT + - NULLIF ( - 90, + + 28 * - 36 * + COUNT ( ALL 20 ) * + + COUNT ( * ) + SUM ( - - 81 ) + 94 * 42 + 52 + - + 60 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL + + CASE + CASE - 40 WHEN - 52 THEN NULL ELSE - 22 END WHEN - + 27 THEN + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL + + CASE + CASE - 40 WHEN - 52 THEN NULL ELSE - 22 END WHEN - + 27 THEN + COUNT ( * ) END col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-773
SELECT - - 22 DIV + + 96 * - 94 - + COUNT( * ) - CASE - MIN( + 44 ) WHEN - 20 * - 95 + + 84 THEN - 13 WHEN + 33 THEN + ( - 36 ) ELSE + 73 END * - ( - CAST( - ( + 91 ) AS SIGNED ) )
----
6642

skipif mysql # not compatible
query I rowsort label-773
SELECT - - 22 / + + 96 * - 94 - + COUNT ( * ) - CASE - MIN ( + 44 ) WHEN - 20 * - 95 + + 84 THEN - 13 WHEN + 33 THEN + ( - 36 ) ELSE + 73 END * - ( - CAST ( - ( + 91 ) AS INTEGER ) )
----
6642

query I rowsort
SELECT ALL 9 * 96
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-775
SELECT NULLIF ( 21, - ( SUM( + - 1 ) ) DIV - 21 ) AS col2, 95 DIV 77 col1
----
21
1

skipif mysql # not compatible
query II rowsort label-775
SELECT NULLIF ( 21, - ( SUM ( + - 1 ) ) / - 21 ) AS col2, 95 / 77 col1
----
21
1

query I rowsort
SELECT + + 66 * 22 col0
----
1452

query I rowsort
SELECT + - 91 * - - 57 AS col0
----
-5187

query I rowsort
SELECT + COALESCE ( - - 96, + 62 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL - + 95 * + - MIN( ALL 87 ) + + 43
----
8308

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - + 95 * + - MIN ( ALL 87 ) + + 43
----
8308

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT - + 11 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT - + 11 / + 44
----
0

query I rowsort
SELECT ALL 47 * + - 52 + ( 30 ) + 81 AS col0
----
-2333

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

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

query II rowsort
SELECT + + 85 AS col0, 55 * 43 + - 59 + - 58
----
85
2248

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL COUNT( - 6 ) * 81 + - 19 * + 26 AS col1
----
-413

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL COUNT ( - 6 ) * 81 + - 19 * + 26 AS col1
----
-413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT - CASE + 97 WHEN + CAST( - - 31 AS SIGNED ) THEN - + CAST( + - 93 AS SIGNED ) * - 54 END * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT - CASE + 97 WHEN + CAST ( - - 31 AS INTEGER ) THEN - + CAST ( + - 93 AS INTEGER ) * - 54 END * - 31
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - - 11
----
946

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT 95 * - + NULLIF ( - 59, + + MIN( ALL + - 96 ) ) * - - CASE - COUNT( * ) WHEN + 78 * MIN( DISTINCT 80 ) * - 13 THEN - 69 + - COUNT( * ) - - 75 * + 71 * + - 3 / + ( - + AVG ( - + 23 ) ) + - COUNT( * ) * - 53 - - 94 + + - 78 * - 60 + - - ( - + 97 ) + 7 * - 87 * + + 14 * + 39 END + - 59 - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT 95 * - + NULLIF ( - 59, + + MIN ( ALL + - 96 ) ) * - - CASE - COUNT ( * ) WHEN + 78 * MIN ( DISTINCT 80 ) * - 13 THEN - 69 + - COUNT ( * ) - - 75 * + 71 * + - 3 / + ( - + AVG ( - + 23 ) ) + - COUNT ( * ) * - 53 - - 94 + + - 78 * - 60 + - - ( - + 97 ) + 7 * - 87 * + + 14 * + 39 END + - 59 - 80 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 93 * - 16 + 95
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - NULLIF ( ( + 12 ), - COUNT( * ) * + - 90 + - + 20 )
----
-12

skipif mysql # not compatible
query I rowsort label-792
SELECT - NULLIF ( ( + 12 ), - COUNT ( * ) * + - 90 + - + 20 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-793
SELECT ALL - COUNT( ALL 24 ) + - 15 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - COUNT ( ALL 24 ) + - 15 / - 62
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-795
SELECT DISTINCT + 42 DIV ( + CASE - 25 WHEN + 5 * 36 THEN - 7 + + AVG ( ALL - + 80 ) ELSE - COUNT( * ) END )
----
-42

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT + 42 / ( + CASE - 25 WHEN + 5 * 36 THEN - 7 + + AVG ( ALL - + 80 ) ELSE - COUNT ( * ) END )
----
-42

query I rowsort
SELECT ALL ( + - 12 ) * + 43 * 96 col2
----
-49536

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT + 41 DIV + - 2
----
-20

skipif mysql # not compatible
query I rowsort label-797
SELECT + 41 / + - 2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL + 24 * + - 92 * COUNT( * ) AS col2
----
-2208

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + 24 * + - 92 * COUNT ( * ) AS col2
----
-2208

query I rowsort
SELECT - NULLIF ( - 11, - + COALESCE ( - 94, + 18 * - 2 + + + 62 ) ) + + 6 + - 54
----
-37

query II rowsort
SELECT + 94 + - 34 col0, + 90
----
60
90

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT + 11 * 62 * COUNT( ALL 98 )
----
682

skipif mysql # not compatible
query I rowsort label-801
SELECT + 11 * 62 * COUNT ( ALL 98 )
----
682

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

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

query I rowsort
SELECT + 82 + + 87 AS col1
----
169

query I rowsort
SELECT DISTINCT + + 71 * + 88 * + - ( + - 81 ) AS col1
----
506088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-805
SELECT - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV + 53 + + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-805
SELECT - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / + 53 + + - 15
----
-15

query I rowsort
SELECT DISTINCT - - 2
----
2

query II rowsort
SELECT DISTINCT + ( - 13 ) + 50 + + 64 + + 95 AS col2, 87 * + 4
----
196
348

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT 38 + + 8 DIV + + 65 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-808
SELECT 38 + + 8 / + + 65 AS col0
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT SUM( - 89 ) + - 33 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-810
SELECT SUM ( - 89 ) + - 33 AS col1
----
-122

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

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

query I rowsort
SELECT 28 * - 82 AS col2
----
-2296

query I rowsort
SELECT DISTINCT 43 + - ( - - 31 )
----
12

query I rowsort
SELECT ALL 70 + 45
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT 7 + CASE NULLIF ( 98, - 65 ) WHEN - CAST( NULL AS SIGNED ) THEN - 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT 7 + CASE NULLIF ( 98, - 65 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 13 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT + SUM( - 78 ) + - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-817
SELECT + SUM ( - 78 ) + - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT + - ( + COUNT( * ) ) + + - 20 col0
----
-21

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + - ( + COUNT ( * ) ) + + - 20 col0
----
-21

query I rowsort
SELECT ALL - 93 + - + 33 AS col0
----
-126

query I rowsort
SELECT + 10 - 87 col1
----
-77

query I rowsort
SELECT DISTINCT 79 + - - 48 + + 20
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT DISTINCT - COUNT( * ) AS col1, - 19 AS col2
----
-1
-19

skipif mysql # not compatible
query II rowsort label-822
SELECT DISTINCT - COUNT ( * ) AS col1, - 19 AS col2
----
-1
-19

query I rowsort
SELECT ALL - 27 - + - 88 AS col1
----
61

query I rowsort
SELECT 64 * 59 AS col0
----
3776

query I rowsort
SELECT 2 + COALESCE ( - 5, + 25 ) AS col2
----
-3

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

query I rowsort
SELECT ALL + 37 * + 87 AS col0
----
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL + COUNT( * ) - - - 41 * - - COALESCE ( COUNT( * ), 65 + 28 * 55 )
----
-40

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + COUNT ( * ) - - - 41 * - - COALESCE ( COUNT ( * ), 65 + 28 * 55 )
----
-40

query I rowsort
SELECT DISTINCT + 56 * 79 * + 84 AS col1
----
371616

query II rowsort
SELECT - 41 AS col2, - 43
----
-41
-43

query I rowsort
SELECT 11 * COALESCE ( - 21, - 1 - - 36 ) AS col2
----
-231

query I rowsort
SELECT ALL + 38 * - 23 * 76 * + + 41
----
-2723384

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT 97 AS col0, SUM( + 67 ) AS col2
----
97
67

skipif mysql # not compatible
query II rowsort label-833
SELECT 97 AS col0, SUM ( + 67 ) AS col2
----
97
67

query II rowsort
SELECT 89 * 13 * - 35 AS col2, + CASE - 72 WHEN - 40 THEN + + 60 END * + 94 + 56
----
-40495
NULL

query II rowsort
SELECT - 49 AS col2, 21
----
-49
21

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

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

query I rowsort
SELECT 37 * - + 86
----
-3182

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

query I rowsort
SELECT - + NULLIF ( - 2, - 48 / - - 34 - + 28 - + - 75 + - - 43 ) AS col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL - 15 * + 65 + + - MAX( DISTINCT 97 ) * 83 AS col2
----
-9026

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL - 15 * + 65 + + - MAX ( DISTINCT 97 ) * 83 AS col2
----
-9026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT ALL - 4 DIV + - ( 48 ) - + COUNT( DISTINCT - - NULLIF ( + 89, - 50 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - 4 / + - ( 48 ) - + COUNT ( DISTINCT - - NULLIF ( + 89, - 50 ) ) AS col2
----
-1

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

query I rowsort
SELECT ALL - + 6 + - 37
----
-43

query II rowsort
SELECT 22 + + 78 * + 65, + 77 + + COALESCE ( - - 5, - 63 ) + - + 84 AS col1
----
5092
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT 65 * ( + - 60 ) + - CAST( + 39 AS SIGNED ) + 12 - - 1
----
-3926

skipif mysql # not compatible
query I rowsort label-846
SELECT 65 * ( + - 60 ) + - CAST ( + 39 AS INTEGER ) + 12 - - 1
----
-3926

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT ( + + COALESCE ( - ( - 41 ), + ( - + 95 ) + + - 72 * + + 14, - COUNT( * ) * + 50 * - + 92 ) ) AS col2, + SUM( - 82 ) AS col2
----
41
-82

skipif mysql # not compatible
query II rowsort label-847
SELECT ( + + COALESCE ( - ( - 41 ), + ( - + 95 ) + + - 72 * + + 14, - COUNT ( * ) * + 50 * - + 92 ) ) AS col2, + SUM ( - 82 ) AS col2
----
41
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-848
SELECT 0 DIV + CAST( - + 29 AS SIGNED ) + + 79 DIV - 67 * - - COALESCE ( COUNT( DISTINCT - 77 ), + - 25 * + 65 + 50 + - COUNT( * ) + 84 ) + + 73 - + 20 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-848
SELECT 0 / + CAST ( - + 29 AS INTEGER ) + + 79 / - 67 * - - COALESCE ( COUNT ( DISTINCT - 77 ), + - 25 * + 65 + 50 + - COUNT ( * ) + 84 ) + + 73 - + 20 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT ALL + 89 DIV + + 62 col1
----
1

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL + 89 / + + 62 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT + COALESCE ( 80, COUNT( * ) ) DIV + 33 col2
----
2

skipif mysql # not compatible
query I rowsort label-850
SELECT + COALESCE ( 80, COUNT ( * ) ) / + 33 col2
----
2

query I rowsort
SELECT + - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL - COALESCE ( - COUNT( * ), - COUNT( * ) + - 92 + - 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - COALESCE ( - COUNT ( * ), - COUNT ( * ) + - 92 + - 71 ) AS col0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-854
SELECT + 22, + 19 * - CAST( 68 AS SIGNED ) + - ( ( + - 53 ) ) col0
----
22
-1239

skipif mysql # not compatible
query II rowsort label-854
SELECT + 22, + 19 * - CAST ( 68 AS INTEGER ) + - ( ( + - 53 ) ) col0
----
22
-1239

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT - MAX( ALL 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - MAX ( ALL 51 )
----
-51

query I rowsort
SELECT DISTINCT ( - 63 ) - + 32
----
-95

query I rowsort
SELECT ALL 73 * 26 AS col2
----
1898

query II rowsort
SELECT 67 * - - 37, + 70 AS col1
----
2479
70

query II rowsort
SELECT DISTINCT - ( - 98 ) AS col1, 38 AS col0
----
98
38

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

skipif mysql # not compatible
query I rowsort label-860
SELECT + COUNT ( ALL 72 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT ALL 37 * COUNT( * ), + 33 * ( - 89 ) AS col2
----
37
-2937

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL 37 * COUNT ( * ), + 33 * ( - 89 ) AS col2
----
37
-2937

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-863
SELECT ( + 22 ) + + - 54 - - NULLIF ( + 28, + 18 ) - + + 6, CASE - 76 WHEN - + 33 THEN 68 + - 54 WHEN CAST( - + 78 AS SIGNED ) * + - 30 THEN + 20 / 22 * - ( - - COUNT( * ) ) + - 38 ELSE NULL END + 32 AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-863
SELECT ( + 22 ) + + - 54 - - NULLIF ( + 28, + 18 ) - + + 6, CASE - 76 WHEN - + 33 THEN 68 + - 54 WHEN CAST ( - + 78 AS INTEGER ) * + - 30 THEN + 20 / 22 * - ( - - COUNT ( * ) ) + - 38 ELSE NULL END + 32 AS col0
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT - COUNT( - 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-864
SELECT - COUNT ( - 94 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT 37 * - SUM( + 79 ) AS col0
----
-2923

skipif mysql # not compatible
query I rowsort label-865
SELECT 37 * - SUM ( + 79 ) AS col0
----
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL - COALESCE ( - COUNT( * ), - 21, - 4 ) + 45 + 64 col1
----
110

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - COALESCE ( - COUNT ( * ), - 21, - 4 ) + 45 + 64 col1
----
110

query I rowsort
SELECT - 35 + - 98
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-868
SELECT DISTINCT CASE + 98 WHEN + 6 + 13 THEN - - 1 WHEN - 10 * - + 2 * + 3 THEN + CAST( NULL AS SIGNED ) ELSE NULL END, CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT CASE + 98 WHEN + 6 + 13 THEN - - 1 WHEN - 10 * - + 2 * + 3 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END, CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL + 75 + + SUM( ALL 51 ) * ( + ( + + 42 ) ) * - COUNT( * ) AS col2
----
-2067

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + 75 + + SUM ( ALL 51 ) * ( + ( + + 42 ) ) * - COUNT ( * ) AS col2
----
-2067

query I rowsort
SELECT - 19 + - + 63 AS col1
----
-82

query I rowsort
SELECT - - 90 col0
----
90

query I rowsort
SELECT - CASE - + 85 WHEN - 85 + 83 THEN - 87 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT + 76 * + NULLIF ( + COUNT( * ), - - 94 )
----
76

skipif mysql # not compatible
query I rowsort label-873
SELECT + 76 * + NULLIF ( + COUNT ( * ), - - 94 )
----
76

query I rowsort
SELECT - 46 + - - 75 AS col2
----
29

query II rowsort
SELECT ALL - 9 + + + 75 AS col1, ( 21 ) AS col1
----
66
21

query I rowsort
SELECT - - 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT DISTINCT COUNT( 92 ) + + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT COUNT ( 92 ) + + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT NULLIF ( + CASE 61 WHEN + COALESCE ( COALESCE ( COUNT( ALL 40 ), + ( 38 ) ), 14 ) * - + 11 * - - ( + + 89 ) THEN + 88 END, + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT NULLIF ( + CASE 61 WHEN + COALESCE ( COALESCE ( COUNT ( ALL 40 ), + ( 38 ) ), 14 ) * - + 11 * - - ( + + 89 ) THEN + 88 END, + - 70 )
----
NULL

query I rowsort
SELECT - - 54 + + 2 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL - - SUM( ALL + + 61 ) + + + 42 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - - SUM ( ALL + + 61 ) + + + 42 AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT + 82 DIV COUNT( * ) + COUNT( * ) + + 93 + - 49 - 82
----
45

skipif mysql # not compatible
query I rowsort label-881
SELECT + 82 / COUNT ( * ) + COUNT ( * ) + + 93 + - 49 - 82
----
45

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

query I rowsort
SELECT - 74 + - 18 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT - 79 DIV + + 69
----
-1

skipif mysql # not compatible
query I rowsort label-884
SELECT - 79 / + + 69
----
-1

query I rowsort
SELECT - ( - - NULLIF ( + 67, - - 24 * - 73 ) ) * - 6
----
402

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

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT + + COUNT( * ) * + + 18 + - 88 + - + 61 * NULLIF ( + COUNT( * ), + COUNT( * ) * ( - 32 ) ) + + + 93 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-887
SELECT + + COUNT ( * ) * + + 18 + - 88 + - + 61 * NULLIF ( + COUNT ( * ), + COUNT ( * ) * ( - 32 ) ) + + + 93 AS col0
----
-38

query I rowsort
SELECT ALL 86 * - + 26 * 4 - - 85 - + ( - 24 ) AS col0
----
-8835

query I rowsort
SELECT - - 27 * - 17 AS col0
----
-459

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

query I rowsort
SELECT - 72 + - 30 AS col2
----
-102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + NULLIF ( + - COUNT( * ), + COALESCE ( - AVG ( DISTINCT + 54 ), + 64 + - 55 / - 26 * - 43 * 17 * + 96 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + NULLIF ( + - COUNT ( * ), + COALESCE ( - AVG ( DISTINCT + 54 ), + 64 + - 55 / - 26 * - 43 * 17 * + 96 ) ) AS col0
----
-1

query I rowsort
SELECT + ( + + 86 ) + ( + 58 ) * - 54 AS col1
----
-3046

query I rowsort
SELECT NULLIF ( + 37, - 50 )
----
37

query I rowsort
SELECT CASE - + 50 WHEN - 11 THEN NULLIF ( 49, - AVG ( + 53 ) * + 92 + + 61 - - 99 ) * + CASE - 16 WHEN - 66 + + 16 THEN NULL WHEN + 44 THEN NULL ELSE 60 END END
----
NULL

query I rowsort
SELECT COALESCE ( - - 76, - + 26 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT MAX( - - NULLIF ( - + 69, 85 + + - 83 + - COALESCE ( + - 29, + + ( - 18 ), + 16 ) ) ), + 91 + - 55 * + 82 + - CASE + - 54 WHEN COALESCE ( + 29, 66 * + 88 + - + 30, + + AVG ( DISTINCT - 73 ) * + 55 + AVG ( + ( - 28 ) ) + 76 - 22 ) * + 61 + - 15 / + + 50 + COUNT( * ) * SUM( + 65 ) - 96 THEN + 28 ELSE - - 83 END - + - COUNT( * ) - + 91 * + 93 AS col2
----
-69
-12964

skipif mysql # not compatible
query II rowsort label-898
SELECT MAX ( - - NULLIF ( - + 69, 85 + + - 83 + - COALESCE ( + - 29, + + ( - 18 ), + 16 ) ) ), + 91 + - 55 * + 82 + - CASE + - 54 WHEN COALESCE ( + 29, 66 * + 88 + - + 30, + + AVG ( DISTINCT - 73 ) * + 55 + AVG ( + ( - 28 ) ) + 76 - 22 ) * + 61 + - 15 / + + 50 + COUNT ( * ) * SUM ( + 65 ) - 96 THEN + 28 ELSE - - 83 END - + - COUNT ( * ) - + 91 * + 93 AS col2
----
-69
-12964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT - SUM( + NULLIF ( + - 24, + CAST( NULL AS SIGNED ) + CASE WHEN NULL IS NOT NULL THEN - 52 ELSE NULL END - + - 42 ) ) * + SUM( DISTINCT - - 96 ) + COUNT( * ) AS col2
----
2305

skipif mysql # not compatible
query I rowsort label-899
SELECT - SUM ( + NULLIF ( + - 24, + CAST ( NULL AS INTEGER ) + CASE WHEN NULL IS NOT NULL THEN - 52 ELSE NULL END - + - 42 ) ) * + SUM ( DISTINCT - - 96 ) + COUNT ( * ) AS col2
----
2305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT + CASE + COUNT( * ) WHEN 57 * - 21 THEN NULL WHEN + 59 THEN 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT + CASE + COUNT ( * ) WHEN 57 * - 21 THEN NULL WHEN + 59 THEN 38 END AS col2
----
NULL

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

query II rowsort
SELECT ALL + ( + ( + NULLIF ( - 69, + 5 / - - 26 ) ) ) * - + 91 * + 73 + 33 + - + 84 AS col0, + 47
----
458316
47

query I rowsort
SELECT + 59 * + 81 AS col0
----
4779

query II rowsort
SELECT DISTINCT 1 AS col2, - 37 * + ( + 82 )
----
1
-3034

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

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

query I rowsort
SELECT ALL 47 + - 2
----
45

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

skipif mysql # not compatible
query I rowsort label-908
SELECT - ( + SUM ( - 98 ) )
----
98

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

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

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

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

query I rowsort
SELECT + 29 * + 91
----
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT ALL - COUNT( * ) + 12 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - COUNT ( * ) + 12 AS col1
----
11

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

skipif mysql # not compatible
query I rowsort label-913
SELECT - + 44 / + COUNT ( * )
----
-44

query I rowsort
SELECT + + 33 * - 80 AS col0
----
-2640

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT DISTINCT 9 DIV 38 - COUNT( * ) + + 87 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT 9 / 38 - COUNT ( * ) + + 87 AS col0
----
86

query I rowsort
SELECT ALL - 63 + 77 col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-918
SELECT ALL + + 38 * COALESCE ( + 41, + - CAST( MIN( DISTINCT + - 77 ) AS SIGNED ), - + 3 DIV COUNT( * ) * - 16 ) AS col2
----
1558

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL + + 38 * COALESCE ( + 41, + - CAST ( MIN ( DISTINCT + - 77 ) AS INTEGER ), - + 3 / COUNT ( * ) * - 16 ) AS col2
----
1558

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT + + 83 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-919
SELECT + + 83 / + 41
----
2

query I rowsort
SELECT + 6 * - + 28
----
-168

query I rowsort
SELECT DISTINCT - 3 col1
----
-3

query II rowsort
SELECT - 33 AS col0, + 43 AS col2
----
-33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - + NULLIF ( + - COUNT( * ), - 72 ) * - 95 * + 63 * - - 38 AS col0
----
-227430

skipif mysql # not compatible
query I rowsort label-923
SELECT - + NULLIF ( + - COUNT ( * ), - 72 ) * - 95 * + 63 * - - 38 AS col0
----
-227430

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT + 17 / - 3 + + CAST( - 66 AS SIGNED ) / 95 - NULLIF ( - 98, - 40 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT + 17 / - 3 + + CAST ( - 66 AS INTEGER ) / 95 - NULLIF ( - 98, - 40 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT + - COALESCE ( 73, COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-926
SELECT + - COALESCE ( 73, COUNT ( * ) )
----
-73

query I rowsort
SELECT DISTINCT + - 78
----
-78

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-929
SELECT - 31 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT - 31 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 78 * - 43
----
-3354

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-931
SELECT CAST( NULL AS SIGNED ) / 90 + + 68 * CAST( NULL AS SIGNED ) * - 1 * + 50 + - 61 AS col0, + 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-931
SELECT CAST ( NULL AS INTEGER ) / 90 + + 68 * CAST ( NULL AS INTEGER ) * - 1 * + 50 + - 61 AS col0, + 70
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-932
SELECT CAST( NULL AS SIGNED ), MAX( - 66 ) * + 63 + COUNT( * ) * - 32 AS col1
----
NULL
-4190

skipif mysql # not compatible
query II rowsort label-932
SELECT CAST ( NULL AS INTEGER ), MAX ( - 66 ) * + 63 + COUNT ( * ) * - 32 AS col1
----
NULL
-4190

query I rowsort
SELECT ALL + CASE + 7 WHEN 50 * - 34 THEN + - 56 - + 94 * - + 36 WHEN + 0 * + 34 + 59 THEN + + ( 93 ) + + 24 END * + - 21 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT - CAST( + COALESCE ( - COALESCE ( - + COUNT( * ), - 74 ), - - 82 ) AS SIGNED ) DIV + COUNT( - 14 ) + + ( CAST( + 11 AS SIGNED ) )
----
10

skipif mysql # not compatible
query I rowsort label-934
SELECT - CAST ( + COALESCE ( - COALESCE ( - + COUNT ( * ), - 74 ), - - 82 ) AS INTEGER ) / + COUNT ( - 14 ) + + ( CAST ( + 11 AS INTEGER ) )
----
10

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

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

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

query I rowsort
SELECT ALL + 36 * + NULLIF ( + 99, + + 73 ) + - - 69 + - 42 + - 77 * - 77 + + - 24 - - 9 + + - NULLIF ( 89, + 14 )
----
9416

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL COUNT( * ) * - - 68 + + - 59 - + + 34
----
-25

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL COUNT ( * ) * - - 68 + + - 59 - + + 34
----
-25

query I rowsort
SELECT ALL + 79 * + 4 AS col2
----
316

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-941
SELECT ALL CAST( - - 62 AS SIGNED ) DIV - COALESCE ( - - 49, 62 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL CAST ( - - 62 AS INTEGER ) / - COALESCE ( - - 49, 62 ) + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT DISTINCT - CAST( COALESCE ( ( - + 62 ), + 0 - + - COUNT( DISTINCT 89 ) + + NULLIF ( - + COUNT( * ), 44 ) ) AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - CAST ( COALESCE ( ( - + 62 ), + 0 - + - COUNT ( DISTINCT 89 ) + + NULLIF ( - + COUNT ( * ), 44 ) ) AS INTEGER )
----
62

query I rowsort
SELECT ALL - 7 + - 17 AS col0
----
-24

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

query I rowsort
SELECT 43 - - + 58
----
101

query II rowsort
SELECT ALL 5 AS col2, + 58 col1
----
5
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-947
SELECT - - COUNT( * ), 20 - 73 * + + 0 * + - 73 * 54 + + 84 + - 1 * 39 * - ( + CASE 42 WHEN + + COUNT( * ) THEN - + 97 - - CAST( NULL AS SIGNED ) * - - COUNT( * ) END ) * + 84 - 56 - + 36 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-947
SELECT - - COUNT ( * ), 20 - 73 * + + 0 * + - 73 * 54 + + 84 + - 1 * 39 * - ( + CASE 42 WHEN + + COUNT ( * ) THEN - + 97 - - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) END ) * + 84 - 56 - + 36 AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT ALL 98 + 7 DIV 94
----
98

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL 98 + 7 / 94
----
98

query I rowsort
SELECT 51 + 98 * - + 14 AS col1
----
-1321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT ALL + SUM( ALL CAST( NULL AS SIGNED ) ) / - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + SUM ( ALL CAST ( NULL AS INTEGER ) ) / - 77
----
NULL

query I rowsort
SELECT 97 + - 33 AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT DISTINCT + 71 col2, COUNT( * ) + 92 AS col2
----
71
93

skipif mysql # not compatible
query II rowsort label-952
SELECT DISTINCT + 71 col2, COUNT ( * ) + 92 AS col2
----
71
93

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

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

query I rowsort
SELECT 89 + + ( 47 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT COUNT( + ( - 43 ) ) - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT COUNT ( + ( - 43 ) ) - 49 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT MAX( ALL + 70 ) + + SUM( DISTINCT + 72 ) AS col1, - 62
----
142
-62

skipif mysql # not compatible
query II rowsort label-956
SELECT MAX ( ALL + 70 ) + + SUM ( DISTINCT + 72 ) AS col1, - 62
----
142
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - SUM( ALL - 45 ) * 60
----
2700

skipif mysql # not compatible
query I rowsort label-957
SELECT - SUM ( ALL - 45 ) * 60
----
2700

query I rowsort
SELECT 97 * 64 + + 67
----
6275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT DISTINCT COUNT( * ) DIV - ( - 82 ) - 15 * 18 - - + 31 + + + ( SUM( 65 ) ) + + CASE - 77 WHEN - + 1 DIV 38 * + 19 THEN NULL WHEN + - 54 + 23 THEN + COUNT( * ) - - + 41 ELSE - + 77 * - + 3 + + 28 END
----
85

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT COUNT ( * ) / - ( - 82 ) - 15 * 18 - - + 31 + + + ( SUM ( 65 ) ) + + CASE - 77 WHEN - + 1 / 38 * + 19 THEN NULL WHEN + - 54 + 23 THEN + COUNT ( * ) - - + 41 ELSE - + 77 * - + 3 + + 28 END
----
85

query I rowsort
SELECT 99 * + 0 * ( - 38 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT ALL 27 DIV - MIN( + - 31 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL 27 / - MIN ( + - 31 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT ALL ( 45 ) DIV - 38 + - 12 + - + 18
----
-31

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL ( 45 ) / - 38 + - 12 + - + 18
----
-31

query II rowsort
SELECT - 13 AS col0, + 64 - + 11 AS col2
----
-13
53

query I rowsort
SELECT + 20 * - 56 * + + 14
----
-15680

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

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

query I rowsort
SELECT 73 + - 65 + - + 80 AS col2
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL COUNT( * ) * - 57 col2
----
-57

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL COUNT ( * ) * - 57 col2
----
-57

query I rowsort
SELECT + 97 * - 95 + + 45 * + - ( - 82 ) AS col2
----
-5525

query I rowsort
SELECT DISTINCT + 92 + + ( - 63 )
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT - ( COUNT( DISTINCT - 90 ) ) + - ( - COALESCE ( - 50, - 44 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT - ( COUNT ( DISTINCT - 90 ) ) + - ( - COALESCE ( - 50, - 44 ) ) AS col1
----
-51

query I rowsort
SELECT ALL + 48 * 6 * + - 72 AS col1
----
-20736

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT - 59 * - 7 + - 15 + COUNT( * )
----
399

skipif mysql # not compatible
query I rowsort label-974
SELECT - 59 * - 7 + - 15 + COUNT ( * )
----
399

query I rowsort
SELECT ALL ( 81 ) + + 21
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT - 21 + - + 99 + + MIN( DISTINCT + 33 ) + + 24 * + 56 + + NULLIF ( - + 11, - 69 ) DIV 2 * - 87 + + ( - 47 )
----
1645

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT - 21 + - + 99 + + MIN ( DISTINCT + 33 ) + + 24 * + 56 + + NULLIF ( - + 11, - 69 ) / 2 * - 87 + + ( - 47 )
----
1645

query I rowsort
SELECT 39 * - 77 * + 10 + - + 66 col0
----
-30096

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

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

query I rowsort
SELECT 52 + 52
----
104

query I rowsort
SELECT DISTINCT - 30 * + 96 * - 47 AS col2
----
135360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-981
SELECT - 52 DIV COUNT( * ) * COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-981
SELECT - 52 / COUNT ( * ) * COUNT ( * ) AS col1
----
-52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-983
SELECT DISTINCT + + 92 - - + COALESCE ( - COUNT( * ), + - COUNT( * ) DIV - + NULLIF ( + - 10, - CASE - - 83 WHEN + - 52 THEN NULL WHEN - - 40 THEN - 13 DIV + ( COUNT( * ) ) * + CAST( - 46 AS SIGNED ) ELSE NULL END * - MIN( 33 ) DIV COUNT( * ) DIV + COUNT( * ) + - CAST( NULL AS SIGNED ) - - - AVG ( ALL - + 45 ) - + CASE + ( 35 ) WHEN - - 5 THEN - 57 WHEN - + 91 THEN NULL WHEN + COUNT( * ) + 35 THEN + + COUNT( * ) END * - COUNT( * ) DIV - ( + CASE + 57 WHEN - 80 THEN NULL WHEN + 48 THEN - + 39 * + 76 - + - 86 - - + 92 * + 18 ELSE NULL END ) * - 71 ) * + + 49 + - NULLIF ( + + 18, - 86 ) + 56 * + 82 ) + ( COUNT( * ) ) * 28
----
119

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT + + 92 - - + COALESCE ( - COUNT ( * ), + - COUNT ( * ) / - + NULLIF ( + - 10, - CASE - - 83 WHEN + - 52 THEN NULL WHEN - - 40 THEN - 13 / + ( COUNT ( * ) ) * + CAST ( - 46 AS INTEGER ) ELSE NULL END * - MIN ( 33 ) / COUNT ( * ) / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - - AVG ( ALL - + 45 ) - + CASE + ( 35 ) WHEN - - 5 THEN - 57 WHEN - + 91 THEN NULL WHEN + COUNT ( * ) + 35 THEN + + COUNT ( * ) END * - COUNT ( * ) / - ( + CASE + 57 WHEN - 80 THEN NULL WHEN + 48 THEN - + 39 * + 76 - + - 86 - - + 92 * + 18 ELSE NULL END ) * - 71 ) * + + 49 + - NULLIF ( + + 18, - 86 ) + 56 * + 82 ) + ( COUNT ( * ) ) * 28
----
119

query I rowsort
SELECT - + 58 col1
----
-58

query II rowsort
SELECT ALL + ( 48 ) AS col2, 81 + + - 65 * 16 - ( + + 54 ) AS col2
----
48
-1013

query II rowsort
SELECT ALL 98 * + 40 col0, 98 AS col0
----
3920
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT 14 - - - MAX( + ( - 70 ) )
----
84

skipif mysql # not compatible
query I rowsort label-988
SELECT 14 - - - MAX ( + ( - 70 ) )
----
84

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

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

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

query I rowsort
SELECT 91 * - ( - 24 ) * - 37
----
-80808

query I rowsort
SELECT DISTINCT - NULLIF ( + + 59, 4 - - 13 ) * - COALESCE ( + - 44, - 68 )
----
-2596

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

skipif mysql # not compatible
query I rowsort label-993
SELECT 83 / + 56
----
1

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

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

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

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

query I rowsort
SELECT ALL - 98 * 51 + - 83 * - 87 AS col1
----
2223

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

skipif mysql # not compatible
query I rowsort label-997
SELECT + 83 / COUNT ( * )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-998
SELECT - 43 DIV - - COUNT( * ) + 7 + 60
----
24

skipif mysql # not compatible
query I rowsort label-998
SELECT - 43 / - - COUNT ( * ) + 7 + 60
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL + 21 * + + COUNT( * ) + - 20 col1
----
1

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + 21 * + + COUNT ( * ) + - 20 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - 82 * + + 11 + - - SUM( + 80 ) AS col1
----
-822

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - 82 * + + 11 + - - SUM ( + 80 ) AS col1
----
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT CASE 58 WHEN 5 THEN + + 37 WHEN + 6 THEN NULL WHEN - COUNT( * ) / + - 31 * SUM( DISTINCT 49 ) + + + 95 + 46 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT CASE 58 WHEN 5 THEN + + 37 WHEN + 6 THEN NULL WHEN - COUNT ( * ) / + - 31 * SUM ( DISTINCT 49 ) + + + 95 + 46 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 24 * + 59 col2
----
1416

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT + COUNT( * ) * + 64 * 46
----
2944

skipif mysql # not compatible
query I rowsort label-1004
SELECT + COUNT ( * ) * + 64 * 46
----
2944

query II rowsort
SELECT + NULLIF ( - 82, + 22 ), 39 AS col0
----
-82
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT COUNT( - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-1006
SELECT COUNT ( - 91 )
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1008
SELECT ALL + 97 AS col1, 81 * + NULLIF ( CAST( NULL AS SIGNED ), 86 ) - + 85
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL + 97 AS col1, 81 * + NULLIF ( CAST ( NULL AS INTEGER ), 86 ) - + 85
----
97
NULL

query I rowsort
SELECT + 94 - - + 12 AS col2
----
106

query I rowsort
SELECT DISTINCT 99 * + + 67 col0
----
6633

query I rowsort
SELECT + 28 * - 73 * - - 24 * 26
----
-1275456

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

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

query I rowsort
SELECT - 17 col0
----
-17

query I rowsort
SELECT DISTINCT 52 * + 46 - + 55 AS col0
----
2337

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + 16 + + + MIN( ALL - 18 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 16 + + + MIN ( ALL - 18 ) AS col1
----
-2

query II rowsort
SELECT ALL + 16 AS col1, 85 + 66
----
16
151

query I rowsort
SELECT - 13 * - + 36 * - ( - - 66 )
----
-30888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( + - 30 ) + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( + - 30 ) + + 76 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 38 * - 12 AS col1
----
456

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1024
SELECT DISTINCT - - ( + ( 45 ) ) + + 28 AS col0, + CAST( NULL AS SIGNED ) col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT - - ( + ( 45 ) ) + + 28 AS col0, + CAST ( NULL AS INTEGER ) col0
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT - CASE + ( - 26 ) WHEN + CAST( NULL AS SIGNED ) THEN - 75 * ( - SUM( ALL CAST( ( - - 4 ) AS SIGNED ) ) ) * - 34 ELSE 30 + - COALESCE ( 82, - - 69 ) END * - 56 AS col0
----
-2912

skipif mysql # not compatible
query I rowsort label-1025
SELECT - CASE + ( - 26 ) WHEN + CAST ( NULL AS INTEGER ) THEN - 75 * ( - SUM ( ALL CAST ( ( - - 4 ) AS INTEGER ) ) ) * - 34 ELSE 30 + - COALESCE ( 82, - - 69 ) END * - 56 AS col0
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + 29 + - MIN( - + 34 )
----
63

skipif mysql # not compatible
query I rowsort label-1026
SELECT + 29 + - MIN ( - + 34 )
----
63

query I rowsort
SELECT + 55 + - 78 + + + 76
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + COUNT( * ) + + 57 * - - 5 AS col2
----
286

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + COUNT ( * ) + + 57 * - - 5 AS col2
----
286

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

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

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

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

query I rowsort
SELECT DISTINCT ( 4 ) + - 90
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1032
SELECT ALL + 20 + COUNT( * ) + 26 * 56 * - 72 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + 20 + COUNT ( * ) + 26 * 56 * - 72 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT - MAX( 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1033
SELECT - MAX ( 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1034
SELECT DISTINCT - COUNT( * ) DIV 14 + 59 * + CAST( + 93 AS SIGNED ) + - CASE + 44 WHEN - 78 * COUNT( * ) THEN NULL ELSE + MIN( - 90 ) - 37 + + 97 - 58 + - 53 + - - CAST( 19 AS SIGNED ) END * - + 32 + 35, ( + + 78 ) AS col2
----
1618
78

skipif mysql # not compatible
query II rowsort label-1034
SELECT DISTINCT - COUNT ( * ) / 14 + 59 * + CAST ( + 93 AS INTEGER ) + - CASE + 44 WHEN - 78 * COUNT ( * ) THEN NULL ELSE + MIN ( - 90 ) - 37 + + 97 - 58 + - 53 + - - CAST ( 19 AS INTEGER ) END * - + 32 + 35, ( + + 78 ) AS col2
----
1618
78

query I rowsort
SELECT + 12 * - + 6 AS col2
----
-72

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

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

query I rowsort
SELECT - 24 + + 66
----
42

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1040
SELECT DISTINCT - ( 36 ) DIV + 92 - + 67 DIV - 58 AS col1, 55 * - - 96 * - COUNT( * )
----
1
-5280

skipif mysql # not compatible
query II rowsort label-1040
SELECT DISTINCT - ( 36 ) / + 92 - + 67 / - 58 AS col1, 55 * - - 96 * - COUNT ( * )
----
1
-5280

query II rowsort
SELECT - 76 * + 71 * - 82 * + - 52 AS col1, - 10 - 67 AS col2
----
-23008544
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1043
SELECT ALL 50 / + 84 / + 75 - CAST( NULL AS SIGNED ) AS col0, 54 * + - 75
----
NULL
-4050

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL 50 / + 84 / + 75 - CAST ( NULL AS INTEGER ) AS col0, 54 * + - 75
----
NULL
-4050

query I rowsort
SELECT ALL 40 * + - 67 AS col2
----
-2680

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT + COUNT( * ) + - CASE + + 60 WHEN - + 79 + - 83 THEN - 57 + + CASE 41 WHEN + 90 THEN - + 84 + - 65 * - 80 ELSE - 52 * 29 / - 8 END * + 27 - + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT + COUNT ( * ) + - CASE + + 60 WHEN - + 79 + - 83 THEN - 57 + + CASE 41 WHEN + 90 THEN - + 84 + - 65 * - 80 ELSE - 52 * 29 / - 8 END * + 27 - + COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1046
SELECT + 61 DIV + + SUM( 97 ) * 54
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT + 61 / + + SUM ( 97 ) * 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT + CASE 67 WHEN + 89 * + 59 + - 74 - - - SUM( - - ( + 50 ) ) * 5 * - 17 THEN - 48 + - 43 / - 16 * + COUNT( * ) + - 92 WHEN 51 * + - COUNT( * ) THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT + CASE 67 WHEN + 89 * + 59 + - 74 - - - SUM ( - - ( + 50 ) ) * 5 * - 17 THEN - 48 + - 43 / - 16 * + COUNT ( * ) + - 92 WHEN 51 * + - COUNT ( * ) THEN + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT + - ( ( - + 30 ) ) + + 74 - - + 7 AS col2
----
111

query II rowsort
SELECT ALL - 53 * - - 74, ( + 90 ) * + + 3 - + 38 + - 70 * - 83 col0
----
-3922
6042

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT - ( + SUM( ALL ( + 83 ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1050
SELECT - ( + SUM ( ALL ( + 83 ) ) ) AS col0
----
-83

query I rowsort
SELECT + - 74
----
-74

query II rowsort
SELECT + + 15 * 48 AS col1, - 13 AS col1
----
720
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1053
SELECT + + MIN( DISTINCT + 61 ), 93 - - COUNT( * ) + 56 / COUNT( * ) / - CAST( NULL AS DECIMAL ) + - CAST( 84 AS SIGNED ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1053
SELECT + + MIN ( DISTINCT + 61 ), 93 - - COUNT ( * ) + 56 / COUNT ( * ) / - CAST ( NULL AS REAL ) + - CAST ( 84 AS INTEGER ) AS col0
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT + + 99 * + COUNT( * ) + + + 70 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + + 99 * + COUNT ( * ) + + + 70 AS col2
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1055
SELECT + 77 * 83 AS col0, ( - - 5 ) * + NULLIF ( + - 58, - 26 ) / - - ( + AVG ( ALL - CAST( NULL AS SIGNED ) ) ) + COUNT( DISTINCT + 79 ) * - 4 * - 6 + 14 + 82 * - 8 * - 20 * + 64 + - 99 + - - CASE - + ( 59 ) WHEN - 38 THEN + + 41 * + 59 WHEN + - ( 72 ) THEN - 90 END
----
6391
NULL

skipif mysql # not compatible
query II rowsort label-1055
SELECT + 77 * 83 AS col0, ( - - 5 ) * + NULLIF ( + - 58, - 26 ) / - - ( + AVG ( ALL - CAST ( NULL AS INTEGER ) ) ) + COUNT ( DISTINCT + 79 ) * - 4 * - 6 + 14 + 82 * - 8 * - 20 * + 64 + - 99 + - - CASE - + ( 59 ) WHEN - 38 THEN + + 41 * + 59 WHEN + - ( 72 ) THEN - 90 END
----
6391
NULL

query I rowsort
SELECT - 0 * - 59 - + + 19 AS col1
----
-19

query I rowsort
SELECT 48 col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT ALL CASE + 57 WHEN + CAST( NULL AS SIGNED ) THEN + 31 + - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL CASE + 57 WHEN + CAST ( NULL AS INTEGER ) THEN + 31 + - 14 END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT + 43 DIV - + 30 + - - 55 + + ( + - ( 67 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 43 / - + 30 + - - 55 + + ( + - ( 67 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL + - ( - COUNT( * ) ) + ( 10 ) + ( - - 37 ) * 40 AS col2
----
1491

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL + - ( - COUNT ( * ) ) + ( 10 ) + ( - - 37 ) * 40 AS col2
----
1491

query I rowsort
SELECT DISTINCT + 33 * - 16 AS col0
----
-528

query II rowsort
SELECT ALL 11 col0, 34
----
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT DISTINCT 90 + + - 80 + SUM( ALL 43 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT 90 + + - 80 + SUM ( ALL 43 ) AS col2
----
53

query I rowsort
SELECT 21 * 75 * - 67 AS col2
----
-105525

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

query II rowsort
SELECT - 73, - 65 * - COALESCE ( + 80, + 46 ) AS col0
----
-73
5200

query I rowsort
SELECT 37 * 21 col2
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT 11 + - 99 + COUNT( * ) * + - 29 + - 0 - 2 * - - ( 74 ) * + + COUNT( * )
----
-265

skipif mysql # not compatible
query I rowsort label-1069
SELECT 11 + - 99 + COUNT ( * ) * + - 29 + - 0 - 2 * - - ( 74 ) * + + COUNT ( * )
----
-265

onlyif mysql # DIV for integer division: 
query II rowsort label-1070
SELECT 46 - + 60 DIV + - 30, 27 AS col1
----
48
27

skipif mysql # not compatible
query II rowsort label-1070
SELECT 46 - + 60 / + - 30, 27 AS col1
----
48
27

query II rowsort
SELECT - 88 AS col2, 79 * + - 41
----
-88
-3239

query I rowsort
SELECT ALL - 17 * 63 AS col0
----
-1071

query II rowsort
SELECT + 98 AS col1, + 30 AS col0
----
98
30

query I rowsort
SELECT ALL + 26 * 32 * 0 col1
----
0

query I rowsort
SELECT 62 * 98
----
6076

query I rowsort
SELECT 32 - + - 34 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT 18 * - CASE 6 * 0 WHEN - ( + ( MIN( ALL + 87 ) ) ) THEN - ( - ( + 63 ) ) * 48 END + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT 18 * - CASE 6 * 0 WHEN - ( + ( MIN ( ALL + 87 ) ) ) THEN - ( - ( + 63 ) ) * 48 END + - 40 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL MIN( 34 ) + - 68 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL MIN ( 34 ) + - 68 AS col2
----
-34

query I rowsort
SELECT + 26 * - 52 - 34 * 92 AS col1
----
-4480

query I rowsort
SELECT ALL + 82 + 65 * + 46 AS col2
----
3072

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT MAX( + 95 ) + - ( + 78 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1083
SELECT MAX ( + 95 ) + - ( + 78 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1084
SELECT ( CASE + 90 WHEN + 80 THEN + 20 * + 91 WHEN - COUNT( * ) * 0 THEN NULL WHEN COUNT( * ) * - 61 THEN NULL END ) * - SUM( ALL - CAST( 97 AS SIGNED ) * + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT ( CASE + 90 WHEN + 80 THEN + 20 * + 91 WHEN - COUNT ( * ) * 0 THEN NULL WHEN COUNT ( * ) * - 61 THEN NULL END ) * - SUM ( ALL - CAST ( 97 AS INTEGER ) * + 87 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT COUNT( * ) - + CAST( - COALESCE ( 15, 42, 60 / + 34 ) + 82 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-1086
SELECT COUNT ( * ) - + CAST ( - COALESCE ( 15, 42, 60 / + 34 ) + 82 AS INTEGER )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT ALL CASE 26 WHEN - CAST( + 32 AS SIGNED ) THEN + 50 - + 11 * COUNT( * ) WHEN + COUNT( DISTINCT - 69 ) - - 56 THEN ( + 22 ) ELSE - 51 END + 88 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL CASE 26 WHEN - CAST ( + 32 AS INTEGER ) THEN + 50 - + 11 * COUNT ( * ) WHEN + COUNT ( DISTINCT - 69 ) - - 56 THEN ( + 22 ) ELSE - 51 END + 88 AS col0
----
37

query I rowsort
SELECT DISTINCT 14 + + 26
----
40

query I rowsort
SELECT DISTINCT 90 - 31 * - 87
----
2787

query I rowsort
SELECT NULLIF ( + 54, + 3 ) + + 60
----
114

query I rowsort
SELECT 30 + 91
----
121

query I rowsort
SELECT 8 + - 74 AS col2
----
-66

query I rowsort
SELECT DISTINCT 36 - 63 AS col0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1094
SELECT ( + CAST( NULL AS DECIMAL ) ) * 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT ( + CAST ( NULL AS REAL ) ) * 4 AS col1
----
NULL

query I rowsort
SELECT ALL 71 - - 89 * ( 91 ) AS col1
----
8170

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT ALL NULLIF ( 71, - 54 * - 57 ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL NULLIF ( 71, - 54 * - 57 ) / 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT CAST( NULL AS SIGNED ) / MIN( - 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT CAST ( NULL AS INTEGER ) / MIN ( - 18 ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 35 ) * - 22 AS col2
----
770

query I rowsort
SELECT 52 + 92 * - 84 AS col2
----
-7676

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL MAX ( - 49 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT 62 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1103
SELECT 62 / 85 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT - 92 DIV COUNT( + 63 ) + 14
----
-78

skipif mysql # not compatible
query I rowsort label-1104
SELECT - 92 / COUNT ( + 63 ) + 14
----
-78

query I rowsort
SELECT 71 * + 32
----
2272

query I rowsort
SELECT NULLIF ( - 55, ( - 87 ) ) + - 37 AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1107
SELECT + 10 DIV + SUM( - 5 * 13 ) + 25 * SUM( DISTINCT 10 * 10 + - 7 )
----
2325

skipif mysql # not compatible
query I rowsort label-1107
SELECT + 10 / + SUM ( - 5 * 13 ) + 25 * SUM ( DISTINCT 10 * 10 + - 7 )
----
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT 87 + 4 DIV - 43 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1108
SELECT 87 + 4 / - 43 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL COUNT( * ) * - 48 + 42 * + 39 AS col0
----
1590

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL COUNT ( * ) * - 48 + 42 * + 39 AS col0
----
1590

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + COUNT( * ) + ( NULLIF ( + 23, + SUM( + 48 ) - - 72 ) )
----
24

skipif mysql # not compatible
query I rowsort label-1110
SELECT + COUNT ( * ) + ( NULLIF ( + 23, + SUM ( + 48 ) - - 72 ) )
----
24

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

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - - COUNT ( + 7 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT NULLIF ( 39, + 19 ) + MAX( 51 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1112
SELECT NULLIF ( 39, + 19 ) + MAX ( 51 ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL - + 78 * 26 + - ( - ( 98 ) ) DIV 66 AS col1
----
-2027

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - + 78 * 26 + - ( - ( 98 ) ) / 66 AS col1
----
-2027

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

query I rowsort
SELECT ALL 28 * + 55 + 29
----
1569

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

query I rowsort
SELECT - + 35 * + 36 + + 1
----
-1259

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL + + NULLIF ( 87, - AVG ( ALL CASE CAST( NULL AS SIGNED ) WHEN + 54 THEN 93 ELSE NULL END ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + + NULLIF ( 87, - AVG ( ALL CASE CAST ( NULL AS INTEGER ) WHEN + 54 THEN 93 ELSE NULL END ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL + - COUNT( DISTINCT 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + - COUNT ( DISTINCT 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - - MIN( DISTINCT + 81 ) * - 34 AS col2
----
-2754

skipif mysql # not compatible
query I rowsort label-1121
SELECT - - MIN ( DISTINCT + 81 ) * - 34 AS col2
----
-2754

query I rowsort
SELECT ALL + 94 * 67 AS col2
----
6298

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT DISTINCT - 16 DIV 22 * 62
----
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT - 16 / 22 * 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - 89 * - MIN( - 40 ) - - COUNT( * )
----
-3559

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 89 * - MIN ( - 40 ) - - COUNT ( * )
----
-3559

query I rowsort
SELECT + 13 * - 38 AS col1
----
-494

query I rowsort
SELECT - 84 - - 89 * 16 AS col0
----
1340

query I rowsort
SELECT - NULLIF ( - - 53, COALESCE ( 63, 20 - + 19 ) ) AS col1
----
-53

query I rowsort
SELECT ALL 95 * - 10 AS col1
----
-950

query I rowsort
SELECT + 77 * - + 8 AS col2
----
-616

query I rowsort
SELECT DISTINCT + 44 * - + 82
----
-3608

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL ( NULLIF ( + 95, COUNT( * ) ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL ( NULLIF ( + 95, COUNT ( * ) ) ) AS col1
----
95

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

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

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

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

query I rowsort
SELECT DISTINCT 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + 6 - - 74 + CASE + 18 WHEN - 86 * 48 THEN NULL WHEN 41 * COUNT( * ) THEN ( + COUNT( * ) ) / - 95 - COALESCE ( 20, + 36 + 83 ) * 54 END * 64 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 6 - - 74 + CASE + 18 WHEN - 86 * 48 THEN NULL WHEN 41 * COUNT ( * ) THEN ( + COUNT ( * ) ) / - 95 - COALESCE ( 20, + 36 + 83 ) * 54 END * 64 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + SUM( DISTINCT - 33 ) + 4 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1137
SELECT + SUM ( DISTINCT - 33 ) + 4 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + COUNT( * ) * - + 99 col2
----
-99

skipif mysql # not compatible
query I rowsort label-1138
SELECT + COUNT ( * ) * - + 99 col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT + 70 + + - COALESCE ( - 81, SUM( 87 ) - + 90 * 5 ) DIV - 47
----
69

skipif mysql # not compatible
query I rowsort label-1139
SELECT + 70 + + - COALESCE ( - 81, SUM ( 87 ) - + 90 * 5 ) / - 47
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT + SUM( + - 96 ) - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-1140
SELECT + SUM ( + - 96 ) - COUNT ( * )
----
-97

query I rowsort
SELECT - 52 - + 55 + 47 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT DISTINCT + COUNT( * ) DIV 32 + - 85 col1
----
-85

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

query I rowsort
SELECT + 7 + - 57
----
-50

query I rowsort
SELECT ALL - 22 * 42 + - 16
----
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT + - 11 DIV + + 12
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT + - 11 / + + 12
----
0

query I rowsort
SELECT ALL 99 * 81 AS col1
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + 80 * - 35 * - 84 + + COUNT( * )
----
235201

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 80 * - 35 * - 84 + + COUNT ( * )
----
235201

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + MAX( - - 78 ) * MAX( - NULLIF ( + 57, 3 ) ) + COUNT( * ) AS col0
----
-4445

skipif mysql # not compatible
query I rowsort label-1148
SELECT + MAX ( - - 78 ) * MAX ( - NULLIF ( + 57, 3 ) ) + COUNT ( * ) AS col0
----
-4445

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL - COUNT( * ) * - 41 + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - COUNT ( * ) * - 41 + COUNT ( * ) AS col1
----
42

query I rowsort
SELECT + + 72 col2
----
72

query I rowsort
SELECT - - 84 - + 48 * 93
----
-4380

query I rowsort
SELECT - - 44 * - + 7 + 94
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1153
SELECT NULLIF ( CAST( NULL AS DECIMAL ), + 69 * - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT NULLIF ( CAST ( NULL AS REAL ), + 69 * - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - 30
----
NULL

query I rowsort
SELECT ALL - 65 * 31 - + CASE 39 WHEN + 96 THEN 49 ELSE NULL END * - 35
----
NULL

query I rowsort
SELECT ALL - + 21 * + 90 * 17 AS col1
----
-32130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1156
SELECT - 99 + CAST( 38 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-1156
SELECT - 99 + CAST ( 38 AS INTEGER ) AS col0
----
-61

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - 23 * COUNT( * ) + - ( 99 ) + + 22
----
-100

skipif mysql # not compatible
query I rowsort label-1159
SELECT - 23 * COUNT ( * ) + - ( 99 ) + + 22
----
-100

query I rowsort
SELECT ALL ( + + ( + + 94 ) ) AS col0
----
94

query I rowsort
SELECT - 60 + - + 65
----
-125

query I rowsort
SELECT + 66 + + 31 - - - 85 * + 1 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT - 78 DIV + 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1163
SELECT - 78 / + 59 AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1164
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, ( - 53 ) * + 54 AS col0
----
NULL
-2862

skipif mysql # not compatible
query II rowsort label-1164
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, ( - 53 ) * + 54 AS col0
----
NULL
-2862

query I rowsort
SELECT ALL ( + 87 ) AS col0
----
87

query I rowsort
SELECT - 30 + 69 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT ALL 42 DIV - 2
----
-21

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL 42 / - 2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT - 47 DIV ( - 17 ) * - 30
----
-60

skipif mysql # not compatible
query I rowsort label-1168
SELECT - 47 / ( - 17 ) * - 30
----
-60

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

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

query I rowsort
SELECT + 82 + - NULLIF ( - COALESCE ( 10, 74 * - 7 ), - 58 ) + - 89
----
3

query I rowsort
SELECT ALL - 67 + + - 75 + + + 1 AS col1
----
-141

query I rowsort
SELECT - 94 * - 9 col2
----
846

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT + CASE - CASE + 9 WHEN CASE - 48 WHEN 60 THEN 6 WHEN + MAX( 97 ) THEN NULL ELSE + SUM( 53 ) * 98 END THEN 73 * - 18 + + ( 44 ) / COALESCE ( 35, - CAST( - 60 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 27, - 14 * 24 ) ELSE 76 END WHEN - 81 * 65 THEN 58 WHEN 58 * 98 THEN NULL END + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT + CASE - CASE + 9 WHEN CASE - 48 WHEN 60 THEN 6 WHEN + MAX ( 97 ) THEN NULL ELSE + SUM ( 53 ) * 98 END THEN 73 * - 18 + + ( 44 ) / COALESCE ( 35, - CAST ( - 60 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 27, - 14 * 24 ) ELSE 76 END WHEN - 81 * 65 THEN 58 WHEN 58 * 98 THEN NULL END + - 5 AS col1
----
NULL

query I rowsort
SELECT ALL 76 + - + 22
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL 34 + - 97 * - ( - COALESCE ( CAST( NULL AS SIGNED ), MAX( 25 ) ) ) col1
----
-2391

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 34 + - 97 * - ( - COALESCE ( CAST ( NULL AS INTEGER ), MAX ( 25 ) ) ) col1
----
-2391

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL - 95 * - ( + - ( + COUNT( DISTINCT 15 ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - 95 * - ( + - ( + COUNT ( DISTINCT 15 ) ) )
----
-95

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

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT + 41 + + 17 + + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT DISTINCT + 92 * + 36
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL 70 + - SUM( 13 ) + 71
----
128

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 70 + - SUM ( 13 ) + 71
----
128

query I rowsort
SELECT ALL - 76 + + - 28 AS col2
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1183
SELECT - 53 + - 61 + 26 - SUM( ALL NULLIF ( - 37, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 53 + - 61 + 26 - SUM ( ALL NULLIF ( - 37, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT - - COUNT( * ) DIV 68 + + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1184
SELECT - - COUNT ( * ) / 68 + + 56 AS col0
----
56

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

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL COUNT ( * ) / 58 col0
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT - - 98 DIV + 45 + - 70 * 70
----
-4898

skipif mysql # not compatible
query I rowsort label-1188
SELECT - - 98 / + 45 + - 70 * 70
----
-4898

query I rowsort
SELECT DISTINCT - - 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT ALL + 49 DIV - - ( 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL + 49 / - - ( 43 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT - 74 DIV + + SUM( + + ( + 86 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT - 74 / + + SUM ( + + ( + 86 ) ) AS col0
----
0

query I rowsort
SELECT 13 * + 64 * 9 - + 66 AS col0
----
7422

query II rowsort
SELECT + 35, - 21 AS col0
----
35
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT - AVG ( DISTINCT - 55 ) * 79 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT - AVG ( DISTINCT - 55 ) * 79 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( - - 83, - 55 * 55 + - 14 ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT CAST( + COALESCE ( COUNT( * ), 82 / + CASE 68 WHEN ( 6 ) THEN NULL ELSE ( - ( + ( - ( + COUNT( * ) ) ) ) ) * - 4 END, - 14 * + NULLIF ( - 97, + 65 ), CASE 32 WHEN CAST( NULL AS SIGNED ) - COUNT( * ) THEN NULL WHEN - 24 / + 9 THEN + AVG ( 75 ) ELSE + CAST( 47 AS SIGNED ) END * - 81 - COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1198
SELECT CAST ( + COALESCE ( COUNT ( * ), 82 / + CASE 68 WHEN ( 6 ) THEN NULL ELSE ( - ( + ( - ( + COUNT ( * ) ) ) ) ) * - 4 END, - 14 * + NULLIF ( - 97, + 65 ), CASE 32 WHEN CAST ( NULL AS INTEGER ) - COUNT ( * ) THEN NULL WHEN - 24 / + 9 THEN + AVG ( 75 ) ELSE + CAST ( 47 AS INTEGER ) END * - 81 - COUNT ( * ) ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT + ( - 79 ) * - - 70 + + 24 * 22
----
-5002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL + CASE + + 90 WHEN + - 64 THEN + 39 * CAST( NULL AS SIGNED ) ELSE NULL END / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + CASE + + 90 WHEN + - 64 THEN + 39 * CAST ( NULL AS INTEGER ) ELSE NULL END / - 45
----
NULL

query I rowsort
SELECT 56 + - 90 * + + 76 + - 23
----
-6807

query I rowsort
SELECT 30 * 39 AS col1
----
1170

query I rowsort
SELECT DISTINCT - NULLIF ( - - 60, + 8 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL - 71 + SUM( + 42 ) - 70 + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - 71 + SUM ( + 42 ) - 70 + COUNT ( * )
----
-98

query I rowsort
SELECT 55 * + 49
----
2695

query I rowsort
SELECT ALL - 99 + 44 AS col2
----
-55

query I rowsort
SELECT - 79 col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1208
SELECT 45 + 92 AS col2, - 2 + 4 + - NULLIF ( - COUNT( * ) + 31, + CAST( 41 AS SIGNED ) )
----
137
-28

skipif mysql # not compatible
query II rowsort label-1208
SELECT 45 + 92 AS col2, - 2 + 4 + - NULLIF ( - COUNT ( * ) + 31, + CAST ( 41 AS INTEGER ) )
----
137
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT 81 * + - 50 DIV - + COUNT( * )
----
4050

skipif mysql # not compatible
query I rowsort label-1209
SELECT 81 * + - 50 / - + COUNT ( * )
----
4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT 87 + + CASE 63 WHEN + 42 THEN NULL ELSE 42 END DIV - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-1210
SELECT 87 + + CASE 63 WHEN + 42 THEN NULL ELSE 42 END / - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT - 54 + + - 21 - COUNT( * ) + + - 52 * + 71 col0
----
-3768

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT - 54 + + - 21 - COUNT ( * ) + + - 52 * + 71 col0
----
-3768

query I rowsort
SELECT 71 - + 38 + 55 + + 47
----
135

query I rowsort
SELECT - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + 55 + + SUM( ALL 78 )
----
133

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + 55 + + SUM ( ALL 78 )
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT 90 + + 87 DIV + - 22 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1215
SELECT 90 + + 87 / + - 22 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL + + 34 - - + COUNT( * ) * + 0 + 52
----
86

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + + 34 - - + COUNT ( * ) * + 0 + 52
----
86

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

query I rowsort
SELECT 89 + 86
----
175

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

query I rowsort
SELECT - 55 + + + 31
----
-24

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

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

query I rowsort
SELECT - - NULLIF ( + + COALESCE ( - 89, 95 + - 30, - 14 * + 87 + + 30 ), + 47 * + 46 )
----
-89

query I rowsort
SELECT DISTINCT + - 92 * - 95 * - 88
----
-769120

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

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

query I rowsort
SELECT DISTINCT - - 80 * 75 AS col2
----
6000

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1227
SELECT ALL - ( CASE 48 WHEN ( - 67 ) THEN CAST( NULL AS SIGNED ) END ) * NULLIF ( - 39, - 26 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - ( CASE 48 WHEN ( - 67 ) THEN CAST ( NULL AS INTEGER ) END ) * NULLIF ( - 39, - 26 * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - - CASE - 73 WHEN 55 + - + 3 THEN - 85 END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - + 7 * - COUNT( * ) + + CASE + 12 WHEN 31 THEN + 25 + - COUNT( * ) * + 53 ELSE NULL END + - 90 * COUNT( * ) * 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT - + 7 * - COUNT ( * ) + + CASE + 12 WHEN 31 THEN + 25 + - COUNT ( * ) * + 53 ELSE NULL END + - 90 * COUNT ( * ) * 9 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT 27 * - COUNT( * ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-1232
SELECT 27 * - COUNT ( * ) col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1233
SELECT 32 DIV 27 + - COALESCE ( - CASE - 54 WHEN 16 THEN + 77 WHEN 1 THEN NULL ELSE 69 DIV + 17 + 37 END, 73, - CAST( + 55 AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-1233
SELECT 32 / 27 + - COALESCE ( - CASE - 54 WHEN 16 THEN + 77 WHEN 1 THEN NULL ELSE 69 / + 17 + 37 END, 73, - CAST ( + 55 AS INTEGER ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + CASE + 38 WHEN + 97 THEN + COUNT( * ) ELSE - 42 END
----
-42

skipif mysql # not compatible
query I rowsort label-1234
SELECT + CASE + 38 WHEN + 97 THEN + COUNT ( * ) ELSE - 42 END
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT CAST( 25 AS SIGNED ) + + 74
----
99

skipif mysql # not compatible
query I rowsort label-1235
SELECT CAST ( 25 AS INTEGER ) + + 74
----
99

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

query I rowsort
SELECT - 3 - + 76 AS col1
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL + 3 + + 10 + - 41 + - - 36 * NULLIF ( + MIN( ALL 69 ), SUM( ALL + 9 ) * 96 )
----
2456

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + 3 + + 10 + - 41 + - - 36 * NULLIF ( + MIN ( ALL 69 ), SUM ( ALL + 9 ) * 96 )
----
2456

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT COUNT( * ) + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1240
SELECT COUNT ( * ) + 20 AS col1
----
21

query I rowsort
SELECT DISTINCT 66 * + CASE ( - 21 ) WHEN + 54 - 2 / + 44 THEN 86 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 40 + + - 50 AS col1
----
-10

query I rowsort
SELECT ALL ( + 99 ) + 48
----
147

query I rowsort
SELECT DISTINCT ( + 73 ) * + + COALESCE ( - 17, 21 )
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT 36 + + + 84 * 40 * + - 12 - - + COUNT( * ) AS col2
----
-40283

skipif mysql # not compatible
query I rowsort label-1245
SELECT 36 + + + 84 * 40 * + - 12 - - + COUNT ( * ) AS col2
----
-40283

query I rowsort
SELECT 71 - + 10
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT - 76 * - + COUNT( * ) * + - ( + 54 ) + 81 * NULLIF ( + 92 * ( + 30 ), + MAX( 66 ) + - 24 )
----
219456

skipif mysql # not compatible
query I rowsort label-1247
SELECT - 76 * - + COUNT ( * ) * + - ( + 54 ) + 81 * NULLIF ( + 92 * ( + 30 ), + MAX ( 66 ) + - 24 )
----
219456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1248
SELECT 81 - + - 96 + - CAST( + - 43 AS SIGNED ) * + COUNT( * ) * 83
----
3746

skipif mysql # not compatible
query I rowsort label-1248
SELECT 81 - + - 96 + - CAST ( + - 43 AS INTEGER ) * + COUNT ( * ) * 83
----
3746

query I rowsort
SELECT DISTINCT 0 + - - 75 AS col2
----
75

query I rowsort
SELECT ALL - 68 + 52 + - 53
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT CAST( - 37 AS SIGNED ) + - 29 col0
----
-66

skipif mysql # not compatible
query I rowsort label-1251
SELECT CAST ( - 37 AS INTEGER ) + - 29 col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT 64 + - + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT 64 + - + COUNT ( * )
----
63

query I rowsort
SELECT ALL 23 - - 12
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT MIN( DISTINCT + 47 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT MIN ( DISTINCT + 47 ) col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT 90 + CAST( 51 AS SIGNED ) * - COALESCE ( + 69, COALESCE ( SUM( DISTINCT 82 ), + 87 ), - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
-3429

skipif mysql # not compatible
query I rowsort label-1255
SELECT 90 + CAST ( 51 AS INTEGER ) * - COALESCE ( + 69, COALESCE ( SUM ( DISTINCT 82 ), + 87 ), - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
-3429

query I rowsort
SELECT ALL 99 - 27 AS col0
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL + COUNT( * ) * - + CASE + MAX( - 42 ) WHEN + 70 THEN NULL WHEN 41 THEN - 76 + - 60 ELSE NULL END + 92 * 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + COUNT ( * ) * - + CASE + MAX ( - 42 ) WHEN + 70 THEN NULL WHEN 41 THEN - 76 + - 60 ELSE NULL END + 92 * 75 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT - - 99 + - 29 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT - COUNT( DISTINCT - + 48 ) * + - 61 col2, + 35 * 7 * SUM( + 11 ) + SUM( DISTINCT + 54 ) * - ( 29 )
----
61
1129

skipif mysql # not compatible
query II rowsort label-1262
SELECT - COUNT ( DISTINCT - + 48 ) * + - 61 col2, + 35 * 7 * SUM ( + 11 ) + SUM ( DISTINCT + 54 ) * - ( 29 )
----
61
1129

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL 32 * + COUNT( - 62 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 32 * + COUNT ( - 62 ) AS col1
----
32

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1266
SELECT - - CASE WHEN NULL NOT BETWEEN ( CASE - - 32 WHEN + COUNT( 9 ) THEN + 48 WHEN - COUNT( * ) * - 61 THEN NULL END ) AND ( - MIN( 85 ) ) THEN 25 + ( - 45 + 61 DIV 16 ) ELSE - 37 * - 21 END + 28 AS col2
----
805

skipif mysql # not compatible
query I rowsort label-1266
SELECT - - CASE WHEN NULL NOT BETWEEN ( CASE - - 32 WHEN + COUNT ( 9 ) THEN + 48 WHEN - COUNT ( * ) * - 61 THEN NULL END ) AND ( - MIN ( 85 ) ) THEN 25 + ( - 45 + 61 / 16 ) ELSE - 37 * - 21 END + 28 AS col2
----
805

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

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

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

query I rowsort
SELECT - - 52 * - 62
----
-3224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT - CAST( - + ( - CAST( + COALESCE ( - ( + SUM( + CAST( NULL AS SIGNED ) ) ), 46, + COUNT( * ) * COUNT( * ) ) AS SIGNED ) ) AS SIGNED ) * - 64 AS col2
----
2944

skipif mysql # not compatible
query I rowsort label-1270
SELECT - CAST ( - + ( - CAST ( + COALESCE ( - ( + SUM ( + CAST ( NULL AS INTEGER ) ) ), 46, + COUNT ( * ) * COUNT ( * ) ) AS INTEGER ) ) AS INTEGER ) * - 64 AS col2
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + 35 + - + 86 * + + ( + 89 ) * - COUNT( * )
----
7689

skipif mysql # not compatible
query I rowsort label-1271
SELECT + 35 + - + 86 * + + ( + 89 ) * - COUNT ( * )
----
7689

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + COALESCE ( - COUNT( * ), - + 25, - MAX( ALL 35 ) + 1 ) + MAX( ALL + 9 )
----
8

skipif mysql # not compatible
query I rowsort label-1272
SELECT + COALESCE ( - COUNT ( * ), - + 25, - MAX ( ALL 35 ) + 1 ) + MAX ( ALL + 9 )
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT + MIN( DISTINCT + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT + MIN ( DISTINCT + 43 ) AS col2
----
43

query I rowsort
SELECT ALL 48 * - 96 + - 69
----
-4677

query I rowsort
SELECT - 31 * 94
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT ALL - CAST( + + 58 AS SIGNED ) * - 90 * COUNT( * ) + MAX( + 95 ) + 5 * + 99 + + 88
----
5898

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - CAST ( + + 58 AS INTEGER ) * - 90 * COUNT ( * ) + MAX ( + 95 ) + 5 * + 99 + + 88
----
5898

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT + MIN( - - 33 ) * + NULLIF ( + - 30, - 90 ) * + 41 + 94 * - 38 AS col0
----
-44162

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT + MIN ( - - 33 ) * + NULLIF ( + - 30, - 90 ) * + 41 + 94 * - 38 AS col0
----
-44162

onlyif mysql # aggregate syntax: 
query II rowsort label-1281
SELECT ALL ( 43 ) * + 46 + - COUNT( * ) AS col0, - 35 + + CASE + ( COUNT( * ) ) WHEN - 39 / 88 THEN 63 WHEN 58 THEN NULL WHEN + COUNT( * ) / 96 THEN NULL END / 72 AS col1
----
1977
NULL

skipif mysql # not compatible
query II rowsort label-1281
SELECT ALL ( 43 ) * + 46 + - COUNT ( * ) AS col0, - 35 + + CASE + ( COUNT ( * ) ) WHEN - 39 / 88 THEN 63 WHEN 58 THEN NULL WHEN + COUNT ( * ) / 96 THEN NULL END / 72 AS col1
----
1977
NULL

query I rowsort
SELECT - 95 * - 45 AS col1
----
4275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT NULLIF ( + COUNT( * ), 41 / - - 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1284
SELECT NULLIF ( + COUNT ( * ), 41 / - - 52 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT ( - + 87 ) DIV - 51 + + + MIN( DISTINCT 55 )
----
56

skipif mysql # not compatible
query I rowsort label-1285
SELECT ( - + 87 ) / - 51 + + + MIN ( DISTINCT 55 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT NULLIF ( 57, COUNT( * ) - - 10 * + + 14 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1286
SELECT NULLIF ( 57, COUNT ( * ) - - 10 * + + 14 ) AS col2
----
57

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT + MIN ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + ( - - ( - 73 ) ) + - + MAX( 54 ) + + 45 + 81
----
-1

skipif mysql # not compatible
query I rowsort label-1288
SELECT + ( - - ( - 73 ) ) + - + MAX ( 54 ) + + 45 + 81
----
-1

query I rowsort
SELECT ALL 34 * - 10 * + ( - - 49 ) + - ( + 11 ) + - 62 * + 22 AS col0
----
-18035

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1291
SELECT ALL + 42 col0, 85 / - CASE + ( - 0 ) WHEN MIN( ALL ( 74 ) ) * - 92 THEN NULL WHEN 9 * 22 THEN + NULLIF ( - MAX( DISTINCT 34 ), 70 * 99 - + 21 * + 18 ) + COUNT( * ) ELSE NULL END
----
42
NULL

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL + 42 col0, 85 / - CASE + ( - 0 ) WHEN MIN ( ALL ( 74 ) ) * - 92 THEN NULL WHEN 9 * 22 THEN + NULLIF ( - MAX ( DISTINCT 34 ), 70 * 99 - + 21 * + 18 ) + COUNT ( * ) ELSE NULL END
----
42
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL 71 * + 15 - - - COUNT( * ) AS col1
----
1064

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL 71 * + 15 - - - COUNT ( * ) AS col1
----
1064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1294
SELECT + CAST( NULL AS DECIMAL ) * + ( - 63 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT + CAST ( NULL AS REAL ) * + ( - 63 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT MIN( DISTINCT + - 67 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-1295
SELECT MIN ( DISTINCT + - 67 ) col1
----
-67

query I rowsort
SELECT 37 * - 47 - + - 45
----
-1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT MIN( ALL - + CAST( + 65 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1297
SELECT MIN ( ALL - + CAST ( + 65 AS INTEGER ) )
----
-65

query I rowsort
SELECT ALL 17 * - 36
----
-612

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT + 87 DIV 63 * 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 87 / 63 * 5 AS col1
----
5

query I rowsort
SELECT + 99 * - 7
----
-693

query II rowsort
SELECT - 55, 48 AS col1
----
-55
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1302
SELECT + 45, + ( + + MAX( - 14 ) ) AS col2
----
45
-14

skipif mysql # not compatible
query II rowsort label-1302
SELECT + 45, + ( + + MAX ( - 14 ) ) AS col2
----
45
-14

query I rowsort
SELECT - + 86 + + 27
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL 77 DIV + 68 + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 77 / + 68 + 21 AS col1
----
22

query II rowsort
SELECT ALL 68 AS col1, - 64
----
68
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + + COUNT( DISTINCT COALESCE ( - + 10, + - 0 ) ) - + 57
----
-56

skipif mysql # not compatible
query I rowsort label-1307
SELECT + + COUNT ( DISTINCT COALESCE ( - + 10, + - 0 ) ) - + 57
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL COALESCE ( + 84, CASE 93 WHEN - 26 * - + 58 + + 29 THEN 32 WHEN 31 THEN NULL END * COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL COALESCE ( + 84, CASE 93 WHEN - 26 * - + 58 + + 29 THEN 32 WHEN 31 THEN NULL END * COUNT ( * ) ) AS col0
----
84

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

query I rowsort
SELECT ALL ( + 95 ) * + 97
----
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT DISTINCT - - ( - 49 ) + - COUNT( + 0 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - - ( - 49 ) + - COUNT ( + 0 ) AS col2
----
-50

query I rowsort
SELECT ALL + + 87 * + 69 * + 32 AS col1
----
192096

query I rowsort
SELECT - - 10 * - + 77 col2
----
-770

query I rowsort
SELECT ALL - 46 + - COALESCE ( - + 86, + 2 + + 4 ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1315
SELECT ALL - - COUNT( * ) / CAST( NULL AS DECIMAL ) + - ( - CASE + + 15 WHEN 27 THEN 64 * + ( 36 ) - - 39 / + AVG ( 13 ) WHEN - 68 THEN NULL WHEN + CAST( + 88 AS SIGNED ) THEN 19 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - - COUNT ( * ) / CAST ( NULL AS REAL ) + - ( - CASE + + 15 WHEN 27 THEN 64 * + ( 36 ) - - 39 / + AVG ( 13 ) WHEN - 68 THEN NULL WHEN + CAST ( + 88 AS INTEGER ) THEN 19 END )
----
NULL

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

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

query I rowsort
SELECT + 19 + + 53
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ALL - 40 DIV 5 DIV + - CASE WHEN NOT 45 <= NULL THEN NULL ELSE + 5 END
----
1

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - 40 / 5 / + - CASE WHEN NOT 45 <= NULL THEN NULL ELSE + 5 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT COUNT( * ) * - 23 * + NULLIF ( 20, + AVG ( + 96 ) * + 55 * 0 - COUNT( * ) ) + 31 col0
----
-429

skipif mysql # not compatible
query I rowsort label-1319
SELECT COUNT ( * ) * - 23 * + NULLIF ( 20, + AVG ( + 96 ) * + 55 * 0 - COUNT ( * ) ) + 31 col0
----
-429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1320
SELECT - 1 * - - CAST( MIN( - 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 1 * - - CAST ( MIN ( - 88 ) AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT + SUM( ALL + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1321
SELECT + SUM ( ALL + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1322
SELECT - COUNT( * ) DIV + 58 + 40 * 23
----
920

skipif mysql # not compatible
query I rowsort label-1322
SELECT - COUNT ( * ) / + 58 + 40 * 23
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL CASE - 70 WHEN - 84 - - - 23 + + + 44 * 91 THEN NULL WHEN - 12 THEN COUNT( * ) + 6 / CAST( 70 * + 44 AS SIGNED ) END / ( - ( + 73 ) ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL CASE - 70 WHEN - 84 - - - 23 + + + 44 * 91 THEN NULL WHEN - 12 THEN COUNT ( * ) + 6 / CAST ( 70 * + 44 AS INTEGER ) END / ( - ( + 73 ) ) + + 33 AS col0
----
NULL

query I rowsort
SELECT ALL - 13 * 63
----
-819

query I rowsort
SELECT - 48 + + 19 + 17 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1326
SELECT - 65 + 55 * - - 89 * - 30 * + COUNT( * ) AS col2, 74 AS col0
----
-146915
74

skipif mysql # not compatible
query II rowsort label-1326
SELECT - 65 + 55 * - - 89 * - 30 * + COUNT ( * ) AS col2, 74 AS col0
----
-146915
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT DISTINCT 24 DIV - 14 - + 2 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT 24 / - 14 - + 2 / 69
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1328
SELECT ALL + NULLIF ( ( + + COUNT( * ) ), + + 83 + - 88 ) AS col1, - 71 AS col2
----
1
-71

skipif mysql # not compatible
query II rowsort label-1328
SELECT ALL + NULLIF ( ( + + COUNT ( * ) ), + + 83 + - 88 ) AS col1, - 71 AS col2
----
1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT 41 * + + COUNT( * ) + + 94 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-1329
SELECT 41 * + + COUNT ( * ) + + 94 AS col0
----
135

query I rowsort
SELECT ALL 99 * 22 - 99
----
2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT - CAST( - + CASE 53 WHEN + - COALESCE ( - 33, COALESCE ( 82, + 72, COUNT( * ) * COUNT( * ) ), + 17 ) + 14 * + ( CAST( NULL AS SIGNED ) + - 82 * 78 ) THEN - 64 / 93 ELSE 83 END AS SIGNED ) + - 20
----
63

skipif mysql # not compatible
query I rowsort label-1331
SELECT - CAST ( - + CASE 53 WHEN + - COALESCE ( - 33, COALESCE ( 82, + 72, COUNT ( * ) * COUNT ( * ) ), + 17 ) + 14 * + ( CAST ( NULL AS INTEGER ) + - 82 * 78 ) THEN - 64 / 93 ELSE 83 END AS INTEGER ) + - 20
----
63

query I rowsort
SELECT - NULLIF ( - 17, + 37 ) + - 99
----
-82

query I rowsort
SELECT ( 81 ) * + - 1 + + 2 AS col2
----
-79

query I rowsort
SELECT + 87 - - 24
----
111

query I rowsort
SELECT + COALESCE ( + + 16, + 22 ) * + - 83 + 16 AS col0
----
-1312

query I rowsort
SELECT ( + - 65 ) + + 24
----
-41

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

query I rowsort
SELECT 22 * - 7 AS col2
----
-154

query I rowsort
SELECT 64 + + 26 AS col0
----
90

query II rowsort
SELECT + 58 + - 2 * - + ( 11 ) - - - 47 AS col1, + 34 * - 19
----
33
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL MIN( - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL MIN ( - 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT ALL CAST( NULL AS SIGNED ) + + - COUNT( * ) + + - 18 + - 57 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + + - 18 + - 57 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - - 87 AS col1
----
87

query I rowsort
SELECT ALL 50 * + 77 * - 80
----
-308000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT MAX( ALL 53 ) + - 96 - + - COUNT( * ) + - - 43 * 46 * + CASE - CASE 23 WHEN ( + COUNT( * ) ) THEN CASE 77 WHEN CASE - 47 WHEN + 97 THEN - COALESCE ( 70, - MAX( DISTINCT 78 ) / + 98 ) END THEN - COUNT( - 68 ) ELSE NULL END * 21 WHEN - COUNT( * ) THEN 74 + 0 END WHEN 53 THEN - 67 * COUNT( * ) WHEN + 89 THEN COUNT( + 86 ) + NULLIF ( - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), 10 * - 90 ) ELSE NULL END * CASE - 26 WHEN 0 THEN COUNT( * ) WHEN 37 + - 74 THEN NULL WHEN NULLIF ( 53, + 97 ) * - 62 + - 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT MAX ( ALL 53 ) + - 96 - + - COUNT ( * ) + - - 43 * 46 * + CASE - CASE 23 WHEN ( + COUNT ( * ) ) THEN CASE 77 WHEN CASE - 47 WHEN + 97 THEN - COALESCE ( 70, - MAX ( DISTINCT 78 ) / + 98 ) END THEN - COUNT ( - 68 ) ELSE NULL END * 21 WHEN - COUNT ( * ) THEN 74 + 0 END WHEN 53 THEN - 67 * COUNT ( * ) WHEN + 89 THEN COUNT ( + 86 ) + NULLIF ( - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), 10 * - 90 ) ELSE NULL END * CASE - 26 WHEN 0 THEN COUNT ( * ) WHEN 37 + - 74 THEN NULL WHEN NULLIF ( 53, + 97 ) * - 62 + - 80 THEN NULL END
----
NULL

query I rowsort
SELECT + 33 + 13
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT MAX( ALL 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1347
SELECT MAX ( ALL 25 ) AS col0
----
25

query I rowsort
SELECT DISTINCT - 8 + + 36
----
28

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

skipif mysql # not compatible
query I rowsort label-1349
SELECT - - MIN ( + 66 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT + 17 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT + 17 / + 21
----
0

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

query I rowsort
SELECT 43 + 65 * - 78 * + 34
----
-172337

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT NULLIF ( - - NULLIF ( - + 7, + 12 ), - - 69 - - 99 - + 56 * - 3 / 16 ) + - COUNT( * ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT NULLIF ( - - NULLIF ( - + 7, + 12 ), - - 69 - - 99 - + 56 * - 3 / 16 ) + - COUNT ( * ) col0
----
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT 5 * - COUNT( * ) * - - 24 AS col1, 42
----
-120
42

skipif mysql # not compatible
query II rowsort label-1355
SELECT 5 * - COUNT ( * ) * - - 24 AS col1, 42
----
-120
42

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT 48 + 17 + + SUM( + 60 ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT 48 + 17 + + SUM ( + 60 ) AS col2
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT 9, - SUM( - + 49 ) AS col0
----
9
49

skipif mysql # not compatible
query II rowsort label-1360
SELECT 9, - SUM ( - + 49 ) AS col0
----
9
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT ALL - 36 - + COALESCE ( 70, - COUNT( * ) * + 95, CASE 79 WHEN 47 THEN + MAX( DISTINCT 29 ) END + - 52 ) + 8 * + 12 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - 36 - + COALESCE ( 70, - COUNT ( * ) * + 95, CASE 79 WHEN 47 THEN + MAX ( DISTINCT 29 ) END + - 52 ) + 8 * + 12 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT ALL - COUNT( * ), - COUNT( DISTINCT - + 23 ) * - 71 AS col0
----
-1
71

skipif mysql # not compatible
query II rowsort label-1362
SELECT ALL - COUNT ( * ), - COUNT ( DISTINCT - + 23 ) * - 71 AS col0
----
-1
71

query I rowsort
SELECT DISTINCT - 27 * 43 AS col1
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT 13 - COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT 13 - COUNT ( * ) col1
----
12

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

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

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

skipif mysql # not compatible
query II rowsort label-1366
SELECT DISTINCT - 3 AS col2, COUNT ( * )
----
-3
1

query I rowsort
SELECT DISTINCT - 48 col1
----
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 96 DIV 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1369
SELECT 96 / 35 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL - COALESCE ( - 91, ( + + 16 ) + + MAX( + 42 ), - - 12 )
----
91

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - COALESCE ( - 91, ( + + 16 ) + + MAX ( + 42 ), - - 12 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1371
SELECT 96 col0, 10 + + 42 + + COUNT( * ) AS col0
----
96
53

skipif mysql # not compatible
query II rowsort label-1371
SELECT 96 col0, 10 + + 42 + + COUNT ( * ) AS col0
----
96
53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - COUNT( - 82 ) * - + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - COUNT ( - 82 ) * - + 89 AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT 86 DIV - + 68 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1374
SELECT 86 / - + 68 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL - NULLIF ( + SUM( ALL + + 7 ), 65 )
----
-7

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - NULLIF ( + SUM ( ALL + + 7 ), 65 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1376
SELECT DISTINCT - 92 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT - 92 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - CASE + ( - 25 ) WHEN + + 87 / - 35 THEN - 65 END AS col2
----
NULL

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

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

query I rowsort
SELECT 9 * - 24
----
-216

query I rowsort
SELECT DISTINCT - + 71 + - 61 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-1381
SELECT + COUNT( * ) * - - 79 - - 59 AS col0, + NULLIF ( - + 45, 11 * - 52 )
----
138
-45

skipif mysql # not compatible
query II rowsort label-1381
SELECT + COUNT ( * ) * - - 79 - - 59 AS col0, + NULLIF ( - + 45, 11 * - 52 )
----
138
-45

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

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

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

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

query I rowsort
SELECT 58 + 96
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1385
SELECT ALL + COUNT( * ), - CAST( + 21 AS SIGNED ) col2
----
1
-21

skipif mysql # not compatible
query II rowsort label-1385
SELECT ALL + COUNT ( * ), - CAST ( + 21 AS INTEGER ) col2
----
1
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + MIN( DISTINCT - 27 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-1387
SELECT + MIN ( DISTINCT - 27 ) col1
----
-27

query I rowsort
SELECT + - ( 65 ) * - 31 + + 53 col1
----
2068

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1390
SELECT ALL ( + 34 ) * + COUNT( * ) AS col1, 49 / 72 + CASE WHEN AVG ( ALL - 73 ) NOT BETWEEN - 68 * - ( COUNT( * ) ) + + ( - 15 ) AND - COUNT( * ) + + 0 * 91 THEN NULL WHEN 31 - - 6 BETWEEN ( 7 * + AVG ( ALL - 45 / 91 ) ) AND ( - 16 ) THEN - 56 END - 88 AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-1390
SELECT ALL ( + 34 ) * + COUNT ( * ) AS col1, 49 / 72 + CASE WHEN AVG ( ALL - 73 ) NOT BETWEEN - 68 * - ( COUNT ( * ) ) + + ( - 15 ) AND - COUNT ( * ) + + 0 * 91 THEN NULL WHEN 31 - - 6 BETWEEN ( 7 * + AVG ( ALL - 45 / 91 ) ) AND ( - 16 ) THEN - 56 END - 88 AS col0
----
34
NULL

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

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

query II rowsort
SELECT 27 - + 75 + + 1 - - + 29 - - 32 + - + 44, 77 + + + 9 AS col2
----
-30
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL NULLIF ( + - 17, - NULLIF ( - COUNT( * ), 92 + - + 34 / + ( - COUNT( * ) ) ) ) * 20
----
-340

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL NULLIF ( + - 17, - NULLIF ( - COUNT ( * ), 92 + - + 34 / + ( - COUNT ( * ) ) ) ) * 20
----
-340

query I rowsort
SELECT ALL - 27 * - 42 AS col0
----
1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1395
SELECT ALL 55 - + MIN( ALL - - NULLIF ( - 95, + 88 + + + 1 ) ) AS col2, + CAST( + + AVG ( + 95 ) AS SIGNED )
----
150
95

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL 55 - + MIN ( ALL - - NULLIF ( - 95, + 88 + + + 1 ) ) AS col2, + CAST ( + + AVG ( + 95 ) AS INTEGER )
----
150
95

query II rowsort
SELECT + 49 col0, - 97
----
49
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT - COALESCE ( - CASE COUNT( * ) WHEN - + NULLIF ( - - 28, COUNT( * ) ) THEN 88 DIV + 11 * + COALESCE ( 46 DIV + 28, - 54 + - 56 * 43, - 87 ) - 67 WHEN - ( 77 ) * 35 THEN NULL END, ( 30 ), - 31, 91 ) + 32 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1398
SELECT - COALESCE ( - CASE COUNT ( * ) WHEN - + NULLIF ( - - 28, COUNT ( * ) ) THEN 88 / + 11 * + COALESCE ( 46 / + 28, - 54 + - 56 * 43, - 87 ) - 67 WHEN - ( 77 ) * 35 THEN NULL END, ( 30 ), - 31, 91 ) + 32 AS col2
----
2

query I rowsort
SELECT 96 * - 74 * + 82 * + 22
----
-12815616

query I rowsort
SELECT - + 84
----
-84

query I rowsort
SELECT 84 - + + 15 col1
----
69

query II rowsort
SELECT DISTINCT + 22 * - + 68 AS col1, 66 AS col1
----
-1496
66

query I rowsort
SELECT DISTINCT - ( + 93 ) * 66
----
-6138

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT ALL 36 DIV - 27 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL 36 / - 27 col1
----
-1

query II rowsort
SELECT ALL 48 - + 71, 18 AS col1
----
-23
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL - COUNT( ALL 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - COUNT ( ALL 12 )
----
-1

query I rowsort
SELECT + CASE ( 31 ) WHEN 20 THEN + + 62 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT ( - 41 ) * - MAX( - 1 ) - - CAST( + + COUNT( * ) AS SIGNED ) + - - 66 * - 22
----
-1492

skipif mysql # not compatible
query I rowsort label-1409
SELECT ( - 41 ) * - MAX ( - 1 ) - - CAST ( + + COUNT ( * ) AS INTEGER ) + - - 66 * - 22
----
-1492

query I rowsort
SELECT NULLIF ( - 63, - 99 )
----
-63

query I rowsort
SELECT ALL 94 * - 75 AS col1
----
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT + COUNT( ALL + 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1412
SELECT + COUNT ( ALL + 47 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + COUNT( * ) + - - 5 * + 99
----
496

skipif mysql # not compatible
query I rowsort label-1413
SELECT + COUNT ( * ) + - - 5 * + 99
----
496

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT ALL 3 * + 35 + + ( - + 20 ) + - - 42 DIV 35 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL 3 * + 35 + + ( - + 20 ) + - - 42 / 35 AS col2
----
86

query I rowsort
SELECT ALL - 78 * 83
----
-6474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT + MIN( COALESCE ( CAST( NULL AS SIGNED ), - - 25 ) ) + + + 36 + - + 6 - 88
----
-33

skipif mysql # not compatible
query I rowsort label-1416
SELECT + MIN ( COALESCE ( CAST ( NULL AS INTEGER ), - - 25 ) ) + + + 36 + - + 6 - 88
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL - 3 * - - 80 / - CASE + + MAX( DISTINCT + + 50 ) WHEN - 35 + - 80 THEN + - 70 WHEN + 80 THEN + 30 WHEN 96 THEN + 93 / - MAX( + 70 ) END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - 3 * - - 80 / - CASE + + MAX ( DISTINCT + + 50 ) WHEN - 35 + - 80 THEN + - 70 WHEN + 80 THEN + 30 WHEN 96 THEN + 93 / - MAX ( + 70 ) END + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL 93 * - - SUM( ALL + 36 ) * + 80 + - COUNT( * )
----
267839

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL 93 * - - SUM ( ALL + 36 ) * + 80 + - COUNT ( * )
----
267839

query I rowsort
SELECT DISTINCT 83 * + 91 + + 43
----
7596

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + CASE + 10 WHEN 79 / 9 * + COUNT( * ) + + + MAX( 79 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + + 67 END * - COALESCE ( - 22, 33, COALESCE ( COALESCE ( - 41, - 2, - COUNT( * ) ), + 61 - 18 ) ) + - COUNT( * ) AS col0
----
1473

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + CASE + 10 WHEN 79 / 9 * + COUNT ( * ) + + + MAX ( 79 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + + 67 END * - COALESCE ( - 22, 33, COALESCE ( COALESCE ( - 41, - 2, - COUNT ( * ) ), + 61 - 18 ) ) + - COUNT ( * ) AS col0
----
1473

query I rowsort
SELECT + COALESCE ( + 58, 96 )
----
58

query I rowsort
SELECT + + 94 * - + 60
----
-5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT - + CASE + COUNT( * ) WHEN - ( + - MAX( ALL + 78 ) ) THEN NULL ELSE - CASE + + 63 WHEN + 60 THEN NULL WHEN - CAST( 38 AS SIGNED ) THEN NULL WHEN MIN( + CAST( NULL AS SIGNED ) ) / + 85 THEN 60 ELSE 95 * 55 END END + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT - + CASE + COUNT ( * ) WHEN - ( + - MAX ( ALL + 78 ) ) THEN NULL ELSE - CASE + + 63 WHEN + 60 THEN NULL WHEN - CAST ( 38 AS INTEGER ) THEN NULL WHEN MIN ( + CAST ( NULL AS INTEGER ) ) / + 85 THEN 60 ELSE 95 * 55 END END + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL + 83 / + - COUNT ( * )
----
-83

query I rowsort
SELECT - - 14 + 40 + 4 col0
----
58

query I rowsort
SELECT DISTINCT + + 6 * NULLIF ( - 19, - 9 + + 67 ) AS col2
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT ALL MAX( DISTINCT + - 92 ) DIV 10 * - ( 87 ) * 93 * + ( - 77 ) AS col0
----
-5607063

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL MAX ( DISTINCT + - 92 ) / 10 * - ( 87 ) * 93 * + ( - 77 ) AS col0
----
-5607063

query I rowsort
SELECT - ( 9 ) + + 36 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL MAX( - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL MAX ( - 22 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT + + 14 * + 1 + - + 48 AS col2
----
-34

query I rowsort
SELECT DISTINCT - 31 + - 97 * 49
----
-4784

query I rowsort
SELECT ALL NULLIF ( + - 77, - + 49 ) AS col1
----
-77

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

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

query I rowsort
SELECT - + 92 * + NULLIF ( + 44, - 90 * + - 34 ) + - 2 * - + 92 * + 73 + - 95 AS col2
----
9289

query I rowsort
SELECT - + 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - 18 + - 46 * COUNT( ALL - - 91 )
----
-64

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 18 + - 46 * COUNT ( ALL - - 91 )
----
-64

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

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

query I rowsort
SELECT + - 37 + - 6
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 45 * + 18 - + 75 + - + COUNT( * ) AS col2
----
-886

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 45 * + 18 - + 75 + - + COUNT ( * ) AS col2
----
-886

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

query I rowsort
SELECT ALL - 54 - + 14 + + 16
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL NULLIF ( 99, SUM( ALL 18 ) / + + 86 + - 15 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL NULLIF ( 99, SUM ( ALL 18 ) / + + 86 + - 15 ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT - 42 + + 25 + - COALESCE ( 8, - 64, 63 DIV - ( + 91 ) + NULLIF ( + 39, - COALESCE ( 85, + 71 DIV - 48 ) + 79 ) ) * 44
----
-369

skipif mysql # not compatible
query I rowsort label-1443
SELECT - 42 + + 25 + - COALESCE ( 8, - 64, 63 / - ( + 91 ) + NULLIF ( + 39, - COALESCE ( 85, + 71 / - 48 ) + 79 ) ) * 44
----
-369

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT - COALESCE ( 15, 13 - 81 * - 99 ) DIV + 52 col0
----
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT - COALESCE ( 15, 13 - 81 * - 99 ) / + 52 col0
----
0

query I rowsort
SELECT ALL CASE - 33 WHEN - - COALESCE ( - 98, 25 ) THEN NULL WHEN - + 78 * - - 82 THEN NULLIF ( 40, + 79 - 42 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT DISTINCT ( + - CAST( + COALESCE ( - 35, AVG ( 75 ) * + 89 / - NULLIF ( CASE COUNT( * ) WHEN + 86 THEN - MAX( DISTINCT 0 ) / + 97 END, + ( + COUNT( * ) ) ) * 96 ) AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT ( + - CAST ( + COALESCE ( - 35, AVG ( 75 ) * + 89 / - NULLIF ( CASE COUNT ( * ) WHEN + 86 THEN - MAX ( DISTINCT 0 ) / + 97 END, + ( + COUNT ( * ) ) ) * 96 ) AS INTEGER ) ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1447
SELECT ALL + 9 DIV + 56 * 72
----
0

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL + 9 / + 56 * 72
----
0

query I rowsort
SELECT ALL ( 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT + 91 * - MAX( + - 20 ) AS col2
----
1820

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT + 91 * - MAX ( + - 20 ) AS col2
----
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT + 71 DIV 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1450
SELECT + 71 / 39 AS col1
----
1

query I rowsort
SELECT + 88 + - 32
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT SUM( + 44 ) * + 10 * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT SUM ( + 44 ) * + 10 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT 68 DIV - 76 * - - ( + + 84 ) + COUNT( * ) * - - 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT 68 / - 76 * - - ( + + 84 ) + COUNT ( * ) * - - 54 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT + CAST( NULL AS SIGNED ) / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT + CAST ( NULL AS INTEGER ) / + 37
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1456
SELECT ALL 36 DIV - CAST( 54 AS SIGNED ) + + ( + CASE + 37 WHEN + 89 THEN - + 98 ELSE - 27 * + COUNT( * ) + - 88 END )
----
-115

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL 36 / - CAST ( 54 AS INTEGER ) + + ( + CASE + 37 WHEN + 89 THEN - + 98 ELSE - 27 * + COUNT ( * ) + - 88 END )
----
-115

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT DISTINCT 11 DIV - 93 + + 49 col1
----
49

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT 11 / - 93 + + 49 col1
----
49

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

query I rowsort
SELECT + 81 * 90
----
7290

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT + MIN( + + NULLIF ( 81, 16 ) ) * + 79 * - CAST( NULL AS SIGNED ) + COALESCE ( + 66, + - 96 * + 88 + 32, + 1 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT + MIN ( + + NULLIF ( 81, 16 ) ) * + 79 * - CAST ( NULL AS INTEGER ) + COALESCE ( + 66, + - 96 * + 88 + 32, + 1 ) col0
----
NULL

query I rowsort
SELECT - 60 * - 58
----
3480

query I rowsort
SELECT DISTINCT - 21 * 32
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT ALL - 18 * - COALESCE ( + 63, - - NULLIF ( - - ( + 73 ), 84 ) ) + + 1 * - ( + CAST( + 89 AS SIGNED ) ) * COUNT( * ) + ( 97 ) + - MIN( DISTINCT 17 ) * + 87
----
-337

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - 18 * - COALESCE ( + 63, - - NULLIF ( - - ( + 73 ), 84 ) ) + + 1 * - ( + CAST ( + 89 AS INTEGER ) ) * COUNT ( * ) + ( 97 ) + - MIN ( DISTINCT 17 ) * + 87
----
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - 32 * - COUNT( * ) - 90 + + 73 * + + COUNT( * ) - - ( - 23 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1469
SELECT - 32 * - COUNT ( * ) - 90 + + 73 * + + COUNT ( * ) - - ( - 23 ) AS col1
----
-8

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

query I rowsort
SELECT + - 82 * 60
----
-4920

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

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

query I rowsort
SELECT DISTINCT 5 * - ( ( + 35 ) ) AS col2
----
-175

query I rowsort
SELECT ALL + 89 * 52 * - 91 - - 72 AS col2
----
-421076

query I rowsort
SELECT + 7 + - 16 AS col0
----
-9

query I rowsort
SELECT 41 * + 57 - 15
----
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + 20 + 83 * - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1477
SELECT + 20 + 83 * - COUNT ( * ) AS col1
----
-63

query I rowsort
SELECT - 62 col2
----
-62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT - - 81 * - + 33 + SUM( + 93 ) * - MAX( - 86 )
----
5325

skipif mysql # not compatible
query I rowsort label-1481
SELECT - - 81 * - + 33 + SUM ( + 93 ) * - MAX ( - 86 )
----
5325

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1483
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - CAST( NULL AS DECIMAL ) + - + 39 + + - COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS REAL ) + - + 39 + + - COUNT ( * ) AS col2
----
NULL
NULL

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

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

query I rowsort
SELECT ALL + 23 * - + 80
----
-1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT + COUNT( DISTINCT + + ( - 58 ) ) * - 50 * + COUNT( ALL + 93 ) * - COUNT( * ) DIV - - 91 DIV COUNT( - + 50 ) - - COALESCE ( + 43, + 27 * + 71, 62 ) + - 85 * + 55 col0
----
-4632

skipif mysql # not compatible
query I rowsort label-1486
SELECT + COUNT ( DISTINCT + + ( - 58 ) ) * - 50 * + COUNT ( ALL + 93 ) * - COUNT ( * ) / - - 91 / COUNT ( - + 50 ) - - COALESCE ( + 43, + 27 * + 71, 62 ) + - 85 * + 55 col0
----
-4632

query I rowsort
SELECT DISTINCT + 5 * - 59 AS col1
----
-295

query II rowsort
SELECT ALL 17, + 34 col1
----
17
34

query II rowsort
SELECT - 18 AS col0, 63 * + 22 AS col2
----
-18
1386

query I rowsort
SELECT 74 + + ( 77 ) + - 72
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT ALL 71, - COUNT( * ) * ( - COUNT( * ) ) * COUNT( * ) + - 34 * + 69 + - - MAX( + + 23 ) col1
----
71
-2322

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL 71, - COUNT ( * ) * ( - COUNT ( * ) ) * COUNT ( * ) + - 34 * + 69 + - - MAX ( + + 23 ) col1
----
71
-2322

query I rowsort
SELECT 80 * + + 1 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + SUM( 62 ) + + CASE + + 33 WHEN 82 THEN NULL WHEN 47 * + + 94 + + 12 + CAST( NULL AS SIGNED ) * - + 35 THEN ( 60 ) END + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + SUM ( 62 ) + + CASE + + 33 WHEN 82 THEN NULL WHEN 47 * + + 94 + + 12 + CAST ( NULL AS INTEGER ) * - + 35 THEN ( 60 ) END + 68
----
NULL

query I rowsort
SELECT DISTINCT + 5 * - + ( 45 )
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL - COUNT( * ) + + 4 * - 32 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL - COUNT ( * ) + + 4 * - 32 AS col0
----
-129

query I rowsort
SELECT 96 - + 22 + + 0 * - ( + - ( + + 52 ) )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT DISTINCT 32 AS col0, + SUM( DISTINCT - 89 ) * + - 63 * - 61 AS col2
----
32
-342027

skipif mysql # not compatible
query II rowsort label-1497
SELECT DISTINCT 32 AS col0, + SUM ( DISTINCT - 89 ) * + - 63 * - 61 AS col2
----
32
-342027

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

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT - COUNT ( * ) + - + 2 AS col2
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1500
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - + 10 / - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 10 / - 74 AS col2
----
NULL

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

query I rowsort
SELECT ALL - CASE WHEN NULL NOT BETWEEN NULL AND - 54 THEN - 32 / - NULLIF ( 26, - 95 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT COUNT( * ) - - 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1503
SELECT COUNT ( * ) - - 76 AS col0
----
77

query I rowsort
SELECT ALL 5 * - 53
----
-265

query I rowsort
SELECT - 75 + + + 94 col1
----
19

query I rowsort
SELECT ALL + 66 + - - 97 * 42 AS col2
----
4140

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

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

query I rowsort
SELECT ALL + 81 * - - 35
----
2835

query II rowsort
SELECT DISTINCT - 74, COALESCE ( + ( 12 ), - 51, 55 ) AS col2
----
-74
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT - - CASE + 6 WHEN + ( - + 17 ) - - 26 - - MAX( 15 ) * - COUNT( * ) THEN - 16 / + 79 * - 13 + + 62 + COUNT( 53 + 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - - CASE + 6 WHEN + ( - + 17 ) - - 26 - - MAX ( 15 ) * - COUNT ( * ) THEN - 16 / + 79 * - 13 + + 62 + COUNT ( 53 + 98 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT ALL 50 / 77 - 57 + + CAST( NULL AS SIGNED ) + + 94 - + 94 + 86 - - 58 + - 33 * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL 50 / 77 - 57 + + CAST ( NULL AS INTEGER ) + + 94 - + 94 + 86 - - 58 + - 33 * - 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - - 92 * + ( 92 ) + + COUNT( * ) * - 90 + + - COUNT( 78 ) * 23
----
8351

skipif mysql # not compatible
query I rowsort label-1512
SELECT - - 92 * + ( 92 ) + + COUNT ( * ) * - 90 + + - COUNT ( 78 ) * 23
----
8351

query I rowsort
SELECT ALL 94 - 29
----
65

query I rowsort
SELECT DISTINCT - 98 - + 8 - - NULLIF ( - + 97, 97 * + - 25 + + ( 20 ) ) * + + 79 AS col0
----
-7769

query II rowsort
SELECT ALL - - 17, 97 * - 55 * + 56 AS col1
----
17
-298760

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT - 61 + + COALESCE ( 55, - COALESCE ( + 37, - MAX( DISTINCT - + 76 ) * - - COUNT( * ) * - + 88 ), 33 DIV + + 80 DIV 92 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1517
SELECT - 61 + + COALESCE ( 55, - COALESCE ( + 37, - MAX ( DISTINCT - + 76 ) * - - COUNT ( * ) * - + 88 ), 33 / + + 80 / 92 ) AS col0
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT - COUNT( * ) * + + 79 * + - 89 * + 90 + - 74 AS col0
----
632716

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - COUNT ( * ) * + + 79 * + - 89 * + 90 + - 74 AS col0
----
632716

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1520
SELECT ALL - + 44 AS col0, CAST( NULL AS SIGNED ) - ( + 24 )
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1520
SELECT ALL - + 44 AS col0, CAST ( NULL AS INTEGER ) - ( + 24 )
----
-44
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - CASE + + CASE + + 25 WHEN 90 THEN NULL WHEN - COUNT( * ) THEN COUNT( DISTINCT - 69 ) * - + AVG ( - 79 ) + + + 5 + + + 12 + 77 * + 47 ELSE NULL END WHEN 73 THEN 81 * 92 + 74 ELSE 38 END AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1523
SELECT - CASE + + CASE + + 25 WHEN 90 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( DISTINCT - 69 ) * - + AVG ( - 79 ) + + + 5 + + + 12 + 77 * + 47 ELSE NULL END WHEN 73 THEN 81 * 92 + 74 ELSE 38 END AS col0
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1524
SELECT ALL 13 col0, CASE ( + 17 ) WHEN + - 31 THEN NULL ELSE + 99 * + + 31 * AVG ( DISTINCT 44 ) - - ( - 39 ) END - CAST( NULL AS DECIMAL )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT ALL 13 col0, CASE ( + 17 ) WHEN + - 31 THEN NULL ELSE + 99 * + + 31 * AVG ( DISTINCT 44 ) - - ( - 39 ) END - CAST ( NULL AS REAL )
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT 6 * + + 23 + - 4 - + COUNT( * ) * - 85
----
219

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT 6 * + + 23 + - 4 - + COUNT ( * ) * - 85
----
219

query II rowsort
SELECT - 74 AS col0, 71
----
-74
71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT ALL 84 * - 2 col0, 27 * - 80 + + COUNT( * ) * COUNT( * ) + - 5 AS col0
----
-168
-2164

skipif mysql # not compatible
query II rowsort label-1528
SELECT ALL 84 * - 2 col0, 27 * - 80 + + COUNT ( * ) * COUNT ( * ) + - 5 AS col0
----
-168
-2164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT SUM( ALL CAST( 92 AS SIGNED ) ) - CASE 62 WHEN - - ( + 79 ) THEN + 21 * + 21 + 41 - - 91 END * + 30 + CAST( + 92 + + MAX( ALL + 63 ) / + 56 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT SUM ( ALL CAST ( 92 AS INTEGER ) ) - CASE 62 WHEN - - ( + 79 ) THEN + 21 * + 21 + 41 - - 91 END * + 30 + CAST ( + 92 + + MAX ( ALL + 63 ) / + 56 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 74 * 33 col2, 16
----
2442
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT 80 DIV - - SUM( DISTINCT + 2 )
----
40

skipif mysql # not compatible
query I rowsort label-1531
SELECT 80 / - - SUM ( DISTINCT + 2 )
----
40

query I rowsort
SELECT 16 * + - 47 AS col1
----
-752

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

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

query I rowsort
SELECT 5 + 89
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL 35 + + SUM( - + 1 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 35 + + SUM ( - + 1 ) AS col0
----
34

query I rowsort
SELECT ALL + 56 * - 76
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL COUNT( * ) + - 7 + + 63 + + 30 * - ( - + ( - 93 ) ) * - 35 AS col2
----
97707

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL COUNT ( * ) + - 7 + + 63 + + 30 * - ( - + ( - 93 ) ) * - 35 AS col2
----
97707

query I rowsort
SELECT ALL + 47 + 51 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT SUM( ALL - 27 ) * + 25
----
-675

skipif mysql # not compatible
query I rowsort label-1539
SELECT SUM ( ALL - 27 ) * + 25
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1540
SELECT 31 + CAST( NULL AS SIGNED ) * - - 96 * 49 + - 22 * 47 * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT 31 + CAST ( NULL AS INTEGER ) * - - 96 * 49 + - 22 * 47 * 57 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 2 + + 76
----
74

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1543
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 43 * - ( - 76 ) - - - 62 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL + CAST ( NULL AS REAL ) * - - 43 * - ( - 76 ) - - - 62 * - 10
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT ALL - + NULLIF ( + - 96, - 18 + + + 38 - 72 * 3 / + - COUNT( * ) ), 34 AS col2
----
96
34

skipif mysql # not compatible
query II rowsort label-1545
SELECT ALL - + NULLIF ( + - 96, - 18 + + + 38 - 72 * 3 / + - COUNT ( * ) ), 34 AS col2
----
96
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT ALL - - 86 * + + COALESCE ( ( - ( - 4 ) ), CAST( NULL AS SIGNED ) ) * - 3
----
-1032

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - - 86 * + + COALESCE ( ( - ( - 4 ) ), CAST ( NULL AS INTEGER ) ) * - 3
----
-1032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT COALESCE ( + COALESCE ( - 3, + 28, 96 ), + + COUNT( * ) * + 18 DIV + 26 + 15 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1548
SELECT COALESCE ( + COALESCE ( - 3, + 28, 96 ), + + COUNT ( * ) * + 18 / + 26 + 15 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT 55 * - 33 + + 57 - COUNT( * ) * + 40 col2
----
-1798

skipif mysql # not compatible
query I rowsort label-1549
SELECT 55 * - 33 + + 57 - COUNT ( * ) * + 40 col2
----
-1798

query I rowsort
SELECT 79 * - 78 * + 76
----
-468312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1551
SELECT - + ( 46 ) DIV + + 43 - + + CAST( SUM( ( - 69 ) ) AS SIGNED ) + 31 + + 75 + - 45 * - NULLIF ( + 38, 61 )
----
1884

skipif mysql # not compatible
query I rowsort label-1551
SELECT - + ( 46 ) / + + 43 - + + CAST ( SUM ( ( - 69 ) ) AS INTEGER ) + 31 + + 75 + - 45 * - NULLIF ( + 38, 61 )
----
1884

query I rowsort
SELECT + + NULLIF ( + 41, + 12 + + 69 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL - ( CASE - + ( - - 49 ) WHEN + 46 * + - COUNT( * ) * - - 74 THEN - 90 * - - 24 * - ( NULLIF ( - 96, 50 ) ) * CASE NULLIF ( - NULLIF ( 22, + 8 * COUNT( * ) + + COUNT( * ) ), + 12 ) * - 73 + 55 WHEN - 46 THEN - 45 WHEN + 74 THEN NULL END ELSE COALESCE ( - 94, MAX( DISTINCT ( 15 ) ) - + COUNT( * ) ) * 87 END ) AS col1
----
8178

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - ( CASE - + ( - - 49 ) WHEN + 46 * + - COUNT ( * ) * - - 74 THEN - 90 * - - 24 * - ( NULLIF ( - 96, 50 ) ) * CASE NULLIF ( - NULLIF ( 22, + 8 * COUNT ( * ) + + COUNT ( * ) ), + 12 ) * - 73 + 55 WHEN - 46 THEN - 45 WHEN + 74 THEN NULL END ELSE COALESCE ( - 94, MAX ( DISTINCT ( 15 ) ) - + COUNT ( * ) ) * 87 END ) AS col1
----
8178

query II rowsort
SELECT ALL - 11 * + + 79 * + 64 AS col2, - 57 AS col1
----
-55616
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1555
SELECT + ( + CAST( + SUM( 36 ) AS SIGNED ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1555
SELECT + ( + CAST ( + SUM ( 36 ) AS INTEGER ) ) AS col0
----
36

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

query I rowsort
SELECT ALL - 40 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT + 34 * SUM( - 59 )
----
-2006

skipif mysql # not compatible
query I rowsort label-1558
SELECT + 34 * SUM ( - 59 )
----
-2006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT ALL - - COALESCE ( - + 70, + COUNT( * ) - 94 + + 66, + CAST( 94 AS SIGNED ) - + + ( - + 32 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - - COALESCE ( - + 70, + COUNT ( * ) - 94 + + 66, + CAST ( 94 AS INTEGER ) - + + ( - + 32 ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1560
SELECT + + COUNT( - 63 ) DIV + - 24
----
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT + + COUNT ( - 63 ) / + - 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT ALL + - 77 + - + 21 DIV - - COUNT( * ) + + + 29 col1
----
-69

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL + - 77 + - + 21 / - - COUNT ( * ) + + + 29 col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT - COUNT( DISTINCT + - 16 ) * - ( + + 54 ) - + MIN( + 46 ) * - ( - 97 ) AS col0, - 64 + 89 + - COUNT( * ) + 38 AS col0
----
-4408
62

skipif mysql # not compatible
query II rowsort label-1562
SELECT - COUNT ( DISTINCT + - 16 ) * - ( + + 54 ) - + MIN ( + 46 ) * - ( - 97 ) AS col0, - 64 + 89 + - COUNT ( * ) + 38 AS col0
----
-4408
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT + 65 + CAST( - 57 AS SIGNED ) - + 39
----
-31

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 65 + CAST ( - 57 AS INTEGER ) - + 39
----
-31

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

skipif mysql # not compatible
query II rowsort label-1564
SELECT DISTINCT 65 AS col1, COUNT ( * )
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT + 33 + - + COALESCE ( + 2, 44 + 82 + + 19 * 1, - - CASE WHEN NULL IS NULL THEN COUNT( * ) END ) * - 71 + - + COUNT( * ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT + 33 + - + COALESCE ( + 2, 44 + 82 + + 19 * 1, - - CASE WHEN NULL IS NULL THEN COUNT ( * ) END ) * - 71 + - + COUNT ( * ) AS col0
----
174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + 88 + + 67 + 90 * + 46 + COUNT( * ) AS col1
----
4296

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 88 + + 67 + 90 * + 46 + COUNT ( * ) AS col1
----
4296

query I rowsort
SELECT ALL 94 * - 37
----
-3478

query I rowsort
SELECT - NULLIF ( + + 49, 31 * + ( + 7 ) ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT + CAST( - 68 AS SIGNED ) - + 50
----
-118

skipif mysql # not compatible
query I rowsort label-1570
SELECT + CAST ( - 68 AS INTEGER ) - + 50
----
-118

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT - 76 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT - 76 / + 82 AS col1
----
0

query II rowsort
SELECT 74 AS col0, 83 AS col2
----
74
83

query II rowsort
SELECT - 92 AS col0, 93 col0
----
-92
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT ALL CAST( - 69 AS SIGNED ) - - - COUNT( * ) * 74 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL CAST ( - 69 AS INTEGER ) - - - COUNT ( * ) * 74 AS col1
----
-143

query I rowsort
SELECT DISTINCT 98 col2
----
98

query I rowsort
SELECT - ( - 16 )
----
16

query I rowsort
SELECT DISTINCT + 17 * - 67
----
-1139

query I rowsort
SELECT - 93 * - + 83 AS col1
----
7719

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

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

query I rowsort
SELECT + 37 * 57 AS col0
----
2109

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

skipif mysql # not compatible
query I rowsort label-1583
SELECT + SUM ( + 1 )
----
1

query I rowsort
SELECT ALL - 14 * 36 AS col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT 9 * 39 + - NULLIF ( COUNT( * ), + 9 + - 56 + - CASE - + 22 WHEN 82 THEN NULL WHEN - + 53 * 86 THEN COUNT( * ) * - 90 * NULLIF ( 56, - COUNT( * ) + 88 ) END * + 2 ) + + COUNT( * ) AS col1
----
351

skipif mysql # not compatible
query I rowsort label-1585
SELECT 9 * 39 + - NULLIF ( COUNT ( * ), + 9 + - 56 + - CASE - + 22 WHEN 82 THEN NULL WHEN - + 53 * 86 THEN COUNT ( * ) * - 90 * NULLIF ( 56, - COUNT ( * ) + 88 ) END * + 2 ) + + COUNT ( * ) AS col1
----
351

query I rowsort
SELECT - - 3 - - + 35 AS col1
----
38

query I rowsort
SELECT + ( - 51 ) col1
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT - + 54 DIV + 49 - 0 + 55
----
54

skipif mysql # not compatible
query I rowsort label-1589
SELECT - + 54 / + 49 - 0 + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT + 38 * + 6 - ( + - ( - COUNT( * ) ) ) AS col0
----
227

skipif mysql # not compatible
query I rowsort label-1590
SELECT + 38 * + 6 - ( + - ( - COUNT ( * ) ) ) AS col0
----
227

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT + - MIN( - 59 ) + + NULLIF ( + 58, 31 + + - 58 )
----
117

skipif mysql # not compatible
query I rowsort label-1592
SELECT + - MIN ( - 59 ) + + NULLIF ( + 58, 31 + + - 58 )
----
117

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL AVG ( ALL - 29 ) * + - 45 / - 13 + + ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * + 49 * - MAX( + 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL AVG ( ALL - 29 ) * + - 45 / - 13 + + ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * + 49 * - MAX ( + 33 ) AS col0
----
NULL

query II rowsort
SELECT ALL + + 79 AS col1, 22 + + 41
----
79
63

query II rowsort
SELECT DISTINCT + 24 AS col2, + 64 * 90
----
24
5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT + 71 * + 86 * + CASE + CASE - - 82 WHEN + 32 + - - 59 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) END WHEN ( - 4 ) THEN 89 - 95 ELSE 39 * + 10 END + COUNT( * ) AS col1
----
2381341

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 71 * + 86 * + CASE + CASE - - 82 WHEN + 32 + - - 59 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) END WHEN ( - 4 ) THEN 89 - 95 ELSE 39 * + 10 END + COUNT ( * ) AS col1
----
2381341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1598
SELECT ALL - COUNT( * ) * 19 DIV + 24 + + + COUNT( * ) * 48 - - COALESCE ( + 90, + - COUNT( * ) + 41 * - 61 ) DIV + 30
----
51

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - COUNT ( * ) * 19 / + 24 + + + COUNT ( * ) * 48 - - COALESCE ( + 90, + - COUNT ( * ) + 41 * - 61 ) / + 30
----
51

query I rowsort
SELECT ALL 75 * + - 40 + 96
----
-2904

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

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

query I rowsort
SELECT ( + - COALESCE ( 34, + NULLIF ( + 27, + 97 ) + - + 28 ) ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT - 85 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT - 85 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + COALESCE ( 3, + COUNT( * ), 42 + 7 + NULLIF ( ( 11 ), + + CASE - 32 WHEN + 39 / + - 57 + + + 10 THEN NULL ELSE 15 + AVG ( 16 + - 44 ) END ) + - 41 * 95 )
----
3

skipif mysql # not compatible
query I rowsort label-1603
SELECT + COALESCE ( 3, + COUNT ( * ), 42 + 7 + NULLIF ( ( 11 ), + + CASE - 32 WHEN + 39 / + - 57 + + + 10 THEN NULL ELSE 15 + AVG ( 16 + - 44 ) END ) + - 41 * 95 )
----
3

query I rowsort
SELECT - 48 + - 95 AS col1
----
-143

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

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

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

query I rowsort
SELECT DISTINCT + 57 col0
----
57

query I rowsort
SELECT DISTINCT 77 * - - 14 + 62 col0
----
1140

onlyif mysql # DIV for integer division: 
query II rowsort label-1609
SELECT DISTINCT - NULLIF ( + ( + 12 ), + 88 + - 47 ) * - - ( + 97 ) * + 56 + + 3 DIV - 84 col2, - 36 AS col2
----
-65184
-36

skipif mysql # not compatible
query II rowsort label-1609
SELECT DISTINCT - NULLIF ( + ( + 12 ), + 88 + - 47 ) * - - ( + 97 ) * + 56 + + 3 / - 84 col2, - 36 AS col2
----
-65184
-36

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

query I rowsort
SELECT + 65 * 14 AS col2
----
910

onlyif mysql # DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT + 11 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + 11 / 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT - 94 + NULLIF ( + - COUNT( * ), - 56 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1613
SELECT - 94 + NULLIF ( + - COUNT ( * ), - 56 ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT - CAST( + + 78 AS SIGNED ) - - - 37 * 87 AS col1
----
-3297

skipif mysql # not compatible
query I rowsort label-1614
SELECT - CAST ( + + 78 AS INTEGER ) - - - 37 * 87 AS col1
----
-3297

query II rowsort
SELECT - 70 + + + 73 col1, - 78 + - ( 58 ) + + + 25 AS col0
----
3
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + MAX( - + 48 ) + - - 35
----
-13

skipif mysql # not compatible
query I rowsort label-1616
SELECT + MAX ( - + 48 ) + - - 35
----
-13

query I rowsort
SELECT DISTINCT ( - + 18 ) - 35 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - CASE + - COUNT( * ) WHEN - + COUNT( * ) + + 65 THEN + 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - CASE + - COUNT ( * ) WHEN - + COUNT ( * ) + + 65 THEN + 26 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT + SUM( - 32 ) - + 63 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + SUM ( - 32 ) - + 63 AS col1
----
-95

query I rowsort
SELECT ALL 10 * + + 33
----
330

query I rowsort
SELECT + 16 + + - 83 * - 55 + - 27 col2
----
4554

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

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

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

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

query I rowsort
SELECT COALESCE ( + 8, + + 26 )
----
8

query I rowsort
SELECT NULLIF ( ( 17 ), + ( 11 ) * + 14 * - 90 ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT + 13 + - COUNT( * ) * + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-1626
SELECT + 13 + - COUNT ( * ) * + COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1627
SELECT ALL + - CASE - 8 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) + + - 73 / + NULLIF ( + 36, 24 + - - 48 ) / COALESCE ( - + MIN( - 67 ), - CAST( NULL AS DECIMAL ), - + 55, + 98 ) + + 49 THEN + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + - CASE - 8 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) + + - 73 / + NULLIF ( + 36, 24 + - - 48 ) / COALESCE ( - + MIN ( - 67 ), - CAST ( NULL AS REAL ), - + 55, + 98 ) + + 49 THEN + 75 ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL - 36 DIV 24 + 99 col0
----
98

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - 36 / 24 + 99 col0
----
98

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT 72 + - - COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT ALL - ( 8 ) + ( + + COUNT( + 84 ) ) AS col1, 39
----
-7
39

skipif mysql # not compatible
query II rowsort label-1634
SELECT ALL - ( 8 ) + ( + + COUNT ( + 84 ) ) AS col1, 39
----
-7
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT - 29 * - + CASE + SUM( + + 32 ) WHEN - 32 THEN - 50 * - - 15 * 22 / + NULLIF ( + - CASE 37 WHEN - + 97 THEN NULL WHEN - COUNT( * ) * - 46 THEN NULL ELSE + COUNT( * ) + 39 / 69 END, + ( 24 ) ) ELSE NULL END * + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 29 * - + CASE + SUM ( + + 32 ) WHEN - 32 THEN - 50 * - - 15 * 22 / + NULLIF ( + - CASE 37 WHEN - + 97 THEN NULL WHEN - COUNT ( * ) * - 46 THEN NULL ELSE + COUNT ( * ) + 39 / 69 END, + ( 24 ) ) ELSE NULL END * + 51 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1637
SELECT 59 * + CAST( NULL AS SIGNED ) AS col0, - 92 AS col1
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-1637
SELECT 59 * + CAST ( NULL AS INTEGER ) AS col0, - 92 AS col1
----
NULL
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL 57 + - 98 + CASE - COUNT( DISTINCT - - ( + + 88 ) ) WHEN + - NULLIF ( + 80, 10 ) * - + 60 THEN COUNT( * ) WHEN - 41 * - - 90 THEN NULL WHEN + 6 - 46 THEN + 47 * - 46 ELSE NULL END * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL 57 + - 98 + CASE - COUNT ( DISTINCT - - ( + + 88 ) ) WHEN + - NULLIF ( + 80, 10 ) * - + 60 THEN COUNT ( * ) WHEN - 41 * - - 90 THEN NULL WHEN + 6 - 46 THEN + 47 * - 46 ELSE NULL END * - 48 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1641
SELECT DISTINCT - 61, MIN( 34 ) AS col2, + COUNT( * ) AS col2
----
-61
34
1

skipif mysql # not compatible
query III rowsort label-1641
SELECT DISTINCT - 61, MIN ( 34 ) AS col2, + COUNT ( * ) AS col2
----
-61
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + 33 + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + 33 + COUNT ( * )
----
34

query II rowsort
SELECT + 60 * - 4 - + 97, 35 AS col1
----
-337
35

query I rowsort
SELECT 9 - + - 56 AS col1
----
65

query I rowsort
SELECT ( + - 91 ) * + 20 * + + 54 * + 96
----
-9434880

query I rowsort
SELECT 25 * + - 32 AS col0
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT ALL + NULLIF ( 46, + ( + 68 ) ) DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + NULLIF ( 46, + ( + 68 ) ) / 90 AS col2
----
0

query II rowsort
SELECT ALL 20 AS col2, + 39
----
20
39

query I rowsort
SELECT 99 + - 18 AS col1
----
81

query I rowsort
SELECT 8 + - 3
----
5

query I rowsort
SELECT - 22 * + 35 * + + 78 * - COALESCE ( - 77, - 60 * 9 + + ( 16 ) + + 27 ) - + 84
----
-4624704

query I rowsort
SELECT 15 * ( - 64 ) * + - 90 AS col1
----
86400

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL MAX( DISTINCT - 89 ) * - + 39
----
3471

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL MAX ( DISTINCT - 89 ) * - + 39
----
3471

query I rowsort
SELECT DISTINCT 84 col0
----
84

query I rowsort
SELECT ALL + 98 * + + NULLIF ( + 31, + - 78 ) AS col0
----
3038

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

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

query II rowsort
SELECT ALL 46 AS col0, + COALESCE ( - 0, + 8 * + 3 * 95 ) AS col2
----
46
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT 24 DIV - + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT 24 / - + 25 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1660
SELECT ALL - 73 / - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - 73 / - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 87 + + 4
----
91

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

skipif mysql # not compatible
query II rowsort label-1662
SELECT + COUNT ( * ), + 94 AS col0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT - + COUNT( * ) / CASE + 63 WHEN + 84 * + 73 THEN COUNT( 27 ) / - 16 * + 25 + 30 + 13 * + 74 * 76 * 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - + COUNT ( * ) / CASE + 63 WHEN + 84 * + 73 THEN COUNT ( 27 ) / - 16 * + 25 + 30 + 13 * + 74 * 76 * 11 ELSE NULL END
----
NULL

query I rowsort
SELECT - 28 + - 59 + + 78 * + 3
----
147

query I rowsort
SELECT DISTINCT 76 + + 17
----
93

query I rowsort
SELECT DISTINCT + - 8 + - 47 - - - 36 col1
----
-91

query I rowsort
SELECT 56 - + 32
----
24

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

query I rowsort
SELECT DISTINCT - NULLIF ( + 18, + 68 ) + - + ( - ( + - 79 ) )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT ALL 61 + 2 * - COUNT( * ), 70 AS col0
----
59
70

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL 61 + 2 * - COUNT ( * ), 70 AS col0
----
59
70

query I rowsort
SELECT 36 + - 59 - + 0 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL COUNT( DISTINCT 19 ) + + 22 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL COUNT ( DISTINCT 19 ) + + 22 AS col1
----
23

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1674
SELECT + 99 DIV 62 * + ( - - 11 ) - CASE 64 WHEN ( - COUNT( * ) ) + - 94 THEN NULL WHEN + ( - AVG ( + 79 ) ) * + + COUNT( * ) - - + 32 THEN NULL WHEN + 15 THEN NULL ELSE 26 * 20 END + + 60 + MIN( 56 - + 35 ) * 14
----
-155

skipif mysql # not compatible
query I rowsort label-1674
SELECT + 99 / 62 * + ( - - 11 ) - CASE 64 WHEN ( - COUNT ( * ) ) + - 94 THEN NULL WHEN + ( - AVG ( + 79 ) ) * + + COUNT ( * ) - - + 32 THEN NULL WHEN + 15 THEN NULL ELSE 26 * 20 END + + 60 + MIN ( 56 - + 35 ) * 14
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - - 59 * + COUNT( * ) - + - ( + 96 ) + + 57 + + 86 col1
----
298

skipif mysql # not compatible
query I rowsort label-1675
SELECT - - 59 * + COUNT ( * ) - + - ( + 96 ) + + 57 + + 86 col1
----
298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT ALL - - 3 + + 63 + - - COUNT( + 66 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL - - 3 + + 63 + - - COUNT ( + 66 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 77 + - 71 AS col1
----
6

query II rowsort
SELECT + + 20 AS col0, ( + 22 ) * - ( 73 )
----
20
-1606

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL + 55 - - - COALESCE ( 95, + 24 + - - MAX( - CASE WHEN NOT NULL <> ( NULL ) THEN - 27 ELSE 80 END ) - + 15, - COUNT( DISTINCT 35 ) + - + 3 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + 55 - - - COALESCE ( 95, + 24 + - - MAX ( - CASE WHEN NOT NULL <> ( NULL ) THEN - 27 ELSE 80 END ) - + 15, - COUNT ( DISTINCT 35 ) + - + 3 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - 94 * 77 + + COUNT( * ) + + 52
----
-7185

skipif mysql # not compatible
query I rowsort label-1680
SELECT - 94 * 77 + + COUNT ( * ) + + 52
----
-7185

query II rowsort
SELECT ALL + 28 * - 38 col0, + 96 AS col2
----
-1064
96

query I rowsort
SELECT 18 + 8 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1683
SELECT ALL 71 - + - 87 - - + ( COUNT( * ) ) * + 9 * + + 4 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
194
NULL

skipif mysql # not compatible
query II rowsort label-1683
SELECT ALL 71 - + - 87 - - + ( COUNT ( * ) ) * + 9 * + + 4 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
194
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT 89 DIV + - 43
----
-2

skipif mysql # not compatible
query I rowsort label-1684
SELECT 89 / + - 43
----
-2

query I rowsort
SELECT 25 * - + 11 AS col2
----
-275

query II rowsort
SELECT + 65 AS col0, 8 AS col2
----
65
8

query I rowsort
SELECT 34 * + 27
----
918

query I rowsort
SELECT 44 + 18
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1689
SELECT ALL - 79, NULLIF ( 84, - 57 * - + 63 * CAST( + 5 AS SIGNED ) + + CASE - 71 WHEN 84 THEN + 25 / - - ( + - 19 ) END ) col0
----
-79
84

skipif mysql # not compatible
query II rowsort label-1689
SELECT ALL - 79, NULLIF ( 84, - 57 * - + 63 * CAST ( + 5 AS INTEGER ) + + CASE - 71 WHEN 84 THEN + 25 / - - ( + - 19 ) END ) col0
----
-79
84

query I rowsort
SELECT DISTINCT - 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ( - + COUNT( * ) ) * NULLIF ( + - 37, - 35 )
----
37

skipif mysql # not compatible
query I rowsort label-1691
SELECT ( - + COUNT ( * ) ) * NULLIF ( + - 37, - 35 )
----
37

query III rowsort
SELECT 98, 61 AS col1, 38 AS col0
----
98
61
38

query I rowsort
SELECT 40 + + 7 + - 50 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL + 66 * - CAST( NULL AS SIGNED ) / 28 * - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + 66 * - CAST ( NULL AS INTEGER ) / 28 * - - 81
----
NULL

query II rowsort
SELECT ALL 41 AS col0, - 73 AS col2
----
41
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-1696
SELECT - 43 AS col1, + 74 * + - 84 * - + COUNT( * ) AS col1
----
-43
6216

skipif mysql # not compatible
query II rowsort label-1696
SELECT - 43 AS col1, + 74 * + - 84 * - + COUNT ( * ) AS col1
----
-43
6216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT COUNT( * ) + + 78 DIV - 95 + - - 74 - 29
----
46

skipif mysql # not compatible
query I rowsort label-1697
SELECT COUNT ( * ) + + 78 / - 95 + - - 74 - 29
----
46

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

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

query I rowsort
SELECT + 82 + 40 + + + ( + 89 ) + - - 24
----
235

onlyif mysql # aggregate syntax: 
query II rowsort label-1700
SELECT - 64 col1, + COUNT( * ) * 13 AS col0
----
-64
13

skipif mysql # not compatible
query II rowsort label-1700
SELECT - 64 col1, + COUNT ( * ) * 13 AS col0
----
-64
13

query I rowsort
SELECT ALL + 36 + - 3 AS col1
----
33

query I rowsort
SELECT ALL - + COALESCE ( + 64, - 88 ) + 38
----
-26

query I rowsort
SELECT - 48 + + 47 col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL + + 56 * - MIN( - 91 ) + 98 AS col1
----
5194

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + + 56 * - MIN ( - 91 ) + 98 AS col1
----
5194

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT - 75 DIV 79 DIV + - 71 + 23 + + 54 * + + 88
----
4775

skipif mysql # not compatible
query I rowsort label-1706
SELECT - 75 / 79 / + - 71 + 23 + + 54 * + + 88
----
4775

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL - + 43 + - ( + 38 ) - COUNT( - 44 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - + 43 + - ( + 38 ) - COUNT ( - 44 ) AS col1
----
-82

query I rowsort
SELECT - + 95 * + 43 col2
----
-4085

query I rowsort
SELECT - - 63 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1710
SELECT - - 20 * - 23 AS col1, CASE WHEN COUNT( * ) NOT IN ( + 57 DIV 40, - MAX( ALL 41 ) ) THEN - - 5 ELSE + 35 END
----
-460
35

skipif mysql # not compatible
query II rowsort label-1710
SELECT - - 20 * - 23 AS col1, CASE WHEN COUNT ( * ) NOT IN ( + 57 / 40, - MAX ( ALL 41 ) ) THEN - - 5 ELSE + 35 END
----
-460
35

query I rowsort
SELECT DISTINCT + COALESCE ( + 19, - + 2 )
----
19

query I rowsort
SELECT + - 40 + - 63 col1
----
-103

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1714
SELECT + 44, - CAST( NULL AS SIGNED ) AS col2, 77 AS col0
----
44
NULL
77

skipif mysql # not compatible
query III rowsort label-1714
SELECT + 44, - CAST ( NULL AS INTEGER ) AS col2, 77 AS col0
----
44
NULL
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1715
SELECT ALL - + 89 * 46 + + 15 - + + 3 - - CAST( NULL AS DECIMAL ) * + 3 * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL - + 89 * 46 + + 15 - + + 3 - - CAST ( NULL AS REAL ) * + 3 * + - 54
----
NULL

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

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

query I rowsort
SELECT ALL + + 88 * - + 81 * - 34
----
242352

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT + 7 * + CASE + 98 WHEN CAST( NULL AS SIGNED ) * - 11 + - COUNT( * ) + + - 52 THEN NULL WHEN - 63 + + 1 THEN 71 + 51 * 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT + 7 * + CASE + 98 WHEN CAST ( NULL AS INTEGER ) * - 11 + - COUNT ( * ) + + - 52 THEN NULL WHEN - 63 + + 1 THEN 71 + 51 * 23 ELSE NULL END
----
NULL

query I rowsort
SELECT + 52 * + - 7 - - + 53 AS col0
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT CASE - 31 WHEN + 69 + COUNT( * ) THEN NULL WHEN + - 15 THEN - COUNT( * ) * - 2 * - + 30 * + + 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT CASE - 31 WHEN + 69 + COUNT ( * ) THEN NULL WHEN + - 15 THEN - COUNT ( * ) * - 2 * - + 30 * + + 79 ELSE NULL END
----
NULL

query I rowsort
SELECT + 59 * ( - - 19 ) AS col1
----
1121

query I rowsort
SELECT - 71 * + + 89 AS col2
----
-6319

query I rowsort
SELECT - 30 + + - 1 + 83
----
52

query I rowsort
SELECT + 6 * - 33 AS col2
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1727
SELECT ALL 18 DIV + - COUNT( * ) AS col0
----
-18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT + 23 DIV - 75 * 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT + 23 / - 75 * 42 AS col0
----
0

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

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

query II rowsort
SELECT + 76 - 30 AS col0, ( + 3 ) AS col1
----
46
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT + 93 DIV + + 20 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1731
SELECT + 93 / + + 20 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1732
SELECT + ( - 33 ), - MAX( ALL 10 ) AS col1
----
-33
-10

skipif mysql # not compatible
query II rowsort label-1732
SELECT + ( - 33 ), - MAX ( ALL 10 ) AS col1
----
-33
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT COUNT( DISTINCT 12 )
----
1

skipif mysql # not compatible
query I rowsort label-1733
SELECT COUNT ( DISTINCT 12 )
----
1

query I rowsort
SELECT + 40 + - + 5 + 25 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1735
SELECT - CAST( NULL AS SIGNED ) - + - 6 AS col2, 43 * - 55 AS col0
----
NULL
-2365

skipif mysql # not compatible
query II rowsort label-1735
SELECT - CAST ( NULL AS INTEGER ) - + - 6 AS col2, 43 * - 55 AS col0
----
NULL
-2365

query I rowsort
SELECT ALL 49 + 41 + + - ( - 97 ) * + - 3 AS col2
----
-201

query I rowsort
SELECT ALL + 7 + - ( + 10 ) - - 85 + 28 + + - 13 + - - 69 AS col1
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1738
SELECT ALL - NULLIF ( + + COUNT( * ), + CAST( NULL AS DECIMAL ) ) + + - 45 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - NULLIF ( + + COUNT ( * ), + CAST ( NULL AS REAL ) ) + + - 45 AS col2
----
-46

query II rowsort
SELECT DISTINCT - ( 22 ), - 47 + - 64 AS col0
----
-22
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT ALL + 4 + - 50 + 81 * COUNT( * ) DIV + + 34
----
-44

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 4 + - 50 + 81 * COUNT ( * ) / + + 34
----
-44

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

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

query II rowsort
SELECT ALL ( - - ( - + 39 ) ) col2, + ( 9 ) * 92 AS col2
----
-39
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT ALL - CAST( + + 4 AS SIGNED ) - 78
----
-82

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL - CAST ( + + 4 AS INTEGER ) - 78
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1744
SELECT - 49 - MAX( + NULLIF ( - - 99, - CAST( 22 AS SIGNED ) ) ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 49 - MAX ( + NULLIF ( - - 99, - CAST ( 22 AS INTEGER ) ) ) AS col2
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT COUNT( * ) * + - 66 * CAST( + 9 AS SIGNED ) + 97
----
-497

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT COUNT ( * ) * + - 66 * CAST ( + 9 AS INTEGER ) + 97
----
-497

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

query II rowsort
SELECT DISTINCT COALESCE ( 52, - 3 + - ( - 51 ) ) col1, + 8 col1
----
52
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL - COUNT( * ) * + SUM( DISTINCT 81 ) + + + 73
----
-8

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT 81 ) + + + 73
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT - + CAST( - AVG ( ALL + 79 ) AS SIGNED ) + + - 31 + - + 21 * 82 AS col0
----
-1674

skipif mysql # not compatible
query I rowsort label-1749
SELECT - + CAST ( - AVG ( ALL + 79 ) AS INTEGER ) + + - 31 + - + 21 * 82 AS col0
----
-1674

query I rowsort
SELECT + - 48 + - + 71
----
-119

query I rowsort
SELECT - - 42 * 86 AS col2
----
3612

query II rowsort
SELECT DISTINCT + 60 AS col0, 8 + - 78 * - 41 AS col0
----
60
3206

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT + 85 * - + 50 * + CASE 86 WHEN + CASE 71 WHEN + 21 / COUNT( * ) + 73 * - - 21 * 3 THEN - NULLIF ( - + COUNT( * ), 72 ) END THEN + COALESCE ( + - 65, - 86 + 14 ) + - 66 END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 85 * - + 50 * + CASE 86 WHEN + CASE 71 WHEN + 21 / COUNT ( * ) + 73 * - - 21 * 3 THEN - NULLIF ( - + COUNT ( * ), 72 ) END THEN + COALESCE ( + - 65, - 86 + 14 ) + - 66 END + 16
----
NULL

query I rowsort
SELECT - 60 - + + 6
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1755
SELECT 74 / - 19 * - - COUNT( * ) + + - CASE WHEN NOT ( 37 ) <= + 8 * + + 26 / - + 82 THEN NULL WHEN NOT - 31 IN ( + + COALESCE ( 68, 53 - + 47, 71 - + COUNT( 31 ) - CAST( NULL AS SIGNED ) * 30 ) + 28 / 31 ) THEN 1 + - 62 WHEN AVG ( - 99 ) * 62 IS NOT NULL THEN NULL END * CAST( 71 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT 74 / - 19 * - - COUNT ( * ) + + - CASE WHEN NOT ( 37 ) <= + 8 * + + 26 / - + 82 THEN NULL WHEN NOT - 31 IN ( + + COALESCE ( 68, 53 - + 47, 71 - + COUNT ( 31 ) - CAST ( NULL AS INTEGER ) * 30 ) + 28 / 31 ) THEN 1 + - 62 WHEN AVG ( - 99 ) * 62 IS NOT NULL THEN NULL END * CAST ( 71 AS REAL )
----
NULL

query I rowsort
SELECT 38 * 75 - - + 14 AS col1
----
2864

query I rowsort
SELECT - 47 * - - 2 * + + ( 67 )
----
-6298

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1759
SELECT DISTINCT - ( + 79 ) * + 29 col0, 44 * - COUNT( * )
----
-2291
-44

skipif mysql # not compatible
query II rowsort label-1759
SELECT DISTINCT - ( + 79 ) * + 29 col0, 44 * - COUNT ( * )
----
-2291
-44

query II rowsort
SELECT ALL + 63 AS col0, 54 * 40 * 37
----
63
79920

query II rowsort
SELECT 39 * + 35 + + + 80, + 70 AS col1
----
1445
70

query I rowsort
SELECT ALL 12 * + 53 AS col0
----
636

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1763
SELECT ALL 34 DIV + + CAST( + 58 AS SIGNED ) + + 8 * + 44 * + + 42
----
14784

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 34 / + + CAST ( + 58 AS INTEGER ) + + 8 * + 44 * + + 42
----
14784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1764
SELECT ALL + ( + + CAST( + 99 AS SIGNED ) ) AS col2, - 17 AS col2
----
99
-17

skipif mysql # not compatible
query II rowsort label-1764
SELECT ALL + ( + + CAST ( + 99 AS INTEGER ) ) AS col2, - 17 AS col2
----
99
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + CASE 10 WHEN - - SUM( 26 ) THEN NULL WHEN 41 + 17 THEN NULL WHEN + 63 / + 12 + 20 THEN 66 + + 49 * + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT + CASE 10 WHEN - - SUM ( 26 ) THEN NULL WHEN 41 + 17 THEN NULL WHEN + 63 / + 12 + 20 THEN 66 + + 49 * + 37 END
----
NULL

query I rowsort
SELECT + 52 + + 35
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + COALESCE ( SUM( ALL - 32 ), + 24 - ( + 48 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-1768
SELECT + COALESCE ( SUM ( ALL - 32 ), + 24 - ( + 48 ) )
----
-32

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

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

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

query I rowsort
SELECT - 16 * 36 * 17
----
-9792

query II rowsort
SELECT DISTINCT + ( - ( + 75 ) ), - 20 + 73 + - 93 AS col1
----
-75
-40

query I rowsort
SELECT DISTINCT + 76 * + 81 + - COALESCE ( + 73, - - 61, 1 ) + 9
----
6092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + 30 + + - 96 - + MAX( ALL - + 23 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1775
SELECT + 30 + + - 96 - + MAX ( ALL - + 23 ) AS col1
----
-43

query I rowsort
SELECT ALL - 33 + - 99
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ( + + COUNT( * ) ) + - 99 - 49 * 19 AS col0
----
-1029

skipif mysql # not compatible
query I rowsort label-1777
SELECT ( + + COUNT ( * ) ) + - 99 - 49 * 19 AS col0
----
-1029

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT MIN( DISTINCT 81 ) * + + 94 + 94, - COUNT( * ) AS col1
----
7708
-1

skipif mysql # not compatible
query II rowsort label-1778
SELECT MIN ( DISTINCT 81 ) * + + 94 + 94, - COUNT ( * ) AS col1
----
7708
-1

query I rowsort
SELECT + 88 * + + 19 col0
----
1672

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1781
SELECT ALL 27 * + + COUNT( * ) * 42 / + CAST( NULL AS DECIMAL ) / - CAST( + 98 AS SIGNED ) / + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL 27 * + + COUNT ( * ) * 42 / + CAST ( NULL AS REAL ) / - CAST ( + 98 AS INTEGER ) / + 88 AS col1
----
NULL

query II rowsort
SELECT + 55 col2, 21
----
55
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT 31 + 30 + + COUNT( * ) DIV - 88 * + 62 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1783
SELECT 31 + 30 + + COUNT ( * ) / - 88 * + 62 AS col1
----
61

query II rowsort
SELECT 95 AS col0, 61 col2
----
95
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT - 80 + - 17 DIV - 89 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1785
SELECT - 80 + - 17 / - 89 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1786
SELECT ALL 50 - + CAST( NULL AS SIGNED ) * + 21 * - - NULLIF ( - 46, - COUNT( * ) ) * - COUNT( * ) + - 8 + - COUNT( * ) + - + 14 * - - 16 AS col1, + 54 AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1786
SELECT ALL 50 - + CAST ( NULL AS INTEGER ) * + 21 * - - NULLIF ( - 46, - COUNT ( * ) ) * - COUNT ( * ) + - 8 + - COUNT ( * ) + - + 14 * - - 16 AS col1, + 54 AS col0
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT + 81 * CASE SUM( DISTINCT - 84 ) WHEN - COUNT( * ) + + AVG ( ALL - + 7 ) THEN - 94 * - + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT + 81 * CASE SUM ( DISTINCT - 84 ) WHEN - COUNT ( * ) + + AVG ( ALL - + 7 ) THEN - 94 * - + 48 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL SUM ( ALL - - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ( - MAX( - - 93 ) ) + - 17 + - - COUNT( * ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-1789
SELECT ( - MAX ( - - 93 ) ) + - 17 + - - COUNT ( * ) AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL 7 * 77 - + + 99 + - CASE + + 32 WHEN - 44 THEN + - 51 * + 62 + 35 * COUNT( * ) + - 32 END + 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL 7 * 77 - + + 99 + - CASE + + 32 WHEN - 44 THEN + - 51 * + 62 + 35 * COUNT ( * ) + - 32 END + 10 col1
----
NULL

query I rowsort
SELECT + 46 + - + 59
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1792
SELECT ( 21 ) + + 72 - - ( - + 80 ) + - - 45 * - COALESCE ( + CAST( 41 AS SIGNED ), + - 26 DIV - 36 ) * - 0 + + 88 + - 69 col1
----
32

skipif mysql # not compatible
query I rowsort label-1792
SELECT ( 21 ) + + 72 - - ( - + 80 ) + - - 45 * - COALESCE ( + CAST ( 41 AS INTEGER ), + - 26 / - 36 ) * - 0 + + 88 + - 69 col1
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-1793
SELECT ALL + 46, 2 DIV - 87 AS col2
----
46
0

skipif mysql # not compatible
query II rowsort label-1793
SELECT ALL + 46, 2 / - 87 AS col2
----
46
0

query I rowsort
SELECT - 12 col2
----
-12

query I rowsort
SELECT + 4 * - 43 AS col2
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1796
SELECT - + 36, + CAST( - + 26 AS SIGNED ) - 7 AS col2
----
-36
-33

skipif mysql # not compatible
query II rowsort label-1796
SELECT - + 36, + CAST ( - + 26 AS INTEGER ) - 7 AS col2
----
-36
-33

query I rowsort
SELECT 80 * + - 59 + - + 46
----
-4766

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT - ( - SUM( DISTINCT - 91 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1798
SELECT - ( - SUM ( DISTINCT - 91 ) ) AS col1
----
-91

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

skipif mysql # not compatible
query I rowsort label-1799
SELECT COUNT ( * ) * - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + MIN( ALL 12 ) * + 74 + - ( ( 50 ) ) AS col2
----
838

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + MIN ( ALL 12 ) * + 74 + - ( ( 50 ) ) AS col2
----
838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT 54 DIV + + MAX( 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT 54 / + + MAX ( 86 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1802
SELECT 27 / - - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL SUM( + - 68 ) + 5 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL SUM ( + - 68 ) + 5 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT 47 + + COUNT( DISTINCT + 51 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT 47 + + COUNT ( DISTINCT + 51 ) AS col0
----
48

query I rowsort
SELECT ALL - 80 + - ( + 4 )
----
-84

query I rowsort
SELECT DISTINCT + 25 + - 20 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT - MIN( DISTINCT 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - MIN ( DISTINCT 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1808
SELECT ( - 3 ) DIV COUNT( - 46 ), ( 53 ) + + 76 AS col1
----
-3
129

skipif mysql # not compatible
query II rowsort label-1808
SELECT ( - 3 ) / COUNT ( - 46 ), ( 53 ) + + 76 AS col1
----
-3
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT - 5 DIV 56 - + ( 66 ) * - + 34
----
2244

skipif mysql # not compatible
query I rowsort label-1809
SELECT - 5 / 56 - + ( 66 ) * - + 34
----
2244

query I rowsort
SELECT - 17 * + 45 + - 88
----
-853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1811
SELECT ALL + 8 DIV COUNT( + 54 )
----
8

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL + 8 / COUNT ( + 54 )
----
8

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

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

query I rowsort
SELECT ALL - 44 + - - 82 * 96 AS col2
----
7828

query I rowsort
SELECT ALL - 35 * - 62
----
2170

query I rowsort
SELECT DISTINCT - 63 + + 60 + - 58 + - - NULLIF ( - + 35, + - 51 ) AS col1
----
-96

query I rowsort
SELECT ALL - 39 col2
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + 19 - SUM( - + 24 )
----
43

skipif mysql # not compatible
query I rowsort label-1818
SELECT + 19 - SUM ( - + 24 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL - COUNT( * ) - 48 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL - COUNT ( * ) - 48 AS col1
----
-49

query I rowsort
SELECT DISTINCT - + 93
----
-93

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

query I rowsort
SELECT - 86 + - CASE + + 9 WHEN - 28 / + 49 THEN - - 82 END
----
NULL

query I rowsort
SELECT 15 * - 69 AS col2
----
-1035

onlyif mysql # DIV for integer division: 
query II rowsort label-1824
SELECT - - COALESCE ( 43, + 25 * - 52, - + 17 DIV 48 * + + 25 ), 96 AS col1
----
43
96

skipif mysql # not compatible
query II rowsort label-1824
SELECT - - COALESCE ( 43, + 25 * - 52, - + 17 / 48 * + + 25 ), 96 AS col1
----
43
96

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

query I rowsort
SELECT ALL 52 - - 0 * 15 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT MAX( DISTINCT 17 ) * - + 68 AS col1
----
-1156

skipif mysql # not compatible
query I rowsort label-1827
SELECT MAX ( DISTINCT 17 ) * - + 68 AS col1
----
-1156

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

skipif mysql # not compatible
query I rowsort label-1828
SELECT - MAX ( - + 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1829
SELECT CAST( + + COALESCE ( - 43, + 44 - - COUNT( * ) ) AS SIGNED ) DIV - ( + 55 ) * 12 + + - 78 * + + 22 AS col1
----
-1716

skipif mysql # not compatible
query I rowsort label-1829
SELECT CAST ( + + COALESCE ( - 43, + 44 - - COUNT ( * ) ) AS INTEGER ) / - ( + 55 ) * 12 + + - 78 * + + 22 AS col1
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1830
SELECT 17 * - - CAST( NULL AS SIGNED ) + + MIN( ALL + + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT 17 * - - CAST ( NULL AS INTEGER ) + + MIN ( ALL + + 22 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - COUNT( * ) + - 11 + - 85 * - 89
----
7553

skipif mysql # not compatible
query I rowsort label-1832
SELECT - COUNT ( * ) + - 11 + - 85 * - 89
----
7553

query I rowsort
SELECT 52 col0
----
52

query I rowsort
SELECT ALL ( + ( 83 ) ) * - + 80 * + + 87 col1
----
-577680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT ALL - 11 + + + CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) * + 61 + - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - 11 + + + CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * + 61 + - 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT - COUNT( * ), - COUNT( * ) + + - 59 * 40 + - 32 AS col1
----
-1
-2393

skipif mysql # not compatible
query II rowsort label-1836
SELECT - COUNT ( * ), - COUNT ( * ) + + - 59 * 40 + - 32 AS col1
----
-1
-2393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1837
SELECT ALL 95 + COUNT( * ) - + 6 * + - CAST( - 23 AS SIGNED ) AS col2, - COUNT( * ) * + 80 AS col0
----
-42
-80

skipif mysql # not compatible
query II rowsort label-1837
SELECT ALL 95 + COUNT ( * ) - + 6 * + - CAST ( - 23 AS INTEGER ) AS col2, - COUNT ( * ) * + 80 AS col0
----
-42
-80

query I rowsort
SELECT 34 + + - 36 AS col1
----
-2

query I rowsort
SELECT ALL 6 + + - 40
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - MIN( ALL - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-1840
SELECT - MIN ( ALL - 22 )
----
22

query I rowsort
SELECT 53 + + 86
----
139

query II rowsort
SELECT 75 * + 46 + - + 99 AS col2, - 18 * 16
----
3351
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT COALESCE ( - + 72, + 38, - 57 * - - CAST( - 50 AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1843
SELECT COALESCE ( - + 72, + 38, - 57 * - - CAST ( - 50 AS INTEGER ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT + MIN( ALL + COALESCE ( - 27, + + 19 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1844
SELECT + MIN ( ALL + COALESCE ( - 27, + + 19 ) ) AS col0
----
-27

query I rowsort
SELECT 43 + - 99 - + + 70 * + 10 + 78 AS col0
----
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL 70 * + + COUNT( * ) + + COUNT( * ) + + 65
----
136

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL 70 * + + COUNT ( * ) + + COUNT ( * ) + + 65
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT COUNT( DISTINCT 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1847
SELECT COUNT ( DISTINCT 41 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL + COUNT( * ) * - 81 * - 23 + - 72 AS col0
----
1791

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + COUNT ( * ) * - 81 * - 23 + - 72 AS col0
----
1791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT CAST( + - 17 AS SIGNED ) * - 46
----
782

skipif mysql # not compatible
query I rowsort label-1849
SELECT CAST ( + - 17 AS INTEGER ) * - 46
----
782

query I rowsort
SELECT ALL + 4 * - 52
----
-208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + COUNT( * ) * + - 5 + + - 95
----
-100

skipif mysql # not compatible
query I rowsort label-1852
SELECT + COUNT ( * ) * + - 5 + + - 95
----
-100

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

skipif mysql # not compatible
query I rowsort label-1853
SELECT - CAST ( - 37 AS INTEGER ) * COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT ALL + COALESCE ( - 56, - ( + + 65 ) * 83 DIV + - 11 * + + COALESCE ( 77, - COUNT( * ) ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + COALESCE ( - 56, - ( + + 65 ) * 83 / + - 11 * + + COALESCE ( 77, - COUNT ( * ) ) ) AS col2
----
-56

query II rowsort
SELECT + 84, - ( - + 85 ) AS col2
----
84
85

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT ALL + NULLIF ( - ( - 68 ), - + 73 DIV + + 76 * 50 + + + 33 ) DIV - - 56
----
1

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + NULLIF ( - ( - 68 ), - + 73 / + + 76 * 50 + + + 33 ) / - - 56
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1859
SELECT - - 12 DIV - 56 * + COUNT( * ) * + COALESCE ( COUNT( * ), + 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT - - 12 / - 56 * + COUNT ( * ) * + COALESCE ( COUNT ( * ), + 5 ) AS col1
----
0

query I rowsort
SELECT - COALESCE ( 46, + 75 ) + 48
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT + 99 * - 61 * + + MAX( ALL 8 ) col2
----
-48312

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + 99 * - 61 * + + MAX ( ALL 8 ) col2
----
-48312

query I rowsort
SELECT - 56 * - - 59 AS col1
----
-3304

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT + 49 * + COUNT( DISTINCT 62 )
----
49

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT + 49 * + COUNT ( DISTINCT 62 )
----
49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT - - 11 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT - - 11 / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT ALL + NULLIF ( 60, - - COUNT( * ) ) + COALESCE ( - 38, + 49 ) col0, + 14
----
22
14

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL + NULLIF ( 60, - - COUNT ( * ) ) + COALESCE ( - 38, + 49 ) col0, + 14
----
22
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT CASE - + CAST( NULL AS SIGNED ) WHEN - 51 + 51 + 78 * 9 THEN 98 WHEN - AVG ( + 12 ) THEN NULL WHEN - + ( + + 48 ) THEN + 70 * + + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT CASE - + CAST ( NULL AS INTEGER ) WHEN - 51 + 51 + 78 * 9 THEN 98 WHEN - AVG ( + 12 ) THEN NULL WHEN - + ( + + 48 ) THEN + 70 * + + 26 END
----
NULL

query I rowsort
SELECT - 1 + - 50 + 74 AS col2
----
23

query I rowsort
SELECT ALL + 7 + 40
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT ALL COALESCE ( SUM( DISTINCT - ( 33 ) ), COUNT( * ) DIV - + COUNT( * ) - + 41 DIV - 51 - - + CASE 7 WHEN + 15 + + 82 THEN 0 END + + - 60, + 37 )
----
-33

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL COALESCE ( SUM ( DISTINCT - ( 33 ) ), COUNT ( * ) / - + COUNT ( * ) - + 41 / - 51 - - + CASE 7 WHEN + 15 + + 82 THEN 0 END + + - 60, + 37 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT + 77 DIV - 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 77 / - 57 AS col0
----
-1

query I rowsort
SELECT - 89 * 2 AS col1
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT DISTINCT - 34 DIV - + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - 34 / - + 94 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1876
SELECT ALL + CASE - COUNT( * ) WHEN - 77 THEN - 13 * - - COUNT( * ) * - COUNT( * ) / - 3 + CAST( NULL AS SIGNED ) - + 92 ELSE NULL END + 74 + - - 37 AS col2, 43 + + 5
----
NULL
48

skipif mysql # not compatible
query II rowsort label-1876
SELECT ALL + CASE - COUNT ( * ) WHEN - 77 THEN - 13 * - - COUNT ( * ) * - COUNT ( * ) / - 3 + CAST ( NULL AS INTEGER ) - + 92 ELSE NULL END + 74 + - - 37 AS col2, 43 + + 5
----
NULL
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1877
SELECT - CASE - COUNT( ALL - - 85 ) WHEN - COALESCE ( + COALESCE ( - ( + + COUNT( * ) ), COUNT( * ) + + 25 * ( + - MAX( - + 50 ) ) ), + - AVG ( + - 50 ) ) THEN + + 93 DIV + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE - + 45 END
----
45

skipif mysql # not compatible
query I rowsort label-1877
SELECT - CASE - COUNT ( ALL - - 85 ) WHEN - COALESCE ( + COALESCE ( - ( + + COUNT ( * ) ), COUNT ( * ) + + 25 * ( + - MAX ( - + 50 ) ) ), + - AVG ( + - 50 ) ) THEN + + 93 / + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE - + 45 END
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT - 41 DIV + + 22 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 41 / + + 22 col0
----
-1

query I rowsort
SELECT + 47 + + + 47 * - - 94
----
4465

query I rowsort
SELECT ALL 53 * - ( - + 85 ) AS col2
----
4505

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT DISTINCT 23, 76 + - 76 + 72 + - 83 + - COUNT( * ) - + - NULLIF ( 48, CASE + 65 WHEN + - 21 THEN + 12 WHEN - 94 * + 32 * + ( + - CASE - 21 WHEN - 8 / 21 + - 15 THEN + 51 - 8 END ) * - ( COUNT( * ) + + 46 ) + 43 THEN + 73 - - 24 ELSE - 92 * 42 END + + 72 / 14 ) * 26 * 68 AS col2
----
23
84852

skipif mysql # not compatible
query II rowsort label-1881
SELECT DISTINCT 23, 76 + - 76 + 72 + - 83 + - COUNT ( * ) - + - NULLIF ( 48, CASE + 65 WHEN + - 21 THEN + 12 WHEN - 94 * + 32 * + ( + - CASE - 21 WHEN - 8 / 21 + - 15 THEN + 51 - 8 END ) * - ( COUNT ( * ) + + 46 ) + 43 THEN + 73 - - 24 ELSE - 92 * 42 END + + 72 / 14 ) * 26 * 68 AS col2
----
23
84852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT DISTINCT + COUNT( * ) DIV - - NULLIF ( + ( + 69 ), - + ( 3 ) ) - 55
----
-55

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + COUNT ( * ) / - - NULLIF ( + ( + 69 ), - + ( 3 ) ) - 55
----
-55

query I rowsort
SELECT ALL 93 * 64 col1
----
5952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1884
SELECT ( + 53 ), - NULLIF ( + ( 5 ), - COALESCE ( 80, MIN( DISTINCT + + 40 ) ) * 41 ) DIV + 22 + 4 * - - 57 AS col0
----
53
228

skipif mysql # not compatible
query II rowsort label-1884
SELECT ( + 53 ), - NULLIF ( + ( 5 ), - COALESCE ( 80, MIN ( DISTINCT + + 40 ) ) * 41 ) / + 22 + 4 * - - 57 AS col0
----
53
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1885
SELECT + COUNT( * ), - 40 * - 68 DIV NULLIF ( - - 94, 3 ) DIV + 34 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-1885
SELECT + COUNT ( * ), - 40 * - 68 / NULLIF ( - - 94, 3 ) / + 34 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT + COUNT( * ) + + NULLIF ( - 38, + COUNT( + 83 ) / + COUNT( * ) - + 5 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1886
SELECT + COUNT ( * ) + + NULLIF ( - 38, + COUNT ( + 83 ) / + COUNT ( * ) - + 5 ) AS col2
----
-37

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1890
SELECT + 4 - - - MAX( + 40 ) + CASE - CAST( + 89 AS SIGNED ) WHEN - 24 THEN - COUNT( * ) END * 39 + 78 + - - 95 / - 79 * 89 / - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT + 4 - - - MAX ( + 40 ) + CASE - CAST ( + 89 AS INTEGER ) WHEN - 24 THEN - COUNT ( * ) END * 39 + 78 + - - 95 / - 79 * 89 / - 44 AS col1
----
NULL

query I rowsort
SELECT ALL 73 * + - 31 AS col1
----
-2263

query I rowsort
SELECT + + 50 * + + 73 - - 46 * - + 76 + - 45 * - 71 col1
----
3349

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT - 17 + - + NULLIF ( - SUM( + + 69 ), - COUNT( * ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 17 + - + NULLIF ( - SUM ( + + 69 ), - COUNT ( * ) ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + + COALESCE ( - 17, - 67 * - NULLIF ( 44, + 42 * - 12 + - 60 * - + 32 + 18 + + COUNT( * ) * + - 35 * - - MAX( DISTINCT - 53 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1894
SELECT + + COALESCE ( - 17, - 67 * - NULLIF ( 44, + 42 * - 12 + - 60 * - + 32 + 18 + + COUNT ( * ) * + - 35 * - - MAX ( DISTINCT - 53 ) ) )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT ALL + + 85 * - 51 * + + 19 / + 35 + - 0 + + - 32 + - + CAST( NULL AS SIGNED ) + + + 78 * - 36 / + MIN( ALL - - 53 ) + - 72 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + + 85 * - 51 * + + 19 / + 35 + - 0 + + - 32 + - + CAST ( NULL AS INTEGER ) + + + 78 * - 36 / + MIN ( ALL - - 53 ) + - 72 + 21
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1899
SELECT + + ( + + COUNT( * ) ) * NULLIF ( - - 53, + MIN( + 30 ) / 7 ) * - COALESCE ( 94, - 93 + - + 66 * + COUNT( * ) * - 65 * - ( + - 90 ) + + COUNT( * ) * - COUNT( DISTINCT - 56 ) * - + 68 ), - CAST( + - 31 AS SIGNED ) * 1 col0
----
-4982
31

skipif mysql # not compatible
query II rowsort label-1899
SELECT + + ( + + COUNT ( * ) ) * NULLIF ( - - 53, + MIN ( + 30 ) / 7 ) * - COALESCE ( 94, - 93 + - + 66 * + COUNT ( * ) * - 65 * - ( + - 90 ) + + COUNT ( * ) * - COUNT ( DISTINCT - 56 ) * - + 68 ), - CAST ( + - 31 AS INTEGER ) * 1 col0
----
-4982
31

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

skipif mysql # not compatible
query I rowsort label-1900
SELECT - COUNT ( * ) * + + 52 / - + 60 col1
----
0

query I rowsort
SELECT + 93 * - NULLIF ( - COALESCE ( + 66, + + 79, + 38 * + 14 ), 75 ) + 99
----
6237

query I rowsort
SELECT ALL + 5 * + - 59 + + + 47
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL - 40 * + - MIN( - 40 ) - - 2 + + - 41 + COALESCE ( 15, + COUNT( 55 ) * - - 80 * + + 64 * - 67 ) AS col0
----
-1624

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - 40 * + - MIN ( - 40 ) - - 2 + + - 41 + COALESCE ( 15, + COUNT ( 55 ) * - - 80 * + + 64 * - 67 ) AS col0
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT - + 48 * + - NULLIF ( - - 55, + - 67 ) * + + 40 + - 0 + + CASE 92 WHEN + - COUNT( * ) / + COUNT( * ) * - 76 + 2 * + 15 + - - COUNT( * ) + + + 79 / 78 - + 25 * 45 * + - 23 THEN NULL WHEN + 53 THEN NULL WHEN CASE - 29 WHEN 3 THEN + 16 WHEN + CAST( NULL AS SIGNED ) + - 98 THEN NULL ELSE 39 - - SUM( DISTINCT 66 + 90 ) END THEN 87 ELSE 15 END * COUNT( * ) * COUNT( * )
----
105615

skipif mysql # not compatible
query I rowsort label-1904
SELECT - + 48 * + - NULLIF ( - - 55, + - 67 ) * + + 40 + - 0 + + CASE 92 WHEN + - COUNT ( * ) / + COUNT ( * ) * - 76 + 2 * + 15 + - - COUNT ( * ) + + + 79 / 78 - + 25 * 45 * + - 23 THEN NULL WHEN + 53 THEN NULL WHEN CASE - 29 WHEN 3 THEN + 16 WHEN + CAST ( NULL AS INTEGER ) + - 98 THEN NULL ELSE 39 - - SUM ( DISTINCT 66 + 90 ) END THEN 87 ELSE 15 END * COUNT ( * ) * COUNT ( * )
----
105615

query I rowsort
SELECT - ( 20 ) + 15
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT + 89 + + 75 + + - 90 * COUNT( * ) + + - 27 * - MAX( ALL + 78 ), ( - 45 ) AS col1
----
2180
-45

skipif mysql # not compatible
query II rowsort label-1906
SELECT + 89 + + 75 + + - 90 * COUNT ( * ) + + - 27 * - MAX ( ALL + 78 ), ( - 45 ) AS col1
----
2180
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL - COALESCE ( COUNT( * ), - + COUNT( * ) ) + - - 65 * + 48 AS col0
----
3119

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL - COALESCE ( COUNT ( * ), - + COUNT ( * ) ) + - - 65 * + 48 AS col0
----
3119

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT - 65 + - SUM( ALL - ( + - 38 ) ) - + + 2 - + 3 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-1908
SELECT - 65 + - SUM ( ALL - ( + - 38 ) ) - + + 2 - + 3 AS col0
----
-108

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT - 18 + + 96 DIV + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1910
SELECT - 18 + + 96 / + COUNT ( * ) AS col0
----
78

query II rowsort
SELECT ALL - 49 - + 87, - 58 * 53 AS col0
----
-136
-3074

query I rowsort
SELECT - 35 * - ( - 73 ) AS col1
----
-2555

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - MAX( 97 ) + + ( + 67 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1913
SELECT - MAX ( 97 ) + + ( + 67 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT - COALESCE ( + 60, 71 + - + 80 * + 49 ) - 95 AS col0
----
-155

query I rowsort
SELECT 62 * + + 89 AS col0
----
5518

query I rowsort
SELECT ALL 99 * + - 80 * 38
----
-300960

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

query I rowsort
SELECT 87 + - - 9 + - + 58 - 26 - 91
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1919
SELECT ALL - 86 DIV - + SUM( + + CAST( - 57 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - 86 / - + SUM ( + + CAST ( - 57 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( - + 2 ) * + + COUNT( * ) - - 99 + + 42 + - + 60 * + 85 - - + 58 AS col1
----
-4900

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( - + 2 ) * + + COUNT ( * ) - - 99 + + 42 + - + 60 * + 85 - - + 58 AS col1
----
-4900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT + 92 DIV + - 3 + - COUNT( * ) + 67 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 92 / + - 3 + - COUNT ( * ) + 67 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL 98 * + + 17 * - - 26 * + - CASE - 51 WHEN COUNT( - - COALESCE ( 57, + 96 ) ) THEN - 45 END / SUM( DISTINCT 67 ) - + - 96 * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL 98 * + + 17 * - - 26 * + - CASE - 51 WHEN COUNT ( - - COALESCE ( 57, + 96 ) ) THEN - 45 END / SUM ( DISTINCT 67 ) - + - 96 * + 38
----
NULL

query II rowsort
SELECT ALL - 86 * - 89 AS col1, 38 - 49
----
7654
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT SUM( + 17 ) DIV - + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1924
SELECT SUM ( + 17 ) / - + 20 AS col1
----
0

query I rowsort
SELECT + 96 col2
----
96

query I rowsort
SELECT DISTINCT + 23 * - 48 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL - 65 * MIN( - COALESCE ( 6, 32 + + 60, 41 ) ) AS col0
----
390

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - 65 * MIN ( - COALESCE ( 6, 32 + + 60, 41 ) ) AS col0
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ( NULLIF ( - COUNT( * ), + 74 + 49 ) ) * - 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1928
SELECT ( NULLIF ( - COUNT ( * ), + 74 + 49 ) ) * - 57 AS col1
----
57

query I rowsort
SELECT ALL + ( + 25 ) + + 43 * 43 * - 27
----
-49898

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL + SUM( + 71 ) * + 89 AS col0
----
6319

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + SUM ( + 71 ) * + 89 AS col0
----
6319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL + COALESCE ( + COUNT( * ), 1 * - 85 + - ( + 98 ) - - - 75 * + CAST( ( COALESCE ( + 97, + + 79 - 43 ) ) AS SIGNED ), - CASE - - NULLIF ( 91, + - 24 * - 57 + 80 + + 69 + - - ( - 72 ) / 17 ) WHEN + 58 + SUM( 76 ) * ( + 66 * CASE CASE 39 WHEN ( + 96 ) THEN NULL ELSE 49 END * 42 WHEN ( 85 ) THEN NULL ELSE + 5 END ) THEN 41 WHEN NULLIF ( 60, 18 ) / - COALESCE ( 3 * 21, COUNT( * ) ) THEN NULL ELSE NULL END * 27 )
----
1

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + COALESCE ( + COUNT ( * ), 1 * - 85 + - ( + 98 ) - - - 75 * + CAST ( ( COALESCE ( + 97, + + 79 - 43 ) ) AS INTEGER ), - CASE - - NULLIF ( 91, + - 24 * - 57 + 80 + + 69 + - - ( - 72 ) / 17 ) WHEN + 58 + SUM ( 76 ) * ( + 66 * CASE CASE 39 WHEN ( + 96 ) THEN NULL ELSE 49 END * 42 WHEN ( 85 ) THEN NULL ELSE + 5 END ) THEN 41 WHEN NULLIF ( 60, 18 ) / - COALESCE ( 3 * 21, COUNT ( * ) ) THEN NULL ELSE NULL END * 27 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT ( - - 62 ) + + 9 + COUNT( * ) * - CASE - - SUM( DISTINCT - 87 ) WHEN - + 56 * - 61 THEN NULL WHEN COUNT( DISTINCT - + 28 ) / - 28 + - COALESCE ( 34, + 13 ) / - + COUNT( * ) + - SUM( + 28 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT ( - - 62 ) + + 9 + COUNT ( * ) * - CASE - - SUM ( DISTINCT - 87 ) WHEN - + 56 * - 61 THEN NULL WHEN COUNT ( DISTINCT - + 28 ) / - 28 + - COALESCE ( 34, + 13 ) / - + COUNT ( * ) + - SUM ( + 28 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + 71 * + SUM( - 69 ) + - + 92 AS col0
----
-4991

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 71 * + SUM ( - 69 ) + - + 92 AS col0
----
-4991

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1935
SELECT COUNT( * ) DIV + ( + 34 ), NULLIF ( - SUM( + + 85 ), - + 77 ) AS col2
----
0
-85

skipif mysql # not compatible
query II rowsort label-1935
SELECT COUNT ( * ) / + ( + 34 ), NULLIF ( - SUM ( + + 85 ), - + 77 ) AS col2
----
0
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT MAX( 3 ) * - 1 + + - 78 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1936
SELECT MAX ( 3 ) * - 1 + + - 78 AS col0
----
-81

query I rowsort
SELECT 72 * + 72
----
5184

query I rowsort
SELECT DISTINCT 82 - + - 42 AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1939
SELECT - 11 col0, - CASE + 42 WHEN - 93 * 26 + - 5 THEN NULL WHEN + 53 / - CAST( NULL AS SIGNED ) * 15 THEN - 62 + - 65 WHEN 31 THEN COUNT( * ) END - + + CAST( NULL AS SIGNED ) + NULLIF ( - 97, 50 * + + 80 + - + 99 - 83 * + + 62 / 62 * - CAST( NULL AS DECIMAL ) )
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1939
SELECT - 11 col0, - CASE + 42 WHEN - 93 * 26 + - 5 THEN NULL WHEN + 53 / - CAST ( NULL AS INTEGER ) * 15 THEN - 62 + - 65 WHEN 31 THEN COUNT ( * ) END - + + CAST ( NULL AS INTEGER ) + NULLIF ( - 97, 50 * + + 80 + - + 99 - 83 * + + 62 / 62 * - CAST ( NULL AS REAL ) )
----
-11
NULL

query I rowsort
SELECT 59 * CASE - + 64 WHEN + - CASE - 28 WHEN 90 THEN 96 END THEN + ( - AVG ( ALL - - 2 ) ) END AS col1
----
NULL

query I rowsort
SELECT 62 * - 53 AS col1
----
-3286

query II rowsort
SELECT 7 col0, - 47 AS col1
----
7
-47

query II rowsort
SELECT DISTINCT - 0 * - 23 * - 97 * 60, + 83 + + 90 AS col0
----
0
173

query I rowsort
SELECT 97 * + 24 AS col1
----
2328

query II rowsort
SELECT 74 * + 55 * - 47, + 76 AS col2
----
-191290
76

query I rowsort
SELECT DISTINCT 69 * 26 AS col2
----
1794

query I rowsort
SELECT 87 * - 4
----
-348

query II rowsort
SELECT + 46 AS col2, 69 AS col1
----
46
69

query II rowsort
SELECT ALL - + 28 AS col1, 72
----
-28
72

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

skipif mysql # not compatible
query I rowsort label-1950
SELECT MAX ( + 1 )
----
1

query I rowsort
SELECT COALESCE ( 97, + 62 * 85 + - - 63 )
----
97

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

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

query I rowsort
SELECT ALL + - 23 + 98 * + 20
----
1937

onlyif mysql # aggregate syntax: 
query II rowsort label-1954
SELECT NULLIF ( - COUNT( * ), + AVG ( DISTINCT - NULLIF ( + - 93, - 61 ) ) ), 64 * + + 18 col1
----
-1
1152

skipif mysql # not compatible
query II rowsort label-1954
SELECT NULLIF ( - COUNT ( * ), + AVG ( DISTINCT - NULLIF ( + - 93, - 61 ) ) ), 64 * + + 18 col1
----
-1
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - COALESCE ( - + MAX( - 29 ), + 12, + + CASE - 79 WHEN + 63 - - COUNT( DISTINCT + 24 ) THEN NULL WHEN + 44 * + + 5 + MAX( 6 ) THEN NULL WHEN + + 58 THEN + 35 * - 90 * + ( COUNT( * ) ) ELSE NULL END ) + 71
----
42

skipif mysql # not compatible
query I rowsort label-1955
SELECT - COALESCE ( - + MAX ( - 29 ), + 12, + + CASE - 79 WHEN + 63 - - COUNT ( DISTINCT + 24 ) THEN NULL WHEN + 44 * + + 5 + MAX ( 6 ) THEN NULL WHEN + + 58 THEN + 35 * - 90 * + ( COUNT ( * ) ) ELSE NULL END ) + 71
----
42

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1958
SELECT - 22 * - ( 3 ) AS col2, 55 + + - COUNT( DISTINCT + 50 ) - 74 DIV 36 AS col1
----
66
52

skipif mysql # not compatible
query II rowsort label-1958
SELECT - 22 * - ( 3 ) AS col2, 55 + + - COUNT ( DISTINCT + 50 ) - 74 / 36 AS col1
----
66
52

query II rowsort
SELECT 55, 18 AS col0
----
55
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL - 29 + - - 49 * ( - 78 ) + - - COUNT( * ) AS col2
----
-3850

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - 29 + - - 49 * ( - 78 ) + - - COUNT ( * ) AS col2
----
-3850

query I rowsort
SELECT + 88 * - 82
----
-7216

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

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

query I rowsort
SELECT + 2 - 13 col2
----
-11

query II rowsort
SELECT 99, 1 AS col2
----
99
1

query II rowsort
SELECT ALL - 84 AS col0, 51 AS col0
----
-84
51

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

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

query II rowsort
SELECT + 77 AS col1, + 33 + - 25 AS col1
----
77
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - 38 * + CASE + + COUNT( 93 ) WHEN + 16 + + NULLIF ( 28, - ( - NULLIF ( 56, + 48 + COUNT( * ) ) ) + + 80 ) THEN - - 29 * 38 END + CASE + + 35 WHEN + 42 * - - 47 * - + 23 * - 94 THEN 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 38 * + CASE + + COUNT ( 93 ) WHEN + 16 + + NULLIF ( 28, - ( - NULLIF ( 56, + 48 + COUNT ( * ) ) ) + + 80 ) THEN - - 29 * 38 END + CASE + + 35 WHEN + 42 * - - 47 * - + 23 * - 94 THEN 28 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT NULLIF ( + 49, ( + 76 ) ) + + + CAST( - 33 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-1970
SELECT NULLIF ( + 49, ( + 76 ) ) + + + CAST ( - 33 AS INTEGER )
----
16

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

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

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

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

query I rowsort
SELECT ALL + ( 23 ) - + 14
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + COUNT( * ) - 11 * COUNT( * ) * 36 AS col1
----
-395

skipif mysql # not compatible
query I rowsort label-1974
SELECT + COUNT ( * ) - 11 * COUNT ( * ) * 36 AS col1
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT 23 * - 14 * + COUNT( * ) AS col1
----
-322

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT 23 * - 14 * + COUNT ( * ) AS col1
----
-322

query I rowsort
SELECT DISTINCT 35 * - 15 AS col1
----
-525

query I rowsort
SELECT + 58 * + + 99 * 46 AS col1
----
264132

query I rowsort
SELECT ALL 70 * - + 54
----
-3780

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

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

query I rowsort
SELECT + 58 - - 98 + - 9 * 1 AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT - CAST( NULL AS SIGNED ) / - ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT - CAST ( NULL AS INTEGER ) / - ( - 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1982
SELECT + CAST( 53 AS SIGNED ) DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-1982
SELECT + CAST ( 53 AS INTEGER ) / - 28
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1983
SELECT + CAST( 26 AS SIGNED ) + 24 DIV 93 * + 20 col1
----
26

skipif mysql # not compatible
query I rowsort label-1983
SELECT + CAST ( 26 AS INTEGER ) + 24 / 93 * + 20 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT + 14 * - MAX( DISTINCT + 54 )
----
-756

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + 14 * - MAX ( DISTINCT + 54 )
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT COUNT( * ) + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT COUNT ( * ) + - + 7
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1986
SELECT ALL COUNT( * ) + - - 34 * + - COALESCE ( - + ( + 18 ), MIN( 9 ) + - - 15 * + 9, - + 20 ) * - 89 + - 45 AS col2, + 8 + + ( 98 )
----
-54512
106

skipif mysql # not compatible
query II rowsort label-1986
SELECT ALL COUNT ( * ) + - - 34 * + - COALESCE ( - + ( + 18 ), MIN ( 9 ) + - - 15 * + 9, - + 20 ) * - 89 + - 45 AS col2, + 8 + + ( 98 )
----
-54512
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL + SUM( DISTINCT + 62 ) * 82 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL + SUM ( DISTINCT + 62 ) * 82 AS col0
----
5084

query I rowsort
SELECT DISTINCT ( 25 ) * - 96
----
-2400

query I rowsort
SELECT ALL 29 * 72
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT - - COUNT( * ) * 56 * 16 * + 49 + 80 - - + 90 * + 93 AS col0
----
52354

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT - - COUNT ( * ) * 56 * 16 * + 49 + 80 - - + 90 * + 93 AS col0
----
52354

query I rowsort
SELECT + COALESCE ( - 28, + 9 ) * + + 4
----
-112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - AVG ( - - 58 ) / - ( - 63 ) / + 47 + - - 94 - + - 18 - + - 71 * NULLIF ( + 38, ( - 80 ) * 84 + 30 - - COUNT( * ) + - MAX( + - 6 ) + - - 62 ) * CASE + 64 WHEN - 63 THEN - 46 * - SUM( - 10 ) * - 79 + AVG ( DISTINCT - 42 ) * COUNT( * ) END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT - AVG ( - - 58 ) / - ( - 63 ) / + 47 + - - 94 - + - 18 - + - 71 * NULLIF ( + 38, ( - 80 ) * 84 + 30 - - COUNT ( * ) + - MAX ( + - 6 ) + - - 62 ) * CASE + 64 WHEN - 63 THEN - 46 * - SUM ( - 10 ) * - 79 + AVG ( DISTINCT - 42 ) * COUNT ( * ) END - COUNT ( * )
----
NULL

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

query I rowsort
SELECT ALL + - 3 * + 3 AS col2
----
-9

query I rowsort
SELECT + - 95 - + - ( 29 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1998
SELECT + - 36 + COUNT( * ), 59 AS col2
----
-35
59

skipif mysql # not compatible
query II rowsort label-1998
SELECT + - 36 + COUNT ( * ), 59 AS col2
----
-35
59

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

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

query I rowsort
SELECT ALL + 62 * + 24
----
1488

query I rowsort
SELECT ALL + 90 * 89 AS col1
----
8010

query I rowsort
SELECT + 65 + 24 * - 29
----
-631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2003
SELECT ALL CAST( + MAX( ALL 18 ) AS SIGNED ), + 55 + - + 41 + + 22 * + - 61 + COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col2
----
18
-1329

skipif mysql # not compatible
query II rowsort label-2003
SELECT ALL CAST ( + MAX ( ALL 18 ) AS INTEGER ), + 55 + - + 41 + + 22 * + - 61 + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col2
----
18
-1329

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

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

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

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

query I rowsort
SELECT DISTINCT 82 + + - 25 AS col1
----
57

query I rowsort
SELECT ALL ( - - NULLIF ( 44, - 23 * + AVG ( DISTINCT 77 ) ) )
----
44

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

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

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL COUNT ( * ) + 91 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - CASE COALESCE ( + 64, - - COALESCE ( - 60, + 75 + - ( + - 16 ), + 53 - + COUNT( * ) ), ( + 94 ) ) WHEN + 44 * - 55 - - 95 THEN - 56 / 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT - CASE COALESCE ( + 64, - - COALESCE ( - 60, + 75 + - ( + - 16 ), + 53 - + COUNT ( * ) ), ( + 94 ) ) WHEN + 44 * - 55 - - 95 THEN - 56 / 82 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2012
SELECT - COALESCE ( - 84, + 9, + COUNT( * ) DIV + 7 ) AS col2, 22 AS col0
----
84
22

skipif mysql # not compatible
query II rowsort label-2012
SELECT - COALESCE ( - 84, + 9, + COUNT ( * ) / + 7 ) AS col2, 22 AS col0
----
84
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT ALL ( + + 22 ) + - - COUNT( * ) col2, - NULLIF ( + - 31, + MAX( + 22 ) / - 96 + - + 31 + + 5 )
----
23
31

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL ( + + 22 ) + - - COUNT ( * ) col2, - NULLIF ( + - 31, + MAX ( + 22 ) / - 96 + - + 31 + + 5 )
----
23
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT + 75 * - CAST( + 76 AS SIGNED ) * + 1
----
-5700

skipif mysql # not compatible
query I rowsort label-2014
SELECT + 75 * - CAST ( + 76 AS INTEGER ) * + 1
----
-5700

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

query I rowsort
SELECT + + 22 * + 86
----
1892

query I rowsort
SELECT + + ( + 17 ) * 91
----
1547

query I rowsort
SELECT DISTINCT 56 + - 72
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2019
SELECT - + NULLIF ( + 53, + 34 + CASE + ( + 55 ) WHEN + 74 + - 19 THEN NULL WHEN 68 THEN NULL WHEN 30 THEN COUNT( ALL 14 ) * ( COUNT( * ) ) END * - CAST( NULL AS SIGNED ) ) AS col2, 13 AS col2
----
-53
13

skipif mysql # not compatible
query II rowsort label-2019
SELECT - + NULLIF ( + 53, + 34 + CASE + ( + 55 ) WHEN + 74 + - 19 THEN NULL WHEN 68 THEN NULL WHEN 30 THEN COUNT ( ALL 14 ) * ( COUNT ( * ) ) END * - CAST ( NULL AS INTEGER ) ) AS col2, 13 AS col2
----
-53
13

query I rowsort
SELECT + 43 * - 68 * 46
----
-134504

query I rowsort
SELECT ALL - - 80 * + 48
----
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT ALL + 66 DIV - 14 - - 83 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + 66 / - 14 - - 83 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT + - 96 * - 39 * - 85 + + 64 + - - 63 DIV - 52 AS col2
----
-318177

skipif mysql # not compatible
query I rowsort label-2023
SELECT + - 96 * - 39 * - 85 + + 64 + - - 63 / - 52 AS col2
----
-318177

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT + - ( + 31 ) * - 46 * - + ( - COALESCE ( - 62, + SUM( DISTINCT + 6 ) + - 1, + COALESCE ( + + COALESCE ( - 43, 20 + - COUNT( * ) ), 99, - 96 ) * + 39 - + ( 26 ) ) )
----
-88412

skipif mysql # not compatible
query I rowsort label-2024
SELECT + - ( + 31 ) * - 46 * - + ( - COALESCE ( - 62, + SUM ( DISTINCT + 6 ) + - 1, + COALESCE ( + + COALESCE ( - 43, 20 + - COUNT ( * ) ), 99, - 96 ) * + 39 - + ( 26 ) ) )
----
-88412

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2026
SELECT + - 46 + - + 27 DIV + 59, + 63 - - + 32 * + + CASE ( + + 23 ) WHEN + 92 * + COUNT( - 92 ) * + ( - 66 ) * + COUNT( * ) + - + 6 THEN COALESCE ( - SUM( - COALESCE ( - 69, - + 86 - - 87 * - + 15 ) ), - 49 ) * + 23 END col1
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2026
SELECT + - 46 + - + 27 / + 59, + 63 - - + 32 * + + CASE ( + + 23 ) WHEN + 92 * + COUNT ( - 92 ) * + ( - 66 ) * + COUNT ( * ) + - + 6 THEN COALESCE ( - SUM ( - COALESCE ( - 69, - + 86 - - 87 * - + 15 ) ), - 49 ) * + 23 END col1
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + + COUNT( DISTINCT ( + 55 ) ) + - 19 + + ( + 55 ) * - 37 * - 11 AS col0
----
22367

skipif mysql # not compatible
query I rowsort label-2027
SELECT + + COUNT ( DISTINCT ( + 55 ) ) + - 19 + + ( + 55 ) * - 37 * - 11 AS col0
----
22367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2028
SELECT ALL - NULLIF ( ( + 79 ), + 34 DIV + CAST( NULL AS SIGNED ) + - - 28 + + - 26 + + 59 + + 93 * - 32 * - 25 * + SUM( ALL 63 ) + + ( - - 79 ) + CASE + - 9 WHEN + 44 THEN + - SUM( DISTINCT - - 46 ) ELSE CASE + 92 WHEN - + SUM( DISTINCT + 81 ) THEN NULL ELSE - 98 END END * + 60 ) DIV - 46 - 76
----
-75

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - NULLIF ( ( + 79 ), + 34 / + CAST ( NULL AS INTEGER ) + - - 28 + + - 26 + + 59 + + 93 * - 32 * - 25 * + SUM ( ALL 63 ) + + ( - - 79 ) + CASE + - 9 WHEN + 44 THEN + - SUM ( DISTINCT - - 46 ) ELSE CASE + 92 WHEN - + SUM ( DISTINCT + 81 ) THEN NULL ELSE - 98 END END * + 60 ) / - 46 - 76
----
-75

query I rowsort
SELECT DISTINCT + + 25
----
25

query II rowsort
SELECT ALL - 6, - 11 col0
----
-6
-11

query I rowsort
SELECT + + 49 col0
----
49

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

query II rowsort
SELECT DISTINCT - 94, - 21 * - 38 col2
----
-94
798

query I rowsort
SELECT 69 * - + 6
----
-414

query II rowsort
SELECT ALL - 7 AS col2, 39 * 87
----
-7
3393

query III rowsort
SELECT 88 AS col2, 27 AS col0, - 41
----
88
27
-41

query II rowsort
SELECT 23 col1, 88 AS col0
----
23
88

query II rowsort
SELECT + 7 AS col1, + 32 AS col2
----
7
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2039
SELECT 88 DIV COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2039
SELECT 88 / COUNT ( * ) AS col2
----
88

query I rowsort
SELECT 62 + + - 28 AS col1
----
34

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2042
SELECT DISTINCT + 86 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT + 86 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT 78 DIV ( - 98 ) DIV - 12 * COUNT( * ) + + + CASE - - CASE + 52 WHEN 30 + + + 68 * + + 81 * + 28 THEN - 56 WHEN + 87 THEN NULL WHEN + - 40 * + 4 * + - 28 * 73 + - CASE WHEN ( NULL ) <= ( 87 ) THEN 18 * 80 DIV - 97 * - + 69 * 45 END + COUNT( * ) DIV 78 * - COALESCE ( - 6 * - ( 26 ) + - COUNT( * ), - COUNT( * ) ) THEN CASE 74 WHEN 54 - + 73 THEN NULL WHEN - COUNT( * ) * + 76 THEN + 61 END * + 35 ELSE NULL END WHEN 83 - 92 THEN NULL WHEN - 41 + 22 THEN + 16 ELSE - COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-2043
SELECT 78 / ( - 98 ) / - 12 * COUNT ( * ) + + + CASE - - CASE + 52 WHEN 30 + + + 68 * + + 81 * + 28 THEN - 56 WHEN + 87 THEN NULL WHEN + - 40 * + 4 * + - 28 * 73 + - CASE WHEN ( NULL ) <= ( 87 ) THEN 18 * 80 / - 97 * - + 69 * 45 END + COUNT ( * ) / 78 * - COALESCE ( - 6 * - ( 26 ) + - COUNT ( * ), - COUNT ( * ) ) THEN CASE 74 WHEN 54 - + 73 THEN NULL WHEN - COUNT ( * ) * + 76 THEN + 61 END * + 35 ELSE NULL END WHEN 83 - 92 THEN NULL WHEN - 41 + 22 THEN + 16 ELSE - COUNT ( * ) END col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL - 59 + + MAX( - ( 91 ) ) + 17 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - 59 + + MAX ( - ( 91 ) ) + 17 AS col2
----
-133

query I rowsort
SELECT ALL + 96 + + 68 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT + 87 + + COUNT( * ) * 66 col0
----
153

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + 87 + + COUNT ( * ) * 66 col0
----
153

query I rowsort
SELECT ALL 69 + - + 53 * 32 * + 18 AS col0
----
-30459

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT 3 DIV + 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT 3 / + 41 col1
----
0

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

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

query I rowsort
SELECT 83 + + 61 + - 87 - + 19 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2051
SELECT ALL - 96 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-97

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

query I rowsort
SELECT 28 - - 42 col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2053
SELECT - CASE CAST( NULL AS SIGNED ) WHEN - NULLIF ( ( 84 ), 92 ) THEN - 16 WHEN 78 * + 76 / - 97 * + 22 * - 37 / - + AVG ( + 65 ) THEN NULL END col0, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-2053
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN - NULLIF ( ( 84 ), 92 ) THEN - 16 WHEN 78 * + 76 / - 97 * + 22 * - 37 / - + AVG ( + 65 ) THEN NULL END col0, + 78
----
NULL
78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2055
SELECT - COUNT( * ) AS col2, + 53 + 81 * + 27
----
-1
2240

skipif mysql # not compatible
query II rowsort label-2055
SELECT - COUNT ( * ) AS col2, + 53 + 81 * + 27
----
-1
2240

query I rowsort
SELECT DISTINCT ( - - 60 ) * + - 56 + - 94 + - 34 AS col0
----
-3488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT DISTINCT + 63 - - 32 * CAST( + 35 AS SIGNED ) + + 51 AS col1
----
1234

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + 63 - - 32 * CAST ( + 35 AS INTEGER ) + + 51 AS col1
----
1234

query I rowsort
SELECT + 55 + + + ( ( + ( - - 33 ) ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query III rowsort label-2059
SELECT ALL + + 24 - + 52 col1, + 99 - - 22 AS col0, - MAX( - + ( - + 80 ) ) AS col0
----
-28
121
-80

skipif mysql # not compatible
query III rowsort label-2059
SELECT ALL + + 24 - + 52 col1, + 99 - - 22 AS col0, - MAX ( - + ( - + 80 ) ) AS col0
----
-28
121
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT 62 + - MAX( ALL + + 43 ) * + 7 * - 2 * - 29 AS col1
----
-17396

skipif mysql # not compatible
query I rowsort label-2061
SELECT 62 + - MAX ( ALL + + 43 ) * + 7 * - 2 * - 29 AS col1
----
-17396

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT + 8 DIV - + 12 + - - 68
----
68

skipif mysql # not compatible
query I rowsort label-2062
SELECT + 8 / - + 12 + - - 68
----
68

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

query II rowsort
SELECT - 95, ( + 31 ) AS col2
----
-95
31

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

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

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

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

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

query I rowsort
SELECT COALESCE ( - 80, + + 19 ) * - 86 col1
----
6880

query I rowsort
SELECT ALL 47 + 11 AS col2
----
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2072
SELECT 4 + + 83 + + 58, - 22 * - 46 * + 40 + + 80 * + ( + + COUNT( * ) ) AS col0
----
145
40560

skipif mysql # not compatible
query II rowsort label-2072
SELECT 4 + + 83 + + 58, - 22 * - 46 * + 40 + + 80 * + ( + + COUNT ( * ) ) AS col0
----
145
40560

query I rowsort
SELECT DISTINCT 41 + - - 37 - + 10 - - 75 * - 12
----
-832

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2075
SELECT ALL 11 + + 86 AS col0, 93 * - - COUNT( * )
----
97
93

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL 11 + + 86 AS col0, 93 * - - COUNT ( * )
----
97
93

query I rowsort
SELECT ALL 70 + - 37
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT - CASE - ( - 4 ) WHEN + MIN( ALL - ( - 75 ) ) * + MIN( - 45 ) * - + COUNT( DISTINCT 23 ) / 89 / COUNT( * ) + - 44 THEN + 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - CASE - ( - 4 ) WHEN + MIN ( ALL - ( - 75 ) ) * + MIN ( - 45 ) * - + COUNT ( DISTINCT 23 ) / 89 / COUNT ( * ) + - 44 THEN + 93 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT 5 + - 98 + 46 * - CAST( 24 AS SIGNED ) + - COUNT( * ) + + - SUM( - + 44 ) * + 92 AS col0
----
2850

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT 5 + - 98 + 46 * - CAST ( 24 AS INTEGER ) + - COUNT ( * ) + + - SUM ( - + 44 ) * + 92 AS col0
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 3 + + COUNT( + 66 )
----
4

skipif mysql # not compatible
query I rowsort label-2079
SELECT 3 + + COUNT ( + 66 )
----
4

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

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

query I rowsort
SELECT 13 + - 3 * + 6
----
-5

query I rowsort
SELECT 83 * + + 83
----
6889

query I rowsort
SELECT DISTINCT - COALESCE ( 33, - 66 ) - + 45 * - + 66
----
2937

query I rowsort
SELECT 32 * - 67 AS col1
----
-2144

query II rowsort
SELECT ALL - 92 - 52 AS col0, + 82 + - 97
----
-144
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL SUM( ALL 50 ), 38 * + CASE - + 39 WHEN - ( - + 81 ) * + 41 THEN + 7 * + ( - 51 ) WHEN - + 67 THEN NULL WHEN + 73 / + 62 THEN NULL END - - 56 col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL SUM ( ALL 50 ), 38 * + CASE - + 39 WHEN - ( - + 81 ) * + 41 THEN + 7 * + ( - 51 ) WHEN - + 67 THEN NULL WHEN + 73 / + 62 THEN NULL END - - 56 col0
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), 14 * 49 + - 18, - + 23 )
----
668

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), 14 * 49 + - 18, - + 23 )
----
668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2088
SELECT DISTINCT 77 - NULLIF ( - - MIN( DISTINCT - 98 ), - 71 + - CASE - + MAX( - 14 ) WHEN + + 96 THEN 46 - + CAST( NULL AS SIGNED ) + 73 * + 4 ELSE NULL END ) + 90 - + COUNT( * ) - 43 + + 25, - 72 AS col0
----
246
-72

skipif mysql # not compatible
query II rowsort label-2088
SELECT DISTINCT 77 - NULLIF ( - - MIN ( DISTINCT - 98 ), - 71 + - CASE - + MAX ( - 14 ) WHEN + + 96 THEN 46 - + CAST ( NULL AS INTEGER ) + 73 * + 4 ELSE NULL END ) + 90 - + COUNT ( * ) - 43 + + 25, - 72 AS col0
----
246
-72

query I rowsort
SELECT 7 * - 10 * - - 15
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL + MIN( - + ( + - 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + MIN ( - + ( + - 56 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL + + SUM( - ( - 74 ) ) * 17 AS col1
----
1258

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + + SUM ( - ( - 74 ) ) * 17 AS col1
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ( MAX( DISTINCT - 84 ) ) * + 99 col2
----
-8316

skipif mysql # not compatible
query I rowsort label-2092
SELECT ( MAX ( DISTINCT - 84 ) ) * + 99 col2
----
-8316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2093
SELECT 17 - - - NULLIF ( + - SUM( - - 26 ), 19 ) + + 74 DIV - 22
----
40

skipif mysql # not compatible
query I rowsort label-2093
SELECT 17 - - - NULLIF ( + - SUM ( - - 26 ), 19 ) + + 74 / - 22
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT - 61 DIV + - 46
----
1

skipif mysql # not compatible
query I rowsort label-2094
SELECT - 61 / + - 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - - CASE - 49 WHEN + 26 * - + COUNT( 57 ) THEN + - 81 WHEN + 83 THEN - MIN( - 85 ) + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT - - CASE - 49 WHEN + 26 * - + COUNT ( 57 ) THEN + - 81 WHEN + 83 THEN - MIN ( - 85 ) + - 48 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT + COUNT( * ) DIV + 46 * + ( - + 5 ) - COALESCE ( - 76, - 91 ) - - 55 DIV + 53 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2097
SELECT + COUNT ( * ) / + 46 * + ( - + 5 ) - COALESCE ( - 76, - 91 ) - - 55 / + 53 AS col1
----
77

query I rowsort
SELECT DISTINCT + + COALESCE ( - 37, - - 36, + - 30 * + 42 * - 12 + - - 76 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2099
SELECT + 78 * - - CAST( NULL AS SIGNED ) * 55, 59 DIV - + 68 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2099
SELECT + 78 * - - CAST ( NULL AS INTEGER ) * 55, 59 / - + 68 AS col0
----
NULL
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + CASE - 94 WHEN COUNT( * ) THEN + 43 WHEN 15 THEN + + 53 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT + CASE - 94 WHEN COUNT ( * ) THEN + 43 WHEN 15 THEN + + 53 END col1
----
NULL

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

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

query I rowsort
SELECT ALL 75 * + 89 + 14 AS col0
----
6689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL COUNT( * ) * - 35 * - COALESCE ( - 48, 32 ) + ( - + 34 ) + + 58 - CAST( NULL AS SIGNED ) + + - 76 / ( + + COALESCE ( - - 98, + COALESCE ( - COUNT( * ), - 85 * 62 ) ) ) + - 48 * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL COUNT ( * ) * - 35 * - COALESCE ( - 48, 32 ) + ( - + 34 ) + + 58 - CAST ( NULL AS INTEGER ) + + - 76 / ( + + COALESCE ( - - 98, + COALESCE ( - COUNT ( * ), - 85 * 62 ) ) ) + - 48 * 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT DISTINCT 18 * + SUM( ALL - CAST( 96 AS SIGNED ) ) * - 59 + + ( - 77 ) + 42 * + COUNT( * ) + - 70 * + - 39 * - 61 * - 93
----
15589207

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT 18 * + SUM ( ALL - CAST ( 96 AS INTEGER ) ) * - 59 + + ( - 77 ) + 42 * + COUNT ( * ) + - 70 * + - 39 * - 61 * - 93
----
15589207

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

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

query I rowsort
SELECT + NULLIF ( + + 33, - 42 ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT + 34 + - - 61 * - MAX( DISTINCT + CAST( - 55 AS SIGNED ) )
----
3389

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 34 + - - 61 * - MAX ( DISTINCT + CAST ( - 55 AS INTEGER ) )
----
3389

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2109
SELECT + COALESCE ( 97, - CASE COUNT( * ) WHEN + COUNT( * ) + - - ( + 65 ) DIV - - COUNT( * ) THEN + + 82 WHEN - 15 THEN - 2 * - - NULLIF ( + 29, 42 * - - 59 ) END DIV + + 60 ) * 5 * 89, 33 * - 16 AS col2
----
43165
-528

skipif mysql # not compatible
query II rowsort label-2109
SELECT + COALESCE ( 97, - CASE COUNT ( * ) WHEN + COUNT ( * ) + - - ( + 65 ) / - - COUNT ( * ) THEN + + 82 WHEN - 15 THEN - 2 * - - NULLIF ( + 29, 42 * - - 59 ) END / + + 60 ) * 5 * 89, 33 * - 16 AS col2
----
43165
-528

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

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

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

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL COUNT ( 51 ) / - + 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2112
SELECT + ( - COALESCE ( 66, 20 + - + NULLIF ( - + NULLIF ( + MIN( - 30 ), + + 97 * - 42 ), + 24 ) * 8 DIV 75 DIV + + CAST( NULL AS SIGNED ) * + - 7 * + - ( - 28 ) + - 55 ) ) - + 36 - NULLIF ( - 23, MIN( - CAST( 16 AS SIGNED ) ) ) AS col2, + 40
----
-79
40

skipif mysql # not compatible
query II rowsort label-2112
SELECT + ( - COALESCE ( 66, 20 + - + NULLIF ( - + NULLIF ( + MIN ( - 30 ), + + 97 * - 42 ), + 24 ) * 8 / 75 / + + CAST ( NULL AS INTEGER ) * + - 7 * + - ( - 28 ) + - 55 ) ) - + 36 - NULLIF ( - 23, MIN ( - CAST ( 16 AS INTEGER ) ) ) AS col2, + 40
----
-79
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-2113
SELECT MAX ( 41 )
----
41

query I rowsort
SELECT + 45 * + 33
----
1485

query I rowsort
SELECT DISTINCT 51 * - 0 AS col1
----
0

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

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

query II rowsort
SELECT ALL + 38, - 99 AS col0
----
38
-99

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

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

query I rowsort
SELECT DISTINCT 15 * 25
----
375

query II rowsort
SELECT ALL - 63, 71 AS col2
----
-63
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + 10 - - MIN( - - 35 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 10 - - MIN ( - - 35 ) AS col1
----
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT DISTINCT 67 AS col0, CAST( NULL AS SIGNED )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT 67 AS col0, CAST ( NULL AS INTEGER )
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + MAX( ALL - + 41 ) + - 82 + - - 72 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2124
SELECT + MAX ( ALL - + 41 ) + - 82 + - - 72 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL + 22 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + 22 / 57
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2127
SELECT ALL SUM( DISTINCT + - ( - + 86 ) ) DIV 59 * + + 79 + - - 99 col2, ( 93 ) - + 50 AS col2
----
178
43

skipif mysql # not compatible
query II rowsort label-2127
SELECT ALL SUM ( DISTINCT + - ( - + 86 ) ) / 59 * + + 79 + - - 99 col2, ( 93 ) - + 50 AS col2
----
178
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ALL - + ( + SUM( DISTINCT - 19 ) ) + - COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - + ( + SUM ( DISTINCT - 19 ) ) + - COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT ALL + 45, 80 * - SUM( 11 ) AS col1
----
45
-880

skipif mysql # not compatible
query II rowsort label-2129
SELECT ALL + 45, 80 * - SUM ( 11 ) AS col1
----
45
-880

query I rowsort
SELECT ALL + 29 * 69
----
2001

query I rowsort
SELECT - 53 + ( 3 ) + - + 22 - + 50 AS col1
----
-122

query I rowsort
SELECT ( - 56 )
----
-56

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

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

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

skipif mysql # not compatible
query I rowsort label-2134
SELECT + MAX ( 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2135
SELECT ALL ( - 26 ) DIV + - CAST( + 26 AS SIGNED ) + - MIN( 35 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL ( - 26 ) / + - CAST ( + 26 AS INTEGER ) + - MIN ( 35 ) AS col1
----
-34

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2137
SELECT DISTINCT 14 DIV + 92 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT 14 / + 92 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - ( - + 9 ) * - 38
----
-342

query I rowsort
SELECT ALL + COALESCE ( + 27, + 44 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT 51 DIV + + 82 * - + 38 - + 23 + + 99 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT 51 / + + 82 * - + 38 - + 23 + + 99 AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT ALL - 50 DIV COALESCE ( + COUNT( DISTINCT - 81 ), + - 96, - ( COUNT( * ) ) * - 18 + AVG ( ALL + 91 ) ) - + 53 + - 34 * 56 + + COUNT( * ) * 82
----
-1925

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - 50 / COALESCE ( + COUNT ( DISTINCT - 81 ), + - 96, - ( COUNT ( * ) ) * - 18 + AVG ( ALL + 91 ) ) - + 53 + - 34 * 56 + + COUNT ( * ) * 82
----
-1925

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

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

query I rowsort
SELECT + 28 * - 9
----
-252

query I rowsort
SELECT - ( 27 ) + + + 60 + - + 65 * - - 20
----
-1267

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT ALL 63 * - 8 - + + COUNT( ALL - 1 ) - + MIN( 41 ) - 92 AS col2, - 70 * + + MAX( 7 ) * + 69
----
-638
-33810

skipif mysql # not compatible
query II rowsort label-2145
SELECT ALL 63 * - 8 - + + COUNT ( ALL - 1 ) - + MIN ( 41 ) - 92 AS col2, - 70 * + + MAX ( 7 ) * + 69
----
-638
-33810

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT - 38 * 32 DIV - ( 40 )
----
30

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 38 * 32 / - ( 40 )
----
30

query I rowsort
SELECT - 51 * - - 44 + - - 83 AS col1
----
-2161

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + - 73 DIV - 8 + - 75 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2151
SELECT + - 73 / - 8 + - 75 AS col1
----
-66

query I rowsort
SELECT + + 62 * 52 AS col0
----
3224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT - 13 * COUNT( * ) + + + COUNT( * ) DIV - 40 + - + 14 + + - 70
----
-97

skipif mysql # not compatible
query I rowsort label-2153
SELECT - 13 * COUNT ( * ) + + + COUNT ( * ) / - 40 + - + 14 + + - 70
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2154
SELECT 47 * + MAX( DISTINCT + - CAST( 2 AS SIGNED ) ) AS col1, 87
----
-94
87

skipif mysql # not compatible
query II rowsort label-2154
SELECT 47 * + MAX ( DISTINCT + - CAST ( 2 AS INTEGER ) ) AS col1, 87
----
-94
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - + CASE - MAX( - 44 ) WHEN COUNT( * ) + - + COUNT( * ) THEN 94 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT - + CASE - MAX ( - 44 ) WHEN COUNT ( * ) + - + COUNT ( * ) THEN 94 END col0
----
NULL

query I rowsort
SELECT ALL ( + 3 ) + + 14
----
17

query II rowsort
SELECT ALL 84 + - 42 col1, + 13 AS col2
----
42
13

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

query I rowsort
SELECT - 51 * + - 69 AS col0
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT COUNT( * ) - + - 89 * - + 89 * - - NULLIF ( - 12, 91 )
----
95053

skipif mysql # not compatible
query I rowsort label-2160
SELECT COUNT ( * ) - + - 89 * - + 89 * - - NULLIF ( - 12, 91 )
----
95053

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT 95 - - 45 + - - 65 + + 20 + - MIN( DISTINCT + - 47 ) * - 74 AS col0
----
-3253

skipif mysql # not compatible
query I rowsort label-2162
SELECT 95 - - 45 + - - 65 + + 20 + - MIN ( DISTINCT + - 47 ) * - 74 AS col0
----
-3253

query I rowsort
SELECT ALL ( + COALESCE ( 61, - 59 ) )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT ALL + COALESCE ( + 36, 57, 30 + - 68 ) DIV - 9
----
-4

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL + COALESCE ( + 36, 57, 30 + - 68 ) / - 9
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2165
SELECT + 17 DIV 88 * COALESCE ( + 91, CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT + 17 / 88 * COALESCE ( + 91, CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT ALL + CAST( NULL AS SIGNED ) + 40 + MAX( DISTINCT - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + CAST ( NULL AS INTEGER ) + 40 + MAX ( DISTINCT - 65 )
----
NULL

query I rowsort
SELECT DISTINCT + 95 * 95 * 91
----
821275

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT 97 - + COALESCE ( + COALESCE ( + - 56, + - 41, + 48 * - - 49 + - + CASE - COALESCE ( - 72, + 77, 82 ) WHEN 7 + 89 THEN + ( + 0 ) * + + 77 END + + 13 + + 14 DIV 35 * + CASE - 92 WHEN + + ( + 83 ) THEN + 43 - - - CASE - 39 WHEN - + COUNT( * ) + 88 + 75 THEN NULL WHEN 9 * + 72 + ( + 24 ) THEN - 41 END WHEN NULLIF ( - SUM( 62 ), + 3 + - 17 ) THEN NULL END - - 19 ), - 86 + + COUNT( - 45 + + 47 ) ) + 76 AS col0
----
229

skipif mysql # not compatible
query I rowsort label-2169
SELECT 97 - + COALESCE ( + COALESCE ( + - 56, + - 41, + 48 * - - 49 + - + CASE - COALESCE ( - 72, + 77, 82 ) WHEN 7 + 89 THEN + ( + 0 ) * + + 77 END + + 13 + + 14 / 35 * + CASE - 92 WHEN + + ( + 83 ) THEN + 43 - - - CASE - 39 WHEN - + COUNT ( * ) + 88 + 75 THEN NULL WHEN 9 * + 72 + ( + 24 ) THEN - 41 END WHEN NULLIF ( - SUM ( 62 ), + 3 + - 17 ) THEN NULL END - - 19 ), - 86 + + COUNT ( - 45 + + 47 ) ) + 76 AS col0
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT 6 - - COALESCE ( 57, 62 * 29 + + ( - ( COUNT( DISTINCT 9 ) ) ) * 75 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2170
SELECT 6 - - COALESCE ( 57, 62 * 29 + + ( - ( COUNT ( DISTINCT 9 ) ) ) * 75 ) AS col2
----
63

query I rowsort
SELECT ALL + 41 - - + 46 + + + 83 + + 91
----
261

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2173
SELECT ALL - 78 - - 23 + + 48, + 83 + - + COUNT( * ) AS col1
----
-7
82

skipif mysql # not compatible
query II rowsort label-2173
SELECT ALL - 78 - - 23 + + 48, + 83 + - + COUNT ( * ) AS col1
----
-7
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT ALL - 58, 77 + COUNT( * ) + - 88 AS col1
----
-58
-10

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL - 58, 77 + COUNT ( * ) + - 88 AS col1
----
-58
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2175
SELECT 96 + - COUNT( - + ( - 78 ) ) DIV 79 * + CAST( + 84 AS SIGNED ) + - COUNT( * ) + - 87
----
8

skipif mysql # not compatible
query I rowsort label-2175
SELECT 96 + - COUNT ( - + ( - 78 ) ) / 79 * + CAST ( + 84 AS INTEGER ) + - COUNT ( * ) + - 87
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2177
SELECT DISTINCT - 70 AS col0, CAST( NULL AS SIGNED ) + - 8 + - + 68 col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-2177
SELECT DISTINCT - 70 AS col0, CAST ( NULL AS INTEGER ) + - 8 + - + 68 col1
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT 15 * - 57 * 92 + + MIN( + 87 ) + - + COUNT( * )
----
-78574

skipif mysql # not compatible
query I rowsort label-2178
SELECT 15 * - 57 * 92 + + MIN ( + 87 ) + - + COUNT ( * )
----
-78574

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

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

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

query I rowsort
SELECT 22 * - 15
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL - CASE + - 56 WHEN + 23 THEN 52 WHEN - 29 THEN + COUNT( * ) * + 84 * + - ( 7 ) + - COUNT( DISTINCT - 12 ) / + - 81 * + COUNT( - 12 ) + + - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - CASE + - 56 WHEN + 23 THEN 52 WHEN - 29 THEN + COUNT ( * ) * + 84 * + - ( 7 ) + - COUNT ( DISTINCT - 12 ) / + - 81 * + COUNT ( - 12 ) + + - 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT 31 + + COUNT( * ) - + + 59 * - COUNT( * ) * ( COUNT( * ) ) + 79 - + 66 AS col1, 30 AS col1
----
104
30

skipif mysql # not compatible
query II rowsort label-2183
SELECT 31 + + COUNT ( * ) - + + 59 * - COUNT ( * ) * ( COUNT ( * ) ) + 79 - + 66 AS col1, 30 AS col1
----
104
30

query II rowsort
SELECT ALL + 79 * 70 * 49 col2, + 91
----
270970
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2185
SELECT 12 * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT 12 * CAST ( NULL AS REAL ) col1
----
NULL

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

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

query I rowsort
SELECT ALL - 22 * 18 * 36 + - 57
----
-14313

query I rowsort
SELECT 16 * - 52 * 4
----
-3328

query I rowsort
SELECT ALL - + 85 + + 25 + + - 91
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL 25 + - + CAST( + 3 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 25 + - + CAST ( + 3 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT 92 - - + 64
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - + COUNT( * ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - + COUNT ( * ) + - 8
----
-9

query I rowsort
SELECT DISTINCT + + 48 + - 71
----
-23

query I rowsort
SELECT 41 * + 71
----
2911

query I rowsort
SELECT + - 23 * + 52 + 17 AS col1
----
-1179

query I rowsort
SELECT ALL + 70 + - 69 * 32 AS col2
----
-2138

query I rowsort
SELECT + 74 + 19 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT 61 * + 48 - CAST( 87 AS SIGNED ) AS col2
----
2841

skipif mysql # not compatible
query I rowsort label-2199
SELECT 61 * + 48 - CAST ( 87 AS INTEGER ) AS col2
----
2841

query I rowsort
SELECT 64 + ( + - 89 ) AS col1
----
-25

query I rowsort
SELECT - 57 - + 50
----
-107

query I rowsort
SELECT 10 + + 80
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL - COUNT( * ) + 33
----
32

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - COUNT ( * ) + 33
----
32

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

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

query I rowsort
SELECT ALL 89 * 75
----
6675

onlyif mysql # aggregate syntax: 
query II rowsort label-2206
SELECT ALL 44, 79 + + NULLIF ( + 71, + + 51 + + 47 ) + + - 43 + + COUNT( * ) * + 38 AS col1
----
44
145

skipif mysql # not compatible
query II rowsort label-2206
SELECT ALL 44, 79 + + NULLIF ( + 71, + + 51 + + 47 ) + + - 43 + + COUNT ( * ) * + 38 AS col1
----
44
145

query I rowsort
SELECT DISTINCT 6 - - 52 AS col1
----
58

query II rowsort
SELECT 53 AS col2, - 79 * - - 13
----
53
-1027

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT 6 + - - MIN( + + 50 ) + - 99 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2209
SELECT 6 + - - MIN ( + + 50 ) + - 99 AS col1
----
-43

query I rowsort
SELECT ALL 41 - 59 AS col2
----
-18

query I rowsort
SELECT 77 * + 66 col2
----
5082

query I rowsort
SELECT 13 * - - 62
----
806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2213
SELECT NULLIF ( 37, - 35 * + CASE - 20 WHEN + 26 * + 33 + + + 90 * 4 THEN - 73 WHEN + 82 + - ( - 40 ) THEN + CASE + CAST( NULL AS SIGNED ) WHEN CAST( - - 42 AS SIGNED ) * - ( COUNT( * ) ) THEN + - 83 WHEN - + COUNT( * ) THEN 1 END END + + 69 ) + - 69 col0
----
-32

skipif mysql # not compatible
query I rowsort label-2213
SELECT NULLIF ( 37, - 35 * + CASE - 20 WHEN + 26 * + 33 + + + 90 * 4 THEN - 73 WHEN + 82 + - ( - 40 ) THEN + CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( - - 42 AS INTEGER ) * - ( COUNT ( * ) ) THEN + - 83 WHEN - + COUNT ( * ) THEN 1 END END + + 69 ) + - 69 col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT 67 AS col0, ( - + COUNT( * ) ) * - + 5
----
67
5

skipif mysql # not compatible
query II rowsort label-2214
SELECT 67 AS col0, ( - + COUNT ( * ) ) * - + 5
----
67
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT 10 * 70 + + MIN( - 17 ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT 10 * 70 + + MIN ( - 17 ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 44 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT SUM( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2217
SELECT SUM ( 20 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT ALL - NULLIF ( 47, - 79 * - + COUNT( * ) ) * + 92 * + CAST( + 96 AS SIGNED ) * + 89 + - - 58 + + 73
----
-36944125

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - NULLIF ( 47, - 79 * - + COUNT ( * ) ) * + 92 * + CAST ( + 96 AS INTEGER ) * + 89 + - - 58 + + 73
----
-36944125

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT 22 DIV - - 67 * - - 29
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT 22 / - - 67 * - - 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT ALL 75 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL 75 / + 80 AS col1
----
0

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

query I rowsort
SELECT DISTINCT 92 * + CASE 14 WHEN - 23 THEN 52 WHEN + 18 * 70 * + + 45 + 29 + - - 50 / + 82 + 87 - 49 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 92 * - 22 + - 55
----
1969

query I rowsort
SELECT ALL 27 * 29 AS col2
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT 2 DIV ( ( - 76 ) ) + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-2225
SELECT 2 / ( ( - 76 ) ) + - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT COUNT( - 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT COUNT ( - 67 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL - 53 * + + 16 + - - CAST( COUNT( * ) AS SIGNED ) + + 8
----
-839

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - 53 * + + 16 + - - CAST ( COUNT ( * ) AS INTEGER ) + + 8
----
-839

query I rowsort
SELECT + 42 + + 79 col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT - 56 DIV - COUNT( ALL - - 22 ) + + 42 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 56 / - COUNT ( ALL - - 22 ) + + 42 AS col0
----
98

query II rowsort
SELECT + 15 col2, 27 AS col0
----
15
27

query II rowsort
SELECT ALL + 20 col2, 65 + - - 39 + 88 AS col1
----
20
192

query I rowsort
SELECT - + 5 + - 7 + + 44 * + 47
----
2056

query I rowsort
SELECT - 45 * - 35
----
1575

query I rowsort
SELECT - - 79 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL + + 70 - - 24 + + COALESCE ( + - 88, 7 ) + + COUNT( * ) * MIN( DISTINCT - 1 ) + + - 56
----
-51

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + + 70 - - 24 + + COALESCE ( + - 88, 7 ) + + COUNT ( * ) * MIN ( DISTINCT - 1 ) + + - 56
----
-51

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

query I rowsort
SELECT - + 78 * + - 20 AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - SUM( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2238
SELECT - SUM ( 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL + SUM( DISTINCT + 88 ) - - + 94
----
182

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + SUM ( DISTINCT + 88 ) - - + 94
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-2240
SELECT - COUNT( * ) * + 71 AS col0, + 52 + - 91 AS col2
----
-71
-39

skipif mysql # not compatible
query II rowsort label-2240
SELECT - COUNT ( * ) * + 71 AS col0, + 52 + - 91 AS col2
----
-71
-39

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

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

skipif mysql # not compatible
query I rowsort label-2242
SELECT - COUNT ( * ) / 89 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT + 53 * + 59 * 11 * CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT - MIN( - - 34 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT - MIN ( - - 34 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 23 - + 44 - 48 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + 29 * CASE COUNT( * ) WHEN - 90 * - - ( + 86 ) THEN NULL ELSE - 93 * - + 5 / + CASE + + NULLIF ( 99, - 11 ) WHEN ( + + 3 ) + - + 20 * 82 THEN COUNT( * ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT + 29 * CASE COUNT ( * ) WHEN - 90 * - - ( + 86 ) THEN NULL ELSE - 93 * - + 5 / + CASE + + NULLIF ( 99, - 11 ) WHEN ( + + 3 ) + - + 20 * 82 THEN COUNT ( * ) END END AS col2
----
NULL

query I rowsort
SELECT - CASE + + 48 WHEN - 44 + + 86 THEN NULL WHEN - 89 THEN + 98 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 31, - - 86 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2249
SELECT + 76 + CAST( NULL AS SIGNED ) col0, + 40 + - + 85 DIV + CAST( + NULLIF ( + - 20, + 44 * 27 * + 19 + + 57 + 4 DIV + + CASE + 74 WHEN 16 + + - CASE - 97 WHEN - - 61 THEN - 86 ELSE NULL END + - - 86 - - AVG ( + 82 ) THEN - MIN( ALL - 55 ) WHEN - - 12 - + 45 + + + 59 * 48 THEN COUNT( * ) * 27 + + - 64 WHEN + + 79 THEN CAST( NULL AS DECIMAL ) DIV 85 + 31 WHEN COUNT( 4 ) * - 4 THEN NULL ELSE NULL END ) AS SIGNED )
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2249
SELECT + 76 + CAST ( NULL AS INTEGER ) col0, + 40 + - + 85 / + CAST ( + NULLIF ( + - 20, + 44 * 27 * + 19 + + 57 + 4 / + + CASE + 74 WHEN 16 + + - CASE - 97 WHEN - - 61 THEN - 86 ELSE NULL END + - - 86 - - AVG ( + 82 ) THEN - MIN ( ALL - 55 ) WHEN - - 12 - + 45 + + + 59 * 48 THEN COUNT ( * ) * 27 + + - 64 WHEN + + 79 THEN CAST ( NULL AS REAL ) / 85 + 31 WHEN COUNT ( 4 ) * - 4 THEN NULL ELSE NULL END ) AS INTEGER )
----
NULL
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2250
SELECT ALL 87 * + - 6 * 45 * + COUNT( * ) * + 40 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL 87 * + - 6 * 45 * + COUNT ( * ) * + 40 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 93 * + 87
----
8091

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT ALL ( - COUNT( * ) ), + 57 * + 65 * MAX( - 94 ) AS col2
----
-1
-348270

skipif mysql # not compatible
query II rowsort label-2252
SELECT ALL ( - COUNT ( * ) ), + 57 * + 65 * MAX ( - 94 ) AS col2
----
-1
-348270

query I rowsort
SELECT DISTINCT 34 * + 59
----
2006

query I rowsort
SELECT + 46 - + + 16 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT ALL 52 * + MAX( + - 41 ), 88 + - MAX( ALL + - 23 ) AS col1
----
-2132
111

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL 52 * + MAX ( + - 41 ), 88 + - MAX ( ALL + - 23 ) AS col1
----
-2132
111

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT - 57 * 56 DIV - 77
----
41

skipif mysql # not compatible
query I rowsort label-2256
SELECT - 57 * 56 / - 77
----
41

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

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

query I rowsort
SELECT - 88 * ( 44 ) - + 57
----
-3929

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL - 58 DIV 14 DIV - ( - 87 ) * + - 94 + 91 * 68 AS col1
----
6188

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - 58 / 14 / - ( - 87 ) * + - 94 + 91 * 68 AS col1
----
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2261
SELECT 16 DIV COUNT( * ) + - + 86 + 45 * - 35
----
-1645

skipif mysql # not compatible
query I rowsort label-2261
SELECT 16 / COUNT ( * ) + - + 86 + 45 * - 35
----
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL - 8 * + + 74 + ( - - 42 ) + COUNT( * )
----
-549

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - 8 * + + 74 + ( - - 42 ) + COUNT ( * )
----
-549

query I rowsort
SELECT + 27 * - 39
----
-1053

query II rowsort
SELECT + 86 + - 81 col1, - 13 AS col1
----
5
-13

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2266
SELECT ALL - NULLIF ( + + 11, + ( + 99 ) ) * - COALESCE ( 18, + SUM( 27 ) * 44 + + 26 - - - 98 DIV - 32 + - 36 ) + + COUNT( * )
----
199

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - NULLIF ( + + 11, + ( + 99 ) ) * - COALESCE ( 18, + SUM ( 27 ) * 44 + + 26 - - - 98 / - 32 + - 36 ) + + COUNT ( * )
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - 8 * 37 * 2 + + NULLIF ( + COUNT( * ), - 50 )
----
-591

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - 8 * 37 * 2 + + NULLIF ( + COUNT ( * ), - 50 )
----
-591

query I rowsort
SELECT + - COALESCE ( + - 97, - 84 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT - COUNT( * ) * - 36 + 80 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - COUNT ( * ) * - 36 + 80 AS col2
----
116

query I rowsort
SELECT DISTINCT + 65 * - ( + - ( + 44 ) ) - 81 + 30
----
2809

query I rowsort
SELECT ALL - 45 * 92
----
-4140

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT + COUNT( * ) * + CAST( + - 24 AS SIGNED ) + 68 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2274
SELECT + COUNT ( * ) * + CAST ( + - 24 AS INTEGER ) + 68 AS col2
----
44

query I rowsort
SELECT - 17 * + 94
----
-1598

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT ALL + - SUM( + 34 ) AS col2, SUM( + 61 ) + + 32 AS col2
----
-34
93

skipif mysql # not compatible
query II rowsort label-2276
SELECT ALL + - SUM ( + 34 ) AS col2, SUM ( + 61 ) + + 32 AS col2
----
-34
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + COUNT( * ) * + - 61 - - 56 + - 65 + + 68
----
-2

skipif mysql # not compatible
query I rowsort label-2277
SELECT + COUNT ( * ) * + - 61 - - 56 + - 65 + + 68
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - + 68 DIV 49
----
-1

skipif mysql # not compatible
query I rowsort label-2278
SELECT - + 68 / 49
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL 30 * - + 68 - + ( - 24 ) + + ( 97 ) + + COALESCE ( + CAST( NULL AS SIGNED ), - 10 ) + - 77 AS col1
----
-2006

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL 30 * - + 68 - + ( - 24 ) + + ( 97 ) + + COALESCE ( + CAST ( NULL AS INTEGER ), - 10 ) + - 77 AS col1
----
-2006

query I rowsort
SELECT - 92 - - + 31 col0
----
-61

query I rowsort
SELECT ALL + NULLIF ( - + 23, 65 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT ALL 38 * + 23 - + - 57 * + 69 - - 3 DIV 23 * - 39 AS col1
----
4807

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL 38 * + 23 - + - 57 * + 69 - - 3 / 23 * - 39 AS col1
----
4807

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT + NULLIF ( COUNT( * ), - 51 * 77 + + - MAX( 95 ) ) * - + COUNT( * ), COUNT( * ) * - 43 AS col1
----
-1
-43

skipif mysql # not compatible
query II rowsort label-2285
SELECT + NULLIF ( COUNT ( * ), - 51 * 77 + + - MAX ( 95 ) ) * - + COUNT ( * ), COUNT ( * ) * - 43 AS col1
----
-1
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT - 59 * - - 44 + + MIN( DISTINCT + 71 ) + + CASE + - 29 WHEN ( - - COUNT( * ) ) THEN 2 WHEN 28 THEN - 43 * + 29 + + 7 * + - 40 - 71 END, 37 * + + 51 AS col2
----
NULL
1887

skipif mysql # not compatible
query II rowsort label-2286
SELECT - 59 * - - 44 + + MIN ( DISTINCT + 71 ) + + CASE + - 29 WHEN ( - - COUNT ( * ) ) THEN 2 WHEN 28 THEN - 43 * + 29 + + 7 * + - 40 - 71 END, 37 * + + 51 AS col2
----
NULL
1887

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT + 59 + - COALESCE ( - - MAX( ALL - 17 ), 73 ) + - 78 * 56 AS col0, + ( + 81 )
----
-4292
81

skipif mysql # not compatible
query II rowsort label-2287
SELECT + 59 + - COALESCE ( - - MAX ( ALL - 17 ), 73 ) + - 78 * 56 AS col0, + ( + 81 )
----
-4292
81

query I rowsort
SELECT DISTINCT ( + + 47 ) AS col1
----
47

query I rowsort
SELECT ALL - 82 * - 25
----
2050

query I rowsort
SELECT - 30 * 85 * - 86 AS col1
----
219300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2291
SELECT ALL CAST( NULL AS SIGNED ), + 68 + 31 + 91 + - 74 AS col2
----
NULL
116

skipif mysql # not compatible
query II rowsort label-2291
SELECT ALL CAST ( NULL AS INTEGER ), + 68 + 31 + 91 + - 74 AS col2
----
NULL
116

query I rowsort
SELECT DISTINCT NULLIF ( + + 90, - - 45 - ( + 99 ) + 96 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2293
SELECT DISTINCT + 38 + - 91 + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT + 38 + - 91 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-54

query I rowsort
SELECT ALL ( + - 0 ) + + 84 - + 6
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT ALL CAST( - 41 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL CAST ( - 41 AS INTEGER ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2296
SELECT - 63 DIV - + MAX( DISTINCT 72 )
----
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 63 / - + MAX ( DISTINCT 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + 22 + - + COUNT( * ) + + - 86
----
-65

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 22 + - + COUNT ( * ) + + - 86
----
-65

query I rowsort
SELECT ALL + 20 + - 90 AS col0
----
-70

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

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

query I rowsort
SELECT 28 + + - 34
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT DISTINCT CAST( NULL AS SIGNED ) + 12 * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 12 * 85 AS col1
----
NULL

query I rowsort
SELECT ALL 74 * + - 47
----
-3478

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

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

query I rowsort
SELECT ALL 92 + + 40
----
132

query I rowsort
SELECT DISTINCT + 7 + + - 76 + - - 0 + 24
----
-45

query I rowsort
SELECT - 61 + - ( 48 ) col1
----
-109

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

query I rowsort
SELECT DISTINCT - 16 * + 90 AS col2
----
-1440

query I rowsort
SELECT - 79 * 56 AS col2
----
-4424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT + 27 + + + CAST( NULL AS SIGNED ) * + + 70 * + 18 * + 42 * + 9 + 74 * 24 + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT + 27 + + + CAST ( NULL AS INTEGER ) * + + 70 * + 18 * + 42 * + 9 + 74 * 24 + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - COALESCE ( 68, COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2311
SELECT - COALESCE ( 68, COUNT ( * ) ) AS col1
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + + SUM( ALL + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2313
SELECT + + SUM ( ALL + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT DISTINCT - + 42 AS col0, COUNT( * ) + + CASE + + 53 WHEN 20 THEN - 42 END * 37 * - 95 * - + 92
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-2314
SELECT DISTINCT - + 42 AS col0, COUNT ( * ) + + CASE + + 53 WHEN 20 THEN - 42 END * 37 * - 95 * - + 92
----
-42
NULL

query I rowsort
SELECT ALL + 67 * - ( + - 83 ) + 11 + + 72
----
5644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT 39 + + - CASE 9 WHEN - 76 - CAST( NULL AS SIGNED ) THEN 50 - 94 END * - 64 * ( + - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT 39 + + - CASE 9 WHEN - 76 - CAST ( NULL AS INTEGER ) THEN 50 - 94 END * - 64 * ( + - 76 )
----
NULL

query II rowsort
SELECT ALL - 98 AS col1, + 53 AS col1
----
-98
53

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

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

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

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

query I rowsort
SELECT + 17 * 63 * 1 col0
----
1071

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2321
SELECT 26 * - 58, COALESCE ( ( 80 ), - 16 * + ( - CAST( NULL AS SIGNED ) ), + CAST( NULL AS SIGNED ) ) col2
----
-1508
80

skipif mysql # not compatible
query II rowsort label-2321
SELECT 26 * - 58, COALESCE ( ( 80 ), - 16 * + ( - CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) ) col2
----
-1508
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT SUM( ALL - - 15 ) * + CASE - 76 WHEN + 26 THEN 24 END + - + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT SUM ( ALL - - 15 ) * + CASE - 76 WHEN + 26 THEN 24 END + - + 46 col0
----
NULL

query I rowsort
SELECT DISTINCT 24 * ( - 29 )
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL MIN( - 59 ) + + 3 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL MIN ( - 59 ) + + 3 AS col1
----
-56

query I rowsort
SELECT ALL + CASE - 32 WHEN - 7 THEN NULL ELSE + 19 END + + + 21 AS col0
----
40

query I rowsort
SELECT NULLIF ( NULLIF ( + + ( 13 ), - 74 ), 18 ) * + 12 AS col1
----
156

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

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

query I rowsort
SELECT 21 - + + 35
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT 31 + - + CAST( NULL AS SIGNED ) / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT 31 + - + CAST ( NULL AS INTEGER ) / - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2330
SELECT ALL + 16 * COUNT( * ) AS col1, + ( 49 )
----
16
49

skipif mysql # not compatible
query II rowsort label-2330
SELECT ALL + 16 * COUNT ( * ) AS col1, + ( 49 )
----
16
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL + COUNT( * ) + + + 20 - - SUM( DISTINCT 82 ) - - 16 * CASE + 91 WHEN + 96 THEN NULL WHEN - - 62 - 87 THEN 75 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + COUNT ( * ) + + + 20 - - SUM ( DISTINCT 82 ) - - 16 * CASE + 91 WHEN + 96 THEN NULL WHEN - - 62 - 87 THEN 75 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 56 * + + COALESCE ( - 7, - 31 ), + 66 + + - 59 * - 74 AS col0
----
-392
4432

query II rowsort
SELECT 85 + - 29, - 17 AS col1
----
56
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2334
SELECT - 49 - + - 19 AS col0, + CAST( NULL AS SIGNED )
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-2334
SELECT - 49 - + - 19 AS col0, + CAST ( NULL AS INTEGER )
----
-30
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( - 56, - 4 ) AS col2
----
-56

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

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

query I rowsort
SELECT + 2 * + CASE - 80 WHEN - 47 THEN + 12 WHEN + 47 THEN NULL END + + ( - + 28 ) AS col0
----
NULL

query I rowsort
SELECT 5 * - + 53 + - 22 + - 76 AS col0
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT ALL + 12 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 12 / - 55
----
0

query II rowsort
SELECT 54 + - 58, - 14 AS col0
----
-4
-14

query I rowsort
SELECT ALL 69 * + 56
----
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT ALL - - 59 DIV + ( - 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - - 59 / + ( - 36 ) AS col1
----
-1

query I rowsort
SELECT ALL - ( - 15 ) col2
----
15

query I rowsort
SELECT - 52 * + + 26 AS col1
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL 91 * + + COUNT( * ) + + COUNT( * ) + + + 24 * + 9 AS col2
----
308

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL 91 * + + COUNT ( * ) + + COUNT ( * ) + + + 24 * + 9 AS col2
----
308

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + + COALESCE ( - 0, 81 * 57 + + CASE - - 78 WHEN 3 + + + COALESCE ( - 51, - + 85, - MIN( - 17 ) ) + 7 THEN MIN( - 2 ) + + 94 ELSE NULL END, + 98 * 68 )
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT + + COALESCE ( - 0, 81 * 57 + + CASE - - 78 WHEN 3 + + + COALESCE ( - 51, - + 85, - MIN ( - 17 ) ) + 7 THEN MIN ( - 2 ) + + 94 ELSE NULL END, + 98 * 68 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT COUNT( * ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-2349
SELECT COUNT ( * ) + - 87
----
-86

query I rowsort
SELECT + 18 * + ( + + 16 ) AS col2
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT ALL - COALESCE ( - + 79, 39 ) * + 93 col0, 91 + - CASE + + COUNT( * ) WHEN 61 THEN - 79 ELSE NULL END + + + 61 - - 65 / COUNT( * ) AS col0
----
7347
NULL

skipif mysql # not compatible
query II rowsort label-2351
SELECT ALL - COALESCE ( - + 79, 39 ) * + 93 col0, 91 + - CASE + + COUNT ( * ) WHEN 61 THEN - 79 ELSE NULL END + + + 61 - - 65 / COUNT ( * ) AS col0
----
7347
NULL

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

query I rowsort
SELECT + 75 * + 44 + 87 + + NULLIF ( 38, 79 )
----
3425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT + MIN( ALL - + 26 ) * - - 68 + + - MIN( + CAST( + 73 AS SIGNED ) ) col2
----
-1841

skipif mysql # not compatible
query I rowsort label-2354
SELECT + MIN ( ALL - + 26 ) * - - 68 + + - MIN ( + CAST ( + 73 AS INTEGER ) ) col2
----
-1841

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT DISTINCT SUM( - 70 ) + - ( 94 ) * - CAST( NULL AS SIGNED ) * + + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT SUM ( - 70 ) + - ( 94 ) * - CAST ( NULL AS INTEGER ) * + + 38 AS col1
----
NULL

query I rowsort
SELECT ALL 29 + + 85
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL COALESCE ( 64, + + 34, - + NULLIF ( - 17, + 46 + 65 + + COUNT( * ) * - AVG ( + - 93 ) ) * - 69 + + + COUNT( * ) * 34 + + COUNT( * ) ) + - + 63 * + CASE + 30 WHEN 24 THEN - 28 - + 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL COALESCE ( 64, + + 34, - + NULLIF ( - 17, + 46 + 65 + + COUNT ( * ) * - AVG ( + - 93 ) ) * - 69 + + + COUNT ( * ) * 34 + + COUNT ( * ) ) + - + 63 * + CASE + 30 WHEN 24 THEN - 28 - + 42 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT + 11 + + - CAST( - 78 AS SIGNED ) + - 27 + - 31 + 8 + 64
----
103

skipif mysql # not compatible
query I rowsort label-2360
SELECT + 11 + + - CAST ( - 78 AS INTEGER ) + - 27 + - 31 + 8 + 64
----
103

query I rowsort
SELECT ALL ( 0 ) * - 82
----
0

query II rowsort
SELECT ALL 20, 43 AS col0
----
20
43

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

skipif mysql # not compatible
query I rowsort label-2363
SELECT - NULLIF ( + + 19, COUNT ( * ) * - 18 ) AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT 10 * + ( + CASE - - ( + NULLIF ( 13, - 4 + + 88 + - + CASE COUNT( * ) WHEN - + ( - 57 ) THEN 68 END * - + 48 + - 40 ) ) WHEN - + 65 THEN + + MIN( DISTINCT + + 97 ) + + MAX( ALL - - 51 ) WHEN 59 + - AVG ( DISTINCT 16 ) + - 40 THEN NULL ELSE + MAX( ALL + + 55 ) DIV + 63 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT 10 * + ( + CASE - - ( + NULLIF ( 13, - 4 + + 88 + - + CASE COUNT ( * ) WHEN - + ( - 57 ) THEN 68 END * - + 48 + - 40 ) ) WHEN - + 65 THEN + + MIN ( DISTINCT + + 97 ) + + MAX ( ALL - - 51 ) WHEN 59 + - AVG ( DISTINCT 16 ) + - 40 THEN NULL ELSE + MAX ( ALL + + 55 ) / + 63 END ) AS col1
----
0

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

query I rowsort
SELECT ALL - 57 - - 24
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-2367
SELECT + 57 + ( + 67 ) AS col0, 65 + + + 72 + - + 7 * - 68 * - 86 * + COALESCE ( 62, + 85 DIV NULLIF ( 29, + 50 + - 16 ) )
----
124
-2537895

skipif mysql # not compatible
query II rowsort label-2367
SELECT + 57 + ( + 67 ) AS col0, 65 + + + 72 + - + 7 * - 68 * - 86 * + COALESCE ( 62, + 85 / NULLIF ( 29, + 50 + - 16 ) )
----
124
-2537895

query I rowsort
SELECT ALL 30 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - CASE + NULLIF ( + - 80, + + 51 + 8 * 89 ) WHEN - COUNT( * ) + - + 24 THEN NULL WHEN + + 35 THEN NULL WHEN 21 THEN - COUNT( 18 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT - CASE + NULLIF ( + - 80, + + 51 + 8 * 89 ) WHEN - COUNT ( * ) + - + 24 THEN NULL WHEN + + 35 THEN NULL WHEN 21 THEN - COUNT ( 18 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - COUNT( * ) + - 71 * ( - 62 ) col0
----
4401

skipif mysql # not compatible
query I rowsort label-2370
SELECT - COUNT ( * ) + - 71 * ( - 62 ) col0
----
4401

query I rowsort
SELECT ALL + 58 - + + 14
----
44

query I rowsort
SELECT - 70 * - + 98 AS col2
----
6860

query I rowsort
SELECT ALL + 66 * 56 + + + 74
----
3770

query I rowsort
SELECT + 9 + 56
----
65

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2377
SELECT DISTINCT + COUNT( * ), COUNT( ALL - - 75 ), 7 DIV ( - NULLIF ( + 36, COUNT( ALL - 52 ) ) ) + - + 92 * - 75 col0
----
1
1
6900

skipif mysql # not compatible
query III rowsort label-2377
SELECT DISTINCT + COUNT ( * ), COUNT ( ALL - - 75 ), 7 / ( - NULLIF ( + 36, COUNT ( ALL - 52 ) ) ) + - + 92 * - 75 col0
----
1
1
6900

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

query I rowsort
SELECT DISTINCT - + 7 * + + 91
----
-637

onlyif mysql # aggregate syntax: 
query II rowsort label-2380
SELECT DISTINCT + 17 col0, COUNT( 15 ) + 61 AS col0
----
17
62

skipif mysql # not compatible
query II rowsort label-2380
SELECT DISTINCT + 17 col0, COUNT ( 15 ) + 61 AS col0
----
17
62

query I rowsort
SELECT DISTINCT - 73 * - - 1 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT - + 51 DIV COUNT( * ) * + + 34 * - 5 AS col2
----
8670

skipif mysql # not compatible
query I rowsort label-2382
SELECT - + 51 / COUNT ( * ) * + + 34 * - 5 AS col2
----
8670

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT - COUNT( * ) * 47 * + COUNT( * ) * 56 + 77 + - 18 * COUNT( * ) AS col0
----
-2573

skipif mysql # not compatible
query I rowsort label-2383
SELECT - COUNT ( * ) * 47 * + COUNT ( * ) * 56 + 77 + - 18 * COUNT ( * ) AS col0
----
-2573

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

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

query I rowsort
SELECT - NULLIF ( - 85, + 3 + + + 80 - - 55 * - 3 * 17 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + - 26 * COUNT( * ) - + 67 + + 96
----
3

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + - 26 * COUNT ( * ) - + 67 + + 96
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2388
SELECT COALESCE ( + 60, + CAST( NULL AS SIGNED ) * - 39 + + 94 + - 61 + - + 66 - + - CAST( - - 14 AS SIGNED ) * - COALESCE ( + 54, 94 + + 56 ) DIV - 40 + + + 49 + - 38, 76 DIV - 51 ), + 2 AS col2
----
60
2

skipif mysql # not compatible
query II rowsort label-2388
SELECT COALESCE ( + 60, + CAST ( NULL AS INTEGER ) * - 39 + + 94 + - 61 + - + 66 - + - CAST ( - - 14 AS INTEGER ) * - COALESCE ( + 54, 94 + + 56 ) / - 40 + + + 49 + - 38, 76 / - 51 ), + 2 AS col2
----
60
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2389
SELECT - 39 * - + CAST( NULL AS DECIMAL ) * - 96 - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT - 39 * - + CAST ( NULL AS REAL ) * - 96 - - COUNT ( * ) col0
----
NULL

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

query I rowsort
SELECT ALL - 29 * + 37 + - - 76 + - 25 * + ( - 58 ) AS col1
----
453

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL + + MAX( ALL - + 22 ) * - + MIN( ALL 47 ) + 36 * 91
----
4310

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + + MAX ( ALL - + 22 ) * - + MIN ( ALL 47 ) + 36 * 91
----
4310

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

skipif mysql # not compatible
query II rowsort label-2393
SELECT + COUNT ( * ), 72 AS col0
----
1
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT + SUM( + 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + SUM ( + 61 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2395
SELECT ALL + CAST( + 39 AS SIGNED ) AS col2, 66 * 0 + - 2 AS col0
----
39
-2

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL + CAST ( + 39 AS INTEGER ) AS col2, 66 * 0 + - 2 AS col0
----
39
-2

query I rowsort
SELECT DISTINCT - NULLIF ( - + 92, + 16 * - 41 ) * + 92 AS col0
----
8464

query I rowsort
SELECT ALL - 48 * + + 72 + - 66 AS col0
----
-3522

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - ( - ( - 11 ) ) * - - ( + 46 ) * NULLIF ( 36, - 76 / + - 38 * + + 60 * - 89 + + - 51 + 74 / + COUNT( * ) + + - 28 ) AS col0
----
-18216

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - ( - ( - 11 ) ) * - - ( + 46 ) * NULLIF ( 36, - 76 / + - 38 * + + 60 * - 89 + + - 51 + 74 / + COUNT ( * ) + + - 28 ) AS col0
----
-18216

onlyif mysql # aggregate syntax: 
query II rowsort label-2399
SELECT + COALESCE ( 20, COUNT( * ), - + 47 ) AS col1, - COALESCE ( + - 3, CASE 27 WHEN - - 36 THEN NULL ELSE 32 END - 72 + 92 ) AS col0
----
20
3

skipif mysql # not compatible
query II rowsort label-2399
SELECT + COALESCE ( 20, COUNT ( * ), - + 47 ) AS col1, - COALESCE ( + - 3, CASE 27 WHEN - - 36 THEN NULL ELSE 32 END - 72 + 92 ) AS col0
----
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT 52 * - 18 + - CAST( NULLIF ( + COALESCE ( - 61, + 72 * + 56, - 0 + 65 ), + 2 + 75 + - - 23 ) AS SIGNED ) + + + 60 - + - 32 + + 34 * 74 - - + 16 - + 66 - - 96 * + 3 * + 73 AS col1
----
22707

skipif mysql # not compatible
query I rowsort label-2400
SELECT 52 * - 18 + - CAST ( NULLIF ( + COALESCE ( - 61, + 72 * + 56, - 0 + 65 ), + 2 + 75 + - - 23 ) AS INTEGER ) + + + 60 - + - 32 + + 34 * 74 - - + 16 - + 66 - - 96 * + 3 * + 73 AS col1
----
22707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2401
SELECT ALL 60 col0, + ( + + MAX( CAST( + 58 AS SIGNED ) ) ) * CAST( NULL AS SIGNED ) + 10 + - - COUNT( * ) / - CAST( NULL AS SIGNED ) + + COUNT( * )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-2401
SELECT ALL 60 col0, + ( + + MAX ( CAST ( + 58 AS INTEGER ) ) ) * CAST ( NULL AS INTEGER ) + 10 + - - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
60
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT - COUNT( * ), + SUM( DISTINCT 53 ) + + - COUNT( * ) AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-2403
SELECT - COUNT ( * ), + SUM ( DISTINCT 53 ) + + - COUNT ( * ) AS col2
----
-1
52

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

query I rowsort
SELECT ALL 75 - - 25 * + ( 14 ) AS col1
----
425

query I rowsort
SELECT + 81 * + + 48
----
3888

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2407
SELECT ALL CAST( NULL AS DECIMAL ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2407
SELECT ALL CAST ( NULL AS REAL ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL MAX( ALL + + 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL MAX ( ALL + + 73 ) AS col1
----
73

query II rowsort
SELECT - 45 * - + 79 AS col1, + 65
----
3555
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT + 51 * + CAST( 51 AS SIGNED ) AS col1
----
2601

skipif mysql # not compatible
query I rowsort label-2410
SELECT + 51 * + CAST ( 51 AS INTEGER ) AS col1
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT 57 * - - 67 * + - COUNT( * )
----
-3819

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 57 * - - 67 * + - COUNT ( * )
----
-3819

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT + - CAST( + + 81 AS SIGNED ) * + 51 + - COUNT( * ) AS col2
----
-4132

skipif mysql # not compatible
query I rowsort label-2414
SELECT + - CAST ( + + 81 AS INTEGER ) * + 51 + - COUNT ( * ) AS col2
----
-4132

query II rowsort
SELECT ALL - 35 AS col2, + 3 AS col2
----
-35
3

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

skipif mysql # not compatible
query I rowsort label-2416
SELECT + 11 + COUNT ( * ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT ALL + 46 DIV 56 * + 17 * + 92
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + 46 / 56 * + 17 * + 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + - 40 DIV - 8
----
5

skipif mysql # not compatible
query I rowsort label-2418
SELECT + - 40 / - 8
----
5

query I rowsort
SELECT ALL COALESCE ( + - 4, - 73 * 14 + + 81 )
----
-4

query I rowsort
SELECT + + 66 - - 4
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT + 73 * + 94 * COUNT( DISTINCT 2 ) * - 77 AS col0
----
-528374

skipif mysql # not compatible
query I rowsort label-2421
SELECT + 73 * + 94 * COUNT ( DISTINCT 2 ) * - 77 AS col0
----
-528374

query II rowsort
SELECT 26, + 56 AS col1
----
26
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT ALL 92 DIV 85 + + 48
----
49

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL 92 / 85 + + 48
----
49

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

query I rowsort
SELECT + - 88 * - - NULLIF ( + 71, + + 78 )
----
-6248

query I rowsort
SELECT + 14 + 88
----
102

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL 0 / + NULLIF ( + + 96, - 20 ) / + MIN( ALL + 33 ) + 54 + + 46 * - + 13 * + CAST( NULL AS SIGNED ) / 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL 0 / + NULLIF ( + + 96, - 20 ) / + MIN ( ALL + 33 ) + 54 + + 46 * - + 13 * + CAST ( NULL AS INTEGER ) / 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT ALL + - 84 DIV - 27 + - - MAX( + - 48 ) * 72 AS col0
----
-3453

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + - 84 / - 27 + - - MAX ( + - 48 ) * 72 AS col0
----
-3453

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

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

query I rowsort
SELECT ALL - 84 * - 84 + + 76
----
7132

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-2433
SELECT + COUNT ( * ) + 17
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT ALL + 54 DIV - ( ( + 53 ) ) * - + COUNT( * ) - + 59 * + + 28 + + ( + - 71 ) * + 19 - - 53 DIV + + 4 + + 66 * 58
----
841

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + 54 / - ( ( + 53 ) ) * - + COUNT ( * ) - + 59 * + + 28 + + ( + - 71 ) * + 19 - - 53 / + + 4 + + 66 * 58
----
841

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

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

query I rowsort
SELECT ALL + 56 + + 43 + - ( - - 0 ) + - 58 AS col2
----
41

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

skipif mysql # not compatible
query I rowsort label-2437
SELECT - 56 * - - COUNT ( * ) + 36 AS col2
----
-20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT DISTINCT + 84 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + 84 / + 38
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT 93 * - 63 + - SUM( ALL - 86 ) DIV - 58 AS col1
----
-5860

skipif mysql # not compatible
query I rowsort label-2440
SELECT 93 * - 63 + - SUM ( ALL - 86 ) / - 58 AS col1
----
-5860

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - ( + COUNT( * ) ) - + + 79 - - 48 + + 75 + - - CASE 60 WHEN + - 18 THEN NULL ELSE - 91 - - 18 END / - + CASE + CASE + COALESCE ( ( + 44 ), NULLIF ( 76, + 79 ) / - - 53 + - 30 + - + 69 ) WHEN 77 THEN + COUNT( * ) * - 41 END WHEN + - COUNT( * ) THEN + + 43 * 29 WHEN 60 + 58 THEN - + 18 * - 47 / + 29 / + + 55 ELSE NULL END * + 31 * MAX( + 77 ) + - 50 + COALESCE ( - COUNT( ALL 45 ), 62 ) / 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - ( + COUNT ( * ) ) - + + 79 - - 48 + + 75 + - - CASE 60 WHEN + - 18 THEN NULL ELSE - 91 - - 18 END / - + CASE + CASE + COALESCE ( ( + 44 ), NULLIF ( 76, + 79 ) / - - 53 + - 30 + - + 69 ) WHEN 77 THEN + COUNT ( * ) * - 41 END WHEN + - COUNT ( * ) THEN + + 43 * 29 WHEN 60 + 58 THEN - + 18 * - 47 / + 29 / + + 55 ELSE NULL END * + 31 * MAX ( + 77 ) + - 50 + COALESCE ( - COUNT ( ALL 45 ), 62 ) / 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT - MIN( - ( 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - MIN ( - ( 46 ) )
----
46

query I rowsort
SELECT 41 + + 49
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT 47 DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-2444
SELECT 47 / - 25
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT + CAST( + 0 AS SIGNED ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) / - 84
----
0

query I rowsort
SELECT 56 + + 12 * - - 45
----
596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2447
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + COUNT( * ) / + + 54 * - + MAX( - 86 ) / + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - CAST ( NULL AS REAL ) * + COUNT ( * ) / + + 54 * - + MAX ( - 86 ) / + + 6 AS col1
----
NULL

query I rowsort
SELECT ALL - 94 * + 25
----
-2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2449
SELECT 82 * 37 AS col0, 46 + 68 + + SUM( DISTINCT + 72 ) + - - 86 + - COUNT( * ) DIV 27
----
3034
272

skipif mysql # not compatible
query II rowsort label-2449
SELECT 82 * 37 AS col0, 46 + 68 + + SUM ( DISTINCT + 72 ) + - - 86 + - COUNT ( * ) / 27
----
3034
272

query II rowsort
SELECT DISTINCT - 85 * + + 10, - 38 + + 13 AS col1
----
-850
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT 56 + MIN( ALL 21 ) DIV ( 58 )
----
56

skipif mysql # not compatible
query I rowsort label-2451
SELECT 56 + MIN ( ALL 21 ) / ( 58 )
----
56

query I rowsort
SELECT 65 + + - 55 + - 73 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL - 95 * + + 80 * CAST( + 72 AS SIGNED ) col1
----
-547200

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - 95 * + + 80 * CAST ( + 72 AS INTEGER ) col1
----
-547200

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + NULLIF ( - 36, - + 3 * - - MIN( ALL - + 46 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-2454
SELECT + NULLIF ( - 36, - + 3 * - - MIN ( ALL - + 46 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + CASE - + NULLIF ( - 18, - 69 ) WHEN + MIN( DISTINCT + 11 ) * + 93 THEN - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + CASE - + NULLIF ( - 18, - 69 ) WHEN + MIN ( DISTINCT + 11 ) * + 93 THEN - 78 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2456
SELECT DISTINCT + 17 DIV 59 AS col0, 83 * 58 + + + CAST( + 88 AS SIGNED )
----
0
4902

skipif mysql # not compatible
query II rowsort label-2456
SELECT DISTINCT + 17 / 59 AS col0, 83 * 58 + + + CAST ( + 88 AS INTEGER )
----
0
4902

query I rowsort
SELECT ALL - + 90 + - 31
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT - 18 + NULLIF ( 29, 53 ) DIV + 72 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 18 + NULLIF ( 29, 53 ) / + 72 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT + CASE - 76 WHEN 69 - - - MAX( 91 ) THEN - ( + 34 ) - + CASE + - 93 WHEN + 15 THEN + - 53 END * + - 66 END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + CASE - 76 WHEN 69 - - - MAX ( 91 ) THEN - ( + 34 ) - + CASE + - 93 WHEN + 15 THEN + - 53 END * + - 66 END + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - 45 + - 22 * - CASE - COUNT( * ) WHEN 30 * + 26 * + MAX( - 22 ) + - COUNT( * ) THEN - + 53 + 42 WHEN - 81 + COUNT( 12 ) - 38 * + + 41 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT - 45 + - 22 * - CASE - COUNT ( * ) WHEN 30 * + 26 * + MAX ( - 22 ) + - COUNT ( * ) THEN - + 53 + 42 WHEN - 81 + COUNT ( 12 ) - 38 * + + 41 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 15 + + - 51 * - - 91 * - 91 AS col1
----
422346

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + ( + 63 ) + + CASE - COUNT( * ) WHEN + 55 THEN - + 60 ELSE NULL END + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT + ( + 63 ) + + CASE - COUNT ( * ) WHEN + 55 THEN - + 60 ELSE NULL END + 20 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT 39 + + + NULLIF ( 2, + - COALESCE ( - 79, - + 60 + - COUNT( * ) + - 11 - + 20 + - 87 * + + CAST( NULL AS SIGNED ), + 52 * + - CAST( - - 90 AS SIGNED ) / + 57 + 1 * - 10, 61 - - COUNT( * ) ) + - ( - 30 ) * ( CAST( NULL AS SIGNED ) ) / + + 9 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-2463
SELECT 39 + + + NULLIF ( 2, + - COALESCE ( - 79, - + 60 + - COUNT ( * ) + - 11 - + 20 + - 87 * + + CAST ( NULL AS INTEGER ), + 52 * + - CAST ( - - 90 AS INTEGER ) / + 57 + 1 * - 10, 61 - - COUNT ( * ) ) + - ( - 30 ) * ( CAST ( NULL AS INTEGER ) ) / + + 9 ) col2
----
41

query I rowsort
SELECT + 12 * - ( - 6 ) * + 17 AS col2
----
1224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL + CAST( 62 AS SIGNED ) + 17 * - + 12
----
-142

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + CAST ( 62 AS INTEGER ) + 17 * - + 12
----
-142

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

query I rowsort
SELECT ALL - ( - 18 ) + + 60 AS col0
----
78

query I rowsort
SELECT NULLIF ( - 55, - 99 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT DISTINCT - 29 + - + 94 AS col0, - CASE 25 WHEN - 32 THEN NULL ELSE - COUNT( * ) END + + + COUNT( 98 ) * - 10
----
-123
-9

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT - 29 + - + 94 AS col0, - CASE 25 WHEN - 32 THEN NULL ELSE - COUNT ( * ) END + + + COUNT ( 98 ) * - 10
----
-123
-9

query I rowsort
SELECT 77 * - 30
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT COALESCE ( - 49, 15, + COUNT( * ) ) + + 26 + - 59 + + 85 * 96 * + - 89 * + ( - COUNT( * ) ) AS col0
----
726158

skipif mysql # not compatible
query I rowsort label-2471
SELECT COALESCE ( - 49, 15, + COUNT ( * ) ) + + 26 + - 59 + + 85 * 96 * + - 89 * + ( - COUNT ( * ) ) AS col0
----
726158

query I rowsort
SELECT ALL - 96 + - - 44
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT 61 * - + 93 + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT 61 * - + 93 + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 2 AS col0
----
NULL

query I rowsort
SELECT 12 * 70 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL + 89 - 80 + SUM( DISTINCT 83 ) * 7
----
590

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + 89 - 80 + SUM ( DISTINCT 83 ) * 7
----
590

query II rowsort
SELECT ALL - 11 AS col1, 6 * - 75 * + - 62 * 96
----
-11
2678400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2477
SELECT + COUNT( * ), 2 DIV + + COUNT( * ) AS col2
----
1
2

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

query I rowsort
SELECT 50 * - 82
----
-4100

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL COALESCE ( COUNT( * ), 63 + + 4 + 54 * - 0 + + 99 * - 64 * + + 7, - 88 * - 65 ) * - 87 col0
----
-87

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL COALESCE ( COUNT ( * ), 63 + + 4 + 54 * - 0 + + 99 * - 64 * + + 7, - 88 * - 65 ) * - 87 col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT ( + 22 ) * + 86 * - CAST( 72 AS SIGNED ) AS col1
----
-136224

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT ( + 22 ) * + 86 * - CAST ( 72 AS INTEGER ) AS col1
----
-136224

query II rowsort
SELECT + 17, 60 AS col2
----
17
60

query I rowsort
SELECT ( + 64 ) * + 35 col1
----
2240

query I rowsort
SELECT 76 * 54 AS col0
----
4104

query II rowsort
SELECT - 76 * 45 - + 18 AS col2, 85 AS col1
----
-3438
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT 82 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT 82 / 83
----
0

query I rowsort
SELECT 65 * + - 71
----
-4615

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

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

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

skipif mysql # not compatible
query I rowsort label-2488
SELECT 72 / + + 18 * + COUNT ( * ) AS col1
----
4

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

skipif mysql # not compatible
query II rowsort label-2489
SELECT ALL COUNT ( * ), 61 AS col1
----
1
61

query I rowsort
SELECT - - 5 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT - 93 DIV - 8 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2491
SELECT - 93 / - 8 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL + COUNT( * ) + - 59 col0
----
-58

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + COUNT ( * ) + - 59 col0
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL - COUNT( * ) + + - 81 - MIN( + + 10 ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - COUNT ( * ) + + - 81 - MIN ( + + 10 ) col0
----
-92

query I rowsort
SELECT DISTINCT - 56 col1
----
-56

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

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + 83 * - COUNT ( * ) AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2498
SELECT - 70, SUM( - CAST( - + 67 AS SIGNED ) ) DIV 22 AS col1
----
-70
3

skipif mysql # not compatible
query II rowsort label-2498
SELECT - 70, SUM ( - CAST ( - + 67 AS INTEGER ) ) / 22 AS col1
----
-70
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT CAST( NULL AS SIGNED ) + - 61 + - - 81 + - 27 + 57 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT CAST ( NULL AS INTEGER ) + - 61 + - - 81 + - 27 + 57 * - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT + ( - 86 ) * + NULLIF ( - 7, - - 79 * + ( 2 ) * + COUNT( * ) * - 96 ) col2
----
602

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + ( - 86 ) * + NULLIF ( - 7, - - 79 * + ( 2 ) * + COUNT ( * ) * - 96 ) col2
----
602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL COUNT( * ) + + NULLIF ( - 98, + - 21 + 26 + - + CAST( NULL AS SIGNED ) )
----
-97

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL COUNT ( * ) + + NULLIF ( - 98, + - 21 + 26 + - + CAST ( NULL AS INTEGER ) )
----
-97

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

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

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

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

query I rowsort
SELECT - ( + 70 ) col1
----
-70

query I rowsort
SELECT DISTINCT - - 33 - 24 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2506
SELECT ALL + - 70 DIV - COALESCE ( - + 73, - CAST( NULL AS SIGNED ) ) * COUNT( * ) - 58 * + + 77 AS col1
----
-4466

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + - 70 / - COALESCE ( - + 73, - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - 58 * + + 77 AS col1
----
-4466

query I rowsort
SELECT - + ( + - 95 ) * 49 * 8 * 71
----
2644040

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT NULLIF ( + 58, + 79 * + COALESCE ( + + 56, 88 + + MIN( DISTINCT 33 ), + 57 + + - 12 ) ) * 66 * - 71 * - 12 + + COUNT( * )
----
3261457

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT NULLIF ( + 58, + 79 * + COALESCE ( + + 56, 88 + + MIN ( DISTINCT 33 ), + 57 + + - 12 ) ) * 66 * - 71 * - 12 + + COUNT ( * )
----
3261457

query I rowsort
SELECT ALL + ( ( NULLIF ( + 83, 25 * 7 - 49 + + - 41 / + 69 * - + 28 ) ) )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT ALL + COALESCE ( - 18, 60 * - COUNT( * ) ) DIV + ( 85 )
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + COALESCE ( - 18, 60 * - COUNT ( * ) ) / + ( 85 )
----
0

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

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

query I rowsort
SELECT + COALESCE ( - 82, + 40 * + 99, - 6 ) AS col2
----
-82

query I rowsort
SELECT - 28 + + 86 + - 74 * - + 74
----
5534

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

query I rowsort
SELECT + 22 + - - 11 AS col1
----
33

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2517
SELECT + COUNT( * ) * 85 DIV COUNT( * ) + - + MAX( ALL 78 ) + + ( - COUNT( * ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2517
SELECT + COUNT ( * ) * 85 / COUNT ( * ) + - + MAX ( ALL 78 ) + + ( - COUNT ( * ) ) AS col1
----
6

query I rowsort
SELECT + 74 + + + 60 AS col0
----
134

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2520
SELECT + ( - + 57 ) + - - ( - - 15 ) DIV + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2520
SELECT + ( - + 57 ) + - - ( - - 15 ) / + COUNT ( * ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT + ( - + 12 ) + CAST( 59 AS SIGNED ) * 17
----
991

skipif mysql # not compatible
query I rowsort label-2521
SELECT + ( - + 12 ) + CAST ( 59 AS INTEGER ) * 17
----
991

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

query I rowsort
SELECT ALL - 68 + - - 39 AS col1
----
-29

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

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

query I rowsort
SELECT + + 84 * - ( 60 ) AS col0
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT - - 77 * 88 + + - 83 * - CAST( NULL AS SIGNED ) / + + 13 + + 94 + 25 * - - CAST( + 23 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT - - 77 * 88 + + - 83 * - CAST ( NULL AS INTEGER ) / + + 13 + + 94 + 25 * - - CAST ( + 23 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 73 + ( + 26 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2528
SELECT DISTINCT 79 + - 5 + - 7 + - - 25 * - COUNT( * ) DIV + 72 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT 79 + - 5 + - 7 + - - 25 * - COUNT ( * ) / + 72 * - COUNT ( * )
----
67

query I rowsort
SELECT ALL 65 col2
----
65

query I rowsort
SELECT ALL - - 23 + + ( + 76 ) + - 46 + + 99 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - 90 + 55 + + ( COUNT( * ) ) + - 16 * 47 AS col2
----
-786

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - 90 + 55 + + ( COUNT ( * ) ) + - 16 * 47 AS col2
----
-786

query I rowsort
SELECT DISTINCT - + 47 * - - 96
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - - 51 * 77 * - - 63 + + MAX( DISTINCT - + NULLIF ( - 57, 8 ) ) + + ( 95 )
----
247553

skipif mysql # not compatible
query I rowsort label-2533
SELECT - - 51 * 77 * - - 63 + + MAX ( DISTINCT - + NULLIF ( - 57, 8 ) ) + + ( 95 )
----
247553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT - + 77 * CAST( - 81 AS SIGNED ) + SUM( DISTINCT 78 )
----
6315

skipif mysql # not compatible
query I rowsort label-2534
SELECT - + 77 * CAST ( - 81 AS INTEGER ) + SUM ( DISTINCT 78 )
----
6315

query I rowsort
SELECT - - 2 + - + 50
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL - 96 - + COALESCE ( + 58, - + 78, + 99 + - + 47 * 87, ( SUM( - 71 ) ) ) + - 72 + 90 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - 96 - + COALESCE ( + 58, - + 78, + 99 + - + 47 * 87, ( SUM ( - 71 ) ) ) + - 72 + 90 AS col0
----
-136

query II rowsort
SELECT DISTINCT + - 68 * - - 89 + + 36 * - 81, + ( 45 ) AS col1
----
-8968
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT SUM( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2538
SELECT SUM ( 43 )
----
43

query I rowsort
SELECT - 83 * 10 * + ( - 66 ) AS col0
----
54780

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - 52 * + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-2540
SELECT - 52 * + COUNT ( * )
----
-52

query I rowsort
SELECT ALL + 5 * - 68 col1
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - 92 + - - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 92 + - - COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT DISTINCT + - 93 - + 95
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT - MAX( ALL 6 ) * 18 * + ( + + 80 ) AS col1
----
-8640

skipif mysql # not compatible
query I rowsort label-2544
SELECT - MAX ( ALL 6 ) * 18 * + ( + + 80 ) AS col1
----
-8640

query I rowsort
SELECT - 58 + + 40 * + 65 AS col2
----
2542

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT - 29 * 50 DIV - - 93 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 29 * 50 / - - 93 AS col2
----
-15

query I rowsort
SELECT 98 * + CASE - 25 WHEN + 0 * - 49 / 74 + + 42 THEN - + 58 END * + + ( 59 ) - + 70 + + 62 - AVG ( ALL - - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + COALESCE ( 11, + MAX( + 55 ) ) col1
----
11

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + COALESCE ( 11, + MAX ( + 55 ) ) col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2549
SELECT CAST( NULL AS SIGNED ), 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2549
SELECT CAST ( NULL AS INTEGER ), 16 AS col1
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2550
SELECT + 6 * CAST( - 36 AS SIGNED ) + - 49 DIV - ( - 69 )
----
-216

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 6 * CAST ( - 36 AS INTEGER ) + - 49 / - ( - 69 )
----
-216

query II rowsort
SELECT ALL + NULLIF ( - 22, - + 27 - + 91 - + 39 * + 87 ) AS col0, + 67 * NULLIF ( + - 31, - + 97 ) AS col2
----
-22
-2077

query I rowsort
SELECT ( + - 68 ) col1
----
-68

query I rowsort
SELECT - 99 * - 25
----
2475

query I rowsort
SELECT DISTINCT 10 * 55 col2
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT - COALESCE ( - 74, 58, 16 ) * - SUM( DISTINCT + 21 ) + - COUNT( * ) + - - COUNT( * ) + ( - 70 ) / + - 16 + + CASE + 10 WHEN + NULLIF ( + CASE - COUNT( * ) WHEN 46 + + ( - + 99 ) THEN 82 + - + 78 * - 14 ELSE + + COUNT( * ) END, 58 + + - 41 + + 48 * 47 ) * 65 THEN + ( + CASE 88 WHEN - 58 THEN 66 WHEN - ( - 85 ) + + MAX( + 11 ) + - 70 * + 89 / - - 29 * 58 THEN 29 - COUNT( * ) END ) + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - COALESCE ( - 74, 58, 16 ) * - SUM ( DISTINCT + 21 ) + - COUNT ( * ) + - - COUNT ( * ) + ( - 70 ) / + - 16 + + CASE + 10 WHEN + NULLIF ( + CASE - COUNT ( * ) WHEN 46 + + ( - + 99 ) THEN 82 + - + 78 * - 14 ELSE + + COUNT ( * ) END, 58 + + - 41 + + 48 * 47 ) * 65 THEN + ( + CASE 88 WHEN - 58 THEN 66 WHEN - ( - 85 ) + + MAX ( + 11 ) + - 70 * + 89 / - - 29 * 58 THEN 29 - COUNT ( * ) END ) + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL 61 * 59 * 30 + - ( + COUNT( * ) ) AS col1
----
107969

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL 61 * 59 * 30 + - ( + COUNT ( * ) ) AS col1
----
107969

query I rowsort
SELECT ( + 57 )
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2558
SELECT - 15 DIV + + COALESCE ( - CAST( NULL AS SIGNED ), + 89, 79 * 27 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 15 / + + COALESCE ( - CAST ( NULL AS INTEGER ), + 89, 79 * 27 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT + 21 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + 21 / 48
----
0

query I rowsort
SELECT - 32 * - - 2 AS col1
----
-64

query I rowsort
SELECT DISTINCT + - 63 AS col0
----
-63

query I rowsort
SELECT DISTINCT - + 73 * 53 + - - ( + - 42 ) AS col1
----
-3911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT CAST( + + 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT CAST ( + + 37 AS INTEGER )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL + CASE - 2 WHEN - 53 THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN - + 63 * COALESCE ( + 16, + - COUNT( * ) ) + 52 THEN CAST( NULL AS SIGNED ) ELSE - CAST( NULL AS SIGNED ) END * - + CASE + + 97 WHEN 45 - - 90 THEN - 50 ELSE NULL END + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL + CASE - 2 WHEN - 53 THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN - + 63 * COALESCE ( + 16, + - COUNT ( * ) ) + 52 THEN CAST ( NULL AS INTEGER ) ELSE - CAST ( NULL AS INTEGER ) END * - + CASE + + 97 WHEN 45 - - 90 THEN - 50 ELSE NULL END + 59 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT CASE - 16 WHEN - ( - 42 ) / - + 52 * 93 + + CAST( NULL AS SIGNED ) * - CAST( + 19 AS SIGNED ) THEN NULL ELSE - + 72 * 95 + + + ( + 73 ) END
----
-6767

skipif mysql # not compatible
query I rowsort label-2565
SELECT CASE - 16 WHEN - ( - 42 ) / - + 52 * 93 + + CAST ( NULL AS INTEGER ) * - CAST ( + 19 AS INTEGER ) THEN NULL ELSE - + 72 * 95 + + + ( + 73 ) END
----
-6767

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL CASE + COUNT( * ) WHEN + - ( - + COUNT( * ) ) THEN NULL WHEN - 91 * - 25 + - 49 THEN 8 - - 2 + - COUNT( * ) WHEN + 45 / - 72 * - + 33 THEN - + COALESCE ( - COUNT( * ), - 87 + 95, + 71, - 19 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL CASE + COUNT ( * ) WHEN + - ( - + COUNT ( * ) ) THEN NULL WHEN - 91 * - 25 + - 49 THEN 8 - - 2 + - COUNT ( * ) WHEN + 45 / - 72 * - + 33 THEN - + COALESCE ( - COUNT ( * ), - 87 + 95, + 71, - 19 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + 80 - NULLIF ( + 0, - 14 - + 61 )
----
6960

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + - 6 - + ( + MIN( ALL - 55 ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2568
SELECT + - 6 - + ( + MIN ( ALL - 55 ) ) AS col0
----
49

query I rowsort
SELECT ALL 70 * - 71 + + 22
----
-4948

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT - COUNT( * ) * + - 79 - 37
----
42

skipif mysql # not compatible
query I rowsort label-2570
SELECT - COUNT ( * ) * + - 79 - 37
----
42

query I rowsort
SELECT ( 83 ) + - - 3 col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT 97 AS col0, + COUNT( * ) * + 70
----
97
70

skipif mysql # not compatible
query II rowsort label-2572
SELECT 97 AS col0, + COUNT ( * ) * + 70
----
97
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2573
SELECT ALL + 19 AS col0, - 61 DIV + COUNT( * ) AS col0
----
19
-61

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL + 19 AS col0, - 61 / + COUNT ( * ) AS col0
----
19
-61

query I rowsort
SELECT 63 + + + 21 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT 6 * - COUNT( * ) + + + 87 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2575
SELECT 6 * - COUNT ( * ) + + + 87 AS col1
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2576
SELECT - 80 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT - 80 + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ( + 69 ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL - CASE 24 WHEN + 40 + - COUNT( * ) THEN + 85 ELSE - 29 END
----
29

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - CASE 24 WHEN + 40 + - COUNT ( * ) THEN + 85 ELSE - 29 END
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT ALL - - COUNT( * ) DIV 18 + + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - - COUNT ( * ) / 18 + + - 83
----
-83

query I rowsort
SELECT ALL - 30 * + 70 AS col2
----
-2100

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT - 91 AS col0, - ( + COUNT( * ) ) AS col2
----
-91
-1

skipif mysql # not compatible
query II rowsort label-2581
SELECT - 91 AS col0, - ( + COUNT ( * ) ) AS col2
----
-91
-1

query I rowsort
SELECT ALL - 39 * 26
----
-1014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2583
SELECT COUNT( * ) DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT COUNT ( * ) / - 29 AS col2
----
0

query I rowsort
SELECT 66 * 99
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 69 + - + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2585
SELECT 69 + - + COUNT ( * )
----
68

query I rowsort
SELECT 30 * + + 20 - - 77
----
677

query II rowsort
SELECT + 57 col1, 26 AS col2
----
57
26

query I rowsort
SELECT 59 + 5 AS col0
----
64

query II rowsort
SELECT ALL - 30 AS col2, 18 AS col1
----
-30
18

query I rowsort
SELECT 66 * - - 7 AS col2
----
462

query I rowsort
SELECT ALL - 67 + + - 10 AS col1
----
-77

query I rowsort
SELECT ALL - ( 77 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2593
SELECT 24 AS col1, CASE - 99 WHEN + 39 THEN - CAST( NULL AS SIGNED ) END
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2593
SELECT 24 AS col1, CASE - 99 WHEN + 39 THEN - CAST ( NULL AS INTEGER ) END
----
24
NULL

query I rowsort
SELECT 81 - ( + 86 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL 39 + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL 39 + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2596
SELECT 40 AS col0, COUNT( * ) AS col0
----
40
1

skipif mysql # not compatible
query II rowsort label-2596
SELECT 40 AS col0, COUNT ( * ) AS col0
----
40
1

query I rowsort
SELECT ALL - ( + ( - - 88 ) ) AS col0
----
-88

query I rowsort
SELECT 65 + + 33 + + - 41
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT 71 + - - CASE MIN( + + 82 ) WHEN AVG ( - + 20 ) * + 46 THEN + 80 + + CAST( + ( + 15 ) AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT 71 + - - CASE MIN ( + + 82 ) WHEN AVG ( - + 20 ) * + 46 THEN + 80 + + CAST ( + ( + 15 ) AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT ALL - 5 + + - 23
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT 68 * + MAX( ALL - 60 ) + - - 61 AS col2
----
-4019

skipif mysql # not compatible
query I rowsort label-2601
SELECT 68 * + MAX ( ALL - 60 ) + - - 61 AS col2
----
-4019

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT 16 * COUNT( * ) * + 66 * + - 42 AS col1, COUNT( * )
----
-44352
1

skipif mysql # not compatible
query II rowsort label-2602
SELECT 16 * COUNT ( * ) * + 66 * + - 42 AS col1, COUNT ( * )
----
-44352
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT + + COUNT( DISTINCT - 91 ), 37 AS col1
----
1
37

skipif mysql # not compatible
query II rowsort label-2603
SELECT + + COUNT ( DISTINCT - 91 ), 37 AS col1
----
1
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT ALL - 70 AS col0, COUNT( * ) + - 42 - 10 + - COUNT( * ) * + 50
----
-70
-101

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL - 70 AS col0, COUNT ( * ) + - 42 - 10 + - COUNT ( * ) * + 50
----
-70
-101

query I rowsort
SELECT ALL - ( - 23 ) * 81
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( * ) + 22
----
23

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( * ) + 22
----
23

query I rowsort
SELECT 60 * + 41 AS col2
----
2460

query I rowsort
SELECT + 62 + 22 + - 90
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - 71 + - COALESCE ( + + SUM( 76 ), - COUNT( ALL + - 53 ) ) AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-2609
SELECT - 71 + - COALESCE ( + + SUM ( 76 ), - COUNT ( ALL + - 53 ) ) AS col0
----
-147

query I rowsort
SELECT ALL - - 26 * - 38 * - ( 35 ) AS col2
----
34580

query I rowsort
SELECT 52 + + 73
----
125

query II rowsort
SELECT - 28 AS col2, 95 AS col0
----
-28
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - COUNT( * ) + + 90 * 87 - - 31 AS col1
----
7860

skipif mysql # not compatible
query I rowsort label-2613
SELECT - COUNT ( * ) + + 90 * 87 - - 31 AS col1
----
7860

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT - COALESCE ( + COUNT( * ), + 70 * + 43 * - 68 + - 80 + + COUNT( - - 8 ) + + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-2614
SELECT - COALESCE ( + COUNT ( * ), + 70 * + 43 * - 68 + - 80 + + COUNT ( - - 8 ) + + 24 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2615
SELECT DISTINCT + 52, - 64 DIV + 2 + + 46 AS col0
----
52
14

skipif mysql # not compatible
query II rowsort label-2615
SELECT DISTINCT + 52, - 64 / + 2 + + 46 AS col0
----
52
14

query I rowsort
SELECT ALL 71 * 50 + - 94 col0
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT - SUM( + - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-2617
SELECT - SUM ( + - 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT DISTINCT MIN( DISTINCT - - 50 ) * 9 DIV + COUNT( * ) AS col1
----
450

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT MIN ( DISTINCT - - 50 ) * 9 / + COUNT ( * ) AS col1
----
450

query I rowsort
SELECT DISTINCT 41 + - - 82 + - 16 * - + 54 * 77
----
66651

query I rowsort
SELECT ALL 76 + COALESCE ( + 6, 42 * ( - - 12 ) + + 13 + - 64 ) * - 19 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT MIN( DISTINCT + - 56 ) * - ( + - COUNT( * ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2621
SELECT MIN ( DISTINCT + - 56 ) * - ( + - COUNT ( * ) ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2622
SELECT ALL 81 + - 29, 37 - + COALESCE ( - 40, + 82 ) * - 85 + + - 68 + + NULLIF ( + CAST( NULL AS SIGNED ), - 79 + 42 ) * + 86 / + + 87 + + 61 + 85 * + - MIN( DISTINCT 49 ) / + - 85 + 94 AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-2622
SELECT ALL 81 + - 29, 37 - + COALESCE ( - 40, + 82 ) * - 85 + + - 68 + + NULLIF ( + CAST ( NULL AS INTEGER ), - 79 + 42 ) * + 86 / + + 87 + + 61 + 85 * + - MIN ( DISTINCT 49 ) / + - 85 + 94 AS col2
----
52
NULL

query I rowsort
SELECT ALL 40 + - 55 * - 18
----
1030

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2624
SELECT DISTINCT + 90 DIV - 27, + MAX( + + 45 ) AS col2
----
-3
45

skipif mysql # not compatible
query II rowsort label-2624
SELECT DISTINCT + 90 / - 27, + MAX ( + + 45 ) AS col2
----
-3
45

query I rowsort
SELECT ALL 28 * - 82 + - + 85 AS col0
----
-2381

query I rowsort
SELECT ALL 97 * - 33 + 58
----
-3143

onlyif mysql # DIV for integer division: 
query II rowsort label-2627
SELECT ALL 34 DIV + 60 AS col2, 39
----
0
39

skipif mysql # not compatible
query II rowsort label-2627
SELECT ALL 34 / + 60 AS col2, 39
----
0
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT + MIN( 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2628
SELECT + MIN ( 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ( + MAX( - + 40 ) ) * 2 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2629
SELECT ( + MAX ( - + 40 ) ) * 2 AS col2
----
-80

query I rowsort
SELECT ALL - - 3
----
3

query I rowsort
SELECT ALL + + 52 AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT - - 78 DIV 9 * - + 2 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2632
SELECT - - 78 / 9 * - + 2 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT - + 3 - + CAST( 19 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2633
SELECT - + 3 - + CAST ( 19 AS INTEGER ) AS col1
----
-22

query II rowsort
SELECT - 76 * + 22, + 82 * + 11 + + + 46 col1
----
-1672
948

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT - SUM( DISTINCT + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-2635
SELECT - SUM ( DISTINCT + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - ( ( - 63 ) ) + - SUM( - 10 ) + + - 18 + COUNT( * ) - - 87 * + COALESCE ( + + 39, 43 )
----
3449

skipif mysql # not compatible
query I rowsort label-2636
SELECT - ( ( - 63 ) ) + - SUM ( - 10 ) + + - 18 + COUNT ( * ) - - 87 * + COALESCE ( + + 39, 43 )
----
3449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2637
SELECT 68 AS col1, 96 * - CASE + + CAST( NULL AS SIGNED ) WHEN - 23 THEN 88 + + 92 + 39 * + COUNT( * ) ELSE + - COUNT( * ) * + - 83 END col1, 81 AS col1
----
68
-7968
81

skipif mysql # not compatible
query III rowsort label-2637
SELECT 68 AS col1, 96 * - CASE + + CAST ( NULL AS INTEGER ) WHEN - 23 THEN 88 + + 92 + 39 * + COUNT ( * ) ELSE + - COUNT ( * ) * + - 83 END col1, 81 AS col1
----
68
-7968
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2638
SELECT + COUNT( ALL - 69 ) * - + 64 DIV + + 57 + - + 89 + - - COUNT( 85 ) * MIN( - CAST( 98 AS SIGNED ) ) AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-2638
SELECT + COUNT ( ALL - 69 ) * - + 64 / + + 57 + - + 89 + - - COUNT ( 85 ) * MIN ( - CAST ( 98 AS INTEGER ) ) AS col1
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - 82 + + CASE + 38 WHEN 90 * - 98 THEN + 13 * - 2 ELSE - 98 * 68 + + 73 END + - 72 - - 32 + - 62 * + 72 * + 81 * MIN( - ( + 20 ) ) * - AVG ( DISTINCT + CASE + 18 WHEN + NULLIF ( + 84, + 50 ) THEN NULL WHEN - 73 THEN - 90 END ) + - + COUNT( * ) / ( - ( + - COUNT( ALL 24 ) ) ) * - 82 * - 9 - - + COUNT( * ) + 41 + + 16 * - - 61 - - + ( - 86 ) * COUNT( * ) * 86 / + 99 * - MIN( ALL - 50 ) - COUNT( DISTINCT + 51 ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 82 + + CASE + 38 WHEN 90 * - 98 THEN + 13 * - 2 ELSE - 98 * 68 + + 73 END + - 72 - - 32 + - 62 * + 72 * + 81 * MIN ( - ( + 20 ) ) * - AVG ( DISTINCT + CASE + 18 WHEN + NULLIF ( + 84, + 50 ) THEN NULL WHEN - 73 THEN - 90 END ) + - + COUNT ( * ) / ( - ( + - COUNT ( ALL 24 ) ) ) * - 82 * - 9 - - + COUNT ( * ) + 41 + + 16 * - - 61 - - + ( - 86 ) * COUNT ( * ) * 86 / + 99 * - MIN ( ALL - 50 ) - COUNT ( DISTINCT + 51 ) * 43
----
NULL

query I rowsort
SELECT - COALESCE ( 18, - 6 + - 70 * + - 91, - + 16 ) AS col1
----
-18

query I rowsort
SELECT - 99 * 44 col1
----
-4356

query I rowsort
SELECT DISTINCT - 67 + - 1 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT 29 + + MIN( ALL + 23 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT 29 + + MIN ( ALL + 23 ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT + COUNT( * ) + + + 25 DIV + - 58 - + + 41 + + 54
----
14

skipif mysql # not compatible
query I rowsort label-2644
SELECT + COUNT ( * ) + + + 25 / + - 58 - + + 41 + + 54
----
14

query I rowsort
SELECT ALL + 49 + + 44 + + 53
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ALL 63 + - 85
----
-22

query I rowsort
SELECT ALL 22 + - 97 + 99 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + ( - MIN( + - 50 ) ) + + + 13 + - + 80 + + 57 + 91
----
131

skipif mysql # not compatible
query I rowsort label-2649
SELECT + ( - MIN ( + - 50 ) ) + + + 13 + - + 80 + + 57 + 91
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT 49 AS col2, CAST( - + 36 AS SIGNED ) AS col0
----
49
-36

skipif mysql # not compatible
query II rowsort label-2650
SELECT 49 AS col2, CAST ( - + 36 AS INTEGER ) AS col0
----
49
-36

query II rowsort
SELECT 84 AS col1, - 8 + - + 51 AS col1
----
84
-59

query I rowsort
SELECT ALL 28 - 44 col0
----
-16

query I rowsort
SELECT ALL 86 - - 42 AS col0
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + ( + + 46 ) * + 15
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - 74 * COUNT( * ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-2656
SELECT - 74 * COUNT ( * ) col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT DISTINCT + 23, + ( - + 22 ) * - + MAX( ALL + 20 ) + + + 67 * 9 AS col0
----
23
1043

skipif mysql # not compatible
query II rowsort label-2657
SELECT DISTINCT + 23, + ( - + 22 ) * - + MAX ( ALL + 20 ) + + + 67 * 9 AS col0
----
23
1043

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL 30 DIV + ( - + 45 ) - 27
----
-27

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL 30 / + ( - + 45 ) - 27
----
-27

query I rowsort
SELECT ALL + 65 AS col1
----
65

query I rowsort
SELECT ( - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT 5 * - NULLIF ( + 65, - 16 ) - - + COUNT( ALL 66 ) AS col0
----
-324

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT 5 * - NULLIF ( + 65, - 16 ) - - + COUNT ( ALL 66 ) AS col0
----
-324

query II rowsort
SELECT DISTINCT + 42 AS col0, + 12 + + 36 + - - 24 AS col0
----
42
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL + ( - 35 ) * + COALESCE ( - COUNT( * ), - COUNT( * ), + 81 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + ( - 35 ) * + COALESCE ( - COUNT ( * ), - COUNT ( * ), + 81 ) AS col0
----
35

query I rowsort
SELECT + + 68 - - 61 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT + - NULLIF ( + 35, - CASE - - 67 WHEN + - 44 THEN + COUNT( 50 ) * + - COALESCE ( - 85, + - 23 ) * + - 18 * + + COUNT( * ) END / - 91 ) * - 96 * - 16 * ( + + 23 ) AS col2
----
-1236480

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + - NULLIF ( + 35, - CASE - - 67 WHEN + - 44 THEN + COUNT ( 50 ) * + - COALESCE ( - 85, + - 23 ) * + - 18 * + + COUNT ( * ) END / - 91 ) * - 96 * - 16 * ( + + 23 ) AS col2
----
-1236480

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT + + SUM( DISTINCT - 56 ) + 21 AS col1, - ( + 78 ) AS col1
----
-35
-78

skipif mysql # not compatible
query II rowsort label-2666
SELECT + + SUM ( DISTINCT - 56 ) + 21 AS col1, - ( + 78 ) AS col1
----
-35
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT - + 18 * - - SUM( DISTINCT - + 8 )
----
144

skipif mysql # not compatible
query I rowsort label-2667
SELECT - + 18 * - - SUM ( DISTINCT - + 8 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL + COUNT( * ) * + 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL + COUNT ( * ) * + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + 6 + SUM( + - 87 ) + - - 27 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2669
SELECT + 6 + SUM ( + - 87 ) + - - 27 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT + + 49 * + 25 * - 51 * 7 * MIN( + - 62 ) + COUNT( * ) * + - 38 AS col1, - COUNT( * )
----
27114112
-1

skipif mysql # not compatible
query II rowsort label-2670
SELECT + + 49 * + 25 * - 51 * 7 * MIN ( + - 62 ) + COUNT ( * ) * + - 38 AS col1, - COUNT ( * )
----
27114112
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT - - 9 * - COALESCE ( 33, + COUNT( * ) ) * ( + 51 ) - - 50 + + 6 AS col1, 41 * + - MIN( ALL + 27 ) AS col2
----
-15091
-1107

skipif mysql # not compatible
query II rowsort label-2671
SELECT - - 9 * - COALESCE ( 33, + COUNT ( * ) ) * ( + 51 ) - - 50 + + 6 AS col1, 41 * + - MIN ( ALL + 27 ) AS col2
----
-15091
-1107

query II rowsort
SELECT ALL + 58, 94 AS col1
----
58
94

query I rowsort
SELECT ALL + 48 col2
----
48

query I rowsort
SELECT DISTINCT + 61 * + + 32
----
1952

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - - 92 + 45 + + 37 + + - 49 * 49 * - + 18 * 52 * - 53 * - + COUNT( * ) AS col0
----
119108982

skipif mysql # not compatible
query I rowsort label-2675
SELECT - - 92 + 45 + + 37 + + - 49 * 49 * - + 18 * 52 * - 53 * - + COUNT ( * ) AS col0
----
119108982

query I rowsort
SELECT + - 22 * + 55
----
-1210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT + + 8 * - 90 * CAST( NULL AS SIGNED ) + + 31 + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT + + 8 * - 90 * CAST ( NULL AS INTEGER ) + + 31 + - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT - 81 AS col2, COUNT( - - 28 ) * - 18 + 51 + + - 4 AS col1
----
-81
29

skipif mysql # not compatible
query II rowsort label-2678
SELECT - 81 AS col2, COUNT ( - - 28 ) * - 18 + 51 + + - 4 AS col1
----
-81
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - + 67 + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-2679
SELECT - + 67 + + COUNT ( * )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2680
SELECT - COUNT( - 47 ) * CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ), + COUNT( * ) DIV - - 79 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2680
SELECT - COUNT ( - 47 ) * CAST ( - CAST ( NULL AS INTEGER ) AS REAL ), + COUNT ( * ) / - - 79 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + 8 * + COUNT( * ) * - 63 col2
----
-504

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + 8 * + COUNT ( * ) * - 63 col2
----
-504

query I rowsort
SELECT ALL - 53 + + - 62 AS col2
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT - ( - + SUM( + - ( - - 27 ) ) ) DIV + - 53
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT - ( - + SUM ( + - ( - - 27 ) ) ) / + - 53
----
0

query I rowsort
SELECT ALL + 81 + + 92 AS col2
----
173

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2685
SELECT ALL + 8 * - ( - - 41 ) / + 91 + - - 79 + CAST( NULL AS DECIMAL ) + + CASE - + 55 WHEN + 91 THEN NULL WHEN 55 * + + 10 + + 75 THEN - - ( + - 35 ) * + COALESCE ( - - 16, - 48 ) * + ( - CAST( + + 55 AS SIGNED ) ) END / - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + 8 * - ( - - 41 ) / + 91 + - - 79 + CAST ( NULL AS REAL ) + + CASE - + 55 WHEN + 91 THEN NULL WHEN 55 * + + 10 + + 75 THEN - - ( + - 35 ) * + COALESCE ( - - 16, - 48 ) * + ( - CAST ( + + 55 AS INTEGER ) ) END / - 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL 23 + + + MIN( ALL 12 )
----
35

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL 23 + + + MIN ( ALL 12 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT - 99 DIV + COUNT( ALL + - 60 ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 99 / + COUNT ( ALL + - 60 ) col1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2688
SELECT - 5 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 5 / 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2689
SELECT - 16 * + ( 82 ) * COUNT( * ), + 90 AS col1, - 52 + + + 15 AS col2
----
-1312
90
-37

skipif mysql # not compatible
query III rowsort label-2689
SELECT - 16 * + ( 82 ) * COUNT ( * ), + 90 AS col1, - 52 + + + 15 AS col2
----
-1312
90
-37

query I rowsort
SELECT + 22 + 4 AS col0
----
26

query I rowsort
SELECT + 81 * + CASE ( - + 69 ) WHEN + 45 THEN - 65 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2692
SELECT ALL + COUNT( * ) - - 77 DIV 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + COUNT ( * ) - - 77 / 40 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT - 69 - - CAST( NULL AS SIGNED ) + + + 0 - + 60 * + - 49 * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 69 - - CAST ( NULL AS INTEGER ) + + + 0 - + 60 * + - 49 * 63 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2694
SELECT ALL 80 DIV - 31, COUNT( * ) + CAST( NULL AS SIGNED ) + 14 DIV + 70 col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-2694
SELECT ALL 80 / - 31, COUNT ( * ) + CAST ( NULL AS INTEGER ) + 14 / + 70 col0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT - 86 + + CASE 17 WHEN + + 39 + - - 43 THEN + MAX( - 37 ) + COUNT( * ) WHEN + 22 / 71 THEN NULL END + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT - 86 + + CASE 17 WHEN + + 39 + - - 43 THEN + MAX ( - 37 ) + COUNT ( * ) WHEN + 22 / 71 THEN NULL END + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT - ( - 68 ) - - 27 + - 94 * ( + 99 ) + + - 79 * - + COUNT( * ) col0
----
-9132

skipif mysql # not compatible
query I rowsort label-2696
SELECT - ( - 68 ) - - 27 + - 94 * ( + 99 ) + + - 79 * - + COUNT ( * ) col0
----
-9132

query I rowsort
SELECT 58 + 26 - 66 AS col2
----
18

onlyif mysql # aggregate syntax: 
query III rowsort label-2698
SELECT ALL - 84 * + + 53 * - ( 39 ) col2, - COUNT( * ), + + 21 * + 55 AS col1
----
173628
-1
1155

skipif mysql # not compatible
query III rowsort label-2698
SELECT ALL - 84 * + + 53 * - ( 39 ) col2, - COUNT ( * ), + + 21 * + 55 AS col1
----
173628
-1
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT - SUM( DISTINCT + - ( 34 ) ) * NULLIF ( 41, + 49 + + - 23 ) * - 36 + 34 + CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
-50149

skipif mysql # not compatible
query I rowsort label-2699
SELECT - SUM ( DISTINCT + - ( 34 ) ) * NULLIF ( 41, + 49 + + - 23 ) * - 36 + 34 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
-50149

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL 48 + + CASE COUNT( + 92 ) WHEN 27 THEN - COUNT( * ) - - + 75 WHEN - 40 - - + ( + 55 ) + + 63 THEN NULL END * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL 48 + + CASE COUNT ( + 92 ) WHEN 27 THEN - COUNT ( * ) - - + 75 WHEN - 40 - - + ( + 55 ) + + 63 THEN NULL END * + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL 92 * + CASE + 41 WHEN - 89 THEN 52 - + + 27 + - - 48 * - 88 + + 35 * + COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + 26 THEN - + 49 END + + 92 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL 92 * + CASE + 41 WHEN - 89 THEN 52 - + + 27 + - - 48 * - 88 + + 35 * + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + 26 THEN - + 49 END + + 92 * - 65 AS col2
----
NULL

query I rowsort
SELECT + 31 * - 27 * 85 * + - 89
----
6331905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT ALL - 1 + + CAST( AVG ( DISTINCT + 38 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL - 1 + + CAST ( AVG ( DISTINCT + 38 ) AS INTEGER )
----
37

query I rowsort
SELECT ALL - 32 + - - 48 * 36
----
1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT - + ( + - 48 ) * - CAST( NULL AS SIGNED ) + + - 55 * + COUNT( * ) / 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - + ( + - 48 ) * - CAST ( NULL AS INTEGER ) + + - 55 * + COUNT ( * ) / 17 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2706
SELECT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT + 97 DIV + + 47 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2707
SELECT + 97 / + + 47 AS col2
----
2

query II rowsort
SELECT ALL 37 + - 32 AS col1, - 87 + 44 AS col2
----
5
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT CASE 39 WHEN 37 * - 68 + 22 + + + COUNT( * ) + 65 THEN - 18 ELSE NULL END * + 57 * - 65 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT CASE 39 WHEN 37 * - 68 + 22 + + + COUNT ( * ) + 65 THEN - 18 ELSE NULL END * + 57 * - 65 * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT + COUNT( * ) * - 11 * 69 + - NULLIF ( + 77, + 70 ) AS col0
----
-836

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + COUNT ( * ) * - 11 * 69 + - NULLIF ( + 77, + 70 ) AS col0
----
-836

query I rowsort
SELECT + - 45 col1
----
-45

query I rowsort
SELECT 32 - - + 82 AS col2
----
114

query I rowsort
SELECT 75 * - 24 + + - 35 - 94 + - 84 * - - 19 AS col0
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL + - 89 * - 28 * - - COUNT( ALL - COALESCE ( - 10, + 56 ) )
----
2492

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + - 89 * - 28 * - - COUNT ( ALL - COALESCE ( - 10, + 56 ) )
----
2492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ALL CAST( - 23 AS SIGNED ) + + 61
----
38

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL CAST ( - 23 AS INTEGER ) + + 61
----
38

query I rowsort
SELECT 93 col2
----
93

query I rowsort
SELECT ALL - 49 + + 18 - - - ( + 65 ) * + 23
----
-1526

query I rowsort
SELECT ALL 17 * + 94 AS col2
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT 10 * - + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2719
SELECT 10 * - + COUNT ( * ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT 84 + + 37 * - COALESCE ( - COUNT( * ), + 96 + 79 DIV + 30 * + COUNT( * ) )
----
121

skipif mysql # not compatible
query I rowsort label-2720
SELECT 84 + + 37 * - COALESCE ( - COUNT ( * ), + 96 + 79 / + 30 * + COUNT ( * ) )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT - 59 * COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - 59 * COUNT ( * ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT 94 + ( - MAX( 62 ) )
----
32

skipif mysql # not compatible
query I rowsort label-2722
SELECT 94 + ( - MAX ( 62 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL 51 - 72 * - - MAX( 69 )
----
-4917

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL 51 - 72 * - - MAX ( 69 )
----
-4917

query I rowsort
SELECT 0 * - 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT - 60 * + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - 60 * + COUNT ( * ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT 19 DIV 88 DIV + ( - - ( + 21 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT 19 / 88 / + ( - - ( + 21 ) )
----
0

query I rowsort
SELECT 90 + + 41 AS col1
----
131

query I rowsort
SELECT 26 * NULLIF ( - 24, 56 )
----
-624

query I rowsort
SELECT DISTINCT - 42 * 62 * - 79 * + + 9
----
1851444

query I rowsort
SELECT - + 75 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT - 49 DIV NULLIF ( + 57, 80 )
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT - 49 / NULLIF ( + 57, 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL - 96 + 4 + 72 + - + COALESCE ( - 82, + - COUNT( * ) * 39 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - 96 + 4 + 72 + - + COALESCE ( - 82, + - COUNT ( * ) * 39 ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT 91 * - + SUM( - 95 ) + - CASE - + 5 WHEN - - 40 + + + 92 + 50 + + NULLIF ( + 90, - 0 ) * 79 THEN - 98 + - 93 WHEN + + ( + 48 ) * + 92 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT 91 * - + SUM ( - 95 ) + - CASE - + 5 WHEN - - 40 + + + 92 + 50 + + NULLIF ( + 90, - 0 ) * 79 THEN - 98 + - 93 WHEN + + ( + 48 ) * + 92 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT - - 94 DIV - COUNT( - - 60 ) + + 95 + + 8 - - 7 * 87 + - 86 AS col1
----
532

skipif mysql # not compatible
query I rowsort label-2734
SELECT - - 94 / - COUNT ( - - 60 ) + + 95 + + 8 - - 7 * 87 + - 86 AS col1
----
532

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT DISTINCT + 94 + - COUNT( * ) * - - 25 * - MAX( - + 76 ) * - 42 + - + 23 * - 90, + 77 * + - 39 + - - 85 AS col1
----
81964
-2918

skipif mysql # not compatible
query II rowsort label-2735
SELECT DISTINCT + 94 + - COUNT ( * ) * - - 25 * - MAX ( - + 76 ) * - 42 + - + 23 * - 90, + 77 * + - 39 + - - 85 AS col1
----
81964
-2918

query I rowsort
SELECT ALL + 72 * 96 AS col1
----
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - + ( MAX( + + 52 ) ) + - 19 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - + ( MAX ( + + 52 ) ) + - 19 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + 3 + + 55 + 71 * + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + 3 + + 55 + 71 * + - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT + 37 AS col1, + 22 - COUNT( * ) AS col2
----
37
21

skipif mysql # not compatible
query II rowsort label-2739
SELECT + 37 AS col1, + 22 - COUNT ( * ) AS col2
----
37
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT + COUNT( * ) * + 15 * + - 30 + + 85 + - MIN( + 68 ) + - 44 AS col2
----
-477

skipif mysql # not compatible
query I rowsort label-2740
SELECT + COUNT ( * ) * + 15 * + - 30 + + 85 + - MIN ( + 68 ) + - 44 AS col2
----
-477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2741
SELECT ALL CAST( NULL AS SIGNED ) * CAST( + - CASE - 31 WHEN + 56 THEN + COUNT( * ) END AS SIGNED ) AS col0, 32 AS col0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-2741
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + - CASE - 31 WHEN + 56 THEN + COUNT ( * ) END AS INTEGER ) AS col0, 32 AS col0
----
NULL
32

query I rowsort
SELECT - 65 + + 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT DISTINCT + 78 * COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT + 78 * COUNT ( * ) AS col0
----
78

query I rowsort
SELECT ALL + 20 + - 29 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT + 29 * - - ( - NULLIF ( + 37, + + 62 + - CASE + 72 WHEN ( + 3 ) THEN NULL WHEN 88 THEN + COALESCE ( + 70, + 67 + - 93, 65 ) END ) ) + + CAST( NULL AS SIGNED ) + - + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT + 29 * - - ( - NULLIF ( + 37, + + 62 + - CASE + 72 WHEN ( + 3 ) THEN NULL WHEN 88 THEN + COALESCE ( + 70, + 67 + - 93, 65 ) END ) ) + + CAST ( NULL AS INTEGER ) + - + 24 AS col2
----
NULL

query I rowsort
SELECT ALL - + 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT 40 * 0 * + 13 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2747
SELECT 40 * 0 * + 13 + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - + 6 col2
----
-6

query I rowsort
SELECT DISTINCT - - 8 * + 40
----
320

query II rowsort
SELECT ALL - 14, 46 * - 92 AS col0
----
-14
-4232

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT 76 - + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT 76 - + + COUNT ( * )
----
75

query I rowsort
SELECT 56 * 63 AS col1
----
3528

query I rowsort
SELECT ALL 11 - 25 col1
----
-14

query II rowsort
SELECT 57 AS col2, + 53 * + 73 AS col0
----
57
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT COALESCE ( + 20, 63 ) + + + COUNT( * ) col0
----
21

skipif mysql # not compatible
query I rowsort label-2755
SELECT COALESCE ( + 20, 63 ) + + + COUNT ( * ) col0
----
21

query I rowsort
SELECT ALL 5 * 75 AS col1
----
375

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT - COUNT( * ) AS col1, 14 * + NULLIF ( - 84, - 42 * - - 97 + ( 68 ) )
----
-1
-1176

skipif mysql # not compatible
query II rowsort label-2757
SELECT - COUNT ( * ) AS col1, 14 * + NULLIF ( - 84, - 42 * - - 97 + ( 68 ) )
----
-1
-1176

query II rowsort
SELECT 91 + + 83 * + 65 * 25, + 98 AS col1
----
134966
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - COUNT( + + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-2759
SELECT - COUNT ( + + 95 )
----
-1

query I rowsort
SELECT DISTINCT 10 * - 26
----
-260

query II rowsort
SELECT ALL 62, 31 AS col2
----
62
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT + 39 * + COUNT( - 60 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2762
SELECT + 39 * + COUNT ( - 60 ) AS col2
----
39

query I rowsort
SELECT DISTINCT 62 * + 33
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT - COUNT( + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2764
SELECT - COUNT ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT ALL 25 col1, 52 + + COUNT( * )
----
25
53

skipif mysql # not compatible
query II rowsort label-2765
SELECT ALL 25 col1, 52 + + COUNT ( * )
----
25
53

query II rowsort
SELECT 89 AS col1, 78
----
89
78

query I rowsort
SELECT ALL + - 65 + 18 + + 75 AS col0
----
28

query II rowsort
SELECT DISTINCT 42 + - 17 AS col1, - 51
----
25
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2769
SELECT ALL + 33, COUNT( * ) AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-2769
SELECT ALL + 33, COUNT ( * ) AS col2
----
33
1

query I rowsort
SELECT - - 45 * - ( + - 5 ) AS col0
----
225

query I rowsort
SELECT DISTINCT - - 52 + - + 57
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL CASE - 45 WHEN 92 - + 76 THEN - 23 WHEN + SUM( - 78 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL CASE - 45 WHEN 92 - + 76 THEN - 23 WHEN + SUM ( - 78 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 69 + + - 45 + + 90 * 34 + + 74 AS col2
----
3158

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT - MIN( - + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - MIN ( - + 79 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2775
SELECT + 69 DIV + - 88 + ( 30 ) - COUNT( * ) * + 14 + - 33
----
-17

skipif mysql # not compatible
query I rowsort label-2775
SELECT + 69 / + - 88 + ( 30 ) - COUNT ( * ) * + 14 + - 33
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT + 93 * ( - + 81 ) + - 77 + - - 52 DIV 31
----
-7609

skipif mysql # not compatible
query I rowsort label-2776
SELECT + 93 * ( - + 81 ) + - 77 + - - 52 / 31
----
-7609

query I rowsort
SELECT ( - 90 ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-2778
SELECT + + 82 AS col0, + 74 + - 29 DIV - 47 col2
----
82
74

skipif mysql # not compatible
query II rowsort label-2778
SELECT + + 82 AS col0, + 74 + - 29 / - 47 col2
----
82
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT ALL + COUNT( * ), CASE - + 53 WHEN - 14 * - 96 * - 88 + 94 - - 61 / + ( - - 85 ) THEN - 9 ELSE NULL END * - 28 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2779
SELECT ALL + COUNT ( * ), CASE - + 53 WHEN - 14 * - 96 * - 88 + 94 - - 61 / + ( - - 85 ) THEN - 9 ELSE NULL END * - 28 AS col2
----
1
NULL

query I rowsort
SELECT - - 43 * - + 2 + - + ( - + 89 ) AS col0
----
3

query II rowsort
SELECT ALL + + 76 AS col2, 70 AS col1
----
76
70

query I rowsort
SELECT ALL + + 59 AS col2
----
59

query II rowsort
SELECT ALL + 5 AS col1, + 10 * - + 99
----
5
-990

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2784
SELECT - CAST( NULL AS DECIMAL ) * 25 AS col1, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-2784
SELECT - CAST ( NULL AS REAL ) * 25 AS col1, 48
----
NULL
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT - ( + 38 ) * + 63 DIV + + ( - COALESCE ( COUNT( * ), - - AVG ( ALL + 28 ) ) ) AS col0
----
2394

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - ( + 38 ) * + 63 / + + ( - COALESCE ( COUNT ( * ), - - AVG ( ALL + 28 ) ) ) AS col0
----
2394

onlyif mysql # DIV for integer division: 
query II rowsort label-2786
SELECT DISTINCT + 66, 33 DIV 16 * + 13 DIV + 37 AS col0
----
66
0

skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT + 66, 33 / 16 * + 13 / + 37 AS col0
----
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT 58 * COUNT( * ) + + COALESCE ( - + 51, - COUNT( * ) ) + - 40 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2787
SELECT 58 * COUNT ( * ) + + COALESCE ( - + 51, - COUNT ( * ) ) + - 40 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT CASE - - 69 WHEN - + 34 + - 82 THEN + ( - ( + 44 ) ) * 38 + 52 / + 44 * - + 12 WHEN COUNT( * ) THEN NULL ELSE + + COALESCE ( + 1, - 28 ) * - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2788
SELECT CASE - - 69 WHEN - + 34 + - 82 THEN + ( - ( + 44 ) ) * 38 + 52 / + 44 * - + 12 WHEN COUNT ( * ) THEN NULL ELSE + + COALESCE ( + 1, - 28 ) * - COUNT ( * ) END
----
-1

query I rowsort
SELECT - 17 * 18
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT COUNT( - + 6 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2790
SELECT COUNT ( - + 6 ) col2
----
1

query I rowsort
SELECT ALL - 86 * 99
----
-8514

query I rowsort
SELECT + 46 + 39 * - 79 + + 19
----
-3016

query I rowsort
SELECT ALL ( 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2794
SELECT - CASE - CAST( + 95 AS DECIMAL ) WHEN + + 4 + + + COALESCE ( + 82, + - 50 ) + - + 93 + - - COUNT( * ) * - NULLIF ( - - 62, + - 82 ) / - - 18 + + 54 - AVG ( ALL - 55 ) * + 33 THEN - - 95 * + - 69 + + ( NULLIF ( 67, + 83 + - 41 ) ) * + + 25 + ( - COUNT( * ) ) - 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT - CASE - CAST ( + 95 AS REAL ) WHEN + + 4 + + + COALESCE ( + 82, + - 50 ) + - + 93 + - - COUNT ( * ) * - NULLIF ( - - 62, + - 82 ) / - - 18 + + 54 - AVG ( ALL - 55 ) * + 33 THEN - - 95 * + - 69 + + ( NULLIF ( 67, + 83 + - 41 ) ) * + + 25 + ( - COUNT ( * ) ) - 31 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2795
SELECT DISTINCT CASE + 64 WHEN 19 THEN - NULLIF ( - CAST( - - 49 AS DECIMAL ), + 59 + 88 + + - CAST( NULL AS SIGNED ) * - COUNT( * ) ) END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT CASE + 64 WHEN 19 THEN - NULLIF ( - CAST ( - - 49 AS REAL ), + 59 + 88 + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) END + + 4
----
NULL

query I rowsort
SELECT - 10 + + 65
----
55

query I rowsort
SELECT - ( 52 ) AS col0
----
-52

query I rowsort
SELECT + 92 - 45 - 40 * - 80 AS col2
----
3247

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT + 9 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT + 9 / + 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + 73 + - + 41 ) + + CASE + 68 WHEN COUNT( * ) * - 18 - + ( + COUNT( * ) ) + - 1 + + + 99 * - - 26 THEN NULL ELSE - 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + 73 + - + 41 ) + + CASE + 68 WHEN COUNT ( * ) * - 18 - + ( + COUNT ( * ) ) + - 1 + + + 99 * - - 26 THEN NULL ELSE - 9 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - NULLIF ( + COUNT( * ), + 10 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2801
SELECT - NULLIF ( + COUNT ( * ), + 10 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT - NULLIF ( - + 29, COUNT( + 91 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2802
SELECT - NULLIF ( - + 29, COUNT ( + 91 ) ) AS col1
----
29

query I rowsort
SELECT + 56 + + - 56 * 77 + 40
----
-4216

query I rowsort
SELECT + - 16 + + + 99 * 79 + 21 * - 64 + - 55 + + 91 * + 38
----
9864

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT ALL COUNT( * ) * 71 AS col2, COUNT( * ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL COUNT ( * ) * 71 AS col2, COUNT ( * ) AS col1
----
71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT NULLIF ( + 45, - COUNT( * ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2806
SELECT NULLIF ( + 45, - COUNT ( * ) ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL CASE COUNT( * ) WHEN - - 96 + + 38 - - 8 + + + 48 * + 11 THEN 70 * - 8 + - + 59 * + 50 END + - COUNT( 21 ) - + COUNT( * ) - + - 96 * 45 + + + ( - + 16 ) / + + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL CASE COUNT ( * ) WHEN - - 96 + + 38 - - 8 + + + 48 * + 11 THEN 70 * - 8 + - + 59 * + 50 END + - COUNT ( 21 ) - + COUNT ( * ) - + - 96 * 45 + + + ( - + 16 ) / + + 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2808
SELECT ALL CAST( - 53 AS SIGNED ) + + 54 DIV - - 49
----
-52

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL CAST ( - 53 AS INTEGER ) + + 54 / - - 49
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + COUNT( * ) * + - 0 * + 31
----
0

skipif mysql # not compatible
query I rowsort label-2809
SELECT + COUNT ( * ) * + - 0 * + 31
----
0

query I rowsort
SELECT - + 75 + - 80 + 40 * 93 AS col2
----
3565

query I rowsort
SELECT - - 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + CASE 68 WHEN ( - + 94 ) THEN NULL WHEN - 47 THEN NULL ELSE COUNT( * ) - + + 89 * - 28 END + - 47 AS col0
----
2446

skipif mysql # not compatible
query I rowsort label-2812
SELECT + CASE 68 WHEN ( - + 94 ) THEN NULL WHEN - 47 THEN NULL ELSE COUNT ( * ) - + + 89 * - 28 END + - 47 AS col0
----
2446

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + + 89 * - + 3 * MAX( DISTINCT - 79 ) * + + 6 col1
----
126558

skipif mysql # not compatible
query I rowsort label-2813
SELECT + + 89 * - + 3 * MAX ( DISTINCT - 79 ) * + + 6 col1
----
126558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2814
SELECT + ( + - 73 ) / - CAST( 23 AS DECIMAL ) + + CAST( NULL AS SIGNED ) * + + 87 * COUNT( * ) + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT + ( + - 73 ) / - CAST ( 23 AS REAL ) + + CAST ( NULL AS INTEGER ) * + + 87 * COUNT ( * ) + - 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT + 62 * COUNT( * ) DIV + 66 + + + 73
----
73

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT + 62 * COUNT ( * ) / + 66 + + + 73
----
73

query I rowsort
SELECT ALL + - 70 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT - 13 + - COUNT( * ) + + 48 col1
----
34

skipif mysql # not compatible
query I rowsort label-2817
SELECT - 13 + - COUNT ( * ) + + 48 col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + - 62 * - - COUNT( ALL + ( + ( - 22 ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-2818
SELECT + - 62 * - - COUNT ( ALL + ( + ( - 22 ) ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + + SUM( DISTINCT + + 1 ) * + MIN( DISTINCT - 79 ) * + NULLIF ( - - 21, MIN( + 57 ) + - 81 / + - 52 ) + + - 36 + + MAX( + - 86 )
----
-1781

skipif mysql # not compatible
query I rowsort label-2819
SELECT + + SUM ( DISTINCT + + 1 ) * + MIN ( DISTINCT - 79 ) * + NULLIF ( - - 21, MIN ( + 57 ) + - 81 / + - 52 ) + + - 36 + + MAX ( + - 86 )
----
-1781

query I rowsort
SELECT ALL + 39 col0
----
39

query I rowsort
SELECT - 94 + 21 AS col0
----
-73

query I rowsort
SELECT - 99 * + 74 AS col0
----
-7326

query II rowsort
SELECT - 58 * + - NULLIF ( + - 49, + 39 ), 27 AS col2
----
-2842
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + ( - 97 ) * - 1 - + - 47 + - + 56 + + + COUNT( * ) + + + 71
----
160

skipif mysql # not compatible
query I rowsort label-2824
SELECT + ( - 97 ) * - 1 - + - 47 + - + 56 + + + COUNT ( * ) + + + 71
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2825
SELECT ALL + NULLIF ( + 79, - CAST( NULL AS SIGNED ) ) DIV + + NULLIF ( - COUNT( * ), + 88 )
----
-79

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + NULLIF ( + 79, - CAST ( NULL AS INTEGER ) ) / + + NULLIF ( - COUNT ( * ), + 88 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT + COALESCE ( - 74, - 98 * COUNT( * ) * - 51 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + COALESCE ( - 74, - 98 * COUNT ( * ) * - 51 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT - 63 * COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-2827
SELECT - 63 * COUNT ( * )
----
-63

query I rowsort
SELECT 3 + 18 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL - 28 + - COUNT( ALL - 39 ) + + ( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - 28 + - COUNT ( ALL - 39 ) + + ( 29 )
----
0

query I rowsort
SELECT 19 + - 52 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT 90 * - COALESCE ( + - COUNT( * ), - 96 / COALESCE ( + + CASE + 62 WHEN - 69 * - - 67 THEN - 43 + - COUNT( * ) + - 89 - + 2 ELSE NULL END, - 8 ) + CASE - 77 WHEN - 80 THEN + ( - 33 ) + - COUNT( ALL 21 ) ELSE + 54 + - - MAX( 12 ) + 36 END - - 4 - MAX( ALL - 17 ) + 16 * + AVG ( - + 69 ), - 6 * - 94 / - 39 + + ( + - ( - NULLIF ( + 89, + NULLIF ( + 45, + - 55 ) ) ) ) - - 10 ) * + CASE + COUNT( * ) WHEN + 1 THEN NULL ELSE + - 90 + + SUM( + 95 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT 90 * - COALESCE ( + - COUNT ( * ), - 96 / COALESCE ( + + CASE + 62 WHEN - 69 * - - 67 THEN - 43 + - COUNT ( * ) + - 89 - + 2 ELSE NULL END, - 8 ) + CASE - 77 WHEN - 80 THEN + ( - 33 ) + - COUNT ( ALL 21 ) ELSE + 54 + - - MAX ( 12 ) + 36 END - - 4 - MAX ( ALL - 17 ) + 16 * + AVG ( - + 69 ), - 6 * - 94 / - 39 + + ( + - ( - NULLIF ( + 89, + NULLIF ( + 45, + - 55 ) ) ) ) - - 10 ) * + CASE + COUNT ( * ) WHEN + 1 THEN NULL ELSE + - 90 + + SUM ( + 95 ) END
----
NULL

query II rowsort
SELECT DISTINCT - 83 + - 59 + - 82, 7 AS col2
----
-224
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2833
SELECT ALL + COALESCE ( - 62, - - 95 DIV + MAX( + 55 ) + - CAST( NULL AS SIGNED ) * + COUNT( * ) * + 24 * - 57, + 35 ) + 13 + + 55 * 83 + - + 49 AS col0, + 80 - + 72 AS col2
----
4467
8

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL + COALESCE ( - 62, - - 95 / + MAX ( + 55 ) + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 24 * - 57, + 35 ) + 13 + + 55 * 83 + - + 49 AS col0, + 80 - + 72 AS col2
----
4467
8

onlyif mysql # DIV for integer division: 
query II rowsort label-2834
SELECT DISTINCT ( + 82 ) + + 70 DIV - 95, 88 * + 33 * 18 AS col2
----
82
52272

skipif mysql # not compatible
query II rowsort label-2834
SELECT DISTINCT ( + 82 ) + + 70 / - 95, 88 * + 33 * 18 AS col2
----
82
52272

query I rowsort
SELECT DISTINCT + 38 * - 93 AS col1
----
-3534

query I rowsort
SELECT ALL + 29 + - ( - 18 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT - 17 + COUNT( * ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - 17 + COUNT ( * ) col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT 96 * + + COALESCE ( + 97, + 81 + + - 90 + 51 ) * ( + - COUNT( * ) ) AS col1, + 21
----
-9312
21

skipif mysql # not compatible
query II rowsort label-2838
SELECT 96 * + + COALESCE ( + 97, + 81 + + - 90 + 51 ) * ( + - COUNT ( * ) ) AS col1, + 21
----
-9312
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - COALESCE ( 6, + 58 * + NULLIF ( - 58, + - 38 ) + + + COUNT( - 60 ) * - + COUNT( * ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2839
SELECT - COALESCE ( 6, + 58 * + NULLIF ( - 58, + - 38 ) + + + COUNT ( - 60 ) * - + COUNT ( * ) )
----
-6

query I rowsort
SELECT 27 + + 41 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT - + NULLIF ( - 0, - 9 + + CAST( + COUNT( * ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT - + NULLIF ( - 0, - 9 + + CAST ( + COUNT ( * ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - ( + CASE + ( - 28 ) WHEN + + CASE 0 WHEN + - COUNT( * ) THEN 70 / 24 * - 79 END + - 70 + 28 THEN + 44 + 13 END ) + - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT - ( + CASE + ( - 28 ) WHEN + + CASE 0 WHEN + - COUNT ( * ) THEN 70 / 24 * - 79 END + - 70 + 28 THEN + 44 + 13 END ) + - 9 AS col1
----
NULL

query II rowsort
SELECT ALL 99, 50 AS col2
----
99
50

query I rowsort
SELECT 75 * - COALESCE ( - 97, + 47 + + 68 * - 18, - 12 )
----
7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2845
SELECT - 31 * 2 * + CASE + COUNT( * ) WHEN + 44 * - COALESCE ( + 16, + 8 ) THEN + - 50 * 94 * - ( - + 78 ) * - CASE 80 WHEN 41 * - + COUNT( + + 54 ) + + 88 * + 16 * + - 77 + 99 THEN - COUNT( * ) / - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 99 + + - 97 + - SUM( + 34 ) ELSE NULL END + - 86 + - 14 ELSE NULL END / - - CAST( NULL AS DECIMAL ), - 89 AS col2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-2845
SELECT - 31 * 2 * + CASE + COUNT ( * ) WHEN + 44 * - COALESCE ( + 16, + 8 ) THEN + - 50 * 94 * - ( - + 78 ) * - CASE 80 WHEN 41 * - + COUNT ( + + 54 ) + + 88 * + 16 * + - 77 + 99 THEN - COUNT ( * ) / - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 99 + + - 97 + - SUM ( + 34 ) ELSE NULL END + - 86 + - 14 ELSE NULL END / - - CAST ( NULL AS REAL ), - 89 AS col2
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT MAX( - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT MAX ( - - 4 )
----
4

query I rowsort
SELECT ALL 14 * - 10
----
-140

query I rowsort
SELECT - + 52 AS col0
----
-52

query I rowsort
SELECT ALL 58 - + COALESCE ( + 47, - 16 ) col1
----
11

query I rowsort
SELECT + ( 2 ) * 62
----
124

query II rowsort
SELECT ALL 84 AS col0, 49 * - + 98 AS col0
----
84
-4802

query I rowsort
SELECT - NULLIF ( + - 98, + - 52 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT 75 + - MAX( ALL 46 )
----
29

skipif mysql # not compatible
query I rowsort label-2853
SELECT 75 + - MAX ( ALL 46 )
----
29

query I rowsort
SELECT ALL - ( + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - COUNT( * ) * + 91 * - 74 AS col0
----
6734

skipif mysql # not compatible
query I rowsort label-2855
SELECT - COUNT ( * ) * + 91 * - 74 AS col0
----
6734

query I rowsort
SELECT ALL - - 17
----
17

query II rowsort
SELECT + - 55 AS col2, - 56 AS col2
----
-55
-56

query I rowsort
SELECT ALL - 55 col1
----
-55

query I rowsort
SELECT ALL + 32 * - 52 AS col2
----
-1664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT ALL 52 + - 81 * CAST( 57 AS SIGNED ) AS col0
----
-4565

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL 52 + - 81 * CAST ( 57 AS INTEGER ) AS col0
----
-4565

query I rowsort
SELECT DISTINCT + NULLIF ( - - 4, + 1 ) + - - 7 * - 96 - - 40 AS col1
----
-628

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL - 59 + + COUNT( * ) * + 89
----
30

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL - 59 + + COUNT ( * ) * + 89
----
30

query II rowsort
SELECT 84 + + 12 AS col0, 90 col0
----
96
90

query I rowsort
SELECT 19 * + NULLIF ( 85, - - 42 ) AS col2
----
1615

query I rowsort
SELECT ALL - 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + MIN( DISTINCT - COALESCE ( - 60, - - CASE - 79 WHEN - + 87 THEN + + 74 ELSE - 48 END + 44, 80 ) ) * - 2 + - + 13 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-2866
SELECT + MIN ( DISTINCT - COALESCE ( - 60, - - CASE - 79 WHEN - + 87 THEN + + 74 ELSE - 48 END + 44, 80 ) ) * - 2 + - + 13 AS col0
----
-133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2867
SELECT 38 DIV - - 76 * COALESCE ( CAST( NULL AS SIGNED ), + 40 * 60, 70 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT 38 / - - 76 * COALESCE ( CAST ( NULL AS INTEGER ), + 40 * 60, 70 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL - CASE - 73 WHEN 16 THEN NULL WHEN + 12 THEN 37 + - CAST( NULL AS SIGNED ) ELSE NULL END + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - CASE - 73 WHEN 16 THEN NULL WHEN + 12 THEN 37 + - CAST ( NULL AS INTEGER ) ELSE NULL END + - 33 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT DISTINCT 4 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT 4 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT 35 * - + 84 * COUNT( * )
----
-2940

skipif mysql # not compatible
query I rowsort label-2870
SELECT 35 * - + 84 * COUNT ( * )
----
-2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT - 55 * + 35 + + 40 / + - CAST( NULL AS SIGNED ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT - 55 * + 35 + + 40 / + - CAST ( NULL AS INTEGER ) * + 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL + 97 + + 19 DIV - 27
----
97

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + 97 + + 19 / - 27
----
97

query I rowsort
SELECT 11 - - 32 + + - 90 - + 30 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT - COUNT( * ) * 39
----
-39

skipif mysql # not compatible
query I rowsort label-2874
SELECT - COUNT ( * ) * 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT - COUNT( * ) + - 40 + - 77 col2
----
-118

skipif mysql # not compatible
query I rowsort label-2875
SELECT - COUNT ( * ) + - 40 + - 77 col2
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL - - COUNT( * ) - + - COUNT( * ) DIV MAX( - 77 ) + 12 - - - 69 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - - COUNT ( * ) - + - COUNT ( * ) / MAX ( - 77 ) + 12 - - - 69 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT + 84 * ( + 57 ) * + COUNT( - + 55 )
----
4788

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + 84 * ( + 57 ) * + COUNT ( - + 55 )
----
4788

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT 90 + - MIN( + ( - 38 ) ) * 88 AS col2, 39 * 42
----
3434
1638

skipif mysql # not compatible
query II rowsort label-2878
SELECT 90 + - MIN ( + ( - 38 ) ) * 88 AS col2, 39 * 42
----
3434
1638

query I rowsort
SELECT ALL - + 74 * - + 87 AS col0
----
6438

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT ALL + + COUNT( * ) - - + 3 AS col0, 47 + - + 87
----
4
-40

skipif mysql # not compatible
query II rowsort label-2880
SELECT ALL + + COUNT ( * ) - - + 3 AS col0, 47 + - + 87
----
4
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT DISTINCT - NULLIF ( - 65, + 66 * 32 - + 80 * ( 74 ) + + 78 + + 12 * + - 12 * + ( COUNT( * ) ) / + 78 * + CAST( NULL AS SIGNED ) * - + 71 + + 34 / 60 + + 81 ) * + 64 AS col1
----
4160

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - NULLIF ( - 65, + 66 * 32 - + 80 * ( 74 ) + + 78 + + 12 * + - 12 * + ( COUNT ( * ) ) / + 78 * + CAST ( NULL AS INTEGER ) * - + 71 + + 34 / 60 + + 81 ) * + 64 AS col1
----
4160

query I rowsort
SELECT DISTINCT - 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT 0 + MIN( ALL + - 37 ) * - - 42
----
-1554

skipif mysql # not compatible
query I rowsort label-2883
SELECT 0 + MIN ( ALL + - 37 ) * - - 42
----
-1554

query I rowsort
SELECT - 48 + 31 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT - CAST( COUNT( * ) AS SIGNED ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - 32 * COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2886
SELECT - 32 * COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - 18 * - SUM( + 68 ) + - + 79 AS col1
----
1145

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - 18 * - SUM ( + 68 ) + - + 79 AS col1
----
1145

query I rowsort
SELECT ALL 41 * - 4
----
-164

query I rowsort
SELECT 94 + - ( + 44 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL 90 * + 68 + - COUNT( * ) * + 30 - COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL 90 * + 68 + - COUNT ( * ) * + 30 - COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 97 * - 26 + - NULLIF ( + 7, + 85 ), - 96 AS col1
----
2515
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT + 40 - NULLIF ( - 12, - + 31 * 50 * - COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 40 - NULLIF ( - 12, - + 31 * 50 * - COUNT ( * ) )
----
52

query II rowsort
SELECT 28 * 81 + - 5, 46 AS col1
----
2263
46

query I rowsort
SELECT CASE - - 84 WHEN - - 57 * + ( 6 ) - + 18 * - ( - + 49 ) THEN - 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT + 69 + - 27 + + COUNT( * ) col1, 2
----
43
2

skipif mysql # not compatible
query II rowsort label-2895
SELECT + 69 + - 27 + + COUNT ( * ) col1, 2
----
43
2

query I rowsort
SELECT - 64 * - 80 + - 98
----
5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2897
SELECT COUNT( * ) AS col2, + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2897
SELECT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT DISTINCT + 80 col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT - 26 * + + COUNT( * ) DIV + 53 * + - COUNT( * ) + + 12
----
12

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - 26 * + + COUNT ( * ) / + 53 * + - COUNT ( * ) + + 12
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2900
SELECT ALL + 43 * CAST( NULL AS SIGNED ) + - - 9 AS col0, - 59 AS col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-2900
SELECT ALL + 43 * CAST ( NULL AS INTEGER ) + - - 9 AS col0, - 59 AS col1
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL + MAX( - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL + MAX ( - 59 ) AS col0
----
-59

query I rowsort
SELECT + 33 + - 85 AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT ALL - ( 17 ) * - - 68 * - + CAST( - 79 AS SIGNED ) - - 60
----
-91264

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - ( 17 ) * - - 68 * - + CAST ( - 79 AS INTEGER ) - - 60
----
-91264

query I rowsort
SELECT + CASE - + ( - ( - - 86 ) ) WHEN 84 THEN - COALESCE ( 42, + 85 + + + 3 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 70 AS col0
----
70

query II rowsort
SELECT ALL 7 * - COALESCE ( + 26, + - 35 ) - - 33, - 95 * - 80 AS col2
----
-149
7600

query I rowsort
SELECT + 27 * 9 * 2 * - 17 AS col2
----
-8262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT ALL 32 DIV - NULLIF ( - 20, - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL 32 / - NULLIF ( - 20, - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - COUNT( * ) + 94 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2909
SELECT - COUNT ( * ) + 94 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT MAX( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-2910
SELECT MAX ( + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL SUM( 10 ) - + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL SUM ( 10 ) - + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + 91 * CASE 70 WHEN + 81 + SUM( ALL + 39 ) THEN 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 91 * CASE 70 WHEN + 81 + SUM ( ALL + 39 ) THEN 83 END
----
NULL

query I rowsort
SELECT - 97 * + 86
----
-8342

query I rowsort
SELECT - ( + ( 68 ) ) + 76 * 68
----
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT CAST( - 53 AS SIGNED ) * 71 AS col2
----
-3763

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT CAST ( - 53 AS INTEGER ) * 71 AS col2
----
-3763

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL COUNT( * ) * + 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL COUNT ( * ) * + 13 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT DISTINCT - 21 DIV SUM( - 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT - 21 / SUM ( - 46 ) AS col1
----
0

query I rowsort
SELECT ALL + 3 * 10
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT ALL + 31 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + 31 / 49
----
0

query I rowsort
SELECT - ( 25 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2921
SELECT - COALESCE ( 0, + 35 DIV - NULLIF ( + 40 * + 80, 81 ) ) + COALESCE ( + CAST( NULL AS SIGNED ), 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2921
SELECT - COALESCE ( 0, + 35 / - NULLIF ( + 40 * + 80, 81 ) ) + COALESCE ( + CAST ( NULL AS INTEGER ), 42 ) AS col1
----
42

query I rowsort
SELECT + 1 * NULLIF ( 19, 49 / - 97 )
----
19

query I rowsort
SELECT - 7 + 0 * 12
----
-7

query I rowsort
SELECT ALL NULLIF ( - 20, COALESCE ( 79, - 42 ) )
----
-20

query I rowsort
SELECT 6 col2
----
6

query I rowsort
SELECT - 83 + - 67 AS col0
----
-150

query I rowsort
SELECT 12 col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL - COUNT( * ) + + ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - COUNT ( * ) + + ( + COUNT ( * ) )
----
0

query I rowsort
SELECT - 71 * + 69 AS col0
----
-4899

query I rowsort
SELECT ALL - 59 + - NULLIF ( 38, AVG ( - 44 ) )
----
-97

query I rowsort
SELECT DISTINCT - 14 + - CASE - NULLIF ( - 82, AVG ( DISTINCT + 30 ) ) WHEN 0 THEN + 69 WHEN 95 THEN NULL ELSE NULL END * + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + MAX( + 16 ) + 73 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + MAX ( + 16 ) + 73 AS col2
----
89

query I rowsort
SELECT ALL - 32 + + 99
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL ( - CASE - 39 WHEN - COUNT( DISTINCT ( + 12 ) ) - 95 THEN COUNT( * ) + - COALESCE ( 17 + - COUNT( * ), + 34 + 83 ) WHEN AVG ( DISTINCT 60 ) - 68 * 63 THEN 91 + CAST( NULL AS SIGNED ) WHEN - 11 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL ( - CASE - 39 WHEN - COUNT ( DISTINCT ( + 12 ) ) - 95 THEN COUNT ( * ) + - COALESCE ( 17 + - COUNT ( * ), + 34 + 83 ) WHEN AVG ( DISTINCT 60 ) - 68 * 63 THEN 91 + CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT + 9 / CAST( NULL AS SIGNED ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + 9 / CAST ( NULL AS INTEGER ) + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT + 93 DIV MAX( DISTINCT 80 )
----
1

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 93 / MAX ( DISTINCT 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - 5 * + MIN( DISTINCT - 92 ) AS col1
----
460

skipif mysql # not compatible
query I rowsort label-2938
SELECT - 5 * + MIN ( DISTINCT - 92 ) AS col1
----
460

query I rowsort
SELECT + ( 77 ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL + 99 DIV + 84 - 28 * 70 AS col0
----
-1959

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + 99 / + 84 - 28 * 70 AS col0
----
-1959

query I rowsort
SELECT + NULLIF ( 33, - 41 * 0 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL - 61 DIV + 19 - + 99
----
-102

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - 61 / + 19 - + 99
----
-102

query I rowsort
SELECT + CASE - 13 WHEN 98 THEN NULL ELSE 61 END
----
61

query I rowsort
SELECT ALL + 70 * 95 AS col1
----
6650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2945
SELECT + COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT + COUNT ( * ) / - 34
----
0

query I rowsort
SELECT ALL 92 * 15
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT 70 * SUM( + 10 * + 7 ) + - 77
----
4823

skipif mysql # not compatible
query I rowsort label-2947
SELECT 70 * SUM ( + 10 * + 7 ) + - 77
----
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + 3 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2948
SELECT + 3 * COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT ( + CAST( + 86 AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-2949
SELECT ( + CAST ( + 86 AS INTEGER ) )
----
86

query I rowsort
SELECT - 47 * 97 + 47 AS col2
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ( - MAX( 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-2951
SELECT ( - MAX ( 21 ) )
----
-21

query I rowsort
SELECT ALL + 34 * - 83 - 31 AS col1
----
-2853

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + CASE - 58 WHEN + 20 * 17 THEN 22 / - 7 ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT + CASE - 58 WHEN + 20 * 17 THEN 22 / - 7 ELSE COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + 15 * 16 - MAX( + ( + 79 ) ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-2954
SELECT + 15 * 16 - MAX ( + ( + 79 ) ) AS col0
----
161

query I rowsort
SELECT ALL + - 54 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL + MIN( + 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + MIN ( + 98 ) col0
----
98

query I rowsort
SELECT + - 31 + 54
----
23

query I rowsort
SELECT DISTINCT + + ( 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT + ( + 35 ) + MIN( 53 )
----
88

skipif mysql # not compatible
query I rowsort label-2959
SELECT + ( + 35 ) + MIN ( 53 )
----
88

query I rowsort
SELECT ALL 81 * 95
----
7695

query I rowsort
SELECT + 50 * 84 AS col2
----
4200

query I rowsort
SELECT - NULLIF ( 76, 32 ) col2
----
-76

query I rowsort
SELECT + 8 + 68 * 74 col2
----
5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT + - CAST( 68 AS SIGNED ) - + 25 col1
----
-93

skipif mysql # not compatible
query I rowsort label-2964
SELECT + - CAST ( 68 AS INTEGER ) - + 25 col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + + 79 DIV 14
----
5

skipif mysql # not compatible
query I rowsort label-2965
SELECT + + 79 / 14
----
5

query I rowsort
SELECT - + 73 * 82
----
-5986

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - + COUNT( * ) + + 3 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2967
SELECT - + COUNT ( * ) + + 3 AS col1
----
2

query I rowsort
SELECT DISTINCT 65 * + 52 AS col2
----
3380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT - + CASE 70 WHEN 90 - - 84 THEN - COUNT( * ) * CAST( 45 / - 47 AS SIGNED ) WHEN + 15 THEN + 44 * COUNT( DISTINCT 14 ) + - MAX( ALL 93 + 32 / ( + 11 ) ) * CAST( NULL AS SIGNED ) WHEN 12 THEN 9 ELSE + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT - + CASE 70 WHEN 90 - - 84 THEN - COUNT ( * ) * CAST ( 45 / - 47 AS INTEGER ) WHEN + 15 THEN + 44 * COUNT ( DISTINCT 14 ) + - MAX ( ALL 93 + 32 / ( + 11 ) ) * CAST ( NULL AS INTEGER ) WHEN 12 THEN 9 ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL + + 31 + 6 * COUNT( ALL 49 * - 75 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + + 31 + 6 * COUNT ( ALL 49 * - 75 ) AS col1
----
37

query I rowsort
SELECT + 53 * 34
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT NULLIF ( COUNT( * ), + COUNT( * ) ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT NULLIF ( COUNT ( * ), + COUNT ( * ) ) + - 65
----
NULL

query I rowsort
SELECT ALL 27 * 57 col1
----
1539

query I rowsort
SELECT 53 * - 35
----
-1855

query I rowsort
SELECT DISTINCT - - 19 + - ( 52 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL + + 56 DIV - 25 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + + 56 / - 25 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL + 58 + ( ( - COUNT( * ) ) ) col1
----
57

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + 58 + ( ( - COUNT ( * ) ) ) col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 54 + CASE COUNT( * ) WHEN - 6 THEN + ( 74 ) + - 16 WHEN + 13 THEN 95 * 60 - 30 * + 89 END / + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 54 + CASE COUNT ( * ) WHEN - 6 THEN + ( 74 ) + - 16 WHEN + 13 THEN 95 * 60 - 30 * + 89 END / + 61 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT 20 * 38 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT 20 * 38 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT CAST( + 58 AS SIGNED ) + - 89 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2980
SELECT CAST ( + 58 AS INTEGER ) + - 89 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT 9 + + - CASE 71 WHEN 23 + + 0 THEN - 70 WHEN COUNT( * ) THEN - 38 - CASE 93 WHEN + 42 THEN SUM( + 35 ) * - COALESCE ( - CASE 52 WHEN + ( - 73 ) THEN + 81 * 95 WHEN + SUM( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END, 76 * 27, - COUNT( * ) ) - + 40 * - 77 WHEN 86 + 95 THEN NULL ELSE + 74 END END * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT 9 + + - CASE 71 WHEN 23 + + 0 THEN - 70 WHEN COUNT ( * ) THEN - 38 - CASE 93 WHEN + 42 THEN SUM ( + 35 ) * - COALESCE ( - CASE 52 WHEN + ( - 73 ) THEN + 81 * 95 WHEN + SUM ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END, 76 * 27, - COUNT ( * ) ) - + 40 * - 77 WHEN 86 + 95 THEN NULL ELSE + 74 END END * + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT - 25 DIV + 39 + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2982
SELECT - 25 / + 39 + ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL CASE + 55 WHEN - COUNT( * ) + - ( 51 + - 45 ) * 39 THEN NULL ELSE 81 END - - 20 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL CASE + 55 WHEN - COUNT ( * ) + - ( 51 + - 45 ) * 39 THEN NULL ELSE 81 END - - 20 AS col0
----
101

query I rowsort
SELECT 29 + + 9 + + 78
----
116

query I rowsort
SELECT 35 * - 54 AS col2
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT + COUNT( ( + 88 ) ) * NULLIF ( + 23 * - 45 - + 58, + 88 )
----
-1093

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + COUNT ( ( + 88 ) ) * NULLIF ( + 23 * - 45 - + 58, + 88 )
----
-1093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2987
SELECT DISTINCT + ( MAX( ALL CAST( + 63 AS SIGNED ) ) ) - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT + ( MAX ( ALL CAST ( + 63 AS INTEGER ) ) ) - COUNT ( * )
----
62

query I rowsort
SELECT 48 * - ( 18 ) AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + 80 * + COUNT( * ) * 29 + + 78 * 85 AS col0
----
8950

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 80 * + COUNT ( * ) * 29 + + 78 * 85 AS col0
----
8950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT ALL - CASE - 48 WHEN CAST( 8 AS SIGNED ) + + CAST( 92 AS SIGNED ) THEN NULL WHEN - 63 THEN + 53 * - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - CASE - 48 WHEN CAST ( 8 AS INTEGER ) + + CAST ( 92 AS INTEGER ) THEN NULL WHEN - 63 THEN + 53 * - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT 25 * + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-2991
SELECT 25 * + COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT - ( - + 75 )
----
75

query I rowsort
SELECT 38 * - - 38
----
1444

query I rowsort
SELECT 39 * + 91 + ( ( 5 ) + + 36 ) * 33 AS col1
----
4902

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT - + MAX( ALL - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT - + MAX ( ALL - 31 )
----
31

query I rowsort
SELECT ALL + 74 * - - 44 AS col1
----
3256

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT + ( + - 95 ) DIV + 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2997
SELECT + ( + - 95 ) / + 48 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + - 67 * NULLIF ( + COUNT( * ), 51 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + - 67 * NULLIF ( + COUNT ( * ), 51 ) AS col1
----
-67

query I rowsort
SELECT ALL - 5 + + 32
----
27

query I rowsort
SELECT DISTINCT + 47 * NULLIF ( 28, 19 + + 93 )
----
1316

query I rowsort
SELECT + 92 * 61 AS col2
----
5612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT + + 63 * + CASE 52 WHEN + 18 THEN NULL WHEN CAST( - 83 AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 15 THEN 95 - - 33 * 96 ELSE NULL END + - 96 * - MAX( + 53 * - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT + + 63 * + CASE 52 WHEN + 18 THEN NULL WHEN CAST ( - 83 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 15 THEN 95 - - 33 * 96 ELSE NULL END + - 96 * - MAX ( + 53 * - 18 )
----
NULL

query I rowsort
SELECT DISTINCT - 55 + - 45 AS col1
----
-100

query I rowsort
SELECT 68 * + 21 col0
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT DISTINCT ( - - CASE 57 WHEN COUNT( * ) / 14 THEN 49 WHEN 71 * NULLIF ( NULLIF ( - 80, COUNT( 94 ) ), + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 37 THEN + 65 * - 90 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT ( - - CASE 57 WHEN COUNT ( * ) / 14 THEN 49 WHEN 71 * NULLIF ( NULLIF ( - 80, COUNT ( 94 ) ), + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 37 THEN + 65 * - 90 ELSE NULL END ) col1
----
NULL

query I rowsort
SELECT ALL ( - 28 ) + 44 * - 97
----
-4296

query I rowsort
SELECT 75 + + 53 AS col0
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), + 99, 23, CASE 31 WHEN COUNT( * ) THEN - 89 WHEN - MAX( DISTINCT ( + 40 ) ) THEN NULL END ) * 89
----
-8811

skipif mysql # not compatible
query I rowsort label-3008
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), + 99, 23, CASE 31 WHEN COUNT ( * ) THEN - 89 WHEN - MAX ( DISTINCT ( + 40 ) ) THEN NULL END ) * 89
----
-8811

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT ALL - 62 + + - 24 DIV - 37 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - 62 + + - 24 / - 37 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT 99 * CAST( NULL AS SIGNED ) / + 84 + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT 99 * CAST ( NULL AS INTEGER ) / + 84 + 77 AS col2
----
NULL

query I rowsort
SELECT + ( + 76 ) - 69 AS col0
----
7

query I rowsort
SELECT - ( + 3 ) AS col1
----
-3

query I rowsort
SELECT ALL - COALESCE ( 79, 20, 92 ) AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3014
SELECT DISTINCT COALESCE ( - + COUNT( * ), + CAST( + CASE + CAST( NULL AS SIGNED ) WHEN + 50 * - CAST( NULL AS DECIMAL ) THEN + 16 WHEN SUM( DISTINCT - 44 ) THEN 29 + 18 END AS SIGNED ) ) * 16
----
-16

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT COALESCE ( - + COUNT ( * ), + CAST ( + CASE + CAST ( NULL AS INTEGER ) WHEN + 50 * - CAST ( NULL AS REAL ) THEN + 16 WHEN SUM ( DISTINCT - 44 ) THEN 29 + 18 END AS INTEGER ) ) * 16
----
-16

query I rowsort
SELECT 39 + 24 AS col0
----
63

query I rowsort
SELECT ALL ( - NULLIF ( - - 81, 57 + 90 ) ) * 75 AS col0
----
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-3017
SELECT ( 89 ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT ( 89 ) / + 97
----
0

query I rowsort
SELECT DISTINCT 43 col2
----
43

query I rowsort
SELECT DISTINCT 81 * 65
----
5265

onlyif mysql # aggregate syntax: 
query II rowsort label-3020
SELECT ALL 96 AS col2, SUM( - NULLIF ( + 64, + 89 * 72 - 79 * - 12 ) ) * 50 AS col1
----
96
-3200

skipif mysql # not compatible
query II rowsort label-3020
SELECT ALL 96 AS col2, SUM ( - NULLIF ( + 64, + 89 * 72 - 79 * - 12 ) ) * 50 AS col1
----
96
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT DISTINCT - 24 DIV - 55 col0
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - 24 / - 55 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT 48 DIV + 12 col0
----
4

skipif mysql # not compatible
query I rowsort label-3022
SELECT 48 / + 12 col0
----
4

query I rowsort
SELECT 19 * - + 0 * 51 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + MAX( ALL - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-3024
SELECT + MAX ( ALL - 62 )
----
-62

query I rowsort
SELECT DISTINCT - 21 AS col1
----
-21

query I rowsort
SELECT ALL + 35 * + - 61 AS col2
----
-2135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT DISTINCT + 2 * 62 + - + 83 + 83 DIV + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + 2 * 62 + - + 83 + 83 / + COUNT ( * )
----
124

query I rowsort
SELECT ALL - 19 * + + 75 + + 52 AS col0
----
-1373

query II rowsort
SELECT DISTINCT - 13 AS col1, 27 AS col2
----
-13
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + COUNT( * ) * + 23 * - 58 + - COUNT( * ) AS col1
----
-1335

skipif mysql # not compatible
query I rowsort label-3030
SELECT + COUNT ( * ) * + 23 * - 58 + - COUNT ( * ) AS col1
----
-1335

query I rowsort
SELECT ( - 23 ) + + + ( 60 ) AS col1
----
37

query I rowsort
SELECT ALL + 17 * - 87
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - ( - + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT + CAST( + 15 AS SIGNED ) * 0 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3034
SELECT + CAST ( + 15 AS INTEGER ) * 0 + COUNT ( * )
----
1

query I rowsort
SELECT 80 * + 3
----
240

query I rowsort
SELECT + + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT MAX( - COALESCE ( - 71, 77 ) )
----
71

skipif mysql # not compatible
query I rowsort label-3037
SELECT MAX ( - COALESCE ( - 71, 77 ) )
----
71

query I rowsort
SELECT DISTINCT + 51 + - - 54 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3039
SELECT ALL - + MAX( + 89 ) + + 30 + ( CAST( - 68 AS SIGNED ) + 10 * + 5 ) * + 21
----
-437

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL - + MAX ( + 89 ) + + 30 + ( CAST ( - 68 AS INTEGER ) + 10 * + 5 ) * + 21
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT COUNT( * ) + + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3040
SELECT COUNT ( * ) + + 58 AS col2
----
59

query I rowsort
SELECT - + 71 * + 84 * 36 AS col2
----
-214704

query I rowsort
SELECT - - 13 + 12 * + 24 * 46 AS col0
----
13261

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL - COUNT( * ) * + 96
----
-96

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL - COUNT ( * ) * + 96
----
-96

query I rowsort
SELECT ALL - - 48 + + 10 + 41 + + 95 * 75
----
7224

query I rowsort
SELECT ALL + - 85 + + 7 AS col0
----
-78

query I rowsort
SELECT - ( + 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT ALL - - 72 * + 23 / CAST( 57 AS SIGNED ) + - NULLIF ( COUNT( ALL - 70 ), COUNT( * ) ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL - - 72 * + 23 / CAST ( 57 AS INTEGER ) + - NULLIF ( COUNT ( ALL - 70 ), COUNT ( * ) ) * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + SUM( DISTINCT + ( - 95 ) ) + 17
----
-78

skipif mysql # not compatible
query I rowsort label-3048
SELECT + SUM ( DISTINCT + ( - 95 ) ) + 17
----
-78

query I rowsort
SELECT DISTINCT COALESCE ( - + 79, 80 ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), - - 65, CAST( - 48 AS SIGNED ) + 33 )
----
65

skipif mysql # not compatible
query I rowsort label-3050
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), - - 65, CAST ( - 48 AS INTEGER ) + 33 )
----
65

query I rowsort
SELECT - 82 - 88 + + + 77 col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT - COUNT( 43 ) - - 7 - + 32
----
-26

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - COUNT ( 43 ) - - 7 - + 32
----
-26

query I rowsort
SELECT ALL + 10 * - + 43
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + 17 + - CASE - 96 WHEN + NULLIF ( + 45, 7 / 93 ) THEN NULL WHEN + COUNT( * ) THEN + 64 + COUNT( * ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT + 17 + - CASE - 96 WHEN + NULLIF ( + 45, 7 / 93 ) THEN NULL WHEN + COUNT ( * ) THEN + 64 + COUNT ( * ) END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 25 ) col2
----
25

query I rowsort
SELECT ALL ( + 48 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT + COUNT( * ) * 34, - 58 AS col0
----
34
-58

skipif mysql # not compatible
query II rowsort label-3057
SELECT + COUNT ( * ) * 34, - 58 AS col0
----
34
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL 22 * COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL 22 * COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + NULLIF ( + + 61, 77 * - 16 ) - + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3059
SELECT + NULLIF ( + + 61, 77 * - 16 ) - + COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - NULLIF ( + - COUNT( * ), - + 66 * 35 )
----
1

skipif mysql # not compatible
query I rowsort label-3060
SELECT - NULLIF ( + - COUNT ( * ), - + 66 * 35 )
----
1

query I rowsort
SELECT - 98 + 26
----
-72

query I rowsort
SELECT ALL 69 * - 55 * + 51
----
-193545

query I rowsort
SELECT + 80 * - 59
----
-4720

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT ALL 86 * 71 DIV - + 1
----
-6106

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL 86 * 71 / - + 1
----
-6106

query I rowsort
SELECT + 92 + + 57 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - MAX( ALL 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-3066
SELECT - MAX ( ALL 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT + 68 + + - MAX( ALL + 33 ) + + 13 * - 56
----
-693

skipif mysql # not compatible
query I rowsort label-3067
SELECT + 68 + + - MAX ( ALL + 33 ) + + 13 * - 56
----
-693

query I rowsort
SELECT ALL 33 * 5 AS col2
----
165

query I rowsort
SELECT DISTINCT + 58 * ( - 63 ) + + 90
----
-3564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT ALL - CAST( + - 70 AS SIGNED ) * + - 89 + + 91 AS col0
----
-6139

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - CAST ( + - 70 AS INTEGER ) * + - 89 + + 91 AS col0
----
-6139

query I rowsort
SELECT DISTINCT + 2 AS col2
----
2

query I rowsort
SELECT ( - + 62 ) * + 80 + 38 AS col0
----
-4922

query I rowsort
SELECT + + ( - 50 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3074
SELECT ALL CAST( NULL AS DECIMAL ) * + + 10 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL CAST ( NULL AS REAL ) * + + 10 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT + CASE + - 34 WHEN - CAST( - + 80 AS SIGNED ) * + 11 THEN + 40 WHEN AVG ( + 56 ) * + 76 THEN 62 END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT + CASE + - 34 WHEN - CAST ( - + 80 AS INTEGER ) * + 11 THEN + 40 WHEN AVG ( + 56 ) * + 76 THEN 62 END * 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT + 21 * + 65 + + + CAST( + 27 AS SIGNED ) col1
----
1392

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 21 * + 65 + + + CAST ( + 27 AS INTEGER ) col1
----
1392

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT 5 DIV - 77 * 13
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT 5 / - 77 * 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT + 74 DIV 81 * + - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT + 74 / 81 * + - 26 AS col2
----
0

query I rowsort
SELECT - 44 + + 47
----
3

query I rowsort
SELECT ALL - 90 * 56 * - 23 + - 38 AS col2
----
115882

query I rowsort
SELECT ALL 37 * - 15 + 89 + - 21 * 6 AS col2
----
-592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3082
SELECT + - CAST( NULL AS SIGNED ) * + 48 AS col0, + 40 * - 88
----
NULL
-3520

skipif mysql # not compatible
query II rowsort label-3082
SELECT + - CAST ( NULL AS INTEGER ) * + 48 AS col0, + 40 * - 88
----
NULL
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT - 11 * - + ( CASE CASE + 13 WHEN + 27 * 78 THEN - 91 + - 29 WHEN 60 THEN + 1 * 72 END WHEN 3 * - COUNT( * ) THEN NULL WHEN 58 THEN NULL WHEN - 83 / - 0 THEN NULL ELSE 88 END ) * COUNT( * ) - 60
----
908

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - 11 * - + ( CASE CASE + 13 WHEN + 27 * 78 THEN - 91 + - 29 WHEN 60 THEN + 1 * 72 END WHEN 3 * - COUNT ( * ) THEN NULL WHEN 58 THEN NULL WHEN - 83 / - 0 THEN NULL ELSE 88 END ) * COUNT ( * ) - 60
----
908

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - CASE + 86 WHEN - 55 + - COUNT( 3 ) * 98 THEN - 56 - - COUNT( * ) * ( ( MIN( ALL + 76 ) ) ) ELSE 1 END * - 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3084
SELECT - CASE + 86 WHEN - 55 + - COUNT ( 3 ) * 98 THEN - 56 - - COUNT ( * ) * ( ( MIN ( ALL + 76 ) ) ) ELSE 1 END * - 93 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT + + CAST( + 77 AS SIGNED ) * NULLIF ( - 81, 49 ) + + 18 AS col2
----
-6219

skipif mysql # not compatible
query I rowsort label-3085
SELECT + + CAST ( + 77 AS INTEGER ) * NULLIF ( - 81, 49 ) + + 18 AS col2
----
-6219

query I rowsort
SELECT + - ( + 15 )
----
-15

query I rowsort
SELECT DISTINCT + + 39 AS col1
----
39

query I rowsort
SELECT ALL + 60 * - - 21 - 62 - - ( - 14 ) AS col2
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - - COUNT( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-3089
SELECT - - COUNT ( - 46 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT - + 40 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT - + 40 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL ( NULLIF ( + + 35, + 6 + - COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL ( NULLIF ( + + 35, + 6 + - COUNT ( * ) ) )
----
35

query I rowsort
SELECT - 58 + 0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT COALESCE ( - COUNT( * ), + 14 + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 14 + 46 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 95 * + 24 * + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 95 * + 24 * + + 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - 22 * - MAX( DISTINCT + 22 )
----
484

skipif mysql # not compatible
query I rowsort label-3096
SELECT - 22 * - MAX ( DISTINCT + 22 )
----
484

query I rowsort
SELECT - 81 + - + 88 AS col1
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT - 75 DIV + + 2 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3098
SELECT - 75 / + + 2 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL CAST( + SUM( - 54 ) AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL CAST ( + SUM ( - 54 ) AS INTEGER ) AS col0
----
-54

query I rowsort
SELECT + 57 * + - 17
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT - MIN( + + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3101
SELECT - MIN ( + + 5 )
----
-5

query I rowsort
SELECT ALL ( 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL 39 + + ( 46 ) + + ( CASE - 74 WHEN + ( + COUNT( * ) ) / + ( 0 - - 28 ) - 92 THEN - 53 * 55 END ) + 48 / + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 39 + + ( 46 ) + + ( CASE - 74 WHEN + ( + COUNT ( * ) ) / + ( 0 - - 28 ) - 92 THEN - 53 * 55 END ) + 48 / + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL + NULLIF ( 21, + ( + COUNT( * ) ) ) + + 26
----
47

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + NULLIF ( 21, + ( + COUNT ( * ) ) ) + + 26
----
47

query II rowsort
SELECT ALL - 44 + - 90 + - 39, + 22 AS col0
----
-173
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + 89 + + 18 * + 68 + 32 + COUNT( * )
----
1346

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + 89 + + 18 * + 68 + 32 + COUNT ( * )
----
1346

query I rowsort
SELECT - ( ( - 90 ) ) AS col1
----
90

query I rowsort
SELECT - 85 * - + 78
----
6630

query I rowsort
SELECT + 91 * 77 AS col2
----
7007

query I rowsort
SELECT + ( + 70 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + 36 DIV + - 82 + + + 35
----
35

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 36 / + - 82 + + + 35
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT + 77 DIV + + ( COUNT( * ) ) * - - COUNT( - + ( + 0 ) ) - 32 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3112
SELECT + 77 / + + ( COUNT ( * ) ) * - - COUNT ( - + ( + 0 ) ) - 32 AS col1
----
45

query I rowsort
SELECT ( - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT + 54 AS col0, + MIN( 20 ) * + 87 * + 58 AS col0
----
54
100920

skipif mysql # not compatible
query II rowsort label-3114
SELECT + 54 AS col0, + MIN ( 20 ) * + 87 * + 58 AS col0
----
54
100920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT CAST( - MIN( ALL + 96 ) AS SIGNED ) - - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( - MIN ( ALL + 96 ) AS INTEGER ) - - 96 AS col2
----
0

query I rowsort
SELECT ALL - + 55 AS col2
----
-55

query I rowsort
SELECT DISTINCT 60 * - 66 AS col0
----
-3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT - NULLIF ( + 65, + 78 * + - CAST( - 55 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT - NULLIF ( + 65, + 78 * + - CAST ( - 55 AS INTEGER ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT 73 * 13 - + 4 * ( + COUNT( DISTINCT ( 56 ) ) ) AS col0
----
945

skipif mysql # not compatible
query I rowsort label-3119
SELECT 73 * 13 - + 4 * ( + COUNT ( DISTINCT ( 56 ) ) ) AS col0
----
945

query I rowsort
SELECT ALL - + 87 AS col0
----
-87

query I rowsort
SELECT - ( - 8 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + 22 * - 42 + + 80 + - COALESCE ( 78, 23 + COUNT( * ) )
----
-922

skipif mysql # not compatible
query I rowsort label-3122
SELECT + 22 * - 42 + + 80 + - COALESCE ( 78, 23 + COUNT ( * ) )
----
-922

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT + 44 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT + 44 / - 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3124
SELECT 42 * - + 58 * + 95 AS col0, - 3 + CAST( 99 AS SIGNED ) AS col2
----
-231420
96

skipif mysql # not compatible
query II rowsort label-3124
SELECT 42 * - + 58 * + 95 AS col0, - 3 + CAST ( 99 AS INTEGER ) AS col2
----
-231420
96

query I rowsort
SELECT ALL - + 71 AS col0
----
-71

query I rowsort
SELECT + 11 + 68 AS col2
----
79

query I rowsort
SELECT COALESCE ( + 76, + 51 + - + 13 * + 94, 21 + 83 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL - - COUNT( - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - - COUNT ( - 55 ) AS col1
----
1

query I rowsort
SELECT 22 * 17 * - 12
----
-4488

query I rowsort
SELECT DISTINCT 58 * + - 96
----
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT ALL - CAST( NULL AS SIGNED ) * - ( + ( - 68 ) ) * + 8 * + 35 * + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( + ( - 68 ) ) * + 8 * + 35 * + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT 57 + + 88 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT 57 + + 88 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3133
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 39 * SUM( 73 ), NULLIF ( - - 77, ( + CASE + NULLIF ( + 80, COALESCE ( 62, 2 / 39, COUNT( * ) ) - 66 ) WHEN 82 THEN - 26 * NULLIF ( - 53, ( 63 ) * 6 ) ELSE NULL END ) ) AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3133
SELECT DISTINCT CAST ( NULL AS REAL ) + - 39 * SUM ( 73 ), NULLIF ( - - 77, ( + CASE + NULLIF ( + 80, COALESCE ( 62, 2 / 39, COUNT ( * ) ) - 66 ) WHEN 82 THEN - 26 * NULLIF ( - 53, ( 63 ) * 6 ) ELSE NULL END ) ) AS col0
----
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT DISTINCT + 2 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + 2 / + 28
----
0

query I rowsort
SELECT DISTINCT + 93 + + 72
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT 63 DIV - 30 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3136
SELECT 63 / - 30 AS col0
----
-2

query I rowsort
SELECT ALL + 76 + - 39 * + 40 AS col2
----
-1484

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT DISTINCT + 3 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT + 3 / - 58
----
0

query II rowsort
SELECT ALL - 48 + 74 AS col2, 56 AS col1
----
26
56

query I rowsort
SELECT 44 + - 83 AS col0
----
-39

query I rowsort
SELECT 82 * - + 69
----
-5658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3142
SELECT ALL + 85 * + - 26, CAST( - COUNT( * ) AS SIGNED ) - - 34 + + 11 + 45 col1
----
-2210
89

skipif mysql # not compatible
query II rowsort label-3142
SELECT ALL + 85 * + - 26, CAST ( - COUNT ( * ) AS INTEGER ) - - 34 + + 11 + 45 col1
----
-2210
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT COUNT( 23 ) - - + MAX( ALL + - 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-3143
SELECT COUNT ( 23 ) - - + MAX ( ALL + - 40 )
----
-39

query I rowsort
SELECT ALL + 76 + + 9
----
85

query II rowsort
SELECT 17, + 54 AS col2
----
17
54

query I rowsort
SELECT ALL - 13 + ( + 68 ) + 79 * - 86 AS col0
----
-6739

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT 69 + + COUNT( * ) * 39
----
108

skipif mysql # not compatible
query I rowsort label-3147
SELECT 69 + + COUNT ( * ) * 39
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT DISTINCT - 60 AS col0, COUNT( * ) + 85 + + - 53
----
-60
33

skipif mysql # not compatible
query II rowsort label-3148
SELECT DISTINCT - 60 AS col0, COUNT ( * ) + 85 + + - 53
----
-60
33

query I rowsort
SELECT DISTINCT - 28 - - 81 + - 27 * ( + 62 ) * - 0 - 6
----
47

query I rowsort
SELECT DISTINCT + ( + 44 )
----
44

query I rowsort
SELECT DISTINCT + 47 - + 37 + - - 51 AS col2
----
61

query I rowsort
SELECT DISTINCT - - 53
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT - 92 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT - 92 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + COUNT( * ) - - + SUM( DISTINCT - - 87 ) + + MIN( DISTINCT + 45 ) * - - 30 * COUNT( - 17 * 76 ) * 61 AS col1
----
82438

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + COUNT ( * ) - - + SUM ( DISTINCT - - 87 ) + + MIN ( DISTINCT + 45 ) * - - 30 * COUNT ( - 17 * 76 ) * 61 AS col1
----
82438

query I rowsort
SELECT DISTINCT - ( 76 ) AS col0
----
-76

query II rowsort
SELECT ALL - + 76, - 73 AS col1
----
-76
-73

query I rowsort
SELECT + ( + + 56 ) AS col2
----
56

query I rowsort
SELECT ALL ( + - ( - 27 ) ) - - - 86 AS col0
----
-59

query II rowsort
SELECT 37 * + 92 + + 48 * + 63, 12 AS col2
----
6428
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + 42 + 71 + + 9 * + 6 / CASE - 44 WHEN + 41 * + ( 65 ) THEN 75 END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 42 + 71 + + 9 * + 6 / CASE - 44 WHEN + 41 * + ( 65 ) THEN 75 END * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT ALL 12 * + - 50, - COUNT( DISTINCT + - COALESCE ( - 16, - 40, - 12 ) ) AS col2
----
-600
-1

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL 12 * + - 50, - COUNT ( DISTINCT + - COALESCE ( - 16, - 40, - 12 ) ) AS col2
----
-600
-1

query I rowsort
SELECT - 51 * + + 8 col1
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT COUNT( * ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT COUNT ( * ) * + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT + - COUNT( * ) * + 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + - COUNT ( * ) * + 49 AS col1
----
-49

query I rowsort
SELECT ALL - - 34 AS col0
----
34

query II rowsort
SELECT DISTINCT - 88 AS col1, 21 * - 11 col0
----
-88
-231

query I rowsort
SELECT DISTINCT - + 43 AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT + ( + 78 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT + ( + 78 ) / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - + 61, 66 AS col0
----
-61
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT ALL - + COUNT( * ), + 25 + + 99 AS col1
----
-1
124

skipif mysql # not compatible
query II rowsort label-3170
SELECT ALL - + COUNT ( * ), + 25 + + 99 AS col1
----
-1
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT COALESCE ( + COUNT( * ), + CAST( + + 5 AS SIGNED ) ) + 95 + + 47 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-3171
SELECT COALESCE ( + COUNT ( * ), + CAST ( + + 5 AS INTEGER ) ) + 95 + + 47 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT COUNT( * ) * + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) * + - 20
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3173
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 17 AS col1, 55 * ( - - 37 ) AS col0
----
NULL
2035

skipif mysql # not compatible
query II rowsort label-3173
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 17 AS col1, 55 * ( - - 37 ) AS col0
----
NULL
2035

query I rowsort
SELECT ALL - 93 col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT COUNT( ALL 56 ) * - 12
----
-12

skipif mysql # not compatible
query I rowsort label-3175
SELECT COUNT ( ALL 56 ) * - 12
----
-12

query I rowsort
SELECT 67 * 95 * 26
----
165490

query II rowsort
SELECT ALL 46 + - + 87 col1, + 44 AS col1
----
-41
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL ( + - 32 ) DIV 77 * + - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL ( + - 32 ) / 77 * + - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL 63 + + - COUNT( * ) + + + 69 * + - 47 * CASE ( - SUM( ALL - CASE 35 WHEN 16 + + 3 THEN + 18 - - 24 ELSE NULL END ) ) WHEN 75 THEN 63 - 37 * + 98 WHEN 4 THEN NULL ELSE NULL END + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL 63 + + - COUNT ( * ) + + + 69 * + - 47 * CASE ( - SUM ( ALL - CASE 35 WHEN 16 + + 3 THEN + 18 - - 24 ELSE NULL END ) ) WHEN 75 THEN 63 - 37 * + 98 WHEN 4 THEN NULL ELSE NULL END + 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT DISTINCT CAST( + CAST( - 58 AS SIGNED ) AS SIGNED ) + - - 86 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT CAST ( + CAST ( - 58 AS INTEGER ) AS INTEGER ) + - - 86 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL 39 * COALESCE ( - 92, - 59 * 17 + - COUNT( * ) ) * 31 AS col1
----
-111228

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL 39 * COALESCE ( - 92, - 59 * 17 + - COUNT ( * ) ) * 31 AS col1
----
-111228

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL CASE - 52 WHEN + 64 THEN - 94 / COUNT( ALL 21 ) END + 13 * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL CASE - 52 WHEN + 64 THEN - 94 / COUNT ( ALL 21 ) END + 13 * 36 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 + 70 - + 28 + 60 AS col0
----
95

query I rowsort
SELECT DISTINCT 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL MAX( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL MAX ( DISTINCT + 7 )
----
7

query I rowsort
SELECT ALL 3 * - 12
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT COUNT( * ) * CASE - 39 WHEN - 36 THEN - AVG ( 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT COUNT ( * ) * CASE - 39 WHEN - 36 THEN - AVG ( 77 ) END
----
NULL

query I rowsort
SELECT 79 + - 4 AS col2
----
75

query I rowsort
SELECT DISTINCT 38 * + + 24 AS col1
----
912

query II rowsort
SELECT ALL 97 + + 31 col0, 5
----
128
5

query II rowsort
SELECT 98 + 54 col1, - 15 * + 56
----
152
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT MIN( DISTINCT + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT MIN ( DISTINCT + 0 ) AS col1
----
0

query I rowsort
SELECT ALL 61 - - + 43 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT ALL + CAST( NULL AS SIGNED ) / - 85 / + - 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + CAST ( NULL AS INTEGER ) / - 85 / + - 65 col2
----
NULL

query I rowsort
SELECT DISTINCT - 5 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - COUNT( DISTINCT + 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3196
SELECT - COUNT ( DISTINCT + 59 ) AS col0
----
-1

query I rowsort
SELECT ALL + 85 * + - 83 * + 0
----
0

query I rowsort
SELECT - - 80 * - 64 col0
----
-5120

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT ALL + + COALESCE ( + 98, + ( ( + 63 ) ), + 63 * 50 + - 81 ) DIV 24
----
4

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + + COALESCE ( + 98, + ( ( + 63 ) ), + 63 * 50 + - 81 ) / 24
----
4

query I rowsort
SELECT + + 69 - - 88 + 79
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - SUM( - 26 ) * 47 * - + 69 * + COUNT( * )
----
-84318

skipif mysql # not compatible
query I rowsort label-3201
SELECT - SUM ( - 26 ) * 47 * - + 69 * + COUNT ( * )
----
-84318

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT - COUNT( * ) * 15
----
-15

skipif mysql # not compatible
query I rowsort label-3202
SELECT - COUNT ( * ) * 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT - 30 DIV + COUNT( * ) - + 25 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 30 / + COUNT ( * ) - + 25 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT + - MAX( ALL - CAST( NULL AS SIGNED ) ) / - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) / - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL + COUNT( * ) * - 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + COUNT ( * ) * - 93 AS col2
----
-93

query I rowsort
SELECT - - ( + ( + + 93 ) ) - 60 AS col0
----
33

query I rowsort
SELECT ALL + - 34 * - - 47 * + + 92
----
-147016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + MAX( DISTINCT ( + - 85 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3209
SELECT + MAX ( DISTINCT ( + - 85 ) ) AS col0
----
-85

query I rowsort
SELECT DISTINCT + - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + ( - COALESCE ( + 38, - + MAX( ( 13 ) ) ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + ( - COALESCE ( + 38, - + MAX ( ( 13 ) ) ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL + + COUNT( * ) * 50 + - 15 - + - COALESCE ( - - 53, 99 + 95 + - 71, 8 * + 3 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + + COUNT ( * ) * 50 + - 15 - + - COALESCE ( - - 53, 99 + 95 + - 71, 8 * + 3 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - - 92 + - - COUNT( * ) + + 88 * - 72
----
-6243

skipif mysql # not compatible
query I rowsort label-3213
SELECT - - 92 + - - COUNT ( * ) + + 88 * - 72
----
-6243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT + 29 - - - COALESCE ( ( COUNT( * ) ), - - 27 DIV + 92 + + 45, + 68 + 42 ) * + 1
----
28

skipif mysql # not compatible
query I rowsort label-3214
SELECT + 29 - - - COALESCE ( ( COUNT ( * ) ), - - 27 / + 92 + + 45, + 68 + 42 ) * + 1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - + 90 * 57 * + COUNT( * ) * + 34 + - + 89
----
-174509

skipif mysql # not compatible
query I rowsort label-3215
SELECT - + 90 * 57 * + COUNT ( * ) * + 34 + - + 89
----
-174509

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + CASE 60 WHEN + + COUNT( * ) THEN - - 71 * + 99 - + COUNT( 59 ) END - - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT + CASE 60 WHEN + + COUNT ( * ) THEN - - 71 * + 99 - + COUNT ( 59 ) END - - 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT + CASE + MIN( DISTINCT + - 70 ) WHEN 37 + + 14 THEN - ( - + 15 ) * 83 + COUNT( * ) DIV - 73 ELSE + 11 + + 4 END DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT + CASE + MIN ( DISTINCT + - 70 ) WHEN 37 + + 14 THEN - ( - + 15 ) * 83 + COUNT ( * ) / - 73 ELSE + 11 + + 4 END / - 58
----
0

query I rowsort
SELECT DISTINCT 5 * - 43
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL SUM( + 85 ) * NULLIF ( 81, - - MIN( DISTINCT + 27 ) ) + 98 - + 39 + - 94 * 22
----
4876

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL SUM ( + 85 ) * NULLIF ( 81, - - MIN ( DISTINCT + 27 ) ) + 98 - + 39 + - 94 * 22
----
4876

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( * ) + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( * ) + 43 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL + COUNT( * ) * - CAST( 26 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + COUNT ( * ) * - CAST ( 26 AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT + 4 + COUNT( * ) - 71 * + NULLIF ( + COUNT( * ), - 64 + - + 85 - + 87 * 93 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3222
SELECT + 4 + COUNT ( * ) - 71 * + NULLIF ( + COUNT ( * ), - 64 + - + 85 - + 87 * 93 ) AS col1
----
-66

query I rowsort
SELECT DISTINCT + ( + 55 ) * - ( - 98 )
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL CASE + + 7 WHEN + ( + 47 ) THEN + SUM( + 34 ) - + COUNT( * ) * - 60 WHEN 0 THEN NULL WHEN 71 THEN NULL WHEN - 94 * 78 THEN - 68 END * 29 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL CASE + + 7 WHEN + ( + 47 ) THEN + SUM ( + 34 ) - + COUNT ( * ) * - 60 WHEN 0 THEN NULL WHEN 71 THEN NULL WHEN - 94 * 78 THEN - 68 END * 29 + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT 48 * + NULLIF ( - - COUNT( 43 ), AVG ( ALL - 61 ) ) * + 83 + - 87
----
3897

skipif mysql # not compatible
query I rowsort label-3225
SELECT 48 * + NULLIF ( - - COUNT ( 43 ), AVG ( ALL - 61 ) ) * + 83 + - 87
----
3897

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT COUNT( * ) AS col2, 11 * + 53
----
1
583

skipif mysql # not compatible
query II rowsort label-3226
SELECT COUNT ( * ) AS col2, 11 * + 53
----
1
583

query I rowsort
SELECT - ( 79 )
----
-79

query I rowsort
SELECT DISTINCT 97 - - 34
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3229
SELECT ALL 56 / - - ( CAST( NULL AS SIGNED ) ) col2, - 70 + + 49 AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL 56 / - - ( CAST ( NULL AS INTEGER ) ) col2, - 70 + + 49 AS col0
----
NULL
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3230
SELECT + 62 * CAST( 24 AS SIGNED ) col2, + 57
----
1488
57

skipif mysql # not compatible
query II rowsort label-3230
SELECT + 62 * CAST ( 24 AS INTEGER ) col2, + 57
----
1488
57

query II rowsort
SELECT ALL 67, - 39 col2
----
67
-39

query I rowsort
SELECT DISTINCT 61 - - 40
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT 44 - NULLIF ( - 79, CASE + 3 WHEN + - 20 + + 90 THEN - ( COUNT( * ) ) * - 33 END ) - + 79 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT 44 - NULLIF ( - 79, CASE + 3 WHEN + - 20 + + 90 THEN - ( COUNT ( * ) ) * - 33 END ) - + 79 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL + 89 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + 89 * COUNT ( * )
----
89

query II rowsort
SELECT - 45, + 30 * - + 89 AS col2
----
-45
-2670

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT + 14 + - 34 DIV + 14 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3236
SELECT + 14 + - 34 / + 14 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT + 83 - + - 75 + 33 / - + 92 * + 33 / + 57 * - + CASE 23 WHEN 49 * + 56 - 49 * - 40 THEN NULL WHEN - 85 * - 91 THEN - 32 END + + 84 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 83 - + - 75 + 33 / - + 92 * + 33 / + 57 * - + CASE 23 WHEN 49 * + 56 - 49 * - 40 THEN NULL WHEN - 85 * - 91 THEN - 32 END + + 84 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 40 AS col2, - 8 AS col1
----
40
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + 27 + - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3239
SELECT + 27 + - + COUNT ( * )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT + - 6 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3240
SELECT + - 6 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT + + 32 + - - 77 DIV - + 20 + + COUNT( * ) + + 27 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3241
SELECT + + 32 + - - 77 / - + 20 + + COUNT ( * ) + + 27 AS col0
----
57

query I rowsort
SELECT + 54 * - - 55
----
2970

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT ALL 91, - COUNT( * ) + - + 32 AS col0
----
91
-33

skipif mysql # not compatible
query II rowsort label-3243
SELECT ALL 91, - COUNT ( * ) + - + 32 AS col0
----
91
-33

query II rowsort
SELECT ALL COALESCE ( - - 83, - - 45 ) AS col1, + 25 + + - 86 AS col1
----
83
-61

query I rowsort
SELECT ALL + - ( - - 38 )
----
-38

query II rowsort
SELECT + 86, - 99 AS col0
----
86
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3247
SELECT ALL - - 69 / 10 + - NULLIF ( - 67, - 96 / + SUM( - 27 ) ) + CAST( NULL AS SIGNED ) + - 40 * - 52 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - - 69 / 10 + - NULLIF ( - 67, - 96 / + SUM ( - 27 ) ) + CAST ( NULL AS INTEGER ) + - 40 * - 52 + 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3248
SELECT 28, + CAST( + ( 43 ) AS SIGNED ) + 36 AS col1
----
28
79

skipif mysql # not compatible
query II rowsort label-3248
SELECT 28, + CAST ( + ( 43 ) AS INTEGER ) + 36 AS col1
----
28
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - + 32 * - 27 + 11 + - + 42 * - COUNT( * )
----
917

skipif mysql # not compatible
query I rowsort label-3249
SELECT - + 32 * - 27 + 11 + - + 42 * - COUNT ( * )
----
917

query I rowsort
SELECT + - 76
----
-76

query I rowsort
SELECT ALL + - ( - 13 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT + 57 DIV 23 * - 94 * - COUNT( DISTINCT + + 87 ) AS col0
----
188

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 57 / 23 * - 94 * - COUNT ( DISTINCT + + 87 ) AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT 41 / - 21 * - 13 + 91 + - + NULLIF ( - CASE - 86 WHEN - 38 THEN NULL WHEN 56 THEN + 34 WHEN 60 THEN NULL ELSE NULL END, MIN( + 55 ) ) * COALESCE ( - 94, + 46 ) + - 34 * - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT 41 / - 21 * - 13 + 91 + - + NULLIF ( - CASE - 86 WHEN - 38 THEN NULL WHEN 56 THEN + 34 WHEN 60 THEN NULL ELSE NULL END, MIN ( + 55 ) ) * COALESCE ( - 94, + 46 ) + - 34 * - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT MIN( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-3254
SELECT MIN ( DISTINCT + 5 )
----
5

query I rowsort
SELECT ALL + ( - 97 ) AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT ALL 65 DIV 89 * COALESCE ( - 43, 2 + 56 + + AVG ( ALL - + 29 ) * - 88 - 10 * - 57 DIV 15 ) DIV + 48 + + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL 65 / 89 * COALESCE ( - 43, 2 + 56 + + AVG ( ALL - + 29 ) * - 88 - 10 * - 57 / 15 ) / + 48 + + 78 AS col1
----
78

query I rowsort
SELECT - 28 * 34 * + 23 * - 45
----
985320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3258
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 4 * + + 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 4 * + + 30 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - COALESCE ( 40, 13 - - 64, + COALESCE ( + COUNT( * ), 25 * 86 + - + 90 * - 80 ) ) * 70
----
-2800

skipif mysql # not compatible
query I rowsort label-3259
SELECT - COALESCE ( 40, 13 - - 64, + COALESCE ( + COUNT ( * ), 25 * 86 + - + 90 * - 80 ) ) * 70
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + SUM( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-3260
SELECT + SUM ( - 95 )
----
-95

query I rowsort
SELECT ALL + ( + - 21 )
----
-21

query I rowsort
SELECT - NULLIF ( - 65, + 1 ) * - + 88 - + - 68 AS col2
----
-5652

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3263
SELECT + 92 + - - 39 AS col1, + 35 DIV + - COALESCE ( + SUM( DISTINCT 81 ), + COUNT( 93 ) ) * - ( COUNT( * ) ) + CASE + 55 + ( 63 ) WHEN 36 + - 4 THEN 17 ELSE - 75 * + 38 + ( - ( 99 ) + - 27 ) * + 60 END AS col2
----
131
-10410

skipif mysql # not compatible
query II rowsort label-3263
SELECT + 92 + - - 39 AS col1, + 35 / + - COALESCE ( + SUM ( DISTINCT 81 ), + COUNT ( 93 ) ) * - ( COUNT ( * ) ) + CASE + 55 + ( 63 ) WHEN 36 + - 4 THEN 17 ELSE - 75 * + 38 + ( - ( 99 ) + - 27 ) * + 60 END AS col2
----
131
-10410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT + CASE + - SUM( - 95 ) WHEN + 63 THEN COALESCE ( - - 72, - CAST( + 56 AS SIGNED ), + - 15 ) * - ( 9 ) WHEN 46 THEN NULL WHEN + 11 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT + CASE + - SUM ( - 95 ) WHEN + 63 THEN COALESCE ( - - 72, - CAST ( + 56 AS INTEGER ), + - 15 ) * - ( 9 ) WHEN 46 THEN NULL WHEN + 11 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 9, 77 )
----
9

query I rowsort
SELECT COALESCE ( - 53, + 34 * + 37 ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT ALL - COALESCE ( + COALESCE ( 15, CAST( NULL AS SIGNED ) + + 68, COUNT( * ) * COUNT( * ) ), + - COUNT( * ) * - + 62 * COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - COALESCE ( + COALESCE ( 15, CAST ( NULL AS INTEGER ) + + 68, COUNT ( * ) * COUNT ( * ) ), + - COUNT ( * ) * - + 62 * COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT DISTINCT + 44 - 90 AS col1, NULLIF ( + + 25, - - 90 + ( - COUNT( * ) ) ) - 89
----
-46
-64

skipif mysql # not compatible
query II rowsort label-3268
SELECT DISTINCT + 44 - 90 AS col1, NULLIF ( + + 25, - - 90 + ( - COUNT ( * ) ) ) - 89
----
-46
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3269
SELECT ALL 50 * + + COUNT( * ) * 29 * 54 * + 69 AS col1, CAST( NULL AS SIGNED ) AS col1
----
5402700
NULL

skipif mysql # not compatible
query II rowsort label-3269
SELECT ALL 50 * + + COUNT ( * ) * 29 * 54 * + 69 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
5402700
NULL

query I rowsort
SELECT 79 + 50
----
129

query I rowsort
SELECT DISTINCT - 72 * - 54 * + + 4 AS col0
----
15552

query II rowsort
SELECT 98 * 41 AS col1, 80 AS col0
----
4018
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - 54 * COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - 54 * COUNT ( * )
----
-54

query I rowsort
SELECT - 74 col0
----
-74

query I rowsort
SELECT DISTINCT ( - 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT + 12 * + - SUM( ALL + 5 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3276
SELECT + 12 * + - SUM ( ALL + 5 ) AS col0
----
-60

query I rowsort
SELECT + 81 + - - 16 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL COUNT( DISTINCT - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL COUNT ( DISTINCT - 12 ) AS col2
----
1

query I rowsort
SELECT ALL - ( 38 ) + - - 21 + - + 27 AS col0
----
-44

query I rowsort
SELECT - 48 * + + 34 AS col0
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT 87 * - + SUM( DISTINCT + 34 ) AS col2
----
-2958

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT 87 * - + SUM ( DISTINCT + 34 ) AS col2
----
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT DISTINCT - 64 + + CASE WHEN NOT 56 NOT BETWEEN + 2 AND NULL THEN 18 WHEN NOT NULLIF ( + 33, + 33 ) NOT IN ( 32 + 37 ) THEN + COALESCE ( + 3, CAST( NULL AS SIGNED ) - 47, + 94 * 73 + 13 ) * + 53 ELSE - 57 + + 16 END + 57 * 83 col0
----
4626

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - 64 + + CASE WHEN NOT 56 NOT BETWEEN + 2 AND NULL THEN 18 WHEN NOT NULLIF ( + 33, + 33 ) NOT IN ( 32 + 37 ) THEN + COALESCE ( + 3, CAST ( NULL AS INTEGER ) - 47, + 94 * 73 + 13 ) * + 53 ELSE - 57 + + 16 END + 57 * 83 col0
----
4626

query I rowsort
SELECT ALL 1 * - 49 * - 35
----
1715

query I rowsort
SELECT DISTINCT + 84 + - 50 + 31 + + 27
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT NULLIF ( COUNT( * ), - + 39 / + + NULLIF ( 17, COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3285
SELECT NULLIF ( COUNT ( * ), - + 39 / + + NULLIF ( 17, COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT - 28 + + 23 * - 64 AS col2
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + MIN( ALL - - 56 ) * - 20 * + 36
----
-40320

skipif mysql # not compatible
query I rowsort label-3287
SELECT + MIN ( ALL - - 56 ) * - 20 * + 36
----
-40320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3288
SELECT ALL + 39 * + CAST( + ( - SUM( DISTINCT + 46 ) ) AS SIGNED ) + - ( - 7 ) DIV 96
----
-1794

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + 39 * + CAST ( + ( - SUM ( DISTINCT + 46 ) ) AS INTEGER ) + - ( - 7 ) / 96
----
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3289
SELECT - - CASE + - NULLIF ( - + CAST( + 39 AS SIGNED ), + 34 ) WHEN + 75 THEN COUNT( * ) * + - 46 * + - 94 WHEN - 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT - - CASE + - NULLIF ( - + CAST ( + 39 AS INTEGER ), + 34 ) WHEN + 75 THEN COUNT ( * ) * + - 46 * + - 94 WHEN - 75 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT + ( COALESCE ( - - 82, - 98 * + CAST( + COUNT( * ) AS SIGNED ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-3290
SELECT + ( COALESCE ( - - 82, - 98 * + CAST ( + COUNT ( * ) AS INTEGER ) ) )
----
82

query I rowsort
SELECT DISTINCT - 9 AS col2
----
-9

query I rowsort
SELECT ALL + 90 + + 13 * + 96
----
1338

query I rowsort
SELECT ALL 33 * + 25
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL + 15 + - 76 - - COUNT( * ) + - 28 * - 49
----
1312

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + 15 + - 76 - - COUNT ( * ) + - 28 * - 49
----
1312

query I rowsort
SELECT ( + 13 ) - - 75
----
88

query I rowsort
SELECT ALL - NULLIF ( + - 20, - ( + 62 ) ) AS col0
----
20

query II rowsort
SELECT DISTINCT - 89 AS col1, + 78 AS col1
----
-89
78

query I rowsort
SELECT ALL - 57 * + 69
----
-3933

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT 63 * - 0 DIV - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT 63 * - 0 / - 14 AS col1
----
0

query II rowsort
SELECT DISTINCT - 99, 79 * 1 AS col2
----
-99
79

query I rowsort
SELECT DISTINCT - 48 * - 60
----
2880

query I rowsort
SELECT + 87 col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT 78 AS col2, SUM( - - 76 )
----
78
76

skipif mysql # not compatible
query II rowsort label-3303
SELECT 78 AS col2, SUM ( - - 76 )
----
78
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT COUNT( * ) * 37 * + 64 * - 2 + + 52 - + 77 + - + 34 DIV - CASE - - 96 WHEN - 48 THEN + ( COUNT( * ) ) ELSE + 76 END * 30
----
-4761

skipif mysql # not compatible
query I rowsort label-3304
SELECT COUNT ( * ) * 37 * + 64 * - 2 + + 52 - + 77 + - + 34 / - CASE - - 96 WHEN - 48 THEN + ( COUNT ( * ) ) ELSE + 76 END * 30
----
-4761

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT COUNT( + 49 ) * + + ( + 78 ) * + 97
----
7566

skipif mysql # not compatible
query I rowsort label-3305
SELECT COUNT ( + 49 ) * + + ( + 78 ) * + 97
----
7566

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT + MAX( DISTINCT 73 ) * - 62 + + SUM( - 70 ), 66 * - + 51 * - 49 + - COUNT( * ) AS col1
----
-4596
164933

skipif mysql # not compatible
query II rowsort label-3306
SELECT + MAX ( DISTINCT 73 ) * - 62 + + SUM ( - 70 ), 66 * - + 51 * - 49 + - COUNT ( * ) AS col1
----
-4596
164933

query I rowsort
SELECT DISTINCT - 40 * 56 AS col1
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL + 85 * + CASE - 84 WHEN + COUNT( ALL - + 39 ) THEN 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + 85 * + CASE - 84 WHEN + COUNT ( ALL - + 39 ) THEN 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT 86 - - CASE - 9 WHEN MIN( DISTINCT - + ( 99 ) ) THEN - 68 * - 19 / - COUNT( ALL 95 ) + 27 + 81 ELSE NULL END + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT 86 - - CASE - 9 WHEN MIN ( DISTINCT - + ( 99 ) ) THEN - 68 * - 19 / - COUNT ( ALL 95 ) + 27 + 81 ELSE NULL END + + 64 AS col0
----
NULL

query I rowsort
SELECT ALL 45 * - 93
----
-4185

query II rowsort
SELECT + 55 AS col1, - 48 AS col0
----
55
-48

query I rowsort
SELECT 82 + 30 col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT DISTINCT - COUNT( * ) AS col0, 21
----
-1
21

skipif mysql # not compatible
query II rowsort label-3313
SELECT DISTINCT - COUNT ( * ) AS col0, 21
----
-1
21

query I rowsort
SELECT ALL - 86 * - 6 AS col1
----
516

query I rowsort
SELECT ALL - ( + - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT 7 * + - ( - - COUNT( ALL + 99 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3316
SELECT 7 * + - ( - - COUNT ( ALL + 99 ) )
----
-7

query I rowsort
SELECT 78 + - + 4
----
74

query I rowsort
SELECT - 79 * 89
----
-7031

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT 88 + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3319
SELECT 88 + - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - 45 + - 59 + + COUNT( * ) AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 45 + - 59 + + COUNT ( * ) AS col2
----
-103

query I rowsort
SELECT ALL - + 27 + + 67
----
40

query I rowsort
SELECT DISTINCT 94 + + - 68
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT 67 + - COUNT( * ) * + 69
----
-2

skipif mysql # not compatible
query I rowsort label-3323
SELECT 67 + - COUNT ( * ) * + 69
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + 68 - + + SUM( DISTINCT + 54 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3324
SELECT + 68 - + + SUM ( DISTINCT + 54 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT + 12 + 10 * - - 21 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT + 12 + 10 * - - 21 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ( - COUNT( DISTINCT + 45 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3326
SELECT ( - COUNT ( DISTINCT + 45 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL 78 + COUNT( * ) + 98
----
177

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL 78 + COUNT ( * ) + 98
----
177

query I rowsort
SELECT 37 + 70 + 68 + + 87 - 28 * 28 * + 54
----
-42074

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT ALL 49 AS col2, NULLIF ( + + 31, + ( + AVG ( - 3 ) ) ) DIV - - 41 + + 6 + - - 31
----
49
37

skipif mysql # not compatible
query II rowsort label-3329
SELECT ALL 49 AS col2, NULLIF ( + + 31, + ( + AVG ( - 3 ) ) ) / - - 41 + + 6 + - - 31
----
49
37

query I rowsort
SELECT ALL 5 * + 50 - + + 40 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - 75 + - 22 * + 96 * + COUNT( * )
----
-2187

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 75 + - 22 * + 96 * + COUNT ( * )
----
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT NULLIF ( CAST( NULL AS SIGNED ), - 81 * COUNT( DISTINCT - + 5 ) ) * + 37 + 71 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - 81 * COUNT ( DISTINCT - + 5 ) ) * + 37 + 71 + + 30
----
NULL

query I rowsort
SELECT ALL - 2 col2
----
-2

query I rowsort
SELECT 37 * + + 91
----
3367

query I rowsort
SELECT 73 * - + 58 AS col2
----
-4234

query I rowsort
SELECT ALL 5 * + 88 * + ( + 99 ) AS col1
----
43560

query I rowsort
SELECT CASE - 7 WHEN - 93 THEN NULL ELSE - + 57 * - 39 END AS col2
----
2223

query II rowsort
SELECT ALL - 18 AS col2, 40
----
-18
40

query II rowsort
SELECT + 87 col0, 81 AS col0
----
87
81

query I rowsort
SELECT + 63 * 6 * + 95
----
35910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT + COUNT( - + CASE + - 81 WHEN ( + + 88 ) THEN NULL ELSE - COALESCE ( + 7, + 76, + 44 + - 10 ) END ) * - 83 + CAST( NULL AS SIGNED ) * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT + COUNT ( - + CASE + - 81 WHEN ( + + 88 ) THEN NULL ELSE - COALESCE ( + 7, + 76, + 44 + - 10 ) END ) * - 83 + CAST ( NULL AS INTEGER ) * 28 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + SUM( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3343
SELECT + SUM ( - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT + COUNT( + - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3344
SELECT + COUNT ( + - 82 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + SUM( + 23 ) * - NULLIF ( 11, + 91 ) * + + 30 + - + COUNT( * ) - 59
----
-7650

skipif mysql # not compatible
query I rowsort label-3345
SELECT + SUM ( + 23 ) * - NULLIF ( 11, + 91 ) * + + 30 + - + COUNT ( * ) - 59
----
-7650

onlyif mysql # DIV for integer division: 
query II rowsort label-3346
SELECT ALL + 27 AS col2, 41 DIV + - 13
----
27
-3

skipif mysql # not compatible
query II rowsort label-3346
SELECT ALL + 27 AS col2, 41 / + - 13
----
27
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + COALESCE ( 86, + NULLIF ( - COUNT( * ), - COUNT( * ) ), - COUNT( * ) * - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-3347
SELECT + COALESCE ( 86, + NULLIF ( - COUNT ( * ), - COUNT ( * ) ), - COUNT ( * ) * - COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT COUNT( * ) AS col1, COUNT( * ) - + 92 + ( - - 71 ) AS col0
----
1
-20

skipif mysql # not compatible
query II rowsort label-3348
SELECT COUNT ( * ) AS col1, COUNT ( * ) - + 92 + ( - - 71 ) AS col0
----
1
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT COALESCE ( - + CAST( + 88 AS SIGNED ), + - CASE - + ( - 45 ) WHEN + - 40 * - 88 * + + 71 * COUNT( * ) * + 43 THEN 1 WHEN COUNT( * ) THEN NULL END * + COUNT( DISTINCT ( + ( + 69 ) ) ) - + COUNT( * ), 88 * 67 ) * 3 - + COUNT( * ) * 78 AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-3349
SELECT COALESCE ( - + CAST ( + 88 AS INTEGER ), + - CASE - + ( - 45 ) WHEN + - 40 * - 88 * + + 71 * COUNT ( * ) * + 43 THEN 1 WHEN COUNT ( * ) THEN NULL END * + COUNT ( DISTINCT ( + ( + 69 ) ) ) - + COUNT ( * ), 88 * 67 ) * 3 - + COUNT ( * ) * 78 AS col1
----
-342

query I rowsort
SELECT ALL + 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + COALESCE ( - + COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3351
SELECT + COALESCE ( - + COUNT ( * ), COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT - 79 + 18 + - ( - CASE + - 25 WHEN - MIN( + 54 ) THEN 51 ELSE + 87 DIV - 22 + + 56 END ) + - 53 * + 53 * + NULLIF ( 94, 59 ) AS col2
----
-264054

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 79 + 18 + - ( - CASE + - 25 WHEN - MIN ( + 54 ) THEN 51 ELSE + 87 / - 22 + + 56 END ) + - 53 * + 53 * + NULLIF ( 94, 59 ) AS col2
----
-264054

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT SUM( ALL - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3353
SELECT SUM ( ALL - 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL + 25 + NULLIF ( + + 27, - + COUNT( * ) + + MIN( ALL - CASE - 60 WHEN + - 70 + - ( - + 99 ) - + + 90 THEN NULL WHEN 39 THEN + CASE 16 WHEN 47 + + CAST( NULL AS SIGNED ) THEN 12 ELSE NULL END ELSE NULL END ) ) * + 51 AS col2
----
1402

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + 25 + NULLIF ( + + 27, - + COUNT ( * ) + + MIN ( ALL - CASE - 60 WHEN + - 70 + - ( - + 99 ) - + + 90 THEN NULL WHEN 39 THEN + CASE 16 WHEN 47 + + CAST ( NULL AS INTEGER ) THEN 12 ELSE NULL END ELSE NULL END ) ) * + 51 AS col2
----
1402

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT - - 69 DIV - COALESCE ( - 14, + 45 * 38 * ( + 88 ) + + - 23 * + + COALESCE ( - 98, 43 * 96, + 41 * AVG ( ALL - 88 DIV 49 ), - ( 79 ) + 73 ) ) + 88 * - 78 AS col2
----
-6860

skipif mysql # not compatible
query I rowsort label-3355
SELECT - - 69 / - COALESCE ( - 14, + 45 * 38 * ( + 88 ) + + - 23 * + + COALESCE ( - 98, 43 * 96, + 41 * AVG ( ALL - 88 / 49 ), - ( 79 ) + 73 ) ) + 88 * - 78 AS col2
----
-6860

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL COUNT( * ) + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL COUNT ( * ) + 19 AS col1
----
20

query I rowsort
SELECT - + NULLIF ( - 26, + 17 ) AS col1
----
26

query I rowsort
SELECT - - 51 AS col1
----
51

query II rowsort
SELECT 79, 15 + + - 95 col1
----
79
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - MIN( ALL + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-3360
SELECT - MIN ( ALL + 16 )
----
-16

query I rowsort
SELECT ALL + 23 + + 65 AS col2
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3362
SELECT - 19 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT - 19 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL - + COUNT( * ) + + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - + COUNT ( * ) + + 66 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT CASE + 75 WHEN + MAX( DISTINCT 43 ) THEN NULLIF ( - 4, + + 27 * - COUNT( * ) / 61 - - 96 * 77 ) * - 67 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT CASE + 75 WHEN + MAX ( DISTINCT 43 ) THEN NULLIF ( - 4, + + 27 * - COUNT ( * ) / 61 - - 96 * 77 ) * - 67 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 37 * - + ( + 89 ) AS col2
----
3293

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + COUNT( DISTINCT - 33 ) * 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + COUNT ( DISTINCT - 33 ) * 72 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT + 29 * + - MAX( + 67 ) AS col0
----
-1943

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + 29 * + - MAX ( + 67 ) AS col0
----
-1943

query I rowsort
SELECT - - 44 AS col2
----
44

query I rowsort
SELECT - + 7 - + + 52 AS col1
----
-59

query I rowsort
SELECT - 70 + + 42 AS col1
----
-28

query I rowsort
SELECT ALL ( 76 ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT - NULLIF ( + 25, MIN( ALL 30 ) * - COALESCE ( + - 9, + - ( - COUNT( * ) ) ) ) * - - COUNT( * ) * CASE 57 WHEN - SUM( CAST( NULL AS SIGNED ) ) + + 80 * - 57 THEN NULL WHEN + 27 + ( + NULLIF ( 62, - COUNT( * ) ) ) THEN NULL ELSE + 88 END
----
-2200

skipif mysql # not compatible
query I rowsort label-3372
SELECT - NULLIF ( + 25, MIN ( ALL 30 ) * - COALESCE ( + - 9, + - ( - COUNT ( * ) ) ) ) * - - COUNT ( * ) * CASE 57 WHEN - SUM ( CAST ( NULL AS INTEGER ) ) + + 80 * - 57 THEN NULL WHEN + 27 + ( + NULLIF ( 62, - COUNT ( * ) ) ) THEN NULL ELSE + 88 END
----
-2200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT ALL CAST( - ( - 10 ) AS SIGNED ) col2
----
10

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL CAST ( - ( - 10 ) AS INTEGER ) col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( 23 AS SIGNED ) * COALESCE ( 92, COUNT( * ), COUNT( * ) ) * + + COUNT( * ) - + 25 * - COUNT( * )
----
2141

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( 23 AS INTEGER ) * COALESCE ( 92, COUNT ( * ), COUNT ( * ) ) * + + COUNT ( * ) - + 25 * - COUNT ( * )
----
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - COUNT( * ) - - ( 79 )
----
78

skipif mysql # not compatible
query I rowsort label-3375
SELECT - COUNT ( * ) - - ( 79 )
----
78

query I rowsort
SELECT ALL COALESCE ( 73, + 73 ) * + 76 * + NULLIF ( 36, - 13 + - 6 ) AS col2
----
199728

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + COALESCE ( + 38, + MIN( ALL 49 ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + COALESCE ( + 38, + MIN ( ALL 49 ) ) AS col1
----
38

query I rowsort
SELECT DISTINCT + 30 AS col1
----
30

query I rowsort
SELECT + NULLIF ( - 38, + 39 / + 50 ) AS col0
----
-38

query I rowsort
SELECT - 80 + 64 * - NULLIF ( - - 89, - 4 * + 55 / - 13 ) + + - 12 - + 33 col0
----
-5821

query I rowsort
SELECT + ( - 8 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT ( COALESCE ( + COALESCE ( 40, + ( + 61 ) DIV + - 97 ), - COUNT( * ) + + 61, 63 ) ) col1
----
40

skipif mysql # not compatible
query I rowsort label-3382
SELECT ( COALESCE ( + COALESCE ( 40, + ( + 61 ) / + - 97 ), - COUNT ( * ) + + 61, 63 ) ) col1
----
40

query I rowsort
SELECT + 1 * + 60 + + ( + 80 ) AS col1
----
140

query I rowsort
SELECT + 62 - - 61 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT - CASE 59 WHEN 16 THEN - 23 + + 47 + + - 23 * + ( - COUNT( * ) ) + - - 84 + + + 72 * + 19 - + ( - 8 ) * + 13 WHEN + 56 * + 77 - COUNT( ALL + 13 ) THEN - AVG ( ALL 27 ) / - 12 END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT - CASE 59 WHEN 16 THEN - 23 + + 47 + + - 23 * + ( - COUNT ( * ) ) + - - 84 + + + 72 * + 19 - + ( - 8 ) * + 13 WHEN + 56 * + 77 - COUNT ( ALL + 13 ) THEN - AVG ( ALL 27 ) / - 12 END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT + 79 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 79 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 14 * - - 69 + + 97 AS col2
----
1063

query I rowsort
SELECT ALL - 30 * 55 * 55 + 44 * - 20
----
-91630

query I rowsort
SELECT ( + + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL - 81 * - - 15 + - 88 + + + ( CASE + AVG ( DISTINCT + + 67 ) WHEN + + 60 * + - 77 * + 61 + + 88 THEN NULLIF ( + COUNT( * ), + 26 + 30 ) + + 5 WHEN 7 + + SUM( DISTINCT + 69 + 18 ) * - 75 THEN NULL WHEN 14 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - 81 * - - 15 + - 88 + + + ( CASE + AVG ( DISTINCT + + 67 ) WHEN + + 60 * + - 77 * + 61 + + 88 THEN NULLIF ( + COUNT ( * ), + 26 + 30 ) + + 5 WHEN 7 + + SUM ( DISTINCT + 69 + 18 ) * - 75 THEN NULL WHEN 14 THEN NULL END )
----
NULL

query I rowsort
SELECT ( + 43 ) AS col1
----
43

query I rowsort
SELECT DISTINCT + 42 * + 67 + + + 14 AS col0
----
2828

query I rowsort
SELECT DISTINCT + 6 * - - 89 + 50 + + + ( - 94 ) + + - 67 AS col0
----
423

query I rowsort
SELECT ALL + NULLIF ( - 7, + + 54 * - 84 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT - + 48 * + COUNT( * ) + MAX( - 41 ) * - - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - + 48 * + COUNT ( * ) + MAX ( - 41 ) * - - COUNT ( * )
----
-89

query I rowsort
SELECT DISTINCT + - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - 55 * + - 71 * + MIN( - + 50 ) * + CASE + - COUNT( * ) WHEN - 76 THEN NULL WHEN - 82 * - + AVG ( - 56 ) / 3 + 15 THEN 48 WHEN + 79 + - 78 THEN NULL END * - ( ( + 49 ) + - 16 ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 55 * + - 71 * + MIN ( - + 50 ) * + CASE + - COUNT ( * ) WHEN - 76 THEN NULL WHEN - 82 * - + AVG ( - 56 ) / 3 + 15 THEN 48 WHEN + 79 + - 78 THEN NULL END * - ( ( + 49 ) + - 16 ) + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + CASE - + 52 WHEN + 8 / - 59 * 6 + + + 20 + + - 61 * - - ( + + 17 ) - 67 * - + ( 30 ) THEN COUNT( * ) + COUNT( * ) END + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + CASE - + 52 WHEN + 8 / - 59 * 6 + + + 20 + + - 61 * - - ( + + 17 ) - 67 * - + ( 30 ) THEN COUNT ( * ) + COUNT ( * ) END + + 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3399
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) / - - 60 - 24 * + + 89 AS col1, 14 * - 31 AS col2
----
NULL
-434

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) / - - 60 - 24 * + + 89 AS col1, 14 * - 31 AS col2
----
NULL
-434

query I rowsort
SELECT + - 72 + COALESCE ( + - ( - + 3 ), - 31 )
----
-69

query I rowsort
SELECT + + 13 * - 49 col0
----
-637

query II rowsort
SELECT + + 97 + + 69 col0, - 67
----
166
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3403
SELECT ALL + 91 - ( ( + 17 ) ) + + 18 DIV - + 54 * + CAST( - 57 AS SIGNED ) * 38
----
74

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + 91 - ( ( + 17 ) ) + + 18 / - + 54 * + CAST ( - 57 AS INTEGER ) * 38
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT - - COUNT( * ) + + 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3404
SELECT - - COUNT ( * ) + + 75 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT COUNT( * ) * 32 + + 68
----
100

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT COUNT ( * ) * 32 + + 68
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-3406
SELECT - 66 - 84, 10 DIV 84 * - - 2 AS col2
----
-150
0

skipif mysql # not compatible
query II rowsort label-3406
SELECT - 66 - 84, 10 / 84 * - - 2 AS col2
----
-150
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT - 71 * - 29 col1, 47 + + - CASE 40 WHEN - 81 / - + 30 + 84 THEN 43 * + + MIN( DISTINCT + 63 ) / + 82 + + 94 * - 9 END * + 85 AS col1
----
2059
NULL

skipif mysql # not compatible
query II rowsort label-3407
SELECT - 71 * - 29 col1, 47 + + - CASE 40 WHEN - 81 / - + 30 + 84 THEN 43 * + + MIN ( DISTINCT + 63 ) / + 82 + + 94 * - 9 END * + 85 AS col1
----
2059
NULL

query I rowsort
SELECT + 10 + - 65 * + 72 * - 32
----
149770

query I rowsort
SELECT 66 * 82
----
5412

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3410
SELECT DISTINCT + 26 * + 4 DIV - COUNT( * ) col1, + 58 DIV + + 62
----
-104
0

skipif mysql # not compatible
query II rowsort label-3410
SELECT DISTINCT + 26 * + 4 / - COUNT ( * ) col1, + 58 / + + 62
----
-104
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3411
SELECT 92 + + - 36 DIV - 41 AS col2, + 70 AS col1
----
92
70

skipif mysql # not compatible
query II rowsort label-3411
SELECT 92 + + - 36 / - 41 AS col2, + 70 AS col1
----
92
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT ALL + 99 * NULLIF ( - + 10, + NULLIF ( + + 94, + 28 ) - - MAX( ALL + + ( + 63 ) ) ) AS col0, 13 - + 53 * - 70
----
-990
3723

skipif mysql # not compatible
query II rowsort label-3412
SELECT ALL + 99 * NULLIF ( - + 10, + NULLIF ( + + 94, + 28 ) - - MAX ( ALL + + ( + 63 ) ) ) AS col0, 13 - + 53 * - 70
----
-990
3723

query I rowsort
SELECT DISTINCT + 27 * + 63 AS col0
----
1701

query II rowsort
SELECT + 48 AS col0, - 69 AS col1
----
48
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - 9 + + - 35 + + 91 - - - COUNT( * ) * 5 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - 9 + + - 35 + + 91 - - - COUNT ( * ) * 5 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT 81 * + - COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3416
SELECT 81 * + - COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT 36 * 79 + - + 94 + + 48 * ( + 98 ) col2, COUNT( * ) + - + COUNT( * ) * + ( 14 )
----
7454
-13

skipif mysql # not compatible
query II rowsort label-3417
SELECT 36 * 79 + - + 94 + + 48 * ( + 98 ) col2, COUNT ( * ) + - + COUNT ( * ) * + ( 14 )
----
7454
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT + 6 AS col1, + ( - - COALESCE ( - 55, - COUNT( * ), - + 96 * 82 ) )
----
6
-55

skipif mysql # not compatible
query II rowsort label-3418
SELECT + 6 AS col1, + ( - - COALESCE ( - 55, - COUNT ( * ), - + 96 * 82 ) )
----
6
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT 23 DIV - + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT 23 / - + 81 AS col0
----
0

query I rowsort
SELECT ALL + 37 + - 71 * - 66
----
4723

query II rowsort
SELECT 26 AS col0, 59
----
26
59

query I rowsort
SELECT ALL - 9 + - + 49
----
-58

query I rowsort
SELECT 7 * - 24
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT ALL 38 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL 38 / - 56 AS col1
----
0

query I rowsort
SELECT 28 * 24 + + NULLIF ( - 47, 98 * + - 50 )
----
625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT DISTINCT - 92 + + CAST( NULL AS SIGNED ) + + MIN( + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - 92 + + CAST ( NULL AS INTEGER ) + + MIN ( + 74 )
----
NULL

query I rowsort
SELECT - 22 * 9 + 0 AS col1
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3428
SELECT CASE + 37 WHEN + ( + - ( + + COUNT( + + 5 ) ) ) THEN NULL ELSE CAST( + + 58 AS SIGNED ) END DIV ( + COUNT( * ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3428
SELECT CASE + 37 WHEN + ( + - ( + + COUNT ( + + 5 ) ) ) THEN NULL ELSE CAST ( + + 58 AS INTEGER ) END / ( + COUNT ( * ) ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT + + COUNT( * ) AS col2, 19 + + ( - SUM( ALL 79 ) ) + + + 67 AS col0
----
1
7

skipif mysql # not compatible
query II rowsort label-3429
SELECT + + COUNT ( * ) AS col2, 19 + + ( - SUM ( ALL 79 ) ) + + + 67 AS col0
----
1
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT CASE 38 WHEN CASE + CAST( NULL AS SIGNED ) WHEN COALESCE ( - 80, - + 68 + - 26 / - - 93 ) THEN NULL WHEN + 79 THEN 36 ELSE NULL END + ( - - COALESCE ( 50, + ( 20 ) ) ) THEN NULL WHEN ( + ( NULLIF ( 81, 26 ) ) ) THEN - 96 + + COUNT( * ) ELSE NULL END + + 49 * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT CASE 38 WHEN CASE + CAST ( NULL AS INTEGER ) WHEN COALESCE ( - 80, - + 68 + - 26 / - - 93 ) THEN NULL WHEN + 79 THEN 36 ELSE NULL END + ( - - COALESCE ( 50, + ( 20 ) ) ) THEN NULL WHEN ( + ( NULLIF ( 81, 26 ) ) ) THEN - 96 + + COUNT ( * ) ELSE NULL END + + 49 * + 9 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 56 - - 27
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT + - 66 AS col1, 94 / + - CASE + CASE 48 WHEN - 38 THEN NULL WHEN + 32 THEN - 90 * - 92 ELSE NULL END WHEN - + 59 * - 91 + - 80 THEN - MAX( DISTINCT COALESCE ( 57, 53 ) ) WHEN - COUNT( * ) / 75 THEN 41 END * 89 AS col1
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-3432
SELECT + - 66 AS col1, 94 / + - CASE + CASE 48 WHEN - 38 THEN NULL WHEN + 32 THEN - 90 * - 92 ELSE NULL END WHEN - + 59 * - 91 + - 80 THEN - MAX ( DISTINCT COALESCE ( 57, 53 ) ) WHEN - COUNT ( * ) / 75 THEN 41 END * 89 AS col1
----
-66
NULL

query I rowsort
SELECT 87 * + 8 + 61 AS col2
----
757

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3434
SELECT 25 * - + 51 + - CAST( NULL AS SIGNED ) AS col1, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-3434
SELECT 25 * - + 51 + - CAST ( NULL AS INTEGER ) AS col1, - 97
----
NULL
-97

query I rowsort
SELECT ALL - 23 * - + 36 col1
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT COUNT( * ) * - 60 * COUNT( * ) * 74 AS col2
----
-4440

skipif mysql # not compatible
query I rowsort label-3436
SELECT COUNT ( * ) * - 60 * COUNT ( * ) * 74 AS col2
----
-4440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT ALL + + 41 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + + 41 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( + + 32 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT - MIN( DISTINCT - - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - MIN ( DISTINCT - - 42 ) AS col2
----
-42

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3440
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0, 12 DIV 99
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3440
SELECT DISTINCT + CAST ( NULL AS REAL ) col0, 12 / 99
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL 67 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 67 / 61
----
1

query I rowsort
SELECT ( - 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COUNT( * ) * - + 16 + + ( - COUNT( ALL - - 44 ) ) + + 73 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COUNT ( * ) * - + 16 + + ( - COUNT ( ALL - - 44 ) ) + + 73 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - 55 * - COUNT( * ) + - 91
----
-36

skipif mysql # not compatible
query I rowsort label-3444
SELECT - 55 * - COUNT ( * ) + - 91
----
-36

query I rowsort
SELECT 14 * + 81 AS col1
----
1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT ALL - 80 DIV COUNT( * ) * - 1
----
80

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - 80 / COUNT ( * ) * - 1
----
80

query I rowsort
SELECT - - COALESCE ( 87, + + 68 * - - 50, + 86 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3448
SELECT 66 DIV COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3448
SELECT 66 / COUNT ( * )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT ALL 28 DIV - 54 * 83
----
0

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL 28 / - 54 * 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT - 94 * MAX( DISTINCT - 43 )
----
4042

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - 94 * MAX ( DISTINCT - 43 )
----
4042

query I rowsort
SELECT ALL + 40 + 9 + + 57 + + 69
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT - SUM( - 5 ) + - + ( + COUNT( * ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - SUM ( - 5 ) + - + ( + COUNT ( * ) ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - 68 + + 18 + COUNT( 79 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - 68 + + 18 + COUNT ( 79 ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT 1 * + NULLIF ( + 45, 91 ) * 58 - SUM( ALL + 98 )
----
2512

skipif mysql # not compatible
query I rowsort label-3454
SELECT 1 * + NULLIF ( + 45, 91 ) * 58 - SUM ( ALL + 98 )
----
2512

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL MIN( + + 96 ) + + 37 * - - 62 + - 1
----
2389

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL MIN ( + + 96 ) + + 37 * - - 62 + - 1
----
2389

query I rowsort
SELECT ( - + 2 ) + 83 + + + 49 * + 26 * - 99
----
-126045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT 91 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT 91 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT 26 * COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3458
SELECT 26 * COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL - 5 + + 50 - - MAX( DISTINCT 83 ) * - 93 + 95 * - 20 + - 29 AS col2
----
-9603

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - 5 + + 50 - - MAX ( DISTINCT 83 ) * - 93 + 95 * - 20 + - 29 AS col2
----
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT 49 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) + + + 67 * - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT 49 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + + + 67 * - 18 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL + CAST( NULL AS SIGNED ) * - 66 + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + CAST ( NULL AS INTEGER ) * - 66 + - 62 AS col0
----
NULL

query I rowsort
SELECT 41 * 25 * - ( + 6 ) + 91
----
-6059

query I rowsort
SELECT ALL - 65 * 39 * + 18 + - + 99
----
-45729

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT - SUM( DISTINCT 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT - SUM ( DISTINCT 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3465
SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT( * ) col0
----
-79
83

skipif mysql # not compatible
query II rowsort label-3465
SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT ( * ) col0
----
-79
83

query I rowsort
SELECT NULLIF ( - 98, - + 77 ) * - - 44 AS col1
----
-4312

query II rowsort
SELECT - 22 * - ( - 6 ) + + 94 AS col1, + 0
----
-38
0

query I rowsort
SELECT 47 - + ( - - 24 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL - COUNT( - - NULLIF ( - 83, + 81 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - COUNT ( - - NULLIF ( - 83, + 81 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT SUM( - + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3470
SELECT SUM ( - + 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + 26 * - ( - - 95 ) - + - 10 + + COUNT( * ) * + 38 + + + 89 + - 25 + - COUNT( * ) * + ( - 64 ) * + - 43 * ( 70 ) * + 39 AS col2
----
-7515318

skipif mysql # not compatible
query I rowsort label-3471
SELECT + 26 * - ( - - 95 ) - + - 10 + + COUNT ( * ) * + 38 + + + 89 + - 25 + - COUNT ( * ) * + ( - 64 ) * + - 43 * ( 70 ) * + 39 AS col2
----
-7515318

query I rowsort
SELECT ALL - 52 - 21 + - 23 AS col0
----
-96

query II rowsort
SELECT 80 * - + 56 * - - 79 * - 82 AS col0, + ( - 71 ) + - ( - 12 )
----
29021440
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT DISTINCT - + 76 - + COALESCE ( + 34, + 27 * - - 19 + - 72 DIV + 25 * + 86 ) * - 0 DIV - 79 * + - 37 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - + 76 - + COALESCE ( + 34, + 27 * - - 19 + - 72 / + 25 * + 86 ) * - 0 / - 79 * + - 37 AS col2
----
-76

query I rowsort
SELECT ALL - - 29 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT - 3 + + 3 * - CAST( ( + 95 ) AS SIGNED )
----
-288

skipif mysql # not compatible
query I rowsort label-3476
SELECT - 3 + + 3 * - CAST ( ( + 95 ) AS INTEGER )
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT - 12 * - - CAST( NULL AS SIGNED ) * 55 * + ( + - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT - 12 * - - CAST ( NULL AS INTEGER ) * 55 * + ( + - 44 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3478
SELECT DISTINCT + CASE COUNT( * ) WHEN + MIN( - 27 ) + + CASE + - COUNT( * ) WHEN + ( + + 81 ) - + - 81 + 85 - + COUNT( * ) + + 9 * 48 * - + 25 * + CASE + COUNT( * ) WHEN 31 THEN + 30 * 17 END + - 50 THEN 56 END THEN 58 + 12 WHEN 12 THEN NULL ELSE - 84 DIV + 83 - 51 * - COUNT( * ) END * 54
----
2700

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + CASE COUNT ( * ) WHEN + MIN ( - 27 ) + + CASE + - COUNT ( * ) WHEN + ( + + 81 ) - + - 81 + 85 - + COUNT ( * ) + + 9 * 48 * - + 25 * + CASE + COUNT ( * ) WHEN 31 THEN + 30 * 17 END + - 50 THEN 56 END THEN 58 + 12 WHEN 12 THEN NULL ELSE - 84 / + 83 - 51 * - COUNT ( * ) END * 54
----
2700

query I rowsort
SELECT ALL 56 * 5 AS col2
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT - + ( + 24 ) + NULLIF ( + 67, 66 * - 70 + 79 ) + + 84 * - COUNT( - 42 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-3480
SELECT - + ( + 24 ) + NULLIF ( + 67, 66 * - 70 + 79 ) + + 84 * - COUNT ( - 42 ) col1
----
-41

query I rowsort
SELECT + + 56 + 89 * - 96 - - 46 * + 50
----
-6188

query I rowsort
SELECT ALL - 50 * ( + 92 )
----
-4600

query I rowsort
SELECT + 62 * 23
----
1426

query I rowsort
SELECT - 15 + 66
----
51

query I rowsort
SELECT ALL 11 + - 10
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL CASE + 75 WHEN + 9 + + COUNT( * ) THEN NULL ELSE - - ( + - NULLIF ( - NULLIF ( CASE + 85 WHEN - 26 + + 86 THEN - 45 WHEN - 70 THEN - 0 - - - 10 * 90 END, 85 ), + 30 ) ) / 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL CASE + 75 WHEN + 9 + + COUNT ( * ) THEN NULL ELSE - - ( + - NULLIF ( - NULLIF ( CASE + 85 WHEN - 26 + + 86 THEN - 45 WHEN - 70 THEN - 0 - - - 10 * 90 END, 85 ), + 30 ) ) / 81 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT DISTINCT - 26 + + - MAX( ALL - 92 ) + - - 77 DIV + + 16
----
70

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT - 26 + + - MAX ( ALL - 92 ) + - - 77 / + + 16
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL NULLIF ( + 85, - 63 ) + - - 62 + 19 * - COUNT( * ) * 81 AS col0
----
-1392

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL NULLIF ( + 85, - 63 ) + - - 62 + 19 * - COUNT ( * ) * 81 AS col0
----
-1392

query I rowsort
SELECT + 69 + - 15
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL 75 + + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL 75 + + COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT - 81 + - - COUNT( * ) * + SUM( 51 ) * + COUNT( * ) + + 74 - 0 * - 29 + 19
----
63

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 81 + - - COUNT ( * ) * + SUM ( 51 ) * + COUNT ( * ) + + 74 - 0 * - 29 + 19
----
63

query I rowsort
SELECT + 86 + + - 16 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL CASE + 2 WHEN - COUNT( * ) * 62 THEN NULL WHEN + ( + 27 ) + - 46 - + 1 * - 26 THEN NULL ELSE COUNT( * ) * - 48 + - 6 * + COUNT( * ) + - + 54 + 47 END + - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL CASE + 2 WHEN - COUNT ( * ) * 62 THEN NULL WHEN + ( + 27 ) + - 46 - + 1 * - 26 THEN NULL ELSE COUNT ( * ) * - 48 + - 6 * + COUNT ( * ) + - + 54 + 47 END + - COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + 39 + + - 14 + + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3494
SELECT + 39 + + - 14 + + - COUNT ( * )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT + CASE + + 71 WHEN + - 88 THEN NULL WHEN 65 * 96 + - CAST( + - COUNT( * ) AS SIGNED ) THEN - 9 * - - ( + 68 ) * COALESCE ( - + SUM( DISTINCT 94 ), + 94 ) + - 70 + - 88 * + 40 * 25 END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT + CASE + + 71 WHEN + - 88 THEN NULL WHEN 65 * 96 + - CAST ( + - COUNT ( * ) AS INTEGER ) THEN - 9 * - - ( + 68 ) * COALESCE ( - + SUM ( DISTINCT 94 ), + 94 ) + - 70 + - 88 * + 40 * 25 END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 3 + + 28
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL COUNT( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL COUNT ( - 52 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT + 20 * - CAST( NULL AS SIGNED ) * + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 20 * - CAST ( NULL AS INTEGER ) * + + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT COUNT ( * ) * + 52
----
52

query I rowsort
SELECT ( + - ( + + 10 ) )
----
-10

query I rowsort
SELECT + ( + ( - 15 ) )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT + 67 DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 67 / 51
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT ( - - COALESCE ( - - COALESCE ( - CAST( + 72 AS SIGNED ), + NULLIF ( + CASE 7 WHEN + ( + CASE 21 WHEN - 62 THEN - 72 * - + COUNT( * ) WHEN + 25 THEN NULL END ) THEN 14 WHEN COUNT( * ) THEN NULL END, - 8 ), 1 ), SUM( - 23 ), 33 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3503
SELECT ( - - COALESCE ( - - COALESCE ( - CAST ( + 72 AS INTEGER ), + NULLIF ( + CASE 7 WHEN + ( + CASE 21 WHEN - 62 THEN - 72 * - + COUNT ( * ) WHEN + 25 THEN NULL END ) THEN 14 WHEN COUNT ( * ) THEN NULL END, - 8 ), 1 ), SUM ( - 23 ), 33 ) )
----
-72

query I rowsort
SELECT ALL + - 77 AS col0
----
-77

query I rowsort
SELECT DISTINCT + + 95
----
95

query I rowsort
SELECT ALL + NULLIF ( - - 66, 70 )
----
66

query I rowsort
SELECT ALL + - 43 col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3508
SELECT - ( + + AVG ( ALL - 36 ) ) * - 73 / 38 * + 82 * - CAST( NULL AS DECIMAL ) + - COUNT( * ) + ( + CASE - COUNT( * ) WHEN - 57 THEN + ( + + COUNT( ALL + - 74 ) ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT - ( + + AVG ( ALL - 36 ) ) * - 73 / 38 * + 82 * - CAST ( NULL AS REAL ) + - COUNT ( * ) + ( + CASE - COUNT ( * ) WHEN - 57 THEN + ( + + COUNT ( ALL + - 74 ) ) END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 41 * + 99 col1
----
4059

query I rowsort
SELECT ALL + + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + + 63 * - + 54 + + CASE WHEN NOT + ( SUM( DISTINCT + 28 ) ) > - 51 THEN NULL WHEN NOT + 13 IN ( - 33 ) THEN + 53 + - 80 END * + 76 * COUNT( * ) + 58 * + 32
----
-3598

skipif mysql # not compatible
query I rowsort label-3511
SELECT + + 63 * - + 54 + + CASE WHEN NOT + ( SUM ( DISTINCT + 28 ) ) > - 51 THEN NULL WHEN NOT + 13 IN ( - 33 ) THEN + 53 + - 80 END * + 76 * COUNT ( * ) + 58 * + 32
----
-3598

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - + 35 * + + 48 * 56 * - 83 * + COUNT( * ) + - - 36 AS col2
----
7808676

skipif mysql # not compatible
query I rowsort label-3512
SELECT - + 35 * + + 48 * 56 * - 83 * + COUNT ( * ) + - - 36 AS col2
----
7808676

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + 49 * - 64 * + - MIN( DISTINCT - 22 ) AS col1
----
-68992

skipif mysql # not compatible
query I rowsort label-3513
SELECT + 49 * - 64 * + - MIN ( DISTINCT - 22 ) AS col1
----
-68992

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - COUNT( * ) * 34 * 82 - + + 31 + ( + 7 ) * - - 49 AS col1
----
-2476

skipif mysql # not compatible
query I rowsort label-3514
SELECT - COUNT ( * ) * 34 * 82 - + + 31 + ( + 7 ) * - - 49 AS col1
----
-2476

query II rowsort
SELECT + - 51 AS col1, 73 + - 10 col1
----
-51
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - COUNT( * ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1
----
0

query II rowsort
SELECT ALL + 54, 44 AS col2
----
54
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3518
SELECT - CAST( - 23 AS SIGNED ) DIV + - 41
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT - CAST ( - 23 AS INTEGER ) / + - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL 86 * COUNT( * ) + - 92 + - + 86 + + MIN( 26 )
----
-66

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL 86 * COUNT ( * ) + - 92 + - + 86 + + MIN ( 26 )
----
-66

query I rowsort
SELECT DISTINCT 23 * + + 67 + + - 51 * - 41
----
3632

query I rowsort
SELECT + - 90
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT - - 8 DIV - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3522
SELECT - - 8 / - COUNT ( * ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT - + 19 * 10 / - - CASE - ( + ( - 37 ) ) WHEN + 83 * - - 17 THEN - + 65 WHEN + 38 THEN NULL END + - 35 + 27 + + CAST( - - 51 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - + 19 * 10 / - - CASE - ( + ( - 37 ) ) WHEN + 83 * - - 17 THEN - + 65 WHEN + 38 THEN NULL END + - 35 + 27 + + CAST ( - - 51 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 93 * + 4
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL SUM( - 25 ) * - 89 + + 9
----
2234

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL SUM ( - 25 ) * - 89 + + 9
----
2234

query II rowsort
SELECT - 76 AS col2, - 7 AS col2
----
-76
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT - ( - - 62 ) DIV + - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT - ( - - 62 ) / + - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - 87 * NULLIF ( + - ( + SUM( - + 91 ) ), - AVG ( + 19 ) ) AS col0
----
-7917

skipif mysql # not compatible
query I rowsort label-3528
SELECT - 87 * NULLIF ( + - ( + SUM ( - + 91 ) ), - AVG ( + 19 ) ) AS col0
----
-7917

query I rowsort
SELECT + 63 * 74 * + - 22 * + 56 AS col0
----
-5743584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL COUNT( * ) * - 89 col1
----
-89

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL COUNT ( * ) * - 89 col1
----
-89

query I rowsort
SELECT - 27 * 92 AS col0
----
-2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3533
SELECT ALL - 5 * - + 79 col0, + COALESCE ( MIN( ALL - + 84 ), - CAST( NULL AS SIGNED ) DIV + + CAST( NULL AS SIGNED ) - COUNT( * ) ) AS col0
----
395
-84

skipif mysql # not compatible
query II rowsort label-3533
SELECT ALL - 5 * - + 79 col0, + COALESCE ( MIN ( ALL - + 84 ), - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) AS col0
----
395
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - NULLIF ( + 31, - 9 + + ( - - ( + 67 ) ) - AVG ( DISTINCT + 75 ) * + + COUNT( * ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3534
SELECT - NULLIF ( + 31, - 9 + + ( - - ( + 67 ) ) - AVG ( DISTINCT + 75 ) * + + COUNT ( * ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - CASE - + 47 WHEN - CASE 17 WHEN + COUNT( * ) * + 38 + + 97 + - 91 * - + ( 33 ) / + - 51 + 16 * - - 98 + + + COUNT( * ) * - - 28 + COALESCE ( COUNT( ( 44 ) ), - 90, + 10, 72 * + CASE 5 WHEN 53 THEN - ( COUNT( * ) ) * ( + 44 * - 66 ) + SUM( 21 ) ELSE 55 END ) THEN NULL ELSE 74 * COUNT( * ) END THEN NULL WHEN 88 THEN - 87 WHEN + 23 THEN NULL ELSE - 19 END AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3535
SELECT - CASE - + 47 WHEN - CASE 17 WHEN + COUNT ( * ) * + 38 + + 97 + - 91 * - + ( 33 ) / + - 51 + 16 * - - 98 + + + COUNT ( * ) * - - 28 + COALESCE ( COUNT ( ( 44 ) ), - 90, + 10, 72 * + CASE 5 WHEN 53 THEN - ( COUNT ( * ) ) * ( + 44 * - 66 ) + SUM ( 21 ) ELSE 55 END ) THEN NULL ELSE 74 * COUNT ( * ) END THEN NULL WHEN 88 THEN - 87 WHEN + 23 THEN NULL ELSE - 19 END AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT ALL CAST( - 35 AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL CAST ( - 35 AS INTEGER ) AS col2
----
-35

query I rowsort
SELECT - 67 + + - 70 AS col0
----
-137

query I rowsort
SELECT - 43 + + 90
----
47

query I rowsort
SELECT + 61 * - 9 AS col0
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + 20 + + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 20 + + - COUNT ( * )
----
19

query I rowsort
SELECT ALL 88 * 28
----
2464

query II rowsort
SELECT DISTINCT + - 32 col2, 37 + - 52 AS col0
----
-32
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL ( + 89 ) * + + 60 * - 15 * + - COUNT( * )
----
80100

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL ( + 89 ) * + + 60 * - 15 * + - COUNT ( * )
----
80100

query I rowsort
SELECT ALL + CASE - - 42 WHEN + - 46 + - 24 THEN + - 19 ELSE NULL END * - - 75 + + + 85 AS col1
----
NULL

query I rowsort
SELECT + + 69 + 59 + - 52 - + 84 - - 95 / - + 56 * + - 40 + - + 1 + + - CASE - - 63 WHEN + + 47 THEN + 37 + 34 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT + 94 DIV - 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 94 / - 70 AS col2
----
-1

query II rowsort
SELECT + 33 * - - 33 - + 74 + 60 AS col0, 54 * ( 70 ) + 78 - - + 31
----
1075
3889

query I rowsort
SELECT 79 - + + 94
----
-15

query II rowsort
SELECT + 30 AS col1, + 59 AS col1
----
30
59

query I rowsort
SELECT ALL + 92 + - 60 AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT DISTINCT - + COUNT( * ) AS col1, + 74
----
-1
74

skipif mysql # not compatible
query II rowsort label-3551
SELECT DISTINCT - + COUNT ( * ) AS col1, + 74
----
-1
74

query I rowsort
SELECT + 83 * 49 + + - 46 + - 98
----
3923

onlyif mysql # DIV for integer division: 
query I rowsort label-3553
SELECT DISTINCT 62 + - COALESCE ( + 17, - 27 * + - 11 DIV + + 40, - 60 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT 62 + - COALESCE ( + 17, - 27 * + - 11 / + + 40, - 60 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + SUM( 34 ) * 89 AS col2
----
3026

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + SUM ( 34 ) * 89 AS col2
----
3026

query I rowsort
SELECT DISTINCT - 10 + ( + - 61 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3556
SELECT ALL - CAST( - 10 AS SIGNED ) + + MAX( - 61 ) AS col2, + 38 * - 16 * + 27 AS col0
----
-51
-16416

skipif mysql # not compatible
query II rowsort label-3556
SELECT ALL - CAST ( - 10 AS INTEGER ) + + MAX ( - 61 ) AS col2, + 38 * - 16 * + 27 AS col0
----
-51
-16416

query II rowsort
SELECT + 54, 61 AS col2
----
54
61

query I rowsort
SELECT ( + ( + 91 ) ) * 71 + 54 - + 80 AS col1
----
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + 81 * - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + 81 * - COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT 17 DIV - + SUM( ALL 51 )
----
0

skipif mysql # not compatible
query I rowsort label-3560
SELECT 17 / - + SUM ( ALL 51 )
----
0

query I rowsort
SELECT 20 + + 9 + - 73 AS col2
----
-44

query I rowsort
SELECT DISTINCT 82 col0
----
82

query I rowsort
SELECT 1 * NULLIF ( - 69, + 97 ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT + COUNT( * ) DIV + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + COUNT ( * ) / + ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT 17 + - - COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-3565
SELECT 17 + - - COUNT ( * ) col1
----
18

query I rowsort
SELECT ALL + ( - + 9 ) * + 67 * + 50
----
-30150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT 97 DIV - + MAX( DISTINCT ( - 4 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3567
SELECT 97 / - + MAX ( DISTINCT ( - 4 ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT 32 DIV + + ( 50 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT 32 / + + ( 50 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT 42 + + COUNT( * ), - COUNT( * ) AS col2
----
43
-1

skipif mysql # not compatible
query II rowsort label-3569
SELECT 42 + + COUNT ( * ), - COUNT ( * ) AS col2
----
43
-1

query I rowsort
SELECT ALL 56 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL - COUNT( * ) * 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL - COUNT ( * ) * 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL + COUNT( * ) * + 5 * 51 col2
----
255

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + COUNT ( * ) * + 5 * 51 col2
----
255

query I rowsort
SELECT DISTINCT + + 32 * 62 + - + 4 * + 97 + 94 + + 77 AS col0
----
1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT + CAST( + + 82 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3574
SELECT + CAST ( + + 82 AS INTEGER ) AS col1
----
82

query I rowsort
SELECT ALL 2 col2
----
2

query I rowsort
SELECT - 65 * + + 73 AS col0
----
-4745

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT - 57 + COUNT( * ) + 71 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - 57 + COUNT ( * ) + 71 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3578
SELECT + COUNT( * ) DIV + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT + COUNT ( * ) / + 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL - MAX( ALL - 58 ) + - 81 col0
----
-23

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - MAX ( ALL - 58 ) + - 81 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL - NULLIF ( + - COUNT( * ), 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - NULLIF ( + - COUNT ( * ), 31 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT + CAST( + 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3581
SELECT + CAST ( + 93 AS INTEGER ) AS col1
----
93

query I rowsort
SELECT ALL 11 * - 35 - ( + CASE + + 45 WHEN + 57 THEN NULL ELSE - 1 END ) + + - 30 AS col1
----
-414

query I rowsort
SELECT DISTINCT 51 + + - 21 AS col0
----
30

query I rowsort
SELECT + - 4 AS col0
----
-4

query I rowsort
SELECT ALL ( - 40 ) + 78 * + - 0 AS col2
----
-40

query I rowsort
SELECT + NULLIF ( 90, 34 * - 48 + - + 34 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + 56 * - 83 - + + MAX( DISTINCT - 47 )
----
-4601

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 56 * - 83 - + + MAX ( DISTINCT - 47 )
----
-4601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT - ( + + SUM( DISTINCT - 69 ) ) * + CAST( + + 27 AS SIGNED )
----
1863

skipif mysql # not compatible
query I rowsort label-3588
SELECT - ( + + SUM ( DISTINCT - 69 ) ) * + CAST ( + + 27 AS INTEGER )
----
1863

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL - 46 AS col2, + 81 * - SUM( + 65 ) + - 47 - + COUNT( * ) - - 6 + - 95 * - + COALESCE ( - 72, 15 )
----
-46
-12147

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL - 46 AS col2, + 81 * - SUM ( + 65 ) + - 47 - + COUNT ( * ) - - 6 + - 95 * - + COALESCE ( - 72, 15 )
----
-46
-12147

query II rowsort
SELECT + 21 AS col1, 93
----
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT - 84 * + + 56 + + ( + - COUNT( * ) )
----
-4705

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 84 * + + 56 + + ( + - COUNT ( * ) )
----
-4705

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - MIN( DISTINCT - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - MIN ( DISTINCT - 91 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT ALL - 36, COUNT( * ) * + - 9 + 79 AS col2
----
-36
70

skipif mysql # not compatible
query II rowsort label-3593
SELECT ALL - 36, COUNT ( * ) * + - 9 + 79 AS col2
----
-36
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL + CAST( + - 56 AS SIGNED ) * 4 col1
----
-224

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + CAST ( + - 56 AS INTEGER ) * 4 col1
----
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT ALL 88 AS col1, MAX( ALL + 65 ) AS col1
----
88
65

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL 88 AS col1, MAX ( ALL + 65 ) AS col1
----
88
65

query II rowsort
SELECT - 45, 46 col1
----
-45
46

query II rowsort
SELECT 18 AS col0, 33 AS col1
----
18
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - MAX( ALL + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-3598
SELECT - MAX ( ALL + 36 )
----
-36

query I rowsort
SELECT 26 * ( 60 ) AS col0
----
1560

query I rowsort
SELECT 61 * + 11
----
671

query I rowsort
SELECT ALL - 88 + 54
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT - + 93 AS col1, - COUNT( * ) + - - 32 + + 50 col2
----
-93
81

skipif mysql # not compatible
query II rowsort label-3602
SELECT - + 93 AS col1, - COUNT ( * ) + - - 32 + + 50 col2
----
-93
81

query I rowsort
SELECT 80 + + - 14
----
66

query II rowsort
SELECT - + 24 AS col2, + 5
----
-24
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT - 67 DIV - 27 + 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 67 / - 27 + 95 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT COUNT( ALL + - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-3606
SELECT COUNT ( ALL + - 86 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL 12 * + - 75 + + + 99 + + 97 + + CAST( - CAST( - - 47 AS SIGNED ) AS SIGNED ) * - - 91 * + 88 AS col2
----
-377080

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL 12 * + - 75 + + + 99 + + 97 + + CAST ( - CAST ( - - 47 AS INTEGER ) AS INTEGER ) * - - 91 * + 88 AS col2
----
-377080

query II rowsort
SELECT - 76, 12 AS col1
----
-76
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT ALL - 86 * ( + + 81 ) / - 21 - - - 16 + - 32 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL - 86 * ( + + 81 ) / - 21 - - - 16 + - 32 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3610
SELECT + COALESCE ( COUNT( * ), + + 16 DIV - 90 - 92 + - 80 + + - 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3610
SELECT + COALESCE ( COUNT ( * ), + + 16 / - 90 - 92 + - 80 + + - 8 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - COALESCE ( COUNT( DISTINCT - + 16 ), + ( + + SUM( DISTINCT - 50 ) ) - + 60 ) * + - 51
----
51

skipif mysql # not compatible
query I rowsort label-3611
SELECT - COALESCE ( COUNT ( DISTINCT - + 16 ), + ( + + SUM ( DISTINCT - 50 ) ) - + 60 ) * + - 51
----
51

query I rowsort
SELECT + + 46 * + - 20
----
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT ALL + + CASE + 59 WHEN + 63 THEN NULL WHEN - 21 THEN - + 61 WHEN 78 THEN - + COUNT( * ) * - 65 + - 16 END AS col1, - 27 - - + NULLIF ( + + 92, + 22 + + 89 )
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3613
SELECT ALL + + CASE + 59 WHEN + 63 THEN NULL WHEN - 21 THEN - + 61 WHEN 78 THEN - + COUNT ( * ) * - 65 + - 16 END AS col1, - 27 - - + NULLIF ( + + 92, + 22 + + 89 )
----
NULL
65

query I rowsort
SELECT DISTINCT + - 80
----
-80

query I rowsort
SELECT DISTINCT + - 69 * 85 * + 82 + + 26 - 14 AS col1
----
-480918

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT CASE - 35 WHEN - + ( - COUNT( * ) ) - - 94 * 18 THEN - 35 END AS col0, + 79 * + - ( + MIN( + 57 ) ) + 2 * - COALESCE ( - - 16, - + COUNT( * ) ) AS col0
----
NULL
-4535

skipif mysql # not compatible
query II rowsort label-3616
SELECT CASE - 35 WHEN - + ( - COUNT ( * ) ) - - 94 * 18 THEN - 35 END AS col0, + 79 * + - ( + MIN ( + 57 ) ) + 2 * - COALESCE ( - - 16, - + COUNT ( * ) ) AS col0
----
NULL
-4535

query I rowsort
SELECT DISTINCT 63 * + 24 AS col0
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT DISTINCT - COUNT( ALL - + 16 ) / + CAST( NULL AS SIGNED ) + - CASE + + 98 WHEN - 96 / COUNT( * ) THEN + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT - COUNT ( ALL - + 16 ) / + CAST ( NULL AS INTEGER ) + - CASE + + 98 WHEN - 96 / COUNT ( * ) THEN + 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT + 87 + + 31 - 63 * - COUNT( DISTINCT 67 ) AS col2, 24 * - + SUM( + 24 ) * 89 + + + 69 + + 17 + - 91 * + 27
----
181
-53635

skipif mysql # not compatible
query II rowsort label-3619
SELECT + 87 + + 31 - 63 * - COUNT ( DISTINCT 67 ) AS col2, 24 * - + SUM ( + 24 ) * 89 + + + 69 + + 17 + - 91 * + 27
----
181
-53635

query I rowsort
SELECT ALL 98 * 72
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT MAX( - - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3621
SELECT MAX ( - - 39 )
----
39

query I rowsort
SELECT ALL - 46 * - + ( + + 39 )
----
1794

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT - 51 DIV - - 79 * + ( + 53 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 51 / - - 79 * + ( + 53 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT + 56 DIV + 4
----
14

skipif mysql # not compatible
query I rowsort label-3624
SELECT + 56 / + 4
----
14

query I rowsort
SELECT 83 * + 92 + - - 2 AS col2
----
7638

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT COUNT( * ) * + - 46 - + ( + 57 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-3626
SELECT COUNT ( * ) * + - 46 - + ( + 57 ) AS col1
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT + 44 + CAST( NULL AS SIGNED ) + + 55 + + 60 + - ( + ( - 31 ) ) * + 69 * - - 77 * + + 72 * - COUNT( * ) + - 65, - 24 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-3627
SELECT + 44 + CAST ( NULL AS INTEGER ) + + 55 + + 60 + - ( + ( - 31 ) ) * + 69 * - - 77 * + + 72 * - COUNT ( * ) + - 65, - 24 AS col1
----
NULL
-24

query I rowsort
SELECT + ( - 99 ) AS col2
----
-99

query I rowsort
SELECT - NULLIF ( - 52, - + 21 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL 85 + + CAST( - NULLIF ( - 46, - 27 ) AS SIGNED )
----
131

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 85 + + CAST ( - NULLIF ( - 46, - 27 ) AS INTEGER )
----
131

query I rowsort
SELECT + 67 + 8
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT + + MAX( DISTINCT + 17 ) * - COUNT( * ) + 16 * 71 AS col0, + COUNT( * ) AS col1
----
1119
1

skipif mysql # not compatible
query II rowsort label-3632
SELECT + + MAX ( DISTINCT + 17 ) * - COUNT ( * ) + 16 * 71 AS col0, + COUNT ( * ) AS col1
----
1119
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT DISTINCT COUNT( * ) * 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT COUNT ( * ) * 43 AS col2
----
43

query I rowsort
SELECT ALL - 87 + 47
----
-40

query I rowsort
SELECT - - 95 AS col2
----
95

query I rowsort
SELECT - - 76 + + 20 + 88 + 40 * + + 4 + - 44
----
300

query I rowsort
SELECT + + 7 * + - 15 AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3638
SELECT - ( + - 84 ) + + COUNT( - 13 ) AS col2, + 11 + CAST( NULL AS DECIMAL ) * 57 AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-3638
SELECT - ( + - 84 ) + + COUNT ( - 13 ) AS col2, + 11 + CAST ( NULL AS REAL ) * 57 AS col1
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL 44 + 92 * ( COUNT( DISTINCT + 1 ) )
----
136

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL 44 + 92 * ( COUNT ( DISTINCT + 1 ) )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT + CASE - 91 WHEN + + 66 + + 18 + 75 THEN NULL WHEN - ( + 66 ) THEN - 62 * 83 + COUNT( * ) + - 20 / - 50 + + - 12 + - 59 * + + 97 * + 51 - + - 78 + - 31 - 69 + 93 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT + CASE - 91 WHEN + + 66 + + 18 + 75 THEN NULL WHEN - ( + 66 ) THEN - 62 * 83 + COUNT ( * ) + - 20 / - 50 + + - 12 + - 59 * + + 97 * + 51 - + - 78 + - 31 - 69 + 93 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3641
SELECT ALL ( - + NULLIF ( - NULLIF ( 79, - CAST( NULL AS DECIMAL ) * - 0 ), - COUNT( * ) ) ) * - - 88 + - 1
----
6951

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL ( - + NULLIF ( - NULLIF ( 79, - CAST ( NULL AS REAL ) * - 0 ), - COUNT ( * ) ) ) * - - 88 + - 1
----
6951

query I rowsort
SELECT DISTINCT + 94 + 93 col1
----
187

query I rowsort
SELECT ALL + 61 - + 25
----
36

query I rowsort
SELECT - - ( CASE + 75 WHEN + 92 THEN NULL ELSE - 47 END )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT - - ( - - 92 ) * - + COUNT( DISTINCT + 3 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3645
SELECT - - ( - - 92 ) * - + COUNT ( DISTINCT + 3 ) AS col0
----
-92

query I rowsort
SELECT + - 95 * 26 + - 98 AS col1
----
-2568

query I rowsort
SELECT + + 6 * + - 53 col1
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - + COUNT( * ) * - 51 * + - 37 * + + 67 AS col2
----
-126429

skipif mysql # not compatible
query I rowsort label-3648
SELECT - + COUNT ( * ) * - 51 * + - 37 * + + 67 AS col2
----
-126429

query I rowsort
SELECT DISTINCT + - 69 AS col2
----
-69

query I rowsort
SELECT ALL + 20 * - - 6
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - COUNT( * ) * COUNT( ALL + 10 ) + - 60 + - 20 * + - 59 * + 49 + + ( - 2 ) - + 42 + + 37 + - 99
----
57653

skipif mysql # not compatible
query I rowsort label-3651
SELECT - COUNT ( * ) * COUNT ( ALL + 10 ) + - 60 + - 20 * + - 59 * + 49 + + ( - 2 ) - + 42 + + 37 + - 99
----
57653

query I rowsort
SELECT ALL - 50 * - + 89
----
4450

query II rowsort
SELECT - 28 + ( - 90 ) AS col2, - 35 * - 61
----
-118
2135

query I rowsort
SELECT DISTINCT - 77 * + 96 AS col0
----
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT + CAST( 77 AS SIGNED ) col0
----
77

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT + CAST ( 77 AS INTEGER ) col0
----
77

query I rowsort
SELECT ( + + 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3657
SELECT DISTINCT + MAX( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT + MAX ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 96 * - 77 + 91 + + ( 57 ) + 77
----
-7167

query II rowsort
SELECT + NULLIF ( - 41, + 9 + + + 4 / - 8 ), 73 AS col2
----
-41
73

query I rowsort
SELECT - 45 * - + 68
----
3060

query I rowsort
SELECT + 50 + + + 61
----
111

query I rowsort
SELECT ( + 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT NULLIF ( - 49, - COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3663
SELECT NULLIF ( - 49, - COUNT ( * ) )
----
-49

query I rowsort
SELECT ALL 56 * + ( - 56 ) + - 65 AS col2
----
-3201

query I rowsort
SELECT ALL - 8 * + + 7 + + 63
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3666
SELECT + COALESCE ( 6, + - 30 * - - 51 - - 14, COUNT( * ) DIV + + 19 + - 38 + + 50 + + + 24 + + 73 + 81 * - - 94 + - COUNT( * ) + + 77 DIV ( + SUM( ALL ( + 23 ) ) ) + - - 61 + - CAST( NULL AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-3666
SELECT + COALESCE ( 6, + - 30 * - - 51 - - 14, COUNT ( * ) / + + 19 + - 38 + + 50 + + + 24 + + 73 + 81 * - - 94 + - COUNT ( * ) + + 77 / ( + SUM ( ALL ( + 23 ) ) ) + - - 61 + - CAST ( NULL AS INTEGER ) )
----
6

query I rowsort
SELECT ALL 99 * + + 93 * 76 + - - 45
----
699777

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT DISTINCT 10 AS col0, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT 10 AS col0, COUNT ( * )
----
10
1

query I rowsort
SELECT ALL 49 * 28
----
1372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT 41 * + 44 * + - CASE - 62 WHEN 3 * - - 35 + - + COALESCE ( + MAX( DISTINCT - 26 ), - MAX( + ( 76 ) ) + - - CAST( NULL AS SIGNED ) + - 51 + - 88 ) + - COUNT( * ) * - 32 + 59 + + 26 THEN + + 26 * + 78 ELSE NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT 41 * + 44 * + - CASE - 62 WHEN 3 * - - 35 + - + COALESCE ( + MAX ( DISTINCT - 26 ), - MAX ( + ( 76 ) ) + - - CAST ( NULL AS INTEGER ) + - 51 + - 88 ) + - COUNT ( * ) * - 32 + 59 + + 26 THEN + + 26 * + 78 ELSE NULL END * 7
----
NULL

query I rowsort
SELECT + 49 * - 3
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT - 58 DIV - 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 58 / - 58 AS col1
----
1

query I rowsort
SELECT DISTINCT ( 85 ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3674
SELECT ALL + CAST( + 40 AS SIGNED ) - + - 66, 25 AS col1
----
106
25

skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL + CAST ( + 40 AS INTEGER ) - + - 66, 25 AS col1
----
106
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL - CASE + - 39 WHEN - 56 THEN + 82 - + - 8 WHEN - CAST( - 15 AS SIGNED ) + - 71 + + 35 * - 27 * - + 99 THEN NULL WHEN - 69 * + 43 THEN + 6 * - 37 ELSE NULL END * - 99 + 47 + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - CASE + - 39 WHEN - 56 THEN + 82 - + - 8 WHEN - CAST ( - 15 AS INTEGER ) + - 71 + + 35 * - 27 * - + 99 THEN NULL WHEN - 69 * + 43 THEN + 6 * - 37 ELSE NULL END * - 99 + 47 + - 52
----
NULL

query II rowsort
SELECT - + COALESCE ( - 58, 80 ) AS col0, 15 AS col2
----
58
15

query I rowsort
SELECT - 91 + - 6
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT 58 + - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3678
SELECT 58 + - COUNT ( * ) AS col0
----
57

query I rowsort
SELECT - 74 - - 73 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL COUNT( * ) * + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL COUNT ( * ) * + - 97
----
-97

query I rowsort
SELECT ALL - + 85 AS col1
----
-85

query II rowsort
SELECT 27 + 91 * 74, 39 col2
----
6761
39

query I rowsort
SELECT ALL - + 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - SUM( DISTINCT 87 ) * 91 * - - 96 + + 17 * + 44 AS col2
----
-759284

skipif mysql # not compatible
query I rowsort label-3684
SELECT - SUM ( DISTINCT 87 ) * 91 * - - 96 + + 17 * + 44 AS col2
----
-759284

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT ALL + ( + 65 ) DIV - - 46 col2
----
1

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + ( + 65 ) / - - 46 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3686
SELECT 26 DIV + 8 AS col2, - COUNT( * ) AS col2
----
3
-1

skipif mysql # not compatible
query II rowsort label-3686
SELECT 26 / + 8 AS col2, - COUNT ( * ) AS col2
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - COUNT( + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - COUNT ( + 32 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT DISTINCT + 1 + + 12 DIV 72 * + 77
----
1

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + 1 + + 12 / 72 * + 77
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT ( - + 75 ) * COALESCE ( 90, 48 DIV - 96 ) * - 60
----
405000

skipif mysql # not compatible
query I rowsort label-3689
SELECT ( - + 75 ) * COALESCE ( 90, 48 / - 96 ) * - 60
----
405000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT CAST( NULL AS SIGNED ) / 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT CAST ( NULL AS INTEGER ) / 99 AS col1
----
NULL

query I rowsort
SELECT 52 * - 78 AS col0
----
-4056

query II rowsort
SELECT 65 * - 83 + - - 44 + + ( - 44 ) + - + 72 AS col2, 92
----
-5467
92

query I rowsort
SELECT DISTINCT + ( 70 ) * + - 84 * - ( + 87 ) AS col1
----
511560

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL + 56 + + COUNT( * ) + - - 31 + + - COUNT( * ) + - - COUNT( * ) * - 70 * + 11 AS col1
----
-683

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + 56 + + COUNT ( * ) + - - 31 + + - COUNT ( * ) + - - COUNT ( * ) * - 70 * + 11 AS col1
----
-683

query I rowsort
SELECT - 96 * - - 96 + + + 26
----
-9190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3696
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 65, - 83 AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-3696
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 65, - 83 AS col1
----
NULL
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT ALL - ( MIN( DISTINCT - 33 ) ) * + 7 col2, 82
----
231
82

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL - ( MIN ( DISTINCT - 33 ) ) * + 7 col2, 82
----
231
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + 84 + COUNT( ALL - 33 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + 84 + COUNT ( ALL - 33 ) AS col1
----
85

query II rowsort
SELECT DISTINCT + 11 * - - 66, - 5 AS col1
----
726
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT 67 - 18 DIV + 77
----
67

skipif mysql # not compatible
query I rowsort label-3700
SELECT 67 - 18 / + 77
----
67

query I rowsort
SELECT 41 + + 35 AS col2
----
76

query I rowsort
SELECT + 51 * 65 - - - 31 - 46
----
3238

query I rowsort
SELECT - ( - 40 )
----
40

query II rowsort
SELECT - 27, + 68 AS col0
----
-27
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL ( - CASE - 82 WHEN - 13 * + 73 + 33 + 23 * - 18 THEN - CASE 67 WHEN + COALESCE ( - + 57, 23 + + COUNT( * ) + - - 65 + + COUNT( * ) / - + 67 + - 23 * 25 / + - 34 * 19 * + 29 ) THEN ( - 92 ) / 90 END WHEN - 36 * 51 + + 52 * + 63 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL ( - CASE - 82 WHEN - 13 * + 73 + 33 + 23 * - 18 THEN - CASE 67 WHEN + COALESCE ( - + 57, 23 + + COUNT ( * ) + - - 65 + + COUNT ( * ) / - + 67 + - 23 * 25 / + - 34 * 19 * + 29 ) THEN ( - 92 ) / 90 END WHEN - 36 * 51 + + 52 * + 63 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - + 18 - - 50 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - + 18 - - 50 * COUNT ( * )
----
32

query II rowsort
SELECT ALL 71 AS col1, 85 AS col2
----
71
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT ALL + CAST( + 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + CAST ( + 56 AS INTEGER ) AS col2
----
56

query I rowsort
SELECT 99 * + 99 + + - 26 AS col0
----
9775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3710
SELECT - COUNT( * ) + - + 31 + - CAST( - - 44 AS SIGNED ) + NULLIF ( 1, + ( MIN( DISTINCT + 17 ) ) * - + 25 + - 11 ) AS col0, + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-3710
SELECT - COUNT ( * ) + - + 31 + - CAST ( - - 44 AS INTEGER ) + NULLIF ( 1, + ( MIN ( DISTINCT + 17 ) ) * - + 25 + - 11 ) AS col0, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
-75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + 55 + - + 76 * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + 55 + - + 76 * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT ALL + 37, COUNT( * ) * - + 91 + 27 * 76 AS col2
----
37
1961

skipif mysql # not compatible
query II rowsort label-3712
SELECT ALL + 37, COUNT ( * ) * - + 91 + 27 * 76 AS col2
----
37
1961

query I rowsort
SELECT - + 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT - 50 * - + 40 AS col1, + 29 * ( - MAX( 48 ) )
----
2000
-1392

skipif mysql # not compatible
query II rowsort label-3714
SELECT - 50 * - + 40 AS col1, + 29 * ( - MAX ( 48 ) )
----
2000
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - MAX( DISTINCT + - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3715
SELECT - MAX ( DISTINCT + - 41 )
----
41

query I rowsort
SELECT + ( - 49 ) + 51
----
2

query II rowsort
SELECT ALL - 14, 93 AS col0
----
-14
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3718
SELECT + 98 * ( - + MAX( DISTINCT - - 34 ) ) / - 99 + + MAX( ALL - 91 ) + + 71 + + CAST( NULL AS DECIMAL ) + + - COUNT( DISTINCT 35 ) + - 85 * - 23 * 88 + + 7 / - + 42 AS col0, - 38 + + - 40
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-3718
SELECT + 98 * ( - + MAX ( DISTINCT - - 34 ) ) / - 99 + + MAX ( ALL - 91 ) + + 71 + + CAST ( NULL AS REAL ) + + - COUNT ( DISTINCT 35 ) + - 85 * - 23 * 88 + + 7 / - + 42 AS col0, - 38 + + - 40
----
NULL
-78

query II rowsort
SELECT - 34 AS col0, - 6 AS col2
----
-34
-6

query I rowsort
SELECT + 72 + + 91
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + 16 * + COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 16 * + COUNT ( * ) col0
----
16

query II rowsort
SELECT ALL 95 AS col0, 33 * + + ( - 56 )
----
95
-1848

query I rowsort
SELECT DISTINCT + ( - ( - 97 ) ) * 49
----
4753

query I rowsort
SELECT - + ( - - 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT - CAST( + - CASE + 66 WHEN - MIN( - 98 ) THEN 33 + - ( 95 ) * - + 26 WHEN + + 95 * + 29 / ( - + 34 ) + + 78 THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT - CAST ( + - CASE + 66 WHEN - MIN ( - 98 ) THEN 33 + - ( 95 ) * - + 26 WHEN + + 95 * + 29 / ( - + 34 ) + + 78 THEN NULL END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 41, - ( - + 21 ) col1
----
41
21

query II rowsort
SELECT 36 AS col0, ( + - 9 )
----
36
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL NULLIF ( - COUNT( * ), - MAX( - 73 ) ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL NULLIF ( - COUNT ( * ), - MAX ( - 73 ) ) + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT COUNT( * ) * + COALESCE ( + 55, + 89, + ( - + 17 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3729
SELECT COUNT ( * ) * + COALESCE ( + 55, + 89, + ( - + 17 ) ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT CAST( CASE + 5 WHEN - 98 * + - NULLIF ( + 27, + - NULLIF ( 96, - 30 ) + + - 22 ) + + ( - COUNT( * ) ) + + COUNT( * ) + 95 + + CASE 20 WHEN + 59 THEN - COUNT( * ) * + 7 * - COALESCE ( 61, 65 + ( - ( COUNT( * ) ) ), - 55 ) ELSE NULL END + 13 * 11 * - NULLIF ( + COUNT( * ) * 73 + COUNT( ALL 44 ), ( - 84 ) * 54 + 15 * + 93 ) THEN NULL ELSE + 71 END AS SIGNED ) * + 70
----
4970

skipif mysql # not compatible
query I rowsort label-3730
SELECT CAST ( CASE + 5 WHEN - 98 * + - NULLIF ( + 27, + - NULLIF ( 96, - 30 ) + + - 22 ) + + ( - COUNT ( * ) ) + + COUNT ( * ) + 95 + + CASE 20 WHEN + 59 THEN - COUNT ( * ) * + 7 * - COALESCE ( 61, 65 + ( - ( COUNT ( * ) ) ), - 55 ) ELSE NULL END + 13 * 11 * - NULLIF ( + COUNT ( * ) * 73 + COUNT ( ALL 44 ), ( - 84 ) * 54 + 15 * + 93 ) THEN NULL ELSE + 71 END AS INTEGER ) * + 70
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT COUNT( - 65 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3731
SELECT COUNT ( - 65 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT - 70 * - + SUM( - 76 ) + ( 59 ) * + 96 AS col0
----
344

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - 70 * - + SUM ( - 76 ) + ( 59 ) * + 96 AS col0
----
344

query I rowsort
SELECT + CASE + 18 WHEN 19 THEN 45 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT MIN( DISTINCT - 0 ), 70 AS col0
----
0
70

skipif mysql # not compatible
query II rowsort label-3734
SELECT MIN ( DISTINCT - 0 ), 70 AS col0
----
0
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT MIN( 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3735
SELECT MIN ( 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT - 44 * - SUM( DISTINCT + COALESCE ( - CASE - - 23 WHEN - + NULLIF ( + 46, + + 66 / + + COALESCE ( + + ( - CASE + 39 WHEN - 12 - NULLIF ( - - 77, - 99 / 98 + 2 ) THEN NULL WHEN + + 11 + 74 THEN - 63 WHEN 87 THEN 61 ELSE 49 END ), - 50 ) * + 82 ) THEN NULL WHEN 50 * + 70 + 31 THEN - 75 ELSE 93 END, - ( 27 ) * - 70 ) ) AS col1
----
-4092

skipif mysql # not compatible
query I rowsort label-3736
SELECT - 44 * - SUM ( DISTINCT + COALESCE ( - CASE - - 23 WHEN - + NULLIF ( + 46, + + 66 / + + COALESCE ( + + ( - CASE + 39 WHEN - 12 - NULLIF ( - - 77, - 99 / 98 + 2 ) THEN NULL WHEN + + 11 + 74 THEN - 63 WHEN 87 THEN 61 ELSE 49 END ), - 50 ) * + 82 ) THEN NULL WHEN 50 * + 70 + 31 THEN - 75 ELSE 93 END, - ( 27 ) * - 70 ) ) AS col1
----
-4092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT - 61 + MIN( - 78 ) DIV 81 + 50 col2
----
-11

skipif mysql # not compatible
query I rowsort label-3737
SELECT - 61 + MIN ( - 78 ) / 81 + 50 col2
----
-11

query I rowsort
SELECT + 85 * + 25 + + 88 AS col2
----
2213

query I rowsort
SELECT + 8 * + - 95 AS col2
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL - 26 * MIN( DISTINCT - 99 ) AS col0
----
2574

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 26 * MIN ( DISTINCT - 99 ) AS col0
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT + 25 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT + 25 / - 44 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT DISTINCT 49 DIV - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT 49 / - + 39
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( + 99, - - 41 ) AS col1
----
99

query I rowsort
SELECT DISTINCT + + 20 * 48
----
960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3745
SELECT ALL + - ( - 24 ) * + CAST( NULL AS DECIMAL ) * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + - ( - 24 ) * + CAST ( NULL AS REAL ) * 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + + MIN( - 16 ) - 11 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3746
SELECT + + MIN ( - 16 ) - 11 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT - - 62 * COUNT( * ), 29 AS col0
----
62
29

skipif mysql # not compatible
query II rowsort label-3747
SELECT - - 62 * COUNT ( * ), 29 AS col0
----
62
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - + COUNT( * ) * + ( - - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3748
SELECT - + COUNT ( * ) * + ( - - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - COALESCE ( - - COUNT( * ), + 43 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3749
SELECT - COALESCE ( - - COUNT ( * ), + 43 ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - 96 DIV - 43 col2
----
2

skipif mysql # not compatible
query I rowsort label-3750
SELECT - 96 / - 43 col2
----
2

query II rowsort
SELECT - 9 - - 79 col1, 19 AS col1
----
70
19

query I rowsort
SELECT ALL - 77 col0
----
-77

query I rowsort
SELECT - 23 - 88 * - 48 col1
----
4201

query I rowsort
SELECT DISTINCT - - 36 + + 86
----
122

query I rowsort
SELECT - + 42
----
-42

query I rowsort
SELECT ALL - 97 + + - 35 AS col2
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3757
SELECT - - SUM( DISTINCT - 63 ) + + 53 - 9 * - 9, - 1 - - 45 DIV - 40 + - COUNT( * ) + - - ( 7 ) - - 33 col0
----
71
37

skipif mysql # not compatible
query II rowsort label-3757
SELECT - - SUM ( DISTINCT - 63 ) + + 53 - 9 * - 9, - 1 - - 45 / - 40 + - COUNT ( * ) + - - ( 7 ) - - 33 col0
----
71
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3758
SELECT - + CAST( - + 79 AS SIGNED ) DIV + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3758
SELECT - + CAST ( - + 79 AS INTEGER ) / + COUNT ( * )
----
79

query I rowsort
SELECT - 28 + + + 8 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT + COUNT( * ) - - - 10 * + 27 + + CAST( + NULLIF ( - COUNT( * ), + 88 / - ( 17 ) + + COUNT( * ) - + - 36 ) AS SIGNED ) - + 60
----
-330

skipif mysql # not compatible
query I rowsort label-3760
SELECT + COUNT ( * ) - - - 10 * + 27 + + CAST ( + NULLIF ( - COUNT ( * ), + 88 / - ( 17 ) + + COUNT ( * ) - + - 36 ) AS INTEGER ) - + 60
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + COUNT ( * ) * - - 9
----
9

query I rowsort
SELECT - 4 + + 61 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + 10 - + - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3763
SELECT + 10 - + - COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT + COUNT( * ) * + + 12
----
12

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + COUNT ( * ) * + + 12
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT ALL 92 + + 59 + 16 * - 53 * - + 7 + + 77 - 43 + + - COUNT( * ) AS col2, - 27 AS col0
----
6120
-27

skipif mysql # not compatible
query II rowsort label-3765
SELECT ALL 92 + + 59 + 16 * - 53 * - + 7 + + 77 - 43 + + - COUNT ( * ) AS col2, - 27 AS col0
----
6120
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT - SUM( - - 4 ) + 39 AS col1, + COUNT( * ) * + MIN( - COALESCE ( + 61, - 96 + 33, 62 ) ) * MAX( - 83 ) + - 78
----
35
4985

skipif mysql # not compatible
query II rowsort label-3766
SELECT - SUM ( - - 4 ) + 39 AS col1, + COUNT ( * ) * + MIN ( - COALESCE ( + 61, - 96 + 33, 62 ) ) * MAX ( - 83 ) + - 78
----
35
4985

query I rowsort
SELECT ALL + 29 * - 39
----
-1131

query I rowsort
SELECT DISTINCT + 74 col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT ALL + 16 AS col0, - COUNT( * ) AS col2
----
16
-1

skipif mysql # not compatible
query II rowsort label-3769
SELECT ALL + 16 AS col0, - COUNT ( * ) AS col2
----
16
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3770
SELECT ALL + COUNT( * ) DIV - 59 + - 65, 40 AS col0
----
-65
40

skipif mysql # not compatible
query II rowsort label-3770
SELECT ALL + COUNT ( * ) / - 59 + - 65, 40 AS col0
----
-65
40

onlyif mysql # DIV for integer division: 
query II rowsort label-3771
SELECT + 90, 11 DIV - 79 AS col1
----
90
0

skipif mysql # not compatible
query II rowsort label-3771
SELECT + 90, 11 / - 79 AS col1
----
90
0

query I rowsort
SELECT DISTINCT + 3 AS col0
----
3

query I rowsort
SELECT + ( ( + 9 ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 20 + - COUNT ( * )
----
19

query I rowsort
SELECT ALL 26 * + 49 AS col0
----
1274

query I rowsort
SELECT ( + + 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT DISTINCT - CASE 96 WHEN + 17 + + 1 THEN NULL ELSE - 9 * + 3 - - COALESCE ( - - 23, ( 6 ) + - 99 - - + 65 - - 99 * + + 74, - 7 / - - COUNT( * ) + - SUM( + 95 ) ) / CASE - CAST( - 15 AS SIGNED ) WHEN - ( + + CAST( - 66 AS SIGNED ) ) THEN - SUM( DISTINCT - ( - 20 ) ) END END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT - CASE 96 WHEN + 17 + + 1 THEN NULL ELSE - 9 * + 3 - - COALESCE ( - - 23, ( 6 ) + - 99 - - + 65 - - 99 * + + 74, - 7 / - - COUNT ( * ) + - SUM ( + 95 ) ) / CASE - CAST ( - 15 AS INTEGER ) WHEN - ( + + CAST ( - 66 AS INTEGER ) ) THEN - SUM ( DISTINCT - ( - 20 ) ) END END * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT 55 * - 83 - - - 31 + COUNT( * ) AS col2
----
-4595

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT 55 * - 83 - - - 31 + COUNT ( * ) AS col2
----
-4595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL 90 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL 90 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT 94 DIV - 75 * - 31 DIV + 23 + + 75
----
76

skipif mysql # not compatible
query I rowsort label-3780
SELECT 94 / - 75 * - 31 / + 23 + + 75
----
76

query I rowsort
SELECT DISTINCT + 35 * + 97
----
3395

query II rowsort
SELECT ALL + + 61 AS col1, + 4 * + 71
----
61
284

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3783
SELECT + 35 * - 56 * + - 13 / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT + 35 * - 56 * + - 13 / CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT + + 91 - CAST( NULL AS SIGNED ) / 12 + + 65 * 72 * + - 5 * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT + + 91 - CAST ( NULL AS INTEGER ) / 12 + + 65 * 72 * + - 5 * + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3785
SELECT + 73 AS col1, 54 - CAST( CASE + 44 WHEN + 49 THEN - 11 * - 60 - - 93 END AS SIGNED ) + - - ( 53 ) * - - 93
----
73
NULL

skipif mysql # not compatible
query II rowsort label-3785
SELECT + 73 AS col1, 54 - CAST ( CASE + 44 WHEN + 49 THEN - 11 * - 60 - - 93 END AS INTEGER ) + - - ( 53 ) * - - 93
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + + COUNT( * ) + + COUNT( * ) + + - 18 + - + 7 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3786
SELECT + + COUNT ( * ) + + COUNT ( * ) + + - 18 + - + 7 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3787
SELECT ALL - 53 / 91 + - 72 + + CAST( NULL AS SIGNED ) + - 84 * + 68 * - - COUNT( * ) + - + 26 col0, 64 - + 50 AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL - 53 / 91 + - 72 + + CAST ( NULL AS INTEGER ) + - 84 * + 68 * - - COUNT ( * ) + - + 26 col0, 64 - + 50 AS col0
----
NULL
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT - COUNT( * ) + - + CAST( - 20 AS SIGNED ) + + COUNT( * ) + + - 72 + - 86
----
-138

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( * ) + - + CAST ( - 20 AS INTEGER ) + + COUNT ( * ) + + - 72 + - 86
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3789
SELECT DISTINCT CAST( - 45 AS SIGNED ) DIV 30 AS col1, CASE + - 33 WHEN + 2 * + + 31 - + - 29 THEN 46 + - 9 - + - COUNT( * ) + - + 79 * - 68 DIV + + COUNT( * ) WHEN + 11 THEN NULL ELSE - 86 + COUNT( * ) * - 81 END AS col0
----
-1
-167

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT CAST ( - 45 AS INTEGER ) / 30 AS col1, CASE + - 33 WHEN + 2 * + + 31 - + - 29 THEN 46 + - 9 - + - COUNT ( * ) + - + 79 * - 68 / + + COUNT ( * ) WHEN + 11 THEN NULL ELSE - 86 + COUNT ( * ) * - 81 END AS col0
----
-1
-167

query I rowsort
SELECT + 93 + - + 15 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT ALL 68 DIV - - 52
----
1

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 68 / - - 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL NULLIF ( + 96, + CASE + + 27 WHEN 45 THEN + 50 - 89 * + COUNT( * ) ELSE NULL END ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL NULLIF ( + 96, + CASE + + 27 WHEN 45 THEN + 50 - 89 * + COUNT ( * ) ELSE NULL END ) AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT - - 6 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - - 6 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT + CAST( - - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-3794
SELECT + CAST ( - - 83 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT - 68 + + 88 * CASE 17 WHEN + 72 * - COUNT( * ) THEN MAX( ALL + 58 ) WHEN - 30 THEN - 69 - - + 99 - - 64 / - + 55 ELSE NULL END + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT - 68 + + 88 * CASE 17 WHEN + 72 * - COUNT ( * ) THEN MAX ( ALL + 58 ) WHEN - 30 THEN - 69 - - + 99 - - 64 / - + 55 ELSE NULL END + 82
----
NULL

query I rowsort
SELECT - 57 + + - 12 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT - CAST( + - 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT - CAST ( + - 27 AS INTEGER ) AS col1
----
27

query I rowsort
SELECT DISTINCT 69 * 49 * 99 col0
----
334719

query I rowsort
SELECT ALL - 69 + - 24 + - 4
----
-97

query I rowsort
SELECT - 98 * + 42
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL COALESCE ( + 65, 85 + - CASE + + CASE - 0 WHEN - 12 THEN NULL WHEN - 67 THEN + - 76 + 18 END WHEN + ( 2 ) * ( CASE WHEN - 13 NOT IN ( 10 / + + 81 * 71 * 81, 66 + - - 47 * 86 ) THEN + 67 * CAST( - 72 / - CASE 40 WHEN ( + MAX( 63 ) ) + + 78 THEN NULL WHEN 33 + 50 THEN NULL ELSE 59 END AS SIGNED ) ELSE NULL END ) * - 67 + COUNT( DISTINCT + 39 ) THEN - 45 * + 53 + 80 END, 75 )
----
65

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL COALESCE ( + 65, 85 + - CASE + + CASE - 0 WHEN - 12 THEN NULL WHEN - 67 THEN + - 76 + 18 END WHEN + ( 2 ) * ( CASE WHEN - 13 NOT IN ( 10 / + + 81 * 71 * 81, 66 + - - 47 * 86 ) THEN + 67 * CAST ( - 72 / - CASE 40 WHEN ( + MAX ( 63 ) ) + + 78 THEN NULL WHEN 33 + 50 THEN NULL ELSE 59 END AS INTEGER ) ELSE NULL END ) * - 67 + COUNT ( DISTINCT + 39 ) THEN - 45 * + 53 + 80 END, 75 )
----
65

query I rowsort
SELECT DISTINCT - 88 + - 48
----
-136

query I rowsort
SELECT - 81 col2
----
-81

query I rowsort
SELECT DISTINCT 82 AS col2
----
82

query I rowsort
SELECT 25 * - - 24 * - - 74 * - + 74 AS col1
----
-3285600

query I rowsort
SELECT 61 * + 28 AS col1
----
1708

query I rowsort
SELECT 35 - + - 76
----
111

query I rowsort
SELECT 44 - - - 29
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT 80 DIV + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3809
SELECT 80 / + 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 51 * - 91 * - COUNT( * )
----
4641

skipif mysql # not compatible
query I rowsort label-3810
SELECT 51 * - 91 * - COUNT ( * )
----
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MAX( ALL - + 64 ) * + 76 + - 36
----
-4900

skipif mysql # not compatible
query I rowsort label-3811
SELECT MAX ( ALL - + 64 ) * + 76 + - 36
----
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT - NULLIF ( - 0, - 54 * - SUM( ALL + + 74 ) + - COALESCE ( + 5, - 39 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT - NULLIF ( - 0, - 54 * - SUM ( ALL + + 74 ) + - COALESCE ( + 5, - 39 ) )
----
0

query I rowsort
SELECT ALL - 98 * - ( + 86 ) col2
----
8428

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT ALL 79 DIV NULLIF ( + + ( - COALESCE ( - + 42, - 81 ) ), - 89 + - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL 79 / NULLIF ( + + ( - COALESCE ( - + 42, - 81 ) ), - 89 + - 80 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT + 76 * - - 39 + - 85 DIV - 44 AS col2
----
2965

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 76 * - - 39 + - 85 / - 44 AS col2
----
2965

query I rowsort
SELECT DISTINCT - NULLIF ( - 2, - 87 - - + 13 + ( - 89 ) ) col0
----
2

query II rowsort
SELECT ALL - ( COALESCE ( - 7, 73 ) ), + 1 AS col0
----
7
1

query I rowsort
SELECT DISTINCT - - 54 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT - 57 DIV + 31 + - - 41
----
40

skipif mysql # not compatible
query I rowsort label-3819
SELECT - 57 / + 31 + - - 41
----
40

query I rowsort
SELECT DISTINCT - - 67
----
67

query I rowsort
SELECT ALL - + 95 col1
----
-95

query I rowsort
SELECT DISTINCT - + 34 AS col0
----
-34

query I rowsort
SELECT + - 71 AS col2
----
-71

query I rowsort
SELECT ALL - + 52
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3825
SELECT DISTINCT 56 + + 89 AS col1, COALESCE ( 73, - MAX( 15 ) * - - 81, 90 ) - 37 AS col1
----
145
36

skipif mysql # not compatible
query II rowsort label-3825
SELECT DISTINCT 56 + + 89 AS col1, COALESCE ( 73, - MAX ( 15 ) * - - 81, 90 ) - 37 AS col1
----
145
36

query I rowsort
SELECT ALL - 5 + 17
----
12

query II rowsort
SELECT ALL + 41 + 30, NULLIF ( - 3, - 46 ) * + 36 + - 78 AS col1
----
71
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + ( 1 ) + - + 97 + 57 + + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + ( 1 ) + - + 97 + 57 + + COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT 81 - + - 67 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - COUNT( + - 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - COUNT ( + - 77 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT 71 * + 30 AS col1, NULLIF ( + + COUNT( * ), + - MAX( - NULLIF ( + 57, + 11 ) ) ) + - 27 - CASE + 39 WHEN - - 55 + - 27 * + + 44 THEN 8 WHEN + + 64 THEN 57 END AS col2
----
2130
NULL

skipif mysql # not compatible
query II rowsort label-3831
SELECT 71 * + 30 AS col1, NULLIF ( + + COUNT ( * ), + - MAX ( - NULLIF ( + 57, + 11 ) ) ) + - 27 - CASE + 39 WHEN - - 55 + - 27 * + + 44 THEN 8 WHEN + + 64 THEN 57 END AS col2
----
2130
NULL

query I rowsort
SELECT DISTINCT + 47 + - + 29 * - 23 * + 72
----
48071

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL COALESCE ( - COUNT( * ), + 3 ) + - 31 * COALESCE ( + - 41, + + ( 5 ) )
----
1270

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL COALESCE ( - COUNT ( * ), + 3 ) + - 31 * COALESCE ( + - 41, + + ( 5 ) )
----
1270

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT ALL 68 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL 68 / 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3835
SELECT COALESCE ( - ( - - CAST( NULL AS SIGNED ) ), - - CASE WHEN + 96 IS NOT NULL THEN NULL ELSE - 85 DIV + + 25 END * COALESCE ( 65, + + 86 * - + 77 * CAST( NULL AS SIGNED ) * - - 62 + + 61 - - COUNT( * ) DIV - 13 * - SUM( - + ( - - NULLIF ( - 92, + + 93 * - + 44 * - 88 ) ) ) - - + 26 DIV - 0 ) + - 53, - ( + 5 ) ) - 78
----
-83

skipif mysql # not compatible
query I rowsort label-3835
SELECT COALESCE ( - ( - - CAST ( NULL AS INTEGER ) ), - - CASE WHEN + 96 IS NOT NULL THEN NULL ELSE - 85 / + + 25 END * COALESCE ( 65, + + 86 * - + 77 * CAST ( NULL AS INTEGER ) * - - 62 + + 61 - - COUNT ( * ) / - 13 * - SUM ( - + ( - - NULLIF ( - 92, + + 93 * - + 44 * - 88 ) ) ) - - + 26 / - 0 ) + - 53, - ( + 5 ) ) - 78
----
-83

query I rowsort
SELECT ALL ( + 43 ) - 1
----
42

query II rowsort
SELECT - 79 AS col0, - 93 col2
----
-79
-93

query I rowsort
SELECT 35 + 67
----
102

query I rowsort
SELECT 70 * + 52
----
3640

query I rowsort
SELECT ALL 50 * - 2 AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT CAST( NULL AS SIGNED ) + + COUNT( + - ( - - 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( + - ( - - 89 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3842
SELECT 80 - - 49 + + 8 + - 10 DIV + + 87 + - 74, + 67 AS col0
----
63
67

skipif mysql # not compatible
query II rowsort label-3842
SELECT 80 - - 49 + + 8 + - 10 / + + 87 + - 74, + 67 AS col0
----
63
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - 39 - + COUNT( DISTINCT 51 )
----
-40

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 39 - + COUNT ( DISTINCT 51 )
----
-40

query I rowsort
SELECT 86 * + 2 AS col2
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT - 26 + CAST( - 57 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3845
SELECT - 26 + CAST ( - 57 AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT COUNT( * ) * 22
----
22

skipif mysql # not compatible
query I rowsort label-3846
SELECT COUNT ( * ) * 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT ALL - - CAST( NULL AS SIGNED ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 32
----
NULL

query I rowsort
SELECT + - 94 AS col0
----
-94

query I rowsort
SELECT ALL + 25 + - 5 * - + 36 AS col2
----
205

query I rowsort
SELECT DISTINCT - 67 + 42
----
-25

query I rowsort
SELECT ALL + 45 + + - 45 * + 34
----
-1485

query I rowsort
SELECT ALL - 34 + 40 * + 70 + - + 77
----
2689

query I rowsort
SELECT 17 + - + NULLIF ( + 85, + 20 / - 59 / + 72 / + + 67 ) * - 59 AS col2
----
5032

query I rowsort
SELECT + 46 * - 20 + + 31 AS col2
----
-889

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3855
SELECT 79 * - 11 + 48 + - COUNT( * ) - + + 7, - CAST( NULL AS DECIMAL ) / 7 * - COALESCE ( - 40, 34 - 85 ) AS col2
----
-829
NULL

skipif mysql # not compatible
query II rowsort label-3855
SELECT 79 * - 11 + 48 + - COUNT ( * ) - + + 7, - CAST ( NULL AS REAL ) / 7 * - COALESCE ( - 40, 34 - 85 ) AS col2
----
-829
NULL

query I rowsort
SELECT 93 - + - 87 AS col0
----
180

query I rowsort
SELECT - 62 * + 70 + - 47 + NULLIF ( + 10, 81 - - 75 * + - 38 ) - 20
----
-4397

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3858
SELECT CASE + 46 WHEN + 35 - 79 * - 3 + 44 * + AVG ( + 34 ) THEN - COALESCE ( + 74, - 86, - COUNT( * ), - ( COUNT( * ) ) * - 32 * - SUM( 27 ) * - 78 - + 91 + - + 0 ) END * + 38 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT CASE + 46 WHEN + 35 - 79 * - 3 + 44 * + AVG ( + 34 ) THEN - COALESCE ( + 74, - 86, - COUNT ( * ), - ( COUNT ( * ) ) * - 32 * - SUM ( 27 ) * - 78 - + 91 + - + 0 ) END * + 38 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( + + 50 ) - - - 25 + - 30 * - - 17 + + 11 AS col0
----
-474

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3860
SELECT - 21, 6 DIV - - 85 + - COUNT( * ) AS col2
----
-21
-1

skipif mysql # not compatible
query II rowsort label-3860
SELECT - 21, 6 / - - 85 + - COUNT ( * ) AS col2
----
-21
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT DISTINCT 23 col1, COUNT( * ) + 45 AS col2
----
23
46

skipif mysql # not compatible
query II rowsort label-3861
SELECT DISTINCT 23 col1, COUNT ( * ) + 45 AS col2
----
23
46

query I rowsort
SELECT + COALESCE ( - 69, 78 ) + + 23
----
-46

query I rowsort
SELECT + 21 + 12
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT - COALESCE ( - COUNT( * ), + - 7, 67 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3864
SELECT - COALESCE ( - COUNT ( * ), + - 7, 67 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT DISTINCT 32 DIV - 91 * + - 14 * COUNT( * ) * 75
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT 32 / - 91 * + - 14 * COUNT ( * ) * 75
----
0

query I rowsort
SELECT ALL 97 * + 94
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT + COUNT( * ) + - 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3867
SELECT + COUNT ( * ) + - 43 AS col1
----
-42

query II rowsort
SELECT ALL 67 * - 31 AS col0, NULLIF ( - - 50, + 69 ) AS col2
----
-2077
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + 79 + - MAX( + + 93 ) + - 30 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3869
SELECT + 79 + - MAX ( + + 93 ) + - 30 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - SUM( - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3870
SELECT - SUM ( - 92 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3871
SELECT + CASE 16 WHEN - + 89 + + 58 THEN NULL WHEN + - NULLIF ( + ( - + 73 ), - CASE + CASE - COUNT( * ) WHEN 3 THEN + 66 WHEN 5 THEN NULL WHEN - 48 * - 88 * - + 6 THEN NULL ELSE + 97 * ( - + 24 ) + - 55 + + 14 END WHEN - CAST( NULL AS DECIMAL ) + + COALESCE ( 89, + + 67, - 96 ) THEN + 95 + - COALESCE ( 65, + 48 ) ELSE NULL END ) THEN NULL WHEN 60 THEN + 2 END * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + CASE 16 WHEN - + 89 + + 58 THEN NULL WHEN + - NULLIF ( + ( - + 73 ), - CASE + CASE - COUNT ( * ) WHEN 3 THEN + 66 WHEN 5 THEN NULL WHEN - 48 * - 88 * - + 6 THEN NULL ELSE + 97 * ( - + 24 ) + - 55 + + 14 END WHEN - CAST ( NULL AS REAL ) + + COALESCE ( 89, + + 67, - 96 ) THEN + 95 + - COALESCE ( 65, + 48 ) ELSE NULL END ) THEN NULL WHEN 60 THEN + 2 END * - 15 AS col0
----
NULL

query I rowsort
SELECT ALL 61 * + 37
----
2257

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( ALL - 28 ) * + 69
----
69

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( ALL - 28 ) * + 69
----
69

query I rowsort
SELECT + 25 - - 0
----
25

query II rowsort
SELECT + - 35 * + 35 AS col2, + 72
----
-1225
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + 16 * + + COALESCE ( + 70, - 94 + - 71 * + + 40 + COALESCE ( - COUNT( * ), 69 * + ( COUNT( * ) ) + + 91 * + 9 ), + - COUNT( * ) + - COUNT( * ), + 39 ) + 60 + + 25 + - SUM( ALL - 86 ) AS col0
----
1291

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + 16 * + + COALESCE ( + 70, - 94 + - 71 * + + 40 + COALESCE ( - COUNT ( * ), 69 * + ( COUNT ( * ) ) + + 91 * + 9 ), + - COUNT ( * ) + - COUNT ( * ), + 39 ) + 60 + + 25 + - SUM ( ALL - 86 ) AS col0
----
1291

query II rowsort
SELECT DISTINCT + - 72, 46 + - 11 * - + 71 AS col1
----
-72
827

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT 90 * - 80 + + + MIN( ALL 71 ) + NULLIF ( + - 37, + - COUNT( * ) * + NULLIF ( 6, + 94 - - 8 ) ) + 47 + 36
----
-7083

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT 90 * - 80 + + + MIN ( ALL 71 ) + NULLIF ( + - 37, + - COUNT ( * ) * + NULLIF ( 6, + 94 - - 8 ) ) + 47 + 36
----
-7083

query I rowsort
SELECT - 60 * - - 25 - + - 86 * - - ( - 73 )
----
-7778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL - 30 * + - CAST( 12 AS SIGNED ) + - 19 + 25
----
366

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - 30 * + - CAST ( 12 AS INTEGER ) + - 19 + 25
----
366

onlyif mysql # aggregate syntax: 
query II rowsort label-3881
SELECT DISTINCT + + 39, CASE - ( 4 ) WHEN + 45 THEN 95 + + + COUNT( * ) * - 5 + ( + 51 ) WHEN - 40 + 98 + - 8 * + - 34 * + 94 * - + 54 * 95 - 34 THEN + 22 * - 32 + - - 98 ELSE NULL END * 38 + - 55 + - - CASE - ( 12 ) WHEN + 85 THEN - COUNT( * ) END * 66 * + 43 AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-3881
SELECT DISTINCT + + 39, CASE - ( 4 ) WHEN + 45 THEN 95 + + + COUNT ( * ) * - 5 + ( + 51 ) WHEN - 40 + 98 + - 8 * + - 34 * + 94 * - + 54 * 95 - 34 THEN + 22 * - 32 + - - 98 ELSE NULL END * 38 + - 55 + - - CASE - ( 12 ) WHEN + 85 THEN - COUNT ( * ) END * 66 * + 43 AS col1
----
39
NULL

query II rowsort
SELECT + 20 AS col0, 62
----
20
62

onlyif mysql # DIV for integer division: 
query II rowsort label-3883
SELECT + 37 AS col1, - 42 DIV - + 95 AS col1
----
37
0

skipif mysql # not compatible
query II rowsort label-3883
SELECT + 37 AS col1, - 42 / - + 95 AS col1
----
37
0

query II rowsort
SELECT 42, 33 * - 87 + - - 10 AS col2
----
42
-2861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL + + 27 * MIN( 53 ) + - COALESCE ( - + 87, + 61 * - CAST( NULL AS SIGNED ) )
----
1518

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + + 27 * MIN ( 53 ) + - COALESCE ( - + 87, + 61 * - CAST ( NULL AS INTEGER ) )
----
1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3886
SELECT - + ( + 92 ) + - 13 - + 16 DIV + COALESCE ( COUNT( * ), - 97, - 20 ) AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-3886
SELECT - + ( + 92 ) + - 13 - + 16 / + COALESCE ( COUNT ( * ), - 97, - 20 ) AS col1
----
-121

query II rowsort
SELECT 48 AS col1, - 20 AS col1
----
48
-20

query I rowsort
SELECT - - 28 + 5
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL - - 36 * + 63 * - COUNT( 67 ) * - 3 + - 92 * + 32
----
3860

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - - 36 * + 63 * - COUNT ( 67 ) * - 3 + - 92 * + 32
----
3860

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT - 62 DIV + 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3890
SELECT - 62 / + 53 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT MAX( DISTINCT - + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-3891
SELECT MAX ( DISTINCT - + 50 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3892
SELECT ALL - 7 * COUNT( * ) - + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - - 2 * - 78 AS col1, - 57 * - 73 * - + ( COUNT( * ) ) + 71 * - 39 + + 66
----
NULL
-6864

skipif mysql # not compatible
query II rowsort label-3892
SELECT ALL - 7 * COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - - 2 * - 78 AS col1, - 57 * - 73 * - + ( COUNT ( * ) ) + 71 * - 39 + + 66
----
NULL
-6864

query I rowsort
SELECT + + 34 AS col1
----
34

query I rowsort
SELECT ALL + + 17 * 22 - - 22 + + 65 - 90 AS col1
----
371

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT MAX( ALL 67 ), 13 * - - 88 AS col1
----
67
1144

skipif mysql # not compatible
query II rowsort label-3895
SELECT MAX ( ALL 67 ), 13 * - - 88 AS col1
----
67
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT SUM( ALL + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3896
SELECT SUM ( ALL + 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL + 39 * - NULLIF ( - CAST( NULL AS SIGNED ), 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + 39 * - NULLIF ( - CAST ( NULL AS INTEGER ), 0 )
----
NULL

query I rowsort
SELECT DISTINCT 62 * ( - 18 )
----
-1116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3899
SELECT ALL + CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT ( 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + 39 * - COUNT( * ) * 26 AS col0
----
-1014

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 39 * - COUNT ( * ) * 26 AS col0
----
-1014

query I rowsort
SELECT DISTINCT - 67 + ( 53 ) - - 76 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT - ( - + 23 ) + + 61 DIV - 67 - - ( + + 18 )
----
41

skipif mysql # not compatible
query I rowsort label-3903
SELECT - ( - + 23 ) + + 61 / - 67 - - ( + + 18 )
----
41

query I rowsort
SELECT - ( 93 ) col1
----
-93

query II rowsort
SELECT ALL 20 + + - 31, - ( - 68 ) + - - 89 AS col1
----
-11
157

query I rowsort
SELECT + 8 - + 8 - 90 + + 46 + - 57
----
-101

onlyif mysql # DIV for integer division: 
query II rowsort label-3907
SELECT ALL 14 DIV + + 94 AS col0, - 14 * - - 24
----
0
-336

skipif mysql # not compatible
query II rowsort label-3907
SELECT ALL 14 / + + 94 AS col0, - 14 * - - 24
----
0
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - COALESCE ( - MIN( + 17 ), + 34 )
----
17

skipif mysql # not compatible
query I rowsort label-3908
SELECT - COALESCE ( - MIN ( + 17 ), + 34 )
----
17

query I rowsort
SELECT ALL - 4 + + 61 + 2
----
59

query I rowsort
SELECT DISTINCT 49 * + 28 AS col2
----
1372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3911
SELECT ALL 61 + + ( + - 36 ) * + + ( - - NULLIF ( NULLIF ( - + CAST( NULL AS DECIMAL ), + + 42 / + COUNT( * ) ), 41 ) ), 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3911
SELECT ALL 61 + + ( + - 36 ) * + + ( - - NULLIF ( NULLIF ( - + CAST ( NULL AS REAL ), + + 42 / + COUNT ( * ) ), 41 ) ), 24 AS col1
----
NULL
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3912
SELECT ALL 5 DIV - 67 + - 91, - 20 * COUNT( DISTINCT 22 ) AS col1
----
-91
-20

skipif mysql # not compatible
query II rowsort label-3912
SELECT ALL 5 / - 67 + - 91, - 20 * COUNT ( DISTINCT 22 ) AS col1
----
-91
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3913
SELECT DISTINCT COUNT( * ) * - - 91 AS col2, + 15
----
91
15

skipif mysql # not compatible
query II rowsort label-3913
SELECT DISTINCT COUNT ( * ) * - - 91 AS col2, + 15
----
91
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + NULLIF ( 72, - + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-3914
SELECT + NULLIF ( 72, - + COUNT ( * ) )
----
72

query I rowsort
SELECT + - 79 * 91 AS col1
----
-7189

query I rowsort
SELECT + 88 col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - + ( + 97 ) DIV + - 39 + - COUNT( * ) * - + 50 - 0 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - + ( + 97 ) / + - 39 + - COUNT ( * ) * - + 50 - 0 AS col2
----
52

query I rowsort
SELECT + 51 * + 21 * - 18
----
-19278

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL - 91 - - - ( + - 21 ) * - CASE + + ( - - 29 ) WHEN 27 + 40 THEN + COALESCE ( - 86, 8 * + 63 ) WHEN COUNT( * ) THEN NULL ELSE 63 END
----
-1414

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - 91 - - - ( + - 21 ) * - CASE + + ( - - 29 ) WHEN 27 + 40 THEN + COALESCE ( - 86, 8 * + 63 ) WHEN COUNT ( * ) THEN NULL ELSE 63 END
----
-1414

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT COUNT( * ) + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3920
SELECT COUNT ( * ) + - 3 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL + + 87 - - + 4 + - ( + MIN( DISTINCT + 61 ) ) * + 7 * + 65
----
-27664

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL + + 87 - - + 4 + - ( + MIN ( DISTINCT + 61 ) ) * + 7 * + 65
----
-27664

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 5 * COUNT( * ) * + 76
----
380

skipif mysql # not compatible
query I rowsort label-3922
SELECT 5 * COUNT ( * ) * + 76
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + 87 + + - MAX( + 54 )
----
33

skipif mysql # not compatible
query I rowsort label-3923
SELECT + 87 + + - MAX ( + 54 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3924
SELECT + MAX( ALL + 12 ) DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT + MAX ( ALL + 12 ) / + 95
----
0

query I rowsort
SELECT ALL - + 70 AS col1
----
-70

query I rowsort
SELECT - - 74 * 94 + + + 72
----
7028

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3927
SELECT ALL - COUNT( * ) AS col0, - CASE - - COUNT( - + 26 ) WHEN - 43 / - 61 THEN NULL WHEN - 3 + + 43 THEN NULL ELSE - NULLIF ( CASE + + ( - 41 ) WHEN 56 * + + 39 * 23 * - 14 THEN - ( CASE - 7 WHEN + + 42 THEN + 63 WHEN - 35 THEN NULL END ) + - 78 - - COALESCE ( CAST( + 9 AS DECIMAL ), COUNT( * ), 92 ) * - 18 END, 61 ) END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3927
SELECT ALL - COUNT ( * ) AS col0, - CASE - - COUNT ( - + 26 ) WHEN - 43 / - 61 THEN NULL WHEN - 3 + + 43 THEN NULL ELSE - NULLIF ( CASE + + ( - 41 ) WHEN 56 * + + 39 * 23 * - 14 THEN - ( CASE - 7 WHEN + + 42 THEN + 63 WHEN - 35 THEN NULL END ) + - 78 - - COALESCE ( CAST ( + 9 AS REAL ), COUNT ( * ), 92 ) * - 18 END, 61 ) END AS col2
----
-1
NULL

query I rowsort
SELECT 45 * + 32
----
1440

query I rowsort
SELECT 43 * 74 + - + 72 + 19 + + 22 * - - 73 + 80 AS col2
----
4815

onlyif mysql # DIV for integer division: 
query II rowsort label-3930
SELECT ALL - 7 * 42 DIV 50 AS col0, + 27 * 72
----
-5
1944

skipif mysql # not compatible
query II rowsort label-3930
SELECT ALL - 7 * 42 / 50 AS col0, + 27 * 72
----
-5
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3931
SELECT DISTINCT 39 * + COUNT( 62 ), - 55 DIV 13 AS col1
----
39
-4

skipif mysql # not compatible
query II rowsort label-3931
SELECT DISTINCT 39 * + COUNT ( 62 ), - 55 / 13 AS col1
----
39
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT 64 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-3932
SELECT 64 / + 35
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3933
SELECT ( 53 ) * + + CASE + ( + + ( + 80 ) ) WHEN + - 38 - - 28 THEN - 30 * + 56 ELSE NULL END - - + 80 * 76 + - 90 AS col2, - 46 - + 32 + - CASE + NULLIF ( 88, 2 ) WHEN - 44 THEN 27 WHEN - - 7 + - 80 - MIN( ALL + + 80 ) THEN - CASE + - 69 WHEN - 19 * + 94 THEN 14 * + 52 END END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3933
SELECT ( 53 ) * + + CASE + ( + + ( + 80 ) ) WHEN + - 38 - - 28 THEN - 30 * + 56 ELSE NULL END - - + 80 * 76 + - 90 AS col2, - 46 - + 32 + - CASE + NULLIF ( 88, 2 ) WHEN - 44 THEN 27 WHEN - - 7 + - 80 - MIN ( ALL + + 80 ) THEN - CASE + - 69 WHEN - 19 * + 94 THEN 14 * + 52 END END AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL - 7 * + CAST( + - CASE + 38 WHEN 68 THEN - + 36 * - 11 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL - 7 * + CAST ( + - CASE + 38 WHEN 68 THEN - + 36 * - 11 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + 53 * SUM( DISTINCT 52 ) * 15
----
41340

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + 53 * SUM ( DISTINCT 52 ) * 15
----
41340

query I rowsort
SELECT 80 + - 85 * 9 AS col1
----
-685

query I rowsort
SELECT 86 * + 70
----
6020

query I rowsort
SELECT DISTINCT + 35 + + - 11
----
24

query II rowsort
SELECT 38, ( + 30 ) AS col2
----
38
30

query I rowsort
SELECT ALL + 17 + + 95 AS col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT DISTINCT - MIN( 57 ) + + 81 + - 32, + 83 - + 45 AS col1
----
-8
38

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT - MIN ( 57 ) + + 81 + - 32, + 83 - + 45 AS col1
----
-8
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT 14 + ( - NULLIF ( + SUM( - - 20 ), - - 66 * - 42 + + 30 * - 55 * COALESCE ( - - 99, + - ( 67 ) ) ) ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3942
SELECT 14 + ( - NULLIF ( + SUM ( - - 20 ), - - 66 * - 42 + + 30 * - 55 * COALESCE ( - - 99, + - ( 67 ) ) ) ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT - COUNT( - + CAST( - 27 AS SIGNED ) ) * - 85 * - + 51 + + - COUNT( * ) AS col1
----
-4336

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - COUNT ( - + CAST ( - 27 AS INTEGER ) ) * - 85 * - + 51 + + - COUNT ( * ) AS col1
----
-4336

query I rowsort
SELECT ALL - 18 + - 66
----
-84

query I rowsort
SELECT DISTINCT + 63 + + + 34 * - 79 AS col1
----
-2623

query I rowsort
SELECT ALL 8 * + 7 AS col0
----
56

query II rowsort
SELECT - 61, + ( 93 ) col1
----
-61
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3948
SELECT ALL 62, - COUNT( * ) * + 71 DIV + - 16 - - MIN( 45 ) AS col2
----
62
49

skipif mysql # not compatible
query II rowsort label-3948
SELECT ALL 62, - COUNT ( * ) * + 71 / + - 16 - - MIN ( 45 ) AS col2
----
62
49

query I rowsort
SELECT - ( 98 ) AS col2
----
-98

query II rowsort
SELECT 96 AS col2, - 85 AS col0
----
96
-85

query I rowsort
SELECT - 69 * + 20 + + COALESCE ( - 41, - 51 + - 92 )
----
-1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT - 78 + - + CAST( NULL AS SIGNED ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT - 78 + - + CAST ( NULL AS INTEGER ) * + 16
----
NULL

query I rowsort
SELECT + - 61 AS col1
----
-61

query I rowsort
SELECT DISTINCT - - 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - COUNT( * ) * - 42
----
42

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COUNT ( * ) * - 42
----
42

query I rowsort
SELECT ALL + ( - NULLIF ( + ( - 19 ), + 81 ) ) * + + 68
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT - - ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - - ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT - MAX( ( - 60 ) ) DIV 46 - + 40 - 79 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-3958
SELECT - MAX ( ( - 60 ) ) / 46 - + 40 - 79 AS col2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT DISTINCT 23 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT 23 / - 70
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3960
SELECT + COUNT( * ) DIV + 91 - 19 * - - 78 AS col0, - 6
----
-1482
-6

skipif mysql # not compatible
query II rowsort label-3960
SELECT + COUNT ( * ) / + 91 - 19 * - - 78 AS col0, - 6
----
-1482
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL COALESCE ( + COUNT( DISTINCT - 67 ), - 47 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL COALESCE ( + COUNT ( DISTINCT - 67 ), - 47 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT COALESCE ( + - 78, 42 DIV - - ( 92 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-3962
SELECT COALESCE ( + - 78, 42 / - - ( 92 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + 85 * 55 * - + COUNT( * )
----
-4675

skipif mysql # not compatible
query I rowsort label-3963
SELECT + 85 * 55 * - + COUNT ( * )
----
-4675

query I rowsort
SELECT DISTINCT 64 * + + 71 AS col2
----
4544

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - - MAX( DISTINCT - + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - - MAX ( DISTINCT - + 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 40 + + COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3966
SELECT 40 + + COUNT ( * ) AS col2
----
41

query II rowsort
SELECT 54 * + 56 AS col0, - 80
----
3024
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT 16 * COALESCE ( - 94, NULLIF ( - - MIN( + - 57 ), - 42 * + 66 ) ) AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT 16 * COALESCE ( - 94, NULLIF ( - - MIN ( + - 57 ), - 42 * + 66 ) ) AS col2
----
-1504

query I rowsort
SELECT 86 col0
----
86

query I rowsort
SELECT ALL - 5 col1
----
-5

query I rowsort
SELECT DISTINCT 9 + + + 19
----
28

query II rowsort
SELECT DISTINCT 86 + + 5 AS col1, 89
----
91
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3973
SELECT ( - 45 ) + - + CAST( NULL AS SIGNED ) - - COUNT( * ) / 88, + 95 + - ( - 97 ) AS col0
----
NULL
192

skipif mysql # not compatible
query II rowsort label-3973
SELECT ( - 45 ) + - + CAST ( NULL AS INTEGER ) - - COUNT ( * ) / 88, + 95 + - ( - 97 ) AS col0
----
NULL
192

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT 5 * 33 AS col0, - ( + - COUNT( * ) ) AS col0
----
165
1

skipif mysql # not compatible
query II rowsort label-3974
SELECT 5 * 33 AS col0, - ( + - COUNT ( * ) ) AS col0
----
165
1

query I rowsort
SELECT ALL - 76 * + ( + 88 ) col1
----
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT CASE COUNT( * ) WHEN + 83 * - COUNT( * ) THEN NULL ELSE + + COUNT( * ) END + - 11 * + 33 + - + 7
----
-369

skipif mysql # not compatible
query I rowsort label-3976
SELECT CASE COUNT ( * ) WHEN + 83 * - COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) END + - 11 * + 33 + - + 7
----
-369

query I rowsort
SELECT ALL 85 + + 84 * - + 47 AS col2
----
-3863

query I rowsort
SELECT ALL 2 * + - 20
----
-40

query I rowsort
SELECT 20 * + - 61 AS col0
----
-1220

query I rowsort
SELECT ALL - 35 col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT - 70 + + + CAST( - 69 AS SIGNED )
----
-139

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 70 + + + CAST ( - 69 AS INTEGER )
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - 84 + + COUNT( DISTINCT + - CASE + 33 WHEN - 87 + + + 23 THEN + CASE 59 WHEN - 81 THEN + 17 * - 64 + + 60 ELSE NULL END ELSE 56 END ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3982
SELECT - 84 + + COUNT ( DISTINCT + - CASE + 33 WHEN - 87 + + + 23 THEN + CASE 59 WHEN - 81 THEN + 17 * - 64 + + 60 ELSE NULL END ELSE 56 END ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT - 67 - - COALESCE ( - 31, - 24 DIV + - 20 )
----
-98

skipif mysql # not compatible
query I rowsort label-3983
SELECT - 67 - - COALESCE ( - 31, - 24 / + - 20 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + COALESCE ( - 7, COUNT( * ) * + - 81 - - 32 * - COUNT( * ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + COALESCE ( - 7, COUNT ( * ) * + - 81 - - 32 * - COUNT ( * ) ) AS col0
----
-7

query II rowsort
SELECT - + ( 91 ) col0, + 34 * - 52 * + 23 AS col2
----
-91
-40664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT - - 96 + + CAST( + 19 AS SIGNED ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-3986
SELECT - - 96 + + CAST ( + 19 AS INTEGER ) AS col2
----
115

query I rowsort
SELECT ALL - + 41 * - 84 * + + 71
----
244524

query I rowsort
SELECT ALL - + 16 * 8 - + 79
----
-207

query I rowsort
SELECT ALL + - 25 AS col2
----
-25

query I rowsort
SELECT ALL + - 52 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3991
SELECT + CASE - COUNT( * ) WHEN 15 * + 3 * + 17 + + CAST( NULL AS SIGNED ) + + 44 THEN - 18 ELSE 75 * + 69 - + 20 END
----
5155

skipif mysql # not compatible
query I rowsort label-3991
SELECT + CASE - COUNT ( * ) WHEN 15 * + 3 * + 17 + + CAST ( NULL AS INTEGER ) + + 44 THEN - 18 ELSE 75 * + 69 - + 20 END
----
5155

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL + 37 * - 5 + 76 * + - CASE - 97 WHEN 78 THEN 34 * 22 + ( - 77 ) * + 24 + - 86 * + 79 + - - 82 + CASE MIN( - ( 80 ) ) WHEN + MIN( DISTINCT + + 10 ) THEN 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + 37 * - 5 + 76 * + - CASE - 97 WHEN 78 THEN 34 * 22 + ( - 77 ) * + 24 + - 86 * + 79 + - - 82 + CASE MIN ( - ( 80 ) ) WHEN + MIN ( DISTINCT + + 10 ) THEN 26 END END
----
NULL

query I rowsort
SELECT ( - - 33 ) * + + 56 + 97 + 20
----
1965

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT ALL + 89 DIV - + 4 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + 89 / - + 4 AS col1
----
-22

query I rowsort
SELECT DISTINCT 53 * 24 + + 78 * 77 AS col2
----
7278

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - MIN( - - 88 ) * + + 51 AS col2
----
-4488

skipif mysql # not compatible
query I rowsort label-3996
SELECT - MIN ( - - 88 ) * + + 51 AS col2
----
-4488

query I rowsort
SELECT ALL 28 * - 59 + - + 47 AS col1
----
-1699

query I rowsort
SELECT DISTINCT 62 * 95 * - 10
----
-58900

onlyif mysql # aggregate syntax: 
query II rowsort label-3999
SELECT ALL 97 * - COUNT( + - ( 61 ) ) * - 40 + + 45, + 3 AS col1
----
3925
3

skipif mysql # not compatible
query II rowsort label-3999
SELECT ALL 97 * - COUNT ( + - ( 61 ) ) * - 40 + + 45, + 3 AS col1
----
3925
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT + COUNT( * ) * + 64 * + CASE - 42 WHEN - 71 THEN + COUNT( + COALESCE ( + CAST( - 21 AS SIGNED ), - 99 ) ) ELSE + - 14 END
----
-896

skipif mysql # not compatible
query I rowsort label-4000
SELECT + COUNT ( * ) * + 64 * + CASE - 42 WHEN - 71 THEN + COUNT ( + COALESCE ( + CAST ( - 21 AS INTEGER ), - 99 ) ) ELSE + - 14 END
----
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT 17 * - - 82 * - 39 + 24 DIV - 85 * + 71
----
-54366

skipif mysql # not compatible
query I rowsort label-4001
SELECT 17 * - - 82 * - 39 + 24 / - 85 * + 71
----
-54366

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT MAX( ALL + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4002
SELECT MAX ( ALL + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL + 76 * - + 66 + MAX( ALL - - 65 ) * - + 77 * - - 47 AS col1
----
-240251

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + 76 * - + 66 + MAX ( ALL - - 65 ) * - + 77 * - - 47 AS col1
----
-240251

query I rowsort
SELECT ALL 61 * + + 6 AS col1
----
366

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4005
SELECT DISTINCT 52, ( + 37 ) + + COALESCE ( + COUNT( * ), 4, + - COUNT( * ) DIV + 2 + - 57 + COUNT( * ) * + + COUNT( DISTINCT + ( + - 67 ) ) + 16, + + 76 ) AS col0
----
52
38

skipif mysql # not compatible
query II rowsort label-4005
SELECT DISTINCT 52, ( + 37 ) + + COALESCE ( + COUNT ( * ), 4, + - COUNT ( * ) / + 2 + - 57 + COUNT ( * ) * + + COUNT ( DISTINCT + ( + - 67 ) ) + 16, + + 76 ) AS col0
----
52
38

query I rowsort
SELECT ALL 55 - + - 26
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT + NULLIF ( - - 23, + 36 ) * + 74 + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT + NULLIF ( - - 23, + 36 ) * + 74 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - 43 * + + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4008
SELECT - 43 * + + COUNT ( * ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT - - 61 + + 24 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT - - 61 + + 24 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT CAST( + 88 AS SIGNED ) col0
----
88

skipif mysql # not compatible
query I rowsort label-4011
SELECT CAST ( + 88 AS INTEGER ) col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT + + CAST( + 37 AS SIGNED ) * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4012
SELECT + + CAST ( + 37 AS INTEGER ) * COUNT ( * )
----
37

query II rowsort
SELECT DISTINCT 69 * + CASE - 54 WHEN - - 22 THEN - + 90 * NULLIF ( + 99, 6 ) - + + 30 ELSE NULL END * + 17 * + 67 col1, 66 * - 93
----
NULL
-6138

query I rowsort
SELECT DISTINCT + ( + 15 ) * 83 - - - 30
----
1215

query I rowsort
SELECT - + 77
----
-77

query I rowsort
SELECT + 70 * - 5
----
-350

query I rowsort
SELECT + 84 - - 44
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT - - 59 DIV + 38
----
1

skipif mysql # not compatible
query I rowsort label-4018
SELECT - - 59 / + 38
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT ALL + 54 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + 54 / - 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT + + CAST( NULL AS SIGNED ) * + 86 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT + + CAST ( NULL AS INTEGER ) * + 86 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 97 - - + 48 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - MIN( DISTINCT 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4022
SELECT - MIN ( DISTINCT 66 ) AS col0
----
-66

query I rowsort
SELECT - - 73 * 25 AS col0
----
1825

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT - - ( + + 94 ) + - - 61 DIV 44
----
95

skipif mysql # not compatible
query I rowsort label-4024
SELECT - - ( + + 94 ) + - - 61 / 44
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4025
SELECT DISTINCT COUNT( DISTINCT 37 ) / + - 81 + - + AVG ( + CAST( NULL AS SIGNED ) ) AS col1, ( NULLIF ( + + 57, 40 ) ) AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-4025
SELECT DISTINCT COUNT ( DISTINCT 37 ) / + - 81 + - + AVG ( + CAST ( NULL AS INTEGER ) ) AS col1, ( NULLIF ( + + 57, 40 ) ) AS col0
----
NULL
57

query I rowsort
SELECT DISTINCT + 8 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT ALL + 83 DIV + 39 + - COUNT( DISTINCT 18 ) + + + ( + - 72 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + 83 / + 39 + - COUNT ( DISTINCT 18 ) + + + ( + - 72 ) AS col0
----
-71

query I rowsort
SELECT DISTINCT + 98 col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT DISTINCT - MAX( + + 36 ) / - 74 * + 35 + - COUNT( * ) * 98 * - SUM( + ( 62 ) ) * - COUNT( * ) + + - 36 + + - CAST( NULL AS SIGNED ) + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - MAX ( + + 36 ) / - 74 * + 35 + - COUNT ( * ) * 98 * - SUM ( + ( 62 ) ) * - COUNT ( * ) + + - 36 + + - CAST ( NULL AS INTEGER ) + - 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT + 42 DIV - 65 + - SUM( DISTINCT + 6 ) - + 17 col0
----
-23

skipif mysql # not compatible
query I rowsort label-4030
SELECT + 42 / - 65 + - SUM ( DISTINCT + 6 ) - + 17 col0
----
-23

query II rowsort
SELECT ALL + 44 AS col2, - 52 + + + 34 - 68 AS col1
----
44
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - CASE + - 29 WHEN + 37 * 87 + + 46 - COUNT( * ) * - 27 THEN ( - 47 ) ELSE + - 47 END * 1 + + 6 - - 59
----
112

skipif mysql # not compatible
query I rowsort label-4032
SELECT - CASE + - 29 WHEN + 37 * 87 + + 46 - COUNT ( * ) * - 27 THEN ( - 47 ) ELSE + - 47 END * 1 + + 6 - - 59
----
112

query I rowsort
SELECT - ( - + 65 ) * - + 13 * + - 45 AS col0
----
38025

query I rowsort
SELECT ( - 40 )
----
-40

query I rowsort
SELECT + 92 * + + COALESCE ( + 85, 41 )
----
7820

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4036
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4037
SELECT + 9 DIV + 69, + 58 DIV - 17 AS col1
----
0
-3

skipif mysql # not compatible
query II rowsort label-4037
SELECT + 9 / + 69, + 58 / - 17 AS col1
----
0
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4038
SELECT - CAST( NULL AS SIGNED ) * + 69, 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4038
SELECT - CAST ( NULL AS INTEGER ) * + 69, 3 AS col0
----
NULL
3

query I rowsort
SELECT DISTINCT + ( 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT ALL + 32 * + 18 - COUNT( * ) + + COUNT( * ) AS col1, MIN( + 26 ) AS col0
----
576
26

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL + 32 * + 18 - COUNT ( * ) + + COUNT ( * ) AS col1, MIN ( + 26 ) AS col0
----
576
26

query I rowsort
SELECT ( 8 ) AS col1
----
8

query I rowsort
SELECT ALL + ( - + 59 ) col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT - 73 DIV - 12 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4043
SELECT - 73 / - 12 AS col0
----
6

query I rowsort
SELECT + ( - - 11 )
----
11

query I rowsort
SELECT - 37 + + 77 * + 32 + - 12 * 83 - 23 + - 97 * + 72 AS col0
----
-5576

onlyif mysql # DIV for integer division: 
query II rowsort label-4046
SELECT + 43 DIV + 22, + 13 AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-4046
SELECT + 43 / + 22, + 13 AS col1
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL 49 * - MIN( ALL + - 48 )
----
2352

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 49 * - MIN ( ALL + - 48 )
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL COUNT( * ) * + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL COUNT ( * ) * + - 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT - 13 + + - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 13 + + - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 31 * - ( - - 64 )
----
1984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT 60 * - 57 + - 56 * - NULLIF ( + 73, + CAST( NULL AS SIGNED ) ) * - + 60 col2
----
-248700

skipif mysql # not compatible
query I rowsort label-4051
SELECT 60 * - 57 + - 56 * - NULLIF ( + 73, + CAST ( NULL AS INTEGER ) ) * - + 60 col2
----
-248700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4052
SELECT DISTINCT + COUNT( ALL 18 ) * - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT + COUNT ( ALL 18 ) * - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 88 - + 61
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4054
SELECT ALL 29 AS col2, 10 - CAST( NULL AS SIGNED ) col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL 29 AS col2, 10 - CAST ( NULL AS INTEGER ) col0
----
29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4055
SELECT 65 AS col1, - 73 * CAST( NULL AS SIGNED )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-4055
SELECT 65 AS col1, - 73 * CAST ( NULL AS INTEGER )
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - 29 + - 3 + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4056
SELECT - 29 + - 3 + COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT - ( - - 32 )
----
-32

query II rowsort
SELECT 2, 73 AS col1
----
2
73

query I rowsort
SELECT + 82 + - 62 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT COUNT( * ) - + 39 + 31
----
-7

skipif mysql # not compatible
query I rowsort label-4060
SELECT COUNT ( * ) - + 39 + 31
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4061
SELECT 46 * + - CAST( NULL AS SIGNED ) + + COUNT( * ) * 27, - 85 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-4061
SELECT 46 * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 27, - 85 AS col1
----
NULL
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( - 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( - 55 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT ALL - 5, 10 + + COUNT( * ) AS col2
----
-5
11

skipif mysql # not compatible
query II rowsort label-4063
SELECT ALL - 5, 10 + + COUNT ( * ) AS col2
----
-5
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT ALL - 58 + + - 68 DIV - - 70 * + 46 * 90 * 4 + + + 74 - 47 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - 58 + + - 68 / - - 70 * + 46 * 90 * 4 + + + 74 - 47 AS col2
----
-31

query II rowsort
SELECT DISTINCT 64 AS col1, - 9 col1
----
64
-9

query I rowsort
SELECT ALL - + 73 + + + 97
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT NULLIF ( + 89, - - 37 + + COUNT( * ) * COALESCE ( 18, + 30 * - - 85 + 13 ) + - 42 - - ( - 51 ) ) / - ( CASE 54 WHEN + - 32 * - - COUNT( * ) + COUNT( DISTINCT + 29 ) + 74 / + 29 + + + 5 + + COUNT( * ) THEN NULL WHEN + + 9 + + COALESCE ( + - COUNT( * ), 9 * 33 + + COALESCE ( COUNT( * ), - 70 + - ( - 15 ), + 21 + + ( - 38 + - 86 * COALESCE ( + 17 + + 74 / + COUNT( * ), COUNT( * ), 74, - 28 ) ) ) ) + - 90 THEN CASE 3 WHEN 13 THEN 63 END WHEN - 25 - SUM( DISTINCT - ( 79 ) ) * + CASE 57 WHEN 76 * 16 + 22 / - 25 THEN + ( 66 ) * + 91 ELSE NULL END THEN NULL ELSE NULL END ) + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT NULLIF ( + 89, - - 37 + + COUNT ( * ) * COALESCE ( 18, + 30 * - - 85 + 13 ) + - 42 - - ( - 51 ) ) / - ( CASE 54 WHEN + - 32 * - - COUNT ( * ) + COUNT ( DISTINCT + 29 ) + 74 / + 29 + + + 5 + + COUNT ( * ) THEN NULL WHEN + + 9 + + COALESCE ( + - COUNT ( * ), 9 * 33 + + COALESCE ( COUNT ( * ), - 70 + - ( - 15 ), + 21 + + ( - 38 + - 86 * COALESCE ( + 17 + + 74 / + COUNT ( * ), COUNT ( * ), 74, - 28 ) ) ) ) + - 90 THEN CASE 3 WHEN 13 THEN 63 END WHEN - 25 - SUM ( DISTINCT - ( 79 ) ) * + CASE 57 WHEN 76 * 16 + 22 / - 25 THEN + ( 66 ) * + 91 ELSE NULL END THEN NULL ELSE NULL END ) + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - ( 38 ) + + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - ( 38 ) + + + COUNT ( * )
----
-37

query I rowsort
SELECT ALL + 28 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + COUNT( * ) * + NULLIF ( - 85, MAX( DISTINCT + 8 ) * 9 ) + - 30
----
-115

skipif mysql # not compatible
query I rowsort label-4070
SELECT + COUNT ( * ) * + NULLIF ( - 85, MAX ( DISTINCT + 8 ) * 9 ) + - 30
----
-115

query I rowsort
SELECT ALL 14 + - - 35 AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-4072
SELECT 54 * - 25 * + + 66 AS col2, 25 * 28 + 12 - - 6 DIV - 59 AS col0
----
-89100
712

skipif mysql # not compatible
query II rowsort label-4072
SELECT 54 * - 25 * + + 66 AS col2, 25 * 28 + 12 - - 6 / - 59 AS col0
----
-89100
712

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT 90 * - ( - + COUNT( * ) ) + 13 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-4073
SELECT 90 * - ( - + COUNT ( * ) ) + 13 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL - CASE 6 WHEN + + ( - - COALESCE ( 30, - ( + AVG ( + + 46 ) ) ) ) / - + MIN( - ( + 79 ) ) - 70 + - 11 * - COUNT( * ) - - - 16 THEN NULL WHEN - CAST( COUNT( DISTINCT + + 36 ) AS SIGNED ) + 79 THEN 20 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - CASE 6 WHEN + + ( - - COALESCE ( 30, - ( + AVG ( + + 46 ) ) ) ) / - + MIN ( - ( + 79 ) ) - 70 + - 11 * - COUNT ( * ) - - - 16 THEN NULL WHEN - CAST ( COUNT ( DISTINCT + + 36 ) AS INTEGER ) + 79 THEN 20 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL - COUNT( * ) - + + CAST( + - 71 AS SIGNED ) * 81 AS col0
----
5750

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL - COUNT ( * ) - + + CAST ( + - 71 AS INTEGER ) * 81 AS col0
----
5750

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + COUNT( * ) * + + 29
----
29

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + COUNT ( * ) * + + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL + 54 * - - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + 54 * - - COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT + COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT + COUNT ( * ) * + 52
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT DISTINCT - MIN( ALL - - 1 ) AS col1, 25 * - 67 - - 88 + 41 AS col2
----
-1
-1546

skipif mysql # not compatible
query II rowsort label-4079
SELECT DISTINCT - MIN ( ALL - - 1 ) AS col1, 25 * - 67 - - 88 + 41 AS col2
----
-1
-1546

query I rowsort
SELECT ALL - 27 * - - 35
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT - SUM( DISTINCT + 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - SUM ( DISTINCT + 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4082
SELECT ALL + 47 / 67 - COUNT( * ) + + COUNT( - + 52 ) + + CASE - 73 WHEN 75 THEN - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) / + 24 THEN + COUNT( * ) + 21 - + 48 * - - 54 WHEN + 25 THEN NULL END / - + CASE - COUNT( * ) WHEN 13 THEN NULL ELSE - 64 + - - NULLIF ( 21, - CASE - 23 WHEN + - 33 THEN 21 WHEN + 17 THEN - - 67 END ) END AS col2, 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL + 47 / 67 - COUNT ( * ) + + COUNT ( - + 52 ) + + CASE - 73 WHEN 75 THEN - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / + 24 THEN + COUNT ( * ) + 21 - + 48 * - - 54 WHEN + 25 THEN NULL END / - + CASE - COUNT ( * ) WHEN 13 THEN NULL ELSE - 64 + - - NULLIF ( 21, - CASE - 23 WHEN + - 33 THEN 21 WHEN + 17 THEN - - 67 END ) END AS col2, 10 AS col1
----
NULL
10

query I rowsort
SELECT ALL ( + 47 ) + + + 86 AS col1
----
133

query I rowsort
SELECT ALL 30 + - 34 + 80 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT COUNT( + 78 ) * ( - 13 ) + - 58 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4085
SELECT COUNT ( + 78 ) * ( - 13 ) + - 58 * COUNT ( * )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT ALL - - 34 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - - 34 / 82
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4087
SELECT ALL - 87 + - 17 AS col1, + 45 DIV - COUNT( + 82 ) AS col1
----
-104
-45

skipif mysql # not compatible
query II rowsort label-4087
SELECT ALL - 87 + - 17 AS col1, + 45 / - COUNT ( + 82 ) AS col1
----
-104
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - 61 + CASE 7 WHEN ( - + ( - + COUNT( * ) ) ) * - + ( - COUNT( DISTINCT - - ( - 47 ) ) ) * 42 + + ( + 88 ) THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN + 42 / + + 77 - + 63 + + - 16 * + 85 - 79 * 41 THEN NULL ELSE + COUNT( * ) * 42 + + + 43 END + 89 + - - 39 * - - 50 AS col0
----
2063

skipif mysql # not compatible
query I rowsort label-4088
SELECT - 61 + CASE 7 WHEN ( - + ( - + COUNT ( * ) ) ) * - + ( - COUNT ( DISTINCT - - ( - 47 ) ) ) * 42 + + ( + 88 ) THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN + 42 / + + 77 - + 63 + + - 16 * + 85 - 79 * 41 THEN NULL ELSE + COUNT ( * ) * 42 + + + 43 END + 89 + - - 39 * - - 50 AS col0
----
2063

query I rowsort
SELECT - 79 * + 80 + 62
----
-6258

query I rowsort
SELECT ALL - + ( - - 71 ) + - - 97 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL COUNT( * ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL COUNT ( * ) + - 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT COUNT( * ) * 34 * 84 AS col2
----
2856

skipif mysql # not compatible
query I rowsort label-4092
SELECT COUNT ( * ) * 34 * 84 AS col2
----
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT ALL + CASE + 35 WHEN - - 77 + - 94 + - COUNT( * ) + - 27 + - 72 * - 86 * + CAST( + + 73 AS SIGNED ) THEN NULL ELSE + 76 END
----
76

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + CASE + 35 WHEN - - 77 + - 94 + - COUNT ( * ) + - 27 + - 72 * - 86 * + CAST ( + + 73 AS INTEGER ) THEN NULL ELSE + 76 END
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - COALESCE ( + COUNT( * ), - - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4094
SELECT - COALESCE ( + COUNT ( * ), - - 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT CAST( - 9 AS SIGNED ) - - 19
----
10

skipif mysql # not compatible
query I rowsort label-4095
SELECT CAST ( - 9 AS INTEGER ) - - 19
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT - MIN( DISTINCT 16 ) * - + 20 * + - 37
----
-11840

skipif mysql # not compatible
query I rowsort label-4096
SELECT - MIN ( DISTINCT 16 ) * - + 20 * + - 37
----
-11840

query I rowsort
SELECT 5 + 23
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4098
SELECT - 67 AS col1, + 20 * + + 13 + - AVG ( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-4098
SELECT - 67 AS col1, + 20 * + + 13 + - AVG ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col1
----
-67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL 74 * 31 * + MIN( 5 )
----
11470

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL 74 * 31 * + MIN ( 5 )
----
11470

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT MAX( DISTINCT - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4100
SELECT MAX ( DISTINCT - 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + COUNT( ALL + + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4101
SELECT + COUNT ( ALL + + 38 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT SUM( - ( - 91 ) ) AS col0, COALESCE ( - + 41, - 38 * - + COUNT( * ) + 15 ) AS col0
----
91
-41

skipif mysql # not compatible
query II rowsort label-4103
SELECT SUM ( - ( - 91 ) ) AS col0, COALESCE ( - + 41, - 38 * - + COUNT ( * ) + 15 ) AS col0
----
91
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-4104
SELECT 68 DIV - 32 - + 13, + 49 AS col2
----
-15
49

skipif mysql # not compatible
query II rowsort label-4104
SELECT 68 / - 32 - + 13, + 49 AS col2
----
-15
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL 38 * CAST( 41 AS SIGNED ) col2
----
1558

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL 38 * CAST ( 41 AS INTEGER ) col2
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4106
SELECT COUNT( * ) * + CASE - - CAST( NULL AS SIGNED ) WHEN + 78 THEN + - 55 - + - 17 ELSE NULL END AS col2, 78 DIV - COUNT( * ) - 78
----
NULL
-156

skipif mysql # not compatible
query II rowsort label-4106
SELECT COUNT ( * ) * + CASE - - CAST ( NULL AS INTEGER ) WHEN + 78 THEN + - 55 - + - 17 ELSE NULL END AS col2, 78 / - COUNT ( * ) - 78
----
NULL
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT 85 - 33 * - 4 AS col0, + COALESCE ( + 27, - COUNT( * ) )
----
217
27

skipif mysql # not compatible
query II rowsort label-4107
SELECT 85 - 33 * - 4 AS col0, + COALESCE ( + 27, - COUNT ( * ) )
----
217
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT COUNT( ALL + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4108
SELECT COUNT ( ALL + 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL - MAX( ALL + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - MAX ( ALL + 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT COUNT( ALL + CASE + + 68 WHEN + + 37 THEN NULL WHEN + 31 THEN 19 * - 7 + - 4 ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT COUNT ( ALL + CASE + + 68 WHEN + + 37 THEN NULL WHEN + 31 THEN 19 * - 7 + - 4 ELSE NULL END ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4111
SELECT + 91, - CAST( - 52 AS SIGNED ) AS col2
----
91
52

skipif mysql # not compatible
query II rowsort label-4111
SELECT + 91, - CAST ( - 52 AS INTEGER ) AS col2
----
91
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT DISTINCT - CASE + 0 WHEN 32 THEN - 17 - - 6 * + ( + 21 ) / - - CAST( NULL AS SIGNED ) * COUNT( * ) * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT - CASE + 0 WHEN 32 THEN - 17 - - 6 * + ( + 21 ) / - - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT ALL - 87 DIV - 13
----
6

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - 87 / - 13
----
6

query I rowsort
SELECT + NULLIF ( 84, 60 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT MIN( 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4115
SELECT MIN ( 76 ) AS col2
----
76

query I rowsort
SELECT - 84 - - 45 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT SUM( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4117
SELECT SUM ( DISTINCT + 7 )
----
7

query I rowsort
SELECT + 23 + - 85 - - 38 * + ( - 9 )
----
-404

query I rowsort
SELECT DISTINCT + - 69 + 52
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + COALESCE ( - 45, + COUNT( * ) + + 71 * + 23 ) + 38 + 20 + - - NULLIF ( 6, 65 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4120
SELECT + COALESCE ( - 45, + COUNT ( * ) + + 71 * + 23 ) + 38 + 20 + - - NULLIF ( 6, 65 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL + CASE + MAX( ALL - + 9 ) WHEN - + 81 THEN NULL WHEN 13 THEN + - COUNT( * ) END + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + CASE + MAX ( ALL - + 9 ) WHEN - + 81 THEN NULL WHEN 13 THEN + - COUNT ( * ) END + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - 50 + - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4122
SELECT - 50 + - COUNT ( * ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4123
SELECT - 48 AS col0, NULLIF ( + - NULLIF ( + 0, + + 15 ), + 23 * + + 66 * COUNT( * ) ) * + 39 * + ( 7 ) DIV - 55 + + 84 - - SUM( - 83 )
----
-48
1

skipif mysql # not compatible
query II rowsort label-4123
SELECT - 48 AS col0, NULLIF ( + - NULLIF ( + 0, + + 15 ), + 23 * + + 66 * COUNT ( * ) ) * + 39 * + ( 7 ) / - 55 + + 84 - - SUM ( - 83 )
----
-48
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4124
SELECT ALL 59 col2, + 95 DIV + - 26
----
59
-3

skipif mysql # not compatible
query II rowsort label-4124
SELECT ALL 59 col2, + 95 / + - 26
----
59
-3

query II rowsort
SELECT ALL - 91 + - - ( 5 ) AS col2, 79
----
-86
79

query II rowsort
SELECT - - 86 col1, - 95 AS col0
----
86
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT DISTINCT COALESCE ( COUNT( * ), COALESCE ( + + 42, - 41 ), 68 * - 95 - + 78 * + + 82 * 85 * + CAST( 16 AS SIGNED ) + - 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT COALESCE ( COUNT ( * ), COALESCE ( + + 42, - 41 ), 68 * - 95 - + 78 * + + 82 * 85 * + CAST ( 16 AS INTEGER ) + - 47 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT ALL - 42 + - MAX( DISTINCT 34 ) AS col0, MAX( - 11 )
----
-76
-11

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL - 42 + - MAX ( DISTINCT 34 ) AS col0, MAX ( - 11 )
----
-76
-11

query I rowsort
SELECT - - 36 + + + 45
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT DISTINCT 49, 28 * COUNT( * ) + 22 + + - 16 AS col1
----
49
34

skipif mysql # not compatible
query II rowsort label-4130
SELECT DISTINCT 49, 28 * COUNT ( * ) + 22 + + - 16 AS col1
----
49
34

query I rowsort
SELECT - + 61 + + 47
----
-14

query I rowsort
SELECT ALL + 81 - + ( 39 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4133
SELECT - 66 DIV - + 67 + - 60 AS col0, - COUNT( * ) * 19
----
-60
-19

skipif mysql # not compatible
query II rowsort label-4133
SELECT - 66 / - + 67 + - 60 AS col0, - COUNT ( * ) * 19
----
-60
-19

query I rowsort
SELECT + 36 * - 85
----
-3060

query I rowsort
SELECT + 49 + - 30 * - 50
----
1549

query I rowsort
SELECT ALL 64 col1
----
64

query I rowsort
SELECT DISTINCT - 72 * 80 * 28
----
-161280

query I rowsort
SELECT DISTINCT + 17 - + 59 - + - 4 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL - MAX( ALL 85 ) * + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - MAX ( ALL 85 ) * + COUNT ( * ) AS col2
----
-85

query II rowsort
SELECT DISTINCT ( - 85 ) col1, + 77 + - + 14 AS col2
----
-85
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT - ( - - COUNT( * ) ) + + - 92 - + ( 84 ) * - 2 + + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4141
SELECT - ( - - COUNT ( * ) ) + + - 92 - + ( 84 ) * - 2 + + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
74

query II rowsort
SELECT - 21 * + 87 AS col2, 21 col2
----
-1827
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + 14 + + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4143
SELECT + 14 + + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT - 67 DIV MIN( ALL + 58 ) - + 33 - + - SUM( 78 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 67 / MIN ( ALL + 58 ) - + 33 - + - SUM ( 78 ) AS col0
----
44

query I rowsort
SELECT ( + ( 63 ) )
----
63

query I rowsort
SELECT 64 * + + 94 + COALESCE ( - + 74, + - 35 ) * - 17 AS col1
----
7274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT ALL 73 * + + COALESCE ( 65, - + MAX( DISTINCT + 39 ) DIV + + 38, COUNT( * ) ) + - 75 * + MAX( + - 33 )
----
7220

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL 73 * + + COALESCE ( 65, - + MAX ( DISTINCT + 39 ) / + + 38, COUNT ( * ) ) + - 75 * + MAX ( + - 33 )
----
7220

query I rowsort
SELECT + 8 + 48 * + 6 + - 74 * - 62 AS col2
----
4884

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL + 58 * + SUM( 8 ) + + CASE - - 94 WHEN + 14 * + 97 THEN NULLIF ( 45, - 17 ) + + COUNT( * ) END / + + 40 / - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + 58 * + SUM ( 8 ) + + CASE - - 94 WHEN + 14 * + 97 THEN NULLIF ( 45, - 17 ) + + COUNT ( * ) END / + + 40 / - 60 AS col1
----
NULL

query I rowsort
SELECT 92 * 3 + 36
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-4151
SELECT ( + + 99 ), + ( - 15 ) - COUNT( * ) - - 23 + - + 95 + 82 * ( + + 44 ) AS col0
----
99
3520

skipif mysql # not compatible
query II rowsort label-4151
SELECT ( + + 99 ), + ( - 15 ) - COUNT ( * ) - - 23 + - + 95 + 82 * ( + + 44 ) AS col0
----
99
3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT ALL AVG ( - ( + + 77 ) ) * - + CASE - COUNT( * ) WHEN 21 + - 41 THEN + + 34 / + CAST( + - COALESCE ( - - 91, + - MAX( + 2 ) + - 1, 28 + + 68 ) AS SIGNED ) WHEN - + 22 + + 37 * - 43 + - + 60 * - 97 THEN NULLIF ( - 13, 18 ) * - COALESCE ( + - 22, 98 + SUM( + 17 ) ) END + - 88 + - 0 * 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL AVG ( - ( + + 77 ) ) * - + CASE - COUNT ( * ) WHEN 21 + - 41 THEN + + 34 / + CAST ( + - COALESCE ( - - 91, + - MAX ( + 2 ) + - 1, 28 + + 68 ) AS INTEGER ) WHEN - + 22 + + 37 * - 43 + - + 60 * - 97 THEN NULLIF ( - 13, 18 ) * - COALESCE ( + - 22, 98 + SUM ( + 17 ) ) END + - 88 + - 0 * 50 col2
----
NULL

query I rowsort
SELECT + 31 * 44 * - 37
----
-50468

query I rowsort
SELECT + 37 + + + 92 + + - 43 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + COUNT( - 91 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT + COUNT ( - 91 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT + CAST( + 76 AS SIGNED ) * + COUNT( * ) * 65 + + 44
----
4984

skipif mysql # not compatible
query I rowsort label-4156
SELECT + CAST ( + 76 AS INTEGER ) * + COUNT ( * ) * 65 + + 44
----
4984

query I rowsort
SELECT ALL - + 34 * + 90 + + + NULLIF ( - 51, - + 74 )
----
-3111

query I rowsort
SELECT + 21 * + 11 col2
----
231

query I rowsort
SELECT - + ( - - 43 ) + - + 68 col2
----
-111

query I rowsort
SELECT 1 * - 84 + - - 38 col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL 78 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL 78 / - 58
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT ALL + 95 * + 48 + + + 75 + MIN( 95 ) * COUNT( + 42 ) DIV + COUNT( * ) - - 95
----
4825

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + 95 * + 48 + + + 75 + MIN ( 95 ) * COUNT ( + 42 ) / + COUNT ( * ) - - 95
----
4825

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT + - ( 33 ) AS col0, - NULLIF ( + + CASE - 3 WHEN + 75 THEN + + COUNT( * ) ELSE NULL END, 91 + 55 + 46 / - - 35 ) * - MIN( ALL 37 ) col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4163
SELECT + - ( 33 ) AS col0, - NULLIF ( + + CASE - 3 WHEN + 75 THEN + + COUNT ( * ) ELSE NULL END, 91 + 55 + 46 / - - 35 ) * - MIN ( ALL 37 ) col1
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - COUNT( * ) * 25 * 81 + - + 83 - + - COUNT( + COALESCE ( + 62, - + 39 ) ) * + 80 * + 50 * - 33 - 89 + 64 AS col2
----
-134133

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - COUNT ( * ) * 25 * 81 + - + 83 - + - COUNT ( + COALESCE ( + 62, - + 39 ) ) * + 80 * + 50 * - 33 - 89 + 64 AS col2
----
-134133

query I rowsort
SELECT + 71 * 69 * - 83 * - 64 + - - 45 * - 52 AS col2
----
26021148

query I rowsort
SELECT ALL + - 40
----
-40

query I rowsort
SELECT - 27 col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT + COUNT( * ) * + - 95 + - - COUNT( * ) + + - 3, 87 * + 70 col0
----
-97
6090

skipif mysql # not compatible
query II rowsort label-4168
SELECT + COUNT ( * ) * + - 95 + - - COUNT ( * ) + + - 3, 87 * + 70 col0
----
-97
6090

query I rowsort
SELECT - + 74 * + 52 + - - 84
----
-3764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4170
SELECT DISTINCT + 58 * - 92 * - 29 - + CAST( NULL AS SIGNED ), - 34 * - COUNT( * ) * + + 63 AS col2
----
NULL
2142

skipif mysql # not compatible
query II rowsort label-4170
SELECT DISTINCT + 58 * - 92 * - 29 - + CAST ( NULL AS INTEGER ), - 34 * - COUNT ( * ) * + + 63 AS col2
----
NULL
2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT - + 24 * + + COUNT( * ) * + - 23 + ( - - 16 ) * - NULLIF ( + CAST( NULL AS SIGNED ), + COALESCE ( + COALESCE ( 92, + - 82 ), + 50 + - COUNT( * ) - - CAST( + 72 AS SIGNED ), - 36 * - + 86 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT - + 24 * + + COUNT ( * ) * + - 23 + ( - - 16 ) * - NULLIF ( + CAST ( NULL AS INTEGER ), + COALESCE ( + COALESCE ( 92, + - 82 ), + 50 + - COUNT ( * ) - - CAST ( + 72 AS INTEGER ), - 36 * - + 86 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - CASE - COUNT( * ) WHEN + + 55 * 11 THEN NULL WHEN - 62 THEN + 45 * 67 - + ( + 39 ) * 6 / - 34 + COUNT( * ) + COALESCE ( - 68, + 58 + - 70, - + SUM( + - 97 ) ) + + 24 + - + 77 + + CASE 5 WHEN + + 46 / + 85 + - 42 THEN NULL ELSE + 59 * ( + - 9 ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - CASE - COUNT ( * ) WHEN + + 55 * 11 THEN NULL WHEN - 62 THEN + 45 * 67 - + ( + 39 ) * 6 / - 34 + COUNT ( * ) + COALESCE ( - 68, + 58 + - 70, - + SUM ( + - 97 ) ) + + 24 + - + 77 + + CASE 5 WHEN + + 46 / + 85 + - 42 THEN NULL ELSE + 59 * ( + - 9 ) END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - + 13 * + SUM( - 1 ) * + + 43 * 90 - - 29 AS col2
----
50339

skipif mysql # not compatible
query I rowsort label-4173
SELECT - + 13 * + SUM ( - 1 ) * + + 43 * 90 - - 29 AS col2
----
50339

query I rowsort
SELECT ALL NULLIF ( - 39, + 16 + 74 ) * - + 5 col0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT - ( 26 ) DIV - + 51 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-4175
SELECT - ( 26 ) / - + 51 * + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4176
SELECT ALL CASE + + 60 WHEN + SUM( - 24 ) / - 93 THEN + - COALESCE ( + + 33, - - COUNT( * ) * COALESCE ( 52, + - 33, + 55 ) + + 57, + COUNT( * ) ) + - 74 + - 52 WHEN - 60 * - 50 + - CAST( NULL AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL CASE + + 60 WHEN + SUM ( - 24 ) / - 93 THEN + - COALESCE ( + + 33, - - COUNT ( * ) * COALESCE ( 52, + - 33, + 55 ) + + 57, + COUNT ( * ) ) + - 74 + - 52 WHEN - 60 * - 50 + - CAST ( NULL AS REAL ) THEN NULL END
----
NULL

query I rowsort
SELECT - 74 + - 85
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4178
SELECT DISTINCT ( - + MAX( + CASE + - 6 WHEN + CAST( 19 AS SIGNED ) THEN - + 72 + - 75 ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT ( - + MAX ( + CASE + - 6 WHEN + CAST ( 19 AS INTEGER ) THEN - + 72 + - 75 ELSE NULL END ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT - 27 DIV - 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-4179
SELECT - 27 / - 33 col1
----
0

query I rowsort
SELECT DISTINCT - 23 * - 94
----
2162

query II rowsort
SELECT ALL + ( + 2 ) * + 48, - 71 AS col1
----
96
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT 14 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT 14 / - 96 AS col0
----
0

query I rowsort
SELECT ALL + CASE - 59 WHEN - 89 + - - 69 + + 89 THEN + 29 END + - 14 * + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL COUNT( 37 ) + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL COUNT ( 37 ) + 2 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT ALL - CAST( + 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - CAST ( + 71 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( * ) * + 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) * + 66 AS col1
----
66

query I rowsort
SELECT ALL 19 + + + 71 AS col1
----
90

query I rowsort
SELECT 29 - + 10
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT COUNT( * ) * ( + 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4189
SELECT COUNT ( * ) * ( + 0 ) col1
----
0

query I rowsort
SELECT ALL - ( + + 91 )
----
-91

query I rowsort
SELECT DISTINCT + 97 + - - 69 col2
----
166

query I rowsort
SELECT ALL 85 - - 38
----
123

query I rowsort
SELECT - ( 3 ) - 73
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL 24 * - + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL 24 * - + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT - + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - + ( COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + 14 * - 84 col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + 21 + + 1 - + COUNT( * ) * COUNT( * ) * - 64
----
86

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 21 + + 1 - + COUNT ( * ) * COUNT ( * ) * - 64
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + 4 * NULLIF ( + + COUNT( * ), + 31 ) * + 52 col2
----
208

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 4 * NULLIF ( + + COUNT ( * ), + 31 ) * + 52 col2
----
208

query I rowsort
SELECT ALL - + ( + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + SUM( DISTINCT - + 77 ) * + COUNT( * ) * - COUNT( 83 ) + 97 + + + 18 + + 88 + - 58
----
222

skipif mysql # not compatible
query I rowsort label-4200
SELECT + SUM ( DISTINCT - + 77 ) * + COUNT ( * ) * - COUNT ( 83 ) + 97 + + + 18 + + 88 + - 58
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT 84 - - 99 + + 26 DIV - - 50 * 96 * + 41
----
183

skipif mysql # not compatible
query I rowsort label-4201
SELECT 84 - - 99 + + 26 / - - 50 * 96 * + 41
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4202
SELECT ALL 88 DIV ( + COUNT( * ) ), - 17 AS col1
----
88
-17

skipif mysql # not compatible
query II rowsort label-4202
SELECT ALL 88 / ( + COUNT ( * ) ), - 17 AS col1
----
88
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 71 * + - 20 + - 98 + + 86 AS col2
----
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT 64 + - 26 DIV + - 53 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4205
SELECT 64 + - 26 / + - 53 AS col2
----
64

query I rowsort
SELECT ( - 64 ) + + 58 AS col2
----
-6

query I rowsort
SELECT 14 * + 37
----
518

query II rowsort
SELECT ALL 66 AS col2, 81 AS col1
----
66
81

query I rowsort
SELECT 95 + 94 - - 91
----
280

query I rowsort
SELECT DISTINCT 23 AS col0
----
23

query I rowsort
SELECT ALL + 0 * - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT + SUM( + + 16 ) + + 52 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT + SUM ( + + 16 ) + + 52 AS col2
----
68

onlyif mysql # aggregate syntax: 
query III rowsort label-4213
SELECT ALL - 28 + - + 34 AS col1, SUM( ALL + + 48 ) AS col1, + 5 * + 95 * + 0
----
-62
48
0

skipif mysql # not compatible
query III rowsort label-4213
SELECT ALL - 28 + - + 34 AS col1, SUM ( ALL + + 48 ) AS col1, + 5 * + 95 * + 0
----
-62
48
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4214
SELECT - 84, + COUNT( * ) DIV + ( 81 ) AS col1
----
-84
0

skipif mysql # not compatible
query II rowsort label-4214
SELECT - 84, + COUNT ( * ) / + ( 81 ) AS col1
----
-84
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT ALL + CAST( + + 52 AS SIGNED ) + 42 * + - 38 AS col1
----
-1544

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + CAST ( + + 52 AS INTEGER ) + 42 * + - 38 AS col1
----
-1544

query I rowsort
SELECT 42 * 52
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4217
SELECT 27 AS col0, + 18 / - CAST( NULL AS SIGNED ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4217
SELECT 27 AS col0, + 18 / - CAST ( NULL AS INTEGER ) AS col0
----
27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4218
SELECT ALL + COUNT( DISTINCT - CAST( - + 50 AS SIGNED ) ) + + 27, + 90 AS col2
----
28
90

skipif mysql # not compatible
query II rowsort label-4218
SELECT ALL + COUNT ( DISTINCT - CAST ( - + 50 AS INTEGER ) ) + + 27, + 90 AS col2
----
28
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT + 51 AS col2, + MAX( + 90 ) - + 96
----
51
-6

skipif mysql # not compatible
query II rowsort label-4219
SELECT + 51 AS col2, + MAX ( + 90 ) - + 96
----
51
-6

query I rowsort
SELECT 68 * + - ( 66 ) AS col1
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL - 38 * + SUM( 69 ) AS col0
----
-2622

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - 38 * + SUM ( 69 ) AS col0
----
-2622

query I rowsort
SELECT 39 + + 86 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + 95 * COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + 95 * COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4224
SELECT + - ( 53 ) * 56 + - 47 + COALESCE ( + + 14, - 27 * 99 + - 68 ) * - 26 DIV + COUNT( * ), 86 - - 41 AS col2
----
-3379
127

skipif mysql # not compatible
query II rowsort label-4224
SELECT + - ( 53 ) * 56 + - 47 + COALESCE ( + + 14, - 27 * 99 + - 68 ) * - 26 / + COUNT ( * ), 86 - - 41 AS col2
----
-3379
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT - + SUM( ALL - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - + SUM ( ALL - 59 ) AS col1
----
59

query II rowsort
SELECT ALL - 94 AS col0, + 97
----
-94
97

query I rowsort
SELECT DISTINCT - + 78 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT 71 * - - 11 + SUM( - + 13 ) + + 86 AS col2
----
854

skipif mysql # not compatible
query I rowsort label-4228
SELECT 71 * - - 11 + SUM ( - + 13 ) + + 86 AS col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + COALESCE ( + COUNT( * ), + - COUNT( * ), - + SUM( ALL - 35 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT + COALESCE ( + COUNT ( * ), + - COUNT ( * ), - + SUM ( ALL - 35 ) ) AS col0
----
1

query I rowsort
SELECT 30 + + 47
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL - MAX( - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - MAX ( - 35 )
----
35

query I rowsort
SELECT + ( + 93 ) AS col1
----
93

query II rowsort
SELECT + ( 27 ), + ( + ( - 82 ) ) AS col1
----
27
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT - 46 * COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4234
SELECT - 46 * COUNT ( * )
----
-46

query I rowsort
SELECT ALL 85 * - 61
----
-5185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4236
SELECT + - COALESCE ( NULLIF ( - + 40, + 49 DIV + - 30 ), - - 13 + - 12 DIV - 95 * 66 ), CAST( + 28 AS SIGNED ) + + - SUM( DISTINCT + 57 ) AS col1
----
40
-29

skipif mysql # not compatible
query II rowsort label-4236
SELECT + - COALESCE ( NULLIF ( - + 40, + 49 / + - 30 ), - - 13 + - 12 / - 95 * 66 ), CAST ( + 28 AS INTEGER ) + + - SUM ( DISTINCT + 57 ) AS col1
----
40
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + - ( - + ( + 67 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + - ( - + ( + 67 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 74 * - - 4
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - NULLIF ( + COUNT( * ), - 16 + 54 + - CASE - COUNT( * ) WHEN - 16 THEN - + 79 * 16 / + ( + 65 ) * - + 0 END )
----
-1

skipif mysql # not compatible
query I rowsort label-4239
SELECT - NULLIF ( + COUNT ( * ), - 16 + 54 + - CASE - COUNT ( * ) WHEN - 16 THEN - + 79 * 16 / + ( + 65 ) * - + 0 END )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4240
SELECT + 15 DIV 14 * + - COUNT( * ) AS col2, - 45
----
-1
-45

skipif mysql # not compatible
query II rowsort label-4240
SELECT + 15 / 14 * + - COUNT ( * ) AS col2, - 45
----
-1
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT DISTINCT 44 DIV + - ( 21 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT 44 / + - ( 21 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT DISTINCT ( + 92 ) + + 68 col2, + COUNT( * ) * COUNT( * ) + - + 93
----
160
-92

skipif mysql # not compatible
query II rowsort label-4242
SELECT DISTINCT ( + 92 ) + + 68 col2, + COUNT ( * ) * COUNT ( * ) + - + 93
----
160
-92

query I rowsort
SELECT ALL 29 col1
----
29

query I rowsort
SELECT + 44 - - - 47 + + - 10
----
-13

query I rowsort
SELECT ALL + 69 * + - 8
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + MAX( DISTINCT 55 ) + - 47 * - - 66 + + - 20
----
-3067

skipif mysql # not compatible
query I rowsort label-4246
SELECT + MAX ( DISTINCT 55 ) + - 47 * - - 66 + + - 20
----
-3067

onlyif mysql # aggregate syntax: 
query II rowsort label-4247
SELECT DISTINCT ( - - COUNT( * ) ) + 14 + - + CASE - - ( + - 82 ) WHEN 36 THEN NULL WHEN 18 + 46 + - - 45 THEN - + 11 * + + 26 END, + 37 / - CASE - 14 WHEN - 79 THEN 87 * + 7 + + 97 ELSE NULL END + - + 42 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4247
SELECT DISTINCT ( - - COUNT ( * ) ) + 14 + - + CASE - - ( + - 82 ) WHEN 36 THEN NULL WHEN 18 + 46 + - - 45 THEN - + 11 * + + 26 END, + 37 / - CASE - 14 WHEN - 79 THEN 87 * + 7 + + 97 ELSE NULL END + - + 42 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4248
SELECT ALL CAST( NULL AS DECIMAL ) + - 32 * + - 53 + + - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL CAST ( NULL AS REAL ) + - 32 * + - 53 + + - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - ( - 29 ) + - - 28 + + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4249
SELECT - ( - 29 ) + - - 28 + + COUNT ( * ) AS col0
----
58

query I rowsort
SELECT DISTINCT 37 * + ( 93 ) AS col0
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - COUNT( * ) + - ( - 92 ) + - 77
----
14

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( * ) + - ( - 92 ) + - 77
----
14

query II rowsort
SELECT ALL 66 - - 19 AS col1, 6
----
85
6

query I rowsort
SELECT + 95 * + 95 AS col2
----
9025

query I rowsort
SELECT DISTINCT + 97 * 96 * 82
----
763584

query I rowsort
SELECT - - 69 * + - 21
----
-1449

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT ALL - 58 DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - 58 / + + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + 76 DIV + 46 + 5 * - 6 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4257
SELECT + 76 / + 46 + 5 * - 6 AS col0
----
-29

query I rowsort
SELECT + 90 - NULLIF ( + ( - 6 ), + 65 ) + + 30 * 1 * - 27 * - - 55 AS col1
----
-44454

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT + - 9 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT + - 9 / - 89 AS col0
----
0

query I rowsort
SELECT - 64 * - 41 - 53 AS col0
----
2571

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - 72 * - + 5 - + - COUNT( * )
----
361

skipif mysql # not compatible
query I rowsort label-4261
SELECT - 72 * - + 5 - + - COUNT ( * )
----
361

query I rowsort
SELECT - 30 * - 76 + + ( 15 )
----
2295

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT + 73 * 74 DIV + 32 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + 73 * 74 / + 32 AS col1
----
168

query I rowsort
SELECT - 44 * - - 18 AS col2
----
-792

query I rowsort
SELECT ALL + - ( + + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT SUM( - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4266
SELECT SUM ( - 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4267
SELECT COUNT( * ) AS col0, - 92 - + 29 DIV COUNT( * )
----
1
-121

skipif mysql # not compatible
query II rowsort label-4267
SELECT COUNT ( * ) AS col0, - 92 - + 29 / COUNT ( * )
----
1
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT 46 * COUNT( * ) + 47
----
93

skipif mysql # not compatible
query I rowsort label-4268
SELECT 46 * COUNT ( * ) + 47
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT ALL 45 * - + 98 + + - 54 * COUNT( * ) * + 69 - - + 16 DIV - COUNT( * )
----
-8152

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL 45 * - + 98 + + - 54 * COUNT ( * ) * + 69 - - + 16 / - COUNT ( * )
----
-8152

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT - ( - 40 ) * - MIN( DISTINCT + 94 ) + - 45 - - - 22 - COUNT( DISTINCT + + 85 ) + + 25
----
-3803

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT - ( - 40 ) * - MIN ( DISTINCT + 94 ) + - 45 - - - 22 - COUNT ( DISTINCT + + 85 ) + + 25
----
-3803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT ALL + 48 * - 33 + CAST( + - 48 AS SIGNED ) + + 39
----
-1593

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + 48 * - 33 + CAST ( + - 48 AS INTEGER ) + + 39
----
-1593

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT - MAX( DISTINCT + ( - 55 ) ), + ( - - 84 ) AS col2
----
55
84

skipif mysql # not compatible
query II rowsort label-4272
SELECT - MAX ( DISTINCT + ( - 55 ) ), + ( - - 84 ) AS col2
----
55
84

query I rowsort
SELECT ALL ( + + 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT - 82 + - - COALESCE ( + 98, + COUNT( * ) ) + - COUNT( * ) * - 70 - + 31 * + 49 + + - 93 - + 64
----
-1590

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - 82 + - - COALESCE ( + 98, + COUNT ( * ) ) + - COUNT ( * ) * - 70 - + 31 * + 49 + + - 93 - + 64
----
-1590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT + 44 + 69 - - CAST( + - 92 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 44 + 69 - - CAST ( + - 92 AS INTEGER )
----
21

query I rowsort
SELECT ALL 56 * - 54
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT MAX( + - NULLIF ( + 37, + - 99 + + - 13 ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4277
SELECT MAX ( + - NULLIF ( + 37, + - 99 + + - 13 ) ) AS col0
----
-37

query I rowsort
SELECT ALL + 10 + + + 5 AS col2
----
15

query I rowsort
SELECT + 14 * - 29
----
-406

query II rowsort
SELECT ALL 39 AS col1, - 16
----
39
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4281
SELECT - 26 + - - 35 + + 78 AS col1, COALESCE ( - - 86, + NULLIF ( - + 16, - 55 ), 13 * + MAX( DISTINCT 56 ) + - - COALESCE ( COALESCE ( + - 42, + 50 ), - 25 ) + - - 69 + + - 22 + - 48 + - MAX( - - 79 ) * - 49 * 59 * + 6 )
----
87
86

skipif mysql # not compatible
query II rowsort label-4281
SELECT - 26 + - - 35 + + 78 AS col1, COALESCE ( - - 86, + NULLIF ( - + 16, - 55 ), 13 * + MAX ( DISTINCT 56 ) + - - COALESCE ( COALESCE ( + - 42, + 50 ), - 25 ) + - - 69 + + - 22 + - 48 + - MAX ( - - 79 ) * - 49 * 59 * + 6 )
----
87
86

query II rowsort
SELECT 82 col0, 75 col1
----
82
75

query II rowsort
SELECT ALL 93, 36 AS col2
----
93
36

query I rowsort
SELECT DISTINCT 13 - 19 * + + 76 + - 37
----
-1468

query I rowsort
SELECT DISTINCT + 93 * - 87 AS col2
----
-8091

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT ALL 90 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL 90 / 94
----
0

query I rowsort
SELECT ALL 48 - - 75 AS col1
----
123

query I rowsort
SELECT - ( 37 ) AS col2
----
-37

query I rowsort
SELECT + 72 + + + 29
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - COUNT( + 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4290
SELECT - COUNT ( + 53 ) AS col1
----
-1

query I rowsort
SELECT + 21 + + - 12 AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT - 51 AS col1, ( + 10 ) + 77 * COUNT( * ) * - 28
----
-51
-2146

skipif mysql # not compatible
query II rowsort label-4292
SELECT - 51 AS col1, ( + 10 ) + 77 * COUNT ( * ) * - 28
----
-51
-2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT + COUNT( ( ( - + 79 ) ) ) + ( - 43 ) + - COALESCE ( - + 89, - COUNT( 7 ), - 57 ) / + - 66 * + + ( + 82 ) * CAST( NULL AS SIGNED ) * - - CASE + COUNT( * ) WHEN - - 55 * - 58 THEN 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( ( ( - + 79 ) ) ) + ( - 43 ) + - COALESCE ( - + 89, - COUNT ( 7 ), - 57 ) / + - 66 * + + ( + 82 ) * CAST ( NULL AS INTEGER ) * - - CASE + COUNT ( * ) WHEN - - 55 * - 58 THEN 21 END
----
NULL

query II rowsort
SELECT + 90 AS col1, - 29 * + 50 col0
----
90
-1450

query I rowsort
SELECT ALL + - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + - 21 + - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4296
SELECT + - 21 + - COUNT ( * ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4297
SELECT + 24 * + - CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED ) - 62 + - - COALESCE ( + 82, - + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 24 * + - CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER ) - 62 + - - COALESCE ( + 82, - + 75 ) AS col1
----
NULL

query I rowsort
SELECT + + 46 + - 45 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT 80 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT 80 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 32 * 16 + - + 43 AS col2
----
469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4301
SELECT ALL + COALESCE ( - + 56, + CAST( NULL AS SIGNED ) * + COUNT( * ) ) DIV - 98 + ( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + COALESCE ( - + 56, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) / - 98 + ( + 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT - COUNT( * ) DIV - 51 + - - 92
----
92

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - COUNT ( * ) / - 51 + - - 92
----
92

query II rowsort
SELECT DISTINCT + - 76 AS col0, ( 59 )
----
-76
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT ALL - - COALESCE ( 32, + - 67, - 3 DIV 62 ) DIV - 73 DIV + - COUNT( * ) + 17 + - 60 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - - COALESCE ( 32, + - 67, - 3 / 62 ) / - 73 / + - COUNT ( * ) + 17 + - 60 AS col0
----
-43

query I rowsort
SELECT - 51 + + 32
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL - 62 / - 93 + - - CAST( NULL AS SIGNED ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - 62 / - 93 + - - CAST ( NULL AS INTEGER ) + 96
----
NULL

query II rowsort
SELECT - 80, - 2 AS col1
----
-80
-2

query I rowsort
SELECT - 64 + 57
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT + 4 * + 85 + + 26 col1, 79 * COUNT( * )
----
366
79

skipif mysql # not compatible
query II rowsort label-4309
SELECT + 4 * + 85 + + 26 col1, 79 * COUNT ( * )
----
366
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT ALL + - 36 DIV + CASE + 74 WHEN 27 THEN 35 + + 9 DIV - 11 + - 82 WHEN - + COUNT( * ) THEN NULL ELSE - MIN( ALL - ( - 45 ) ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + - 36 / + CASE + 74 WHEN 27 THEN 35 + + 9 / - 11 + - 82 WHEN - + COUNT ( * ) THEN NULL ELSE - MIN ( ALL - ( - 45 ) ) END AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4311
SELECT ALL + COUNT( * ) DIV + 90 * + - 60 + - 70 DIV + 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + COUNT ( * ) / + 90 * + - 60 + - 70 / + 31 AS col0
----
-2

query I rowsort
SELECT + ( ( 88 ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4313
SELECT 8 DIV - + 87 AS col2, - MIN( ALL - 41 )
----
0
41

skipif mysql # not compatible
query II rowsort label-4313
SELECT 8 / - + 87 AS col2, - MIN ( ALL - 41 )
----
0
41

query I rowsort
SELECT ALL + ( + 26 ) + - - 9 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4315
SELECT ALL SUM( + + CAST( - 77 AS SIGNED ) ) DIV - 11 DIV + + COUNT( * ) - - - 63 + - 9 * - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL SUM ( + + CAST ( - 77 AS INTEGER ) ) / - 11 / + + COUNT ( * ) - - - 63 + - 9 * - - COUNT ( * )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL - CAST( + COALESCE ( + + 71, + 12, + + COALESCE ( + ( MIN( DISTINCT + + 73 ) ), 55 * + 77, ( - - 78 ) ) ) AS SIGNED ) * + + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - CAST ( + COALESCE ( + + 71, + 12, + + COALESCE ( + ( MIN ( DISTINCT + + 73 ) ), 55 * + 77, ( - - 78 ) ) ) AS INTEGER ) * + + COUNT ( * ) AS col1
----
-71

query I rowsort
SELECT DISTINCT - ( - - 60 ) + + - ( - 53 ) - 71
----
-78

query I rowsort
SELECT 37 col1
----
37

query I rowsort
SELECT 23 - - 4 + 8
----
35

query I rowsort
SELECT 68 * + + 11 AS col0
----
748

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4321
SELECT ALL 49 - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL 49 - + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT 58 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT 58 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 66 * + 88 AS col1
----
5808

query I rowsort
SELECT 74 + 33 + - 31
----
76

query I rowsort
SELECT - NULLIF ( - + 13, 21 - - - 44 + - 75 - - + 46 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT ALL MAX( 85 ) AS col2, - 20 * + COUNT( * )
----
85
-20

skipif mysql # not compatible
query II rowsort label-4326
SELECT ALL MAX ( 85 ) AS col2, - 20 * + COUNT ( * )
----
85
-20

query I rowsort
SELECT 15 * + 61
----
915

query I rowsort
SELECT ALL - NULLIF ( - - 61, - 86 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL CASE - + COUNT( * ) WHEN - + 59 THEN 79 WHEN + - 62 / 57 THEN NULL END + + 13 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL CASE - + COUNT ( * ) WHEN - + 59 THEN 79 WHEN + - 62 / 57 THEN NULL END + + 13 * 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4331
SELECT ALL + CAST( NULL AS SIGNED ) + 3 + - ( 55 ) + + 28 / + + 96 * - + 57 AS col2, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL + CAST ( NULL AS INTEGER ) + 3 + - ( 55 ) + + 28 / + + 96 * - + 57 AS col2, 1 AS col2
----
NULL
1

query I rowsort
SELECT - 65 * + 82 * - 50 AS col1
----
266500

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT 84 * - 68 * + COUNT( * ) AS col0
----
-5712

skipif mysql # not compatible
query I rowsort label-4333
SELECT 84 * - 68 * + COUNT ( * ) AS col0
----
-5712

query I rowsort
SELECT - 53 col1
----
-53

query I rowsort
SELECT ALL - 79 + + 26 + - + 46 - - - 43 * - 17 AS col1
----
632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4336
SELECT 74 * - 97 * - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4336
SELECT 74 * - 97 * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT - 38 DIV - 85 + - + 18
----
-18

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 38 / - 85 + - + 18
----
-18

query II rowsort
SELECT ALL 54 + + 55, - 49 + - 69 AS col1
----
109
-118

query I rowsort
SELECT DISTINCT - 30 * + + 83 AS col1
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( - 53 ) + + NULLIF ( - + 23, - - ( - - 46 ) ) - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( - 53 ) + + NULLIF ( - + 23, - - ( - - 46 ) ) - COUNT ( * ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT COALESCE ( + 58, CAST( 40 AS SIGNED ) ) - - ( 91 )
----
149

skipif mysql # not compatible
query I rowsort label-4341
SELECT COALESCE ( + 58, CAST ( 40 AS INTEGER ) ) - - ( 91 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT - COUNT( - 93 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - COUNT ( - 93 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - 42 * + 68 - + + CASE - COUNT( * ) WHEN - 69 + - 18 THEN - + 91 + + 50 * 37 * 58 END / 51 * + ( + + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT - 42 * + 68 - + + CASE - COUNT ( * ) WHEN - 69 + - 18 THEN - + 91 + + 50 * 37 * 58 END / 51 * + ( + + 52 )
----
NULL

query I rowsort
SELECT 23 + - 72
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT ( - COALESCE ( + + 46, NULLIF ( + ( - - 1 ), - 65 ) DIV + COUNT( * ) * + 21 * - 88 ) ) + + - NULLIF ( + 16, + - ( - - 88 ) + COUNT( * ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4345
SELECT ( - COALESCE ( + + 46, NULLIF ( + ( - - 1 ), - 65 ) / + COUNT ( * ) * + 21 * - 88 ) ) + + - NULLIF ( + 16, + - ( - - 88 ) + COUNT ( * ) ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT CAST( NULL AS SIGNED ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT CAST ( NULL AS INTEGER ) * 24
----
NULL

query I rowsort
SELECT 20 * - + 27 + 28
----
-512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT DISTINCT + 93 * + + 60 * - 19 DIV COUNT( - 72 ) * - 36 * - 71 AS col1
----
-270987120

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + 93 * + + 60 * - 19 / COUNT ( - 72 ) * - 36 * - 71 AS col1
----
-270987120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT ALL CAST( NULL AS SIGNED ) / CAST( + - 72 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL CAST ( NULL AS INTEGER ) / CAST ( + - 72 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL MAX( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL MAX ( DISTINCT + 22 )
----
22

query I rowsort
SELECT DISTINCT 78 * 19
----
1482

query I rowsort
SELECT ALL - 48 * + 33
----
-1584

query I rowsort
SELECT 77 + - 88 AS col0
----
-11

query I rowsort
SELECT DISTINCT + 30 * 8
----
240

query II rowsort
SELECT - 56 + - - 12 * 85 + 27 + - 86 AS col2, 66 AS col2
----
905
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - - SUM( + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4356
SELECT - - SUM ( + 65 ) AS col1
----
65

query I rowsort
SELECT ( - + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT + 57 * + COUNT( * ) + + + COUNT( * ) * - - COUNT( 73 )
----
58

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT + 57 * + COUNT ( * ) + + + COUNT ( * ) * - - COUNT ( 73 )
----
58

query I rowsort
SELECT - - 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + COUNT( * ) + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + COUNT ( * ) + 67 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT - + COUNT( * ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - + COUNT ( * ) + - 64
----
-65

query I rowsort
SELECT DISTINCT + - 36 * - 7
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL - 44 + - MIN( DISTINCT + + 24 ) * + 54 / - 11 * - 70 * + 63 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - 44 + - MIN ( DISTINCT + + 24 ) * + 54 / - 11 * - 70 * + 63 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + 6 + + 5 - + + 80 + + - CASE + NULLIF ( MAX( + 91 ), - 37 ) WHEN + 75 * COUNT( * ) * + COUNT( ALL - - ( + 52 ) ) THEN - ( + 44 ) ELSE NULL END + - - 49 * + + 35 * 6 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT + 6 + + 5 - + + 80 + + - CASE + NULLIF ( MAX ( + 91 ), - 37 ) WHEN + 75 * COUNT ( * ) * + COUNT ( ALL - - ( + 52 ) ) THEN - ( + 44 ) ELSE NULL END + - - 49 * + + 35 * 6 * - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL - COUNT( * ) + 13 * + + 82 AS col1
----
1065

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - COUNT ( * ) + 13 * + + 82 AS col1
----
1065

query I rowsort
SELECT - COALESCE ( 54, 94 * + 71 * + 57, - 72 ) AS col0
----
-54

query I rowsort
SELECT + + ( - 17 ) AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT - + CAST( NULL AS SIGNED ) / + 17 * + - CAST( NULL AS SIGNED ) * 44 - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT - + CAST ( NULL AS INTEGER ) / + 17 * + - CAST ( NULL AS INTEGER ) * 44 - + 39
----
NULL

query II rowsort
SELECT ALL + 19, 99 + 79 AS col0
----
19
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT + 81 * + - MIN( + NULLIF ( 54, - 58 ) )
----
-4374

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + 81 * + - MIN ( + NULLIF ( 54, - 58 ) )
----
-4374

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT DISTINCT - 26 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - 26 / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + + SUM( + - 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + + SUM ( + - 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + 21 + - 53 * + 22 * + COUNT( ALL + + 22 )
----
-1145

skipif mysql # not compatible
query I rowsort label-4373
SELECT + 21 + - 53 * + 22 * + COUNT ( ALL + + 22 )
----
-1145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT NULLIF ( CAST( + 0 AS SIGNED ), + 54 + - - 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4374
SELECT NULLIF ( CAST ( + 0 AS INTEGER ), + 54 + - - 61 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT CASE + 27 WHEN COUNT( * ) - - + 46 + + - 93 * + ( - - 15 ) * - 19 * 82 * 49 THEN NULL WHEN - 57 * - 86 * 53 + - CAST( 33 AS SIGNED ) + + 58 - + 60 THEN - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT CASE + 27 WHEN COUNT ( * ) - - + 46 + + - 93 * + ( - - 15 ) * - 19 * 82 * 49 THEN NULL WHEN - 57 * - 86 * 53 + - CAST ( 33 AS INTEGER ) + + 58 - + 60 THEN - + 52 END
----
NULL

query I rowsort
SELECT - 9 * 15 AS col0
----
-135

query I rowsort
SELECT + COALESCE ( - + ( + 32 ), - 40 + + + 80 + - + 99 * - 66 ) col1
----
-32

query I rowsort
SELECT DISTINCT 38 * + 28 * 56
----
59584

query I rowsort
SELECT ALL + 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT SUM( 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4380
SELECT SUM ( 80 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 29 AS col0, 61 * - 72 + + 4
----
29
-4388

query I rowsort
SELECT ALL + NULLIF ( - 39, - 74 - + + ( - 97 ) * + - COALESCE ( + + 68, 8, 62 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + CASE - 57 WHEN + 36 * + 26 * - + COUNT( ALL - - 71 ) / 11 * - 52 THEN 63 * - 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT + CASE - 57 WHEN + 36 * + 26 * - + COUNT ( ALL - - 71 ) / 11 * - 52 THEN 63 * - 35 END AS col1
----
NULL

query I rowsort
SELECT ALL 37 * - 82
----
-3034

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT + COUNT( * ) * + COUNT( * ) AS col0, + 90 * + + 75
----
1
6750

skipif mysql # not compatible
query II rowsort label-4386
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0, + 90 * + + 75
----
1
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + 0 * - - MIN( - 69 ) + - ( - + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4387
SELECT + 0 * - - MIN ( - 69 ) + - ( - + 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT MIN( - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4388
SELECT MIN ( - 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT MIN( ALL - + 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4389
SELECT MIN ( ALL - + 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL 31 + COUNT( + 4 )
----
32

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL 31 + COUNT ( + 4 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4391
SELECT ALL 90 + - 26 + + 89 - - 31 DIV - - 77 * COUNT( * ) AS col1, 63 AS col1
----
153
63

skipif mysql # not compatible
query II rowsort label-4391
SELECT ALL 90 + - 26 + + 89 - - 31 / - - 77 * COUNT ( * ) AS col1, 63 AS col1
----
153
63

query I rowsort
SELECT + 13 * 34 AS col1
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + COUNT( - 79 ) - - 2 + + - 95 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4393
SELECT + COUNT ( - 79 ) - - 2 + + - 95 AS col2
----
-92

query I rowsort
SELECT - + 52 AS col1
----
-52

query I rowsort
SELECT ALL + 28 + 20
----
48

query II rowsort
SELECT DISTINCT 97 AS col2, CASE + - 74 WHEN + 9 THEN + - ( + 90 ) END / + 18
----
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT - COUNT( * ) DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - COUNT ( * ) / + 19 AS col1
----
0

query I rowsort
SELECT - + ( - - 39 ) + - + 37
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4399
SELECT DISTINCT 69 * ( + 8 ) + 18 + + + 47 + + 33 / - - NULLIF ( AVG ( + - 24 ), + COUNT( * ) ) * + NULLIF ( + 77, + 57 - + 72 * - - 29 ) + 61 + - - CAST( NULL AS SIGNED ) + 30 * COUNT( * ) AS col0, + COUNT( * ) + - 46 / + 56 * + - 35 * 99 + CAST( NULL AS SIGNED ) + - 50
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4399
SELECT DISTINCT 69 * ( + 8 ) + 18 + + + 47 + + 33 / - - NULLIF ( AVG ( + - 24 ), + COUNT ( * ) ) * + NULLIF ( + 77, + 57 - + 72 * - - 29 ) + 61 + - - CAST ( NULL AS INTEGER ) + 30 * COUNT ( * ) AS col0, + COUNT ( * ) + - 46 / + 56 * + - 35 * 99 + CAST ( NULL AS INTEGER ) + - 50
----
NULL
NULL

query II rowsort
SELECT 4 AS col0, - 6
----
4
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT ALL + - 42 + 34 DIV + 25
----
-41

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + - 42 + 34 / + 25
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + CASE - 49 WHEN + ( 99 ) + - + 11 + - 31 THEN NULL WHEN + 12 + + 97 + - - COUNT( * ) * + COUNT( * ) THEN + 88 END * + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT + CASE - 49 WHEN + ( 99 ) + - + 11 + - 31 THEN NULL WHEN + 12 + + 97 + - - COUNT ( * ) * + COUNT ( * ) THEN + 88 END * + 22 AS col2
----
NULL

query I rowsort
SELECT - + 70 AS col0
----
-70

query I rowsort
SELECT NULLIF ( + 51, 47 )
----
51

query I rowsort
SELECT - 40 + + 58
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT - + 60, MIN( DISTINCT - 99 ) AS col0
----
-60
-99

skipif mysql # not compatible
query II rowsort label-4406
SELECT - + 60, MIN ( DISTINCT - 99 ) AS col0
----
-60
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT ALL - CASE - 44 WHEN 33 * + 58 * 88 + + + 92 THEN COUNT( DISTINCT + - 54 ) * + 38 + + ( + + 27 ) * COALESCE ( COALESCE ( + - NULLIF ( - ( - 45 ), 88 + 11 / - 4 - 68 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ), ( + 22 ), - ( - MAX( DISTINCT - 63 ) ) ), CASE + + 43 WHEN - + 82 / ( + 86 ) * - 43 * + - 19 + - 50 + 85 + + COUNT( * ) + + 60 + 29 THEN NULL WHEN - AVG ( ALL + 10 ) * - 75 THEN 62 WHEN + 82 THEN NULL END, + COUNT( * ) ) * COUNT( * ) ELSE NULL END * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - CASE - 44 WHEN 33 * + 58 * 88 + + + 92 THEN COUNT ( DISTINCT + - 54 ) * + 38 + + ( + + 27 ) * COALESCE ( COALESCE ( + - NULLIF ( - ( - 45 ), 88 + 11 / - 4 - 68 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ), ( + 22 ), - ( - MAX ( DISTINCT - 63 ) ) ), CASE + + 43 WHEN - + 82 / ( + 86 ) * - 43 * + - 19 + - 50 + 85 + + COUNT ( * ) + + 60 + 29 THEN NULL WHEN - AVG ( ALL + 10 ) * - 75 THEN 62 WHEN + 82 THEN NULL END, + COUNT ( * ) ) * COUNT ( * ) ELSE NULL END * - 17 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4408
SELECT COUNT( 49 ), MAX( + CAST( 14 AS SIGNED ) ) + - - 11 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-4408
SELECT COUNT ( 49 ), MAX ( + CAST ( 14 AS INTEGER ) ) + - - 11 AS col2
----
1
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4409
SELECT 85 AS col0, - CAST( NULL AS SIGNED ) * - 12 + - + 59 + COUNT( * )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-4409
SELECT 85 AS col0, - CAST ( NULL AS INTEGER ) * - 12 + - + 59 + COUNT ( * )
----
85
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT - 22 DIV 67 - - 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 22 / 67 - - 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT - 92 * + + 12 * + SUM( + + 98 ) AS col2
----
-108192

skipif mysql # not compatible
query I rowsort label-4411
SELECT - 92 * + + 12 * + SUM ( + + 98 ) AS col2
----
-108192

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - 9 - - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4412
SELECT - 9 - - COUNT ( * ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT CAST( - - ( + + 32 ) AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4413
SELECT CAST ( - - ( + + 32 ) AS INTEGER ) AS col0
----
32

query I rowsort
SELECT ( - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL - COALESCE ( COALESCE ( COUNT( * ), + COALESCE ( + 64, 52 + - + 99 ), + 88 + + 36 ), + - 55 ) * + 1
----
-1

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - COALESCE ( COALESCE ( COUNT ( * ), + COALESCE ( + 64, 52 + - + 99 ), + 88 + + 36 ), + - 55 ) * + 1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT - 79 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT - 79 / + 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4417
SELECT + 32 - + CAST( NULL AS SIGNED ) AS col2, 34 + - - 29 + + - 68 * + 37 col2
----
NULL
-2453

skipif mysql # not compatible
query II rowsort label-4417
SELECT + 32 - + CAST ( NULL AS INTEGER ) AS col2, 34 + - - 29 + + - 68 * + 37 col2
----
NULL
-2453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4418
SELECT + 49 DIV CAST( + COUNT( * ) AS SIGNED ) * + 81 * COUNT( * ), COUNT( * ) AS col0
----
3969
1

skipif mysql # not compatible
query II rowsort label-4418
SELECT + 49 / CAST ( + COUNT ( * ) AS INTEGER ) * + 81 * COUNT ( * ), COUNT ( * ) AS col0
----
3969
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL NULLIF ( + 48, - 60 ) * 11 + + ( + 0 ) * - COUNT( * ) * + 68
----
528

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL NULLIF ( + 48, - 60 ) * 11 + + ( + 0 ) * - COUNT ( * ) * + 68
----
528

query I rowsort
SELECT - 96 + + 46
----
-50

query I rowsort
SELECT + ( 45 )
----
45

query I rowsort
SELECT - ( 21 ) + - 64 * + 91
----
-5845

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4423
SELECT + 78 - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 78 - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) - 20 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL 84 * + + ( NULLIF ( - CAST( NULL AS SIGNED ), - 7 ) ) * + + 82 * + + 16 * + 23 + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL 84 * + + ( NULLIF ( - CAST ( NULL AS INTEGER ), - 7 ) ) * + + 82 * + + 16 * + 23 + - 86 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL 83 * 65 * - 91 + + CAST( - 59 AS SIGNED ) + + COUNT( * ) * - ( - 22 ) * + 60 + - 5 - + 83 + ( - 89 )
----
-489861

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL 83 * 65 * - 91 + + CAST ( - 59 AS INTEGER ) + + COUNT ( * ) * - ( - 22 ) * + 60 + - 5 - + 83 + ( - 89 )
----
-489861

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - ( + SUM( ALL 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-4426
SELECT - ( + SUM ( ALL 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - - 71 * - 25 + + 27 + + ( - - 56 ) * + CASE + 20 WHEN - - 68 THEN + - 35 / 90 END / - 99 * - 66 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - - 71 * - 25 + + 27 + + ( - - 56 ) * + CASE + 20 WHEN - - 68 THEN + - 35 / 90 END / - 99 * - 66 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 8 * 10
----
-80

query I rowsort
SELECT + 74 * + 47 col1
----
3478

query I rowsort
SELECT DISTINCT + 75 * + - 30 AS col2
----
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4431
SELECT + 54 + - - 26 + 37 AS col1, 30 + - + CAST( NULL AS SIGNED )
----
117
NULL

skipif mysql # not compatible
query II rowsort label-4431
SELECT + 54 + - - 26 + 37 AS col1, 30 + - + CAST ( NULL AS INTEGER )
----
117
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4432
SELECT ALL - CAST( 98 AS SIGNED ) DIV - ( ( - - ( 45 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - CAST ( 98 AS INTEGER ) / - ( ( - - ( 45 ) ) )
----
2

query I rowsort
SELECT + 68 + - 91
----
-23

query I rowsort
SELECT DISTINCT + 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL + COUNT( * ) * + 76 * ( - 39 )
----
-2964

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + COUNT ( * ) * + 76 * ( - 39 )
----
-2964

query I rowsort
SELECT DISTINCT - 98 * + 6 AS col1
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL 87 * SUM( ALL - 21 ) * - 15 * + - 75 AS col0
----
-2055375

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL 87 * SUM ( ALL - 21 ) * - 15 * + - 75 AS col0
----
-2055375

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT MIN( + 8 ) + - - NULLIF ( + 22, + 41 ) + - 46 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4438
SELECT MIN ( + 8 ) + - - NULLIF ( + 22, + 41 ) + - 46 AS col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT - ( + MAX( + 20 ) ) DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT - ( + MAX ( + 20 ) ) / + 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT NULLIF ( - NULLIF ( - COUNT( * ), + 82 + + 89 ), + 65 ) + 21 + 73 DIV + 43
----
23

skipif mysql # not compatible
query I rowsort label-4440
SELECT NULLIF ( - NULLIF ( - COUNT ( * ), + 82 + + 89 ), + 65 ) + 21 + 73 / + 43
----
23

query I rowsort
SELECT 59 - - - 31
----
28

query I rowsort
SELECT 62 * + + 82 * ( - + 61 )
----
-310124

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT 52 * - COUNT( DISTINCT - 35 ) * COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4443
SELECT 52 * - COUNT ( DISTINCT - 35 ) * COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT + COUNT( * ) DIV - NULLIF ( - ( CASE + 41 WHEN - COUNT( * ) THEN - COUNT( * ) * - - 61 * - COALESCE ( 53, + 72 ) + - COUNT( * ) WHEN 86 * + - 69 THEN NULL ELSE COUNT( * ) + - COUNT( * ) + 28 END ), - - 10 ) + - - SUM( + - 65 ) * 49 + + 57 + - + 88 + 62 + 45 DIV - 15 col1
----
-3157

skipif mysql # not compatible
query I rowsort label-4444
SELECT + COUNT ( * ) / - NULLIF ( - ( CASE + 41 WHEN - COUNT ( * ) THEN - COUNT ( * ) * - - 61 * - COALESCE ( 53, + 72 ) + - COUNT ( * ) WHEN 86 * + - 69 THEN NULL ELSE COUNT ( * ) + - COUNT ( * ) + 28 END ), - - 10 ) + - - SUM ( + - 65 ) * 49 + + 57 + - + 88 + 62 + 45 / - 15 col1
----
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT COUNT( * ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-4445
SELECT COUNT ( * ) * + 44
----
44

query I rowsort
SELECT DISTINCT - 71 + - ( 86 ) AS col2
----
-157

query I rowsort
SELECT 67 * - 14
----
-938

query I rowsort
SELECT ALL - 89 + 2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL + 26 + 27 + + COUNT( * ) * - 63 * + 54 + + + 3
----
-3346

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + 26 + 27 + + COUNT ( * ) * - 63 * + 54 + + + 3
----
-3346

query I rowsort
SELECT DISTINCT - 71 * 90
----
-6390

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL COUNT( * ) + + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL COUNT ( * ) + + 7 AS col1
----
8

query II rowsort
SELECT 92 * - 51 * - 73 AS col2, + 40
----
342516
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + - MIN( ALL - - 73 ) - + - 65 * 49 + - COUNT( * )
----
3111

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + - MIN ( ALL - - 73 ) - + - 65 * 49 + - COUNT ( * )
----
3111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT - COALESCE ( COUNT( * ), + 56 DIV - 86 ) * ( 61 ) - + 57
----
-118

skipif mysql # not compatible
query I rowsort label-4454
SELECT - COALESCE ( COUNT ( * ), + 56 / - 86 ) * ( 61 ) - + 57
----
-118

query I rowsort
SELECT + 86 * + 42
----
3612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-4456
SELECT CAST ( 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL + SUM( DISTINCT + + 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + SUM ( DISTINCT + + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + COUNT( * ) - + COALESCE ( + 59, - MAX( ALL + ( - 57 ) ) * - ( - - 25 ) + 19, NULLIF ( - - 12, - + 92 * - 25 * - 28 ) * + - 71 * + 34 ) + - 37
----
-95

skipif mysql # not compatible
query I rowsort label-4458
SELECT + COUNT ( * ) - + COALESCE ( + 59, - MAX ( ALL + ( - 57 ) ) * - ( - - 25 ) + 19, NULLIF ( - - 12, - + 92 * - 25 * - 28 ) * + - 71 * + 34 ) + - 37
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL + + 95 - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + + 95 - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT DISTINCT - 59, - COUNT( ALL + 77 ) AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-4460
SELECT DISTINCT - 59, - COUNT ( ALL + 77 ) AS col1
----
-59
-1

query I rowsort
SELECT ( - - 63 )
----
63

query II rowsort
SELECT - 11 col0, + 53 AS col2
----
-11
53

query I rowsort
SELECT DISTINCT - 2 * - 17
----
34

query I rowsort
SELECT - 32 * + + 33
----
-1056

query I rowsort
SELECT - - 56
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT 83 AS col2, - COUNT( * )
----
83
-1

skipif mysql # not compatible
query II rowsort label-4466
SELECT 83 AS col2, - COUNT ( * )
----
83
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT - CAST( - - 46 AS SIGNED ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-4467
SELECT - CAST ( - - 46 AS INTEGER ) col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT DISTINCT 90 col2, + COUNT( * ) col1
----
90
1

skipif mysql # not compatible
query II rowsort label-4468
SELECT DISTINCT 90 col2, + COUNT ( * ) col1
----
90
1

query II rowsort
SELECT ALL + 89 AS col1, - 94 AS col0
----
89
-94

query I rowsort
SELECT CASE - ( + + 13 ) WHEN - 83 THEN - 15 ELSE NULL END * + 4 + ( - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT + 47 * + - MIN( + 79 ) AS col0
----
-3713

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + 47 * + - MIN ( + 79 ) AS col0
----
-3713

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT 77 DIV 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT 77 / 89 AS col2
----
0

query I rowsort
SELECT ALL 63 * + 98 + - - 2
----
6176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT NULLIF ( - - COUNT( * ), - - 13 ) - + 76 * - ( - CAST( - - 22 AS SIGNED ) ) AS col1
----
-1671

skipif mysql # not compatible
query I rowsort label-4474
SELECT NULLIF ( - - COUNT ( * ), - - 13 ) - + 76 * - ( - CAST ( - - 22 AS INTEGER ) ) AS col1
----
-1671

query I rowsort
SELECT 87 * - + 50 * + + 79 col0
----
-343650

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 58 + + + COUNT( * ) * - + 75
----
-17

skipif mysql # not compatible
query I rowsort label-4476
SELECT 58 + + + COUNT ( * ) * - + 75
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 75 * + 4 + - CASE + + 20 WHEN - + COUNT( * ) / + 6 + + - 97 THEN - - 73 * - COUNT( * ) + - 7 ELSE NULL END * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 75 * + 4 + - CASE + + 20 WHEN - + COUNT ( * ) / + 6 + + - 97 THEN - - 73 * - COUNT ( * ) + - 7 ELSE NULL END * 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + ( COUNT( * ) ) * + COUNT( * ) - 69 * + COALESCE ( COUNT( * ), - 98, - + 96 ) + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4478
SELECT + ( COUNT ( * ) ) * + COUNT ( * ) - 69 * + COALESCE ( COUNT ( * ), - 98, - + 96 ) + COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT DISTINCT 37 * + 55 * + 60
----
122100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4480
SELECT COUNT( * ) / - - 57 + 29 + - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT COUNT ( * ) / - - 57 + 29 + - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL COUNT( * ) * 26 + + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL COUNT ( * ) * 26 + + + COUNT ( * )
----
27

query I rowsort
SELECT 92 - 6
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL - CAST( + 19 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - CAST ( + 19 AS INTEGER ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT CASE + ( + ( COUNT( * ) ) ) WHEN 28 + COUNT( - - 78 ) THEN + 24 WHEN - - 54 THEN - 5 ELSE NULL END * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT CASE + ( + ( COUNT ( * ) ) ) WHEN 28 + COUNT ( - - 78 ) THEN + 24 WHEN - - 54 THEN - 5 ELSE NULL END * + 68
----
NULL

query II rowsort
SELECT ALL - 16 - + 34 col2, + 41 * - 98 AS col0
----
-50
-4018

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT - + 36 + + ( ( - 39 ) ) + + 2 DIV 72 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4486
SELECT - + 36 + + ( ( - 39 ) ) + + 2 / 72 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT - + 31 * - COUNT( * ) * - - 80 + - CAST( NULL AS SIGNED ) + - + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT - + 31 * - COUNT ( * ) * - - 80 + - CAST ( NULL AS INTEGER ) + - + 13 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 58 col2
----
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4490
SELECT - 50 * + + NULLIF ( - + ( - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ), + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT - 50 * + + NULLIF ( - + ( - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ), + 18 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 65 * 29 + 50
----
1935

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - COUNT( ALL - + 77 ) * 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4492
SELECT - COUNT ( ALL - + 77 ) * 56 AS col2
----
-56

query I rowsort
SELECT - 77 + 94 + + 94
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT - - 9 DIV - - 53 * + 58
----
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT - - 9 / - - 53 * + 58
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT - + 4 * + + MAX( DISTINCT + 11 ) * + - COUNT( * ), 97 AS col1
----
44
97

skipif mysql # not compatible
query II rowsort label-4495
SELECT - + 4 * + + MAX ( DISTINCT + 11 ) * + - COUNT ( * ), 97 AS col1
----
44
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4496
SELECT ALL - CASE + 86 WHEN - NULLIF ( - 57, - NULLIF ( - SUM( 65 ), ( - 9 ) ) * + - 7 - - 30 ) * + 45 + + + 33 THEN NULL WHEN SUM( DISTINCT + 41 ) + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + + 54 - 65 + - ( - AVG ( DISTINCT + 81 ) ) * - - 65 * - 50 * 7 + - + ( MAX( DISTINCT + 91 ) ) + 88 + + + 85 * - 26 * - 17 THEN + ( COUNT( * ) ) WHEN + - 48 / COUNT( * ) THEN COALESCE ( 85, - CAST( NULL AS SIGNED ), - 14, - - MAX( + 35 ) * ( + - 80 ) ) - 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - CASE + 86 WHEN - NULLIF ( - 57, - NULLIF ( - SUM ( 65 ), ( - 9 ) ) * + - 7 - - 30 ) * + 45 + + + 33 THEN NULL WHEN SUM ( DISTINCT + 41 ) + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + + 54 - 65 + - ( - AVG ( DISTINCT + 81 ) ) * - - 65 * - 50 * 7 + - + ( MAX ( DISTINCT + 91 ) ) + 88 + + + 85 * - 26 * - 17 THEN + ( COUNT ( * ) ) WHEN + - 48 / COUNT ( * ) THEN COALESCE ( 85, - CAST ( NULL AS INTEGER ), - 14, - - MAX ( + 35 ) * ( + - 80 ) ) - 24 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4497
SELECT - + 35 * - 4 AS col0, 90 * 44 * 75 + + 88 + + - 61 DIV - - 80 * - 7 * - 84 AS col0
----
140
297088

skipif mysql # not compatible
query II rowsort label-4497
SELECT - + 35 * - 4 AS col0, 90 * 44 * 75 + + 88 + + - 61 / - - 80 * - 7 * - 84 AS col0
----
140
297088

query I rowsort
SELECT - + NULLIF ( 35, + 31 * 5 ) AS col2
----
-35

query I rowsort
SELECT - 52 + + ( - 88 )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL 5 + - 55 + - - 40 + - CASE + COUNT( - 59 ) WHEN + + COUNT( * ) THEN NULL WHEN - AVG ( + 71 ) THEN + - 44 WHEN + 13 THEN + 29 * - 8 + + 44 END * - - 30 * - + 66 - 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL 5 + - 55 + - - 40 + - CASE + COUNT ( - 59 ) WHEN + + COUNT ( * ) THEN NULL WHEN - AVG ( + 71 ) THEN + - 44 WHEN + 13 THEN + 29 * - 8 + + 44 END * - - 30 * - + 66 - 62 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - MIN( ALL - - 59 ) + - + 23 + - NULLIF ( COUNT( ALL + 81 ), 41 * - 80 * - + 65 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - MIN ( ALL - - 59 ) + - + 23 + - NULLIF ( COUNT ( ALL + 81 ), 41 * - 80 * - + 65 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT + 56 + + + CASE 3 WHEN 48 + + 26 - - + 98 * + 75 THEN CAST( + - COUNT( * ) AS SIGNED ) ELSE NULL END * - SUM( ALL - - 15 ) + - + CAST( - - MIN( DISTINCT - 29 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 56 + + + CASE 3 WHEN 48 + + 26 - - + 98 * + 75 THEN CAST ( + - COUNT ( * ) AS INTEGER ) ELSE NULL END * - SUM ( ALL - - 15 ) + - + CAST ( - - MIN ( DISTINCT - 29 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 27 + - 82 * + + 57
----
-4647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT + 9 + 41 * + - 16 * + CAST( NULL AS SIGNED ) - + ( ( - ( + 56 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 9 + 41 * + - 16 * + CAST ( NULL AS INTEGER ) - + ( ( - ( + 56 ) ) ) AS col2
----
NULL

query II rowsort
SELECT + ( 99 ) + + 91 col0, 67 AS col2
----
190
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4506
SELECT ALL 27 DIV 73 * + - 14 + + COUNT( ALL + 22 ), - 49 + 65 * + + CAST( + + 94 AS SIGNED ) AS col0
----
1
6061

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL 27 / 73 * + - 14 + + COUNT ( ALL + 22 ), - 49 + 65 * + + CAST ( + + 94 AS INTEGER ) AS col0
----
1
6061

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT ALL 46 * 9 DIV 85 + + 38
----
42

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL 46 * 9 / 85 + + 38
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT + COALESCE ( - 54, + 21, + 32 DIV MIN( DISTINCT - 30 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4508
SELECT + COALESCE ( - 54, + 21, + 32 / MIN ( DISTINCT - 30 ) )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT COUNT( * ) * + 32 + 20 + + 47 + + COUNT( * ), 52 AS col1
----
100
52

skipif mysql # not compatible
query II rowsort label-4509
SELECT COUNT ( * ) * + 32 + 20 + + 47 + + COUNT ( * ), 52 AS col1
----
100
52

query I rowsort
SELECT ALL 54 * + 15 * + COALESCE ( + 82, - + 39 + + + 88 - + - 25 + + + 35 )
----
66420

query I rowsort
SELECT ( - - 66 ) AS col0
----
66

query I rowsort
SELECT + 19 + - 87 * - 68 AS col0
----
5935

query I rowsort
SELECT ALL 83 * - 67 - + 23 AS col2
----
-5584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4514
SELECT + CAST( NULL AS DECIMAL ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT + CAST ( NULL AS REAL ) * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL COUNT( * ) * - + NULLIF ( 16, + 76 * + - 44 + - 70 * 84 * + 68 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL COUNT ( * ) * - + NULLIF ( 16, + 76 * + - 44 + - 70 * 84 * + 68 ) AS col1
----
-16

query I rowsort
SELECT + 87 * - 13 + 61 - - 14
----
-1056

query I rowsort
SELECT DISTINCT + + ( + + 18 )
----
18

query I rowsort
SELECT DISTINCT + 50 AS col2
----
50

query I rowsort
SELECT ALL - ( - + 46 ) * - 71 * - 68 AS col1
----
222088

query I rowsort
SELECT ALL + + 4 AS col2
----
4

query I rowsort
SELECT - 57 + + 16 AS col2
----
-41

query I rowsort
SELECT ( + + NULLIF ( - 68, + 68 + + + 14 ) ) * - 63 + + - 85 AS col1
----
4199

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT MAX( + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4523
SELECT MAX ( + 49 ) AS col2
----
49

query I rowsort
SELECT - 84 * - 90
----
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL - + 39 * COUNT( + 63 ) + - 53 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - + 39 * COUNT ( + 63 ) + - 53 AS col0
----
-92

query I rowsort
SELECT + 23 * 51
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - 45 * + + COUNT( * ) * + NULLIF ( - - 81, + COUNT( * ) ) - - 56 * + ( MIN( + + 82 ) )
----
947

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 45 * + + COUNT ( * ) * + NULLIF ( - - 81, + COUNT ( * ) ) - - 56 * + ( MIN ( + + 82 ) )
----
947

query I rowsort
SELECT DISTINCT 65 * + 77 + + 65
----
5070

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT - COUNT( * ) - MIN( DISTINCT - 78 ) + 51 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4529
SELECT - COUNT ( * ) - MIN ( DISTINCT - 78 ) + 51 AS col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-4530
SELECT ALL 11 * - NULLIF ( - 30, + ( COUNT( * ) ) * + 83 ) + - 39 + - + 87 * COUNT( * ) * - COUNT( * ) col1, 76
----
378
76

skipif mysql # not compatible
query II rowsort label-4530
SELECT ALL 11 * - NULLIF ( - 30, + ( COUNT ( * ) ) * + 83 ) + - 39 + - + 87 * COUNT ( * ) * - COUNT ( * ) col1, 76
----
378
76

query I rowsort
SELECT ALL + 92 + - 89 AS col0
----
3

query I rowsort
SELECT DISTINCT - 34 col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4533
SELECT ALL - 29 + - 70, + 90 * - MIN( + + 98 ) * + NULLIF ( + 95, + + COALESCE ( - + COUNT( - 81 ), - 33, + CAST( - ( 4 ) AS SIGNED ) * 56 ) ) AS col2
----
-99
-837900

skipif mysql # not compatible
query II rowsort label-4533
SELECT ALL - 29 + - 70, + 90 * - MIN ( + + 98 ) * + NULLIF ( + 95, + + COALESCE ( - + COUNT ( - 81 ), - 33, + CAST ( - ( 4 ) AS INTEGER ) * 56 ) ) AS col2
----
-99
-837900

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT - 33 DIV + 7
----
-4

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 33 / + 7
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4535
SELECT ALL - 56 + + + CASE 51 WHEN - NULLIF ( CAST( - 61 AS DECIMAL ), - 17 * - 87 ) + - 61 THEN - 27 WHEN - 66 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - 56 + + + CASE 51 WHEN - NULLIF ( CAST ( - 61 AS REAL ), - 17 * - 87 ) + - 61 THEN - 27 WHEN - 66 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL ( - COALESCE ( + COUNT( * ), - MIN( CAST( NULL AS SIGNED ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL ( - COALESCE ( + COUNT ( * ), - MIN ( CAST ( NULL AS INTEGER ) ) ) )
----
-1

query II rowsort
SELECT 3 AS col1, 44 AS col1
----
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT - SUM( - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4538
SELECT - SUM ( - 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - COUNT( * ) - + - 27 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4539
SELECT - COUNT ( * ) - + - 27 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4540
SELECT - 79 * 86 * - - ( + 31 ) AS col0, - 27 * + CASE COUNT( * ) WHEN + + 19 * - 20 - 50 THEN NULL ELSE 25 END + + 72 + + CAST( NULL AS SIGNED )
----
-210614
NULL

skipif mysql # not compatible
query II rowsort label-4540
SELECT - 79 * 86 * - - ( + 31 ) AS col0, - 27 * + CASE COUNT ( * ) WHEN + + 19 * - 20 - 50 THEN NULL ELSE 25 END + + 72 + + CAST ( NULL AS INTEGER )
----
-210614
NULL

query II rowsort
SELECT 47, + 16 col2
----
47
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT ALL - 30 DIV + 41 * ( + - MAX( + ( + 60 ) ) ) DIV 36 + + + ( - - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - 30 / + 41 * ( + - MAX ( + ( + 60 ) ) ) / 36 + + + ( - - 44 ) AS col1
----
44

query I rowsort
SELECT + 3 * - 17
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + SUM( + 63 ) + NULLIF ( - COUNT( * ), + 26 )
----
62

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + SUM ( + 63 ) + NULLIF ( - COUNT ( * ), + 26 )
----
62

query I rowsort
SELECT DISTINCT ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT - COUNT( * ) AS col2, 25
----
-1
25

skipif mysql # not compatible
query II rowsort label-4546
SELECT - COUNT ( * ) AS col2, 25
----
-1
25

query II rowsort
SELECT 41 AS col0, 60 + - 23 + 31
----
41
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL CAST( - 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CAST ( - 86 AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT - 12 - + 6 + + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - 12 - + 6 + + - COUNT ( * )
----
-19

query I rowsort
SELECT ALL + 58 * 30 AS col0
----
1740

query I rowsort
SELECT + NULLIF ( - ( - 85 ), AVG ( - 33 ) ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT ALL 10 DIV + 70 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL 10 / + 70 - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4553
SELECT DISTINCT + COUNT( * ) * - 35 DIV - - 13 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + COUNT ( * ) * - 35 / - - 13 AS col2
----
-2

query II rowsort
SELECT 76 + - 62, ( 7 ) + - 57 AS col1
----
14
-50

query II rowsort
SELECT + 93, + 5 * - 23 AS col0
----
93
-115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4556
SELECT ( ( - ( - 42 ) ) ) * + - CAST( NULL AS DECIMAL ) + ( - 21 ) + + + 52 / + + CASE - 53 WHEN + - 90 + - - 82 + + 79 THEN + 41 ELSE - 6 END * - - ( + 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ( ( - ( - 42 ) ) ) * + - CAST ( NULL AS REAL ) + ( - 21 ) + + + 52 / + + CASE - 53 WHEN + - 90 + - - 82 + + 79 THEN + 41 ELSE - 6 END * - - ( + 55 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT CAST( NULL AS SIGNED ) * 75 + - NULLIF ( - 47, + 45 + - 80 ) + - 3 + - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT CAST ( NULL AS INTEGER ) * 75 + - NULLIF ( - 47, + 45 + - 80 ) + - 3 + - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ( COALESCE ( ( - MIN( ALL 96 ) ), + - ( + - ( 68 ) ) ) ) * 58 + - 78
----
-5646

skipif mysql # not compatible
query I rowsort label-4558
SELECT ( COALESCE ( ( - MIN ( ALL 96 ) ), + - ( + - ( 68 ) ) ) ) * 58 + - 78
----
-5646

onlyif mysql # DIV for integer division: 
query II rowsort label-4559
SELECT ALL + 9 DIV - - 46 AS col0, NULLIF ( + ( + 68 ), + 41 * - 60 ) AS col1
----
0
68

skipif mysql # not compatible
query II rowsort label-4559
SELECT ALL + 9 / - - 46 AS col0, NULLIF ( + ( + 68 ), + 41 * - 60 ) AS col1
----
0
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT + CAST( NULL AS SIGNED ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT + CAST ( NULL AS INTEGER ) * - 31
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4561
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - CAST ( NULL AS REAL ) col2
----
NULL

query II rowsort
SELECT DISTINCT - 23 AS col0, + 0 AS col2
----
-23
0

query I rowsort
SELECT DISTINCT - - 97
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT ALL 1 DIV 97 + MIN( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL 1 / 97 + MIN ( DISTINCT - 28 )
----
-28

query II rowsort
SELECT ALL - 72, + 17 - 99 + - + 50 * - 54 * - 29 AS col1
----
-72
-78382

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - SUM( DISTINCT 34 ) * - + COUNT( + 16 ) * MAX( + 51 ) * - 23 * 72 + + - 30 col1
----
-2871534

skipif mysql # not compatible
query I rowsort label-4566
SELECT - SUM ( DISTINCT 34 ) * - + COUNT ( + 16 ) * MAX ( + 51 ) * - 23 * 72 + + - 30 col1
----
-2871534

query I rowsort
SELECT + 9 * ( - CASE WHEN NOT NULL IN ( 65, AVG ( DISTINCT + 32 ) * 86, + - 11, 14 ) THEN - 66 ELSE NULL END ) + 22 + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT COUNT( * ), 3 AS col2
----
1
3

skipif mysql # not compatible
query II rowsort label-4568
SELECT COUNT ( * ), 3 AS col2
----
1
3

query I rowsort
SELECT + + 5 col1
----
5

query II rowsort
SELECT ALL 42 + + + 32 AS col0, + 62
----
74
62

query I rowsort
SELECT - 12 + + + 89 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4572
SELECT + COUNT( * ) * + 70 * - + ( + CAST( NULL AS SIGNED ) ) * - 34 * - 37 * 52 AS col1, SUM( 33 ) AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4572
SELECT + COUNT ( * ) * + 70 * - + ( + CAST ( NULL AS INTEGER ) ) * - 34 * - 37 * 52 AS col1, SUM ( 33 ) AS col0
----
NULL
33

query I rowsort
SELECT DISTINCT 99 * - - 71
----
7029

query I rowsort
SELECT ALL - 21 + - 67 * 9
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + 63 + - + MIN( ALL 4 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + 63 + - + MIN ( ALL 4 ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4576
SELECT - 86, ( - 10 ) * + - 1 * + - 86 + MIN( - 12 ) DIV + 5 AS col2
----
-86
-862

skipif mysql # not compatible
query II rowsort label-4576
SELECT - 86, ( - 10 ) * + - 1 * + - 86 + MIN ( - 12 ) / + 5 AS col2
----
-86
-862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL + 41 + - CAST( NULL AS SIGNED ) / - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + 41 + - CAST ( NULL AS INTEGER ) / - 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4578
SELECT DISTINCT 27 + - 11 + NULLIF ( + 45, 33 + + + 87 + + + ( + COUNT( * ) ) + 23 ) col1, 26 DIV + 92 - - + MAX( DISTINCT + 98 )
----
61
98

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT 27 + - 11 + NULLIF ( + 45, 33 + + + 87 + + + ( + COUNT ( * ) ) + 23 ) col1, 26 / + 92 - - + MAX ( DISTINCT + 98 )
----
61
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT CAST( NULL AS SIGNED ) + + + 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT CAST ( NULL AS INTEGER ) + + + 52 col2
----
NULL

query I rowsort
SELECT 96 * + 26 AS col0
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT 67 + 13 DIV + 72 DIV - COUNT( + + 52 )
----
67

skipif mysql # not compatible
query I rowsort label-4581
SELECT 67 + 13 / + 72 / - COUNT ( + + 52 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL - COUNT( * ) - + 61 - - + CASE + NULLIF ( - SUM( ALL 15 ), 71 + - + 83 / - 38 ) WHEN - - 93 THEN NULL WHEN + COUNT( * ) THEN ( + - 77 ) ELSE NULL END / + + 7 * - - 57 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - COUNT ( * ) - + 61 - - + CASE + NULLIF ( - SUM ( ALL 15 ), 71 + - + 83 / - 38 ) WHEN - - 93 THEN NULL WHEN + COUNT ( * ) THEN ( + - 77 ) ELSE NULL END / + + 7 * - - 57 * 64
----
NULL

query II rowsort
SELECT DISTINCT 14 - - 17 AS col2, 80 * - 6 * - - 88 col2
----
31
-42240

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT 86 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4584
SELECT 86 * + COUNT ( * )
----
86

query I rowsort
SELECT 93 + - 72 + 34 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL - 26 * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - 26 * COUNT ( * )
----
-26

query I rowsort
SELECT 2 + 45 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( ALL + ( - 97 ) ) * - + 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( ALL + ( - 97 ) ) * - + 9 AS col0
----
-9

query I rowsort
SELECT 12 + - 21 * - + 35 - - - 71
----
676

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4590
SELECT 18 DIV 25, + COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-4590
SELECT 18 / 25, + COUNT ( * ) col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4591
SELECT COUNT( * ) + - + CAST( NULL AS DECIMAL ) * + - COUNT( DISTINCT 30 ) * + + 88 + + 36 * - 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT COUNT ( * ) + - + CAST ( NULL AS REAL ) * + - COUNT ( DISTINCT 30 ) * + + 88 + + 36 * - 18 col1
----
NULL

query I rowsort
SELECT - 93 col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT 31 DIV SUM( DISTINCT 65 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT 31 / SUM ( DISTINCT 65 ) col0
----
0

query I rowsort
SELECT ALL - 9 * - ( - 75 ) * + 86 * 14 col1
----
-812700

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - COALESCE ( COALESCE ( 45, + 0 ), - MIN( ALL + - 20 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - COALESCE ( COALESCE ( 45, + 0 ), - MIN ( ALL + - 20 ) ) AS col1
----
-45

query I rowsort
SELECT DISTINCT - + 68
----
-68

query I rowsort
SELECT ALL 46 + 33 * 17 AS col0
----
607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT ALL - - 74 * - - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - - 74 * - - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT 28 * CASE + 56 WHEN + COUNT( ALL - + 34 ) / - + 63 * 62 THEN NULL ELSE + 27 * - MIN( 34 ) * + 89 + - 38 END AS col1, - ( - 93 ) * - 52 * 74
----
-2288720
-357864

skipif mysql # not compatible
query II rowsort label-4599
SELECT 28 * CASE + 56 WHEN + COUNT ( ALL - + 34 ) / - + 63 * 62 THEN NULL ELSE + 27 * - MIN ( 34 ) * + 89 + - 38 END AS col1, - ( - 93 ) * - 52 * 74
----
-2288720
-357864

query I rowsort
SELECT DISTINCT - 86 + + - 24 - + 41 - + 18 AS col2
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT - 53 * - + 8 * - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 53 * - + 8 * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT 77 * - + COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4602
SELECT 77 * - + COUNT ( * ) AS col0
----
-77

query I rowsort
SELECT + - 20 AS col2
----
-20

query I rowsort
SELECT DISTINCT - + 32 + + NULLIF ( + 44, - 85 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT + 3 DIV + - ( + 47 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT + 3 / + - ( + 47 ) col2
----
0

query I rowsort
SELECT ALL - 92 + - + 27 - - 0 * - + 48
----
-119

query I rowsort
SELECT ALL CASE 88 WHEN - ( + 32 ) / 5 THEN NULLIF ( + 9, - 82 ) * 51 END * + 11 + + + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4608
SELECT ALL 76 + COUNT( - 1 ) - - + CASE - + 98 WHEN - CAST( NULL AS SIGNED ) THEN + 44 WHEN + 92 * + COUNT( * ) + 74 + + 48 THEN 20 ELSE - COUNT( * ) DIV + 23 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 76 + COUNT ( - 1 ) - - + CASE - + 98 WHEN - CAST ( NULL AS INTEGER ) THEN + 44 WHEN + 92 * + COUNT ( * ) + 74 + + 48 THEN 20 ELSE - COUNT ( * ) / + 23 END AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT DISTINCT - 42 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - 42 / 64
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-4610
SELECT + MAX( ALL + 13 ) AS col2, - 57, 2 - + COUNT( * ) AS col2
----
13
-57
1

skipif mysql # not compatible
query III rowsort label-4610
SELECT + MAX ( ALL + 13 ) AS col2, - 57, 2 - + COUNT ( * ) AS col2
----
13
-57
1

query II rowsort
SELECT 85, ( + 60 ) * + - 22 AS col2
----
85
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT 50 - - 10 + - - 66 * + - 13 * + COUNT( * ) AS col2
----
-798

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT 50 - - 10 + - - 66 * + - 13 * + COUNT ( * ) AS col2
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT NULLIF ( + NULLIF ( + COUNT( * ), + 45 ), 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT NULLIF ( + NULLIF ( + COUNT ( * ), + 45 ), 98 ) AS col1
----
1

query I rowsort
SELECT ALL + 30 * + 72
----
2160

query I rowsort
SELECT ALL 56 * - + 57 AS col1
----
-3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT DISTINCT 73 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT 73 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT DISTINCT 22 AS col0, + COUNT( DISTINCT + + NULLIF ( + 47, - + 31 * - 13 ) )
----
22
1

skipif mysql # not compatible
query II rowsort label-4617
SELECT DISTINCT 22 AS col0, + COUNT ( DISTINCT + + NULLIF ( + 47, - + 31 * - 13 ) )
----
22
1

query I rowsort
SELECT 96 * - 30
----
-2880

query II rowsort
SELECT + ( - 69 ) - - - 27, 36 * + - 5 AS col1
----
-96
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT + SUM( DISTINCT - 64 ) * + 97 + + - 0 AS col2, 88 AS col1
----
-6208
88

skipif mysql # not compatible
query II rowsort label-4620
SELECT + SUM ( DISTINCT - 64 ) * + 97 + + - 0 AS col2, 88 AS col1
----
-6208
88

query I rowsort
SELECT - 72 * - 31 AS col2
----
2232

query I rowsort
SELECT DISTINCT - ( + 98 ) * - + 11 * - 78 + - 37
----
-84121

query I rowsort
SELECT - CASE - NULLIF ( - 2, + 86 ) WHEN 42 THEN - 83 WHEN 6 * 77 * + + 39 * + - 0 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4624
SELECT ALL 92, 16 DIV - COALESCE ( - - 4, 89 ) AS col1
----
92
-4

skipif mysql # not compatible
query II rowsort label-4624
SELECT ALL 92, 16 / - COALESCE ( - - 4, 89 ) AS col1
----
92
-4

query I rowsort
SELECT ALL - 77 * + + 85 AS col1
----
-6545

query I rowsort
SELECT + 36 * ( - - COALESCE ( 49, + 11 ) ) * - 52 AS col0
----
-91728

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL 42 + 91 + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL 42 + 91 + COUNT ( * )
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4628
SELECT - 54 - + 22 + + 90 * - + CAST( NULL AS SIGNED ) * + + 9 + 39, 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4628
SELECT - 54 - + 22 + + 90 * - + CAST ( NULL AS INTEGER ) * + + 9 + 39, 36 AS col1
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL - + 13 + + 91 * COUNT( ALL + 74 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL - + 13 + + 91 * COUNT ( ALL + 74 ) col2
----
78

query I rowsort
SELECT - 0 - + 55 + + 16 AS col1
----
-39

query I rowsort
SELECT - ( 9 )
----
-9

query I rowsort
SELECT + 44 + + 64 AS col1
----
108

query I rowsort
SELECT - - 37 * 49 * - 4 * + + 19 AS col2
----
-137788

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + + 40 * + - 24 + - - 40 + + - 44 + + COUNT( * ) AS col1
----
-963

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + + 40 * + - 24 + - - 40 + + - 44 + + COUNT ( * ) AS col1
----
-963

query I rowsort
SELECT + - ( - 45 ) + - - 42 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT - - 87 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT - - 87 / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - ( - - 84 ) * + + COUNT( * ) + - 82 * ( + 26 ) AS col1
----
-2216

skipif mysql # not compatible
query I rowsort label-4637
SELECT - ( - - 84 ) * + + COUNT ( * ) + - 82 * ( + 26 ) AS col1
----
-2216

query I rowsort
SELECT - ( - + 0 ) - + 99
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT ALL + - 9 DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + - 9 / - + 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT DISTINCT + + ( + 0 ) * - - COUNT( * ) - - COUNT( - + CAST( - 35 AS SIGNED ) ) + - 53 - + 99 + + ( - 79 ) * - 70 AS col0
----
5379

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT + + ( + 0 ) * - - COUNT ( * ) - - COUNT ( - + CAST ( - 35 AS INTEGER ) ) + - 53 - + 99 + + ( - 79 ) * - 70 AS col0
----
5379

query I rowsort
SELECT - 7 + - 50 AS col0
----
-57

query I rowsort
SELECT ALL - - 22 * 28 + 20
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4643
SELECT DISTINCT + + ( - 10 ) * + CASE - NULLIF ( + MIN( ALL - + ( - - COALESCE ( 5, - 61, - - CAST( NULL AS SIGNED ), - - 44 ) ) ), - 45 + - + COUNT( * ) * - ( - CAST( + 4 AS SIGNED ) ) * - - COUNT( * ) - COUNT( * ) ) WHEN + 39 - 92 + - AVG ( 81 ) + - MAX( DISTINCT + 87 ) THEN - 62 WHEN + - 81 THEN NULL WHEN + + NULLIF ( - COUNT( * ), CASE - 88 WHEN + 8 THEN - + 51 * + COUNT( * ) * - 92 - + COALESCE ( 62, + ( + - 14 ) ) END * 55 ) THEN - 20 * - ( + - 51 ) / + + 38 ELSE NULL END / + + 20 + 51 + 25 AS col0, + 53 - - + CAST( NULL AS SIGNED ) + ( 43 ) * + 94 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT + + ( - 10 ) * + CASE - NULLIF ( + MIN ( ALL - + ( - - COALESCE ( 5, - 61, - - CAST ( NULL AS INTEGER ), - - 44 ) ) ), - 45 + - + COUNT ( * ) * - ( - CAST ( + 4 AS INTEGER ) ) * - - COUNT ( * ) - COUNT ( * ) ) WHEN + 39 - 92 + - AVG ( 81 ) + - MAX ( DISTINCT + 87 ) THEN - 62 WHEN + - 81 THEN NULL WHEN + + NULLIF ( - COUNT ( * ), CASE - 88 WHEN + 8 THEN - + 51 * + COUNT ( * ) * - 92 - + COALESCE ( 62, + ( + - 14 ) ) END * 55 ) THEN - 20 * - ( + - 51 ) / + + 38 ELSE NULL END / + + 20 + 51 + 25 AS col0, + 53 - - + CAST ( NULL AS INTEGER ) + ( 43 ) * + 94 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL + 55 * - 83 - + - 36 / + 34 + + CAST( NULL AS SIGNED ) + - + 17 / + MAX( DISTINCT - + 32 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + 55 * - 83 - + - 36 / + 34 + + CAST ( NULL AS INTEGER ) + - + 17 / + MAX ( DISTINCT - + 32 ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT - 30 + - - ( + CAST( - + 23 AS SIGNED ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4645
SELECT - 30 + - - ( + CAST ( - + 23 AS INTEGER ) ) AS col2
----
-53

query II rowsort
SELECT DISTINCT + 73, + 40 AS col2
----
73
40

query I rowsort
SELECT ( - + 85 ) AS col1
----
-85

query I rowsort
SELECT + NULLIF ( + 21, - 62 ) AS col1
----
21

query I rowsort
SELECT ALL + - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL - COALESCE ( - 17, + - ( 28 ) ) * - - 64 * + 87 - - + 37 - 3 * + 49 * - + COUNT( * ) AS col2
----
94840

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - COALESCE ( - 17, + - ( 28 ) ) * - - 64 * + 87 - - + 37 - 3 * + 49 * - + COUNT ( * ) AS col2
----
94840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT + + 69 * + 32 * COUNT( * ) * + CAST( + + 91 AS SIGNED ) AS col0
----
200928

skipif mysql # not compatible
query I rowsort label-4651
SELECT + + 69 * + 32 * COUNT ( * ) * + CAST ( + + 91 AS INTEGER ) AS col0
----
200928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4652
SELECT DISTINCT 4 * - - 60 - - COUNT( * ) - - + 42 + 6 + - COUNT( * ) DIV + - 9 - 80
----
209

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT 4 * - - 60 - - COUNT ( * ) - - + 42 + 6 + - COUNT ( * ) / + - 9 - 80
----
209

query I rowsort
SELECT ALL + 32 AS col1
----
32

query I rowsort
SELECT ALL 5 * - + 34 * + 47 - + + 77 + - 45 AS col0
----
-8112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT ALL COUNT( ALL - 72 ) DIV 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL COUNT ( ALL - 72 ) / 2 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT DISTINCT ( + 73 ) AS col1, COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-4656
SELECT DISTINCT ( + 73 ) AS col1, COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT ALL ( - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT + ( + + COUNT( * ) ) DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4658
SELECT + ( + + COUNT ( * ) ) / 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT - COALESCE ( + ( COUNT( ALL + 22 ) ), + - 13 ) * 97 * + COUNT( * ) + 18 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4659
SELECT - COALESCE ( + ( COUNT ( ALL + 22 ) ), + - 13 ) * 97 * + COUNT ( * ) + 18 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT + 20 * NULLIF ( + - CAST( NULL AS SIGNED ), + - 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 20 * NULLIF ( + - CAST ( NULL AS INTEGER ), + - 33 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT ALL + 99 DIV + 8 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 99 / + 8 AS col0
----
12

query I rowsort
SELECT - 8 + - 31 AS col0
----
-39

query I rowsort
SELECT 43 col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + 72 DIV + 10
----
7

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 72 / + 10
----
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4665
SELECT - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) + + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT + 90 - + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 90 - + - COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT 82 col1
----
82

query I rowsort
SELECT ALL 55 * 13 AS col1
----
715

query I rowsort
SELECT + 60 + - NULLIF ( + - 76, + + 78 * 32 - - COALESCE ( + 81, - 82 + + 32 - 49 * 71 ) * + 58 - 9 * - 54 * + 23 / 81 * + 27 )
----
136

query I rowsort
SELECT ALL - 36 + - 80 AS col2
----
-116

query I rowsort
SELECT DISTINCT + 81 * + 19 AS col0
----
1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL CAST( NULL AS SIGNED ) + - - AVG ( 80 ) - - NULLIF ( + ( + 68 ), - + NULLIF ( COALESCE ( ( + 84 ), + ( - - COALESCE ( 48, - 18 ) ) * - 2 / 97 + + 7 * - + 92 + COUNT( * ) + 20 ), 68 + + NULLIF ( 82, - 55 + NULLIF ( - 6, - + ( + COUNT( * ) ) ) - + COUNT( * ) - CAST( NULL AS SIGNED ) + 45 * + + 41 + - COUNT( * ) * - 69 * - 70 * + 6 ) ) / + - 6 * + 29 ) / + 65 / COUNT( * ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL CAST ( NULL AS INTEGER ) + - - AVG ( 80 ) - - NULLIF ( + ( + 68 ), - + NULLIF ( COALESCE ( ( + 84 ), + ( - - COALESCE ( 48, - 18 ) ) * - 2 / 97 + + 7 * - + 92 + COUNT ( * ) + 20 ), 68 + + NULLIF ( 82, - 55 + NULLIF ( - 6, - + ( + COUNT ( * ) ) ) - + COUNT ( * ) - CAST ( NULL AS INTEGER ) + 45 * + + 41 + - COUNT ( * ) * - 69 * - 70 * + 6 ) ) / + - 6 * + 29 ) / + 65 / COUNT ( * ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT + 54 + - + ( + + 69 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT ALL 19 + + 42, 74 * - COUNT( * ) col1
----
61
-74

skipif mysql # not compatible
query II rowsort label-4674
SELECT ALL 19 + + 42, 74 * - COUNT ( * ) col1
----
61
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4675
SELECT + 30 + + 40 - + 19 - + 45 * 39 DIV - + MAX( + 28 ) AS col0, - MIN( ALL - - 68 ) + - SUM( ALL - 52 ) AS col2
----
113
-16

skipif mysql # not compatible
query II rowsort label-4675
SELECT + 30 + + 40 - + 19 - + 45 * 39 / - + MAX ( + 28 ) AS col0, - MIN ( ALL - - 68 ) + - SUM ( ALL - 52 ) AS col2
----
113
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT - NULLIF ( - ( - 77 ), - 97 * 35 + - + CAST( + ( + ( 22 ) ) AS SIGNED ) + + 43 / 84 )
----
-77

skipif mysql # not compatible
query I rowsort label-4676
SELECT - NULLIF ( - ( - 77 ), - 97 * 35 + - + CAST ( + ( + ( 22 ) ) AS INTEGER ) + + 43 / 84 )
----
-77

query I rowsort
SELECT + 6 + + 22 + CASE WHEN 6 <= ( ( - + 65 ) ) THEN - + 26 ELSE - + 81 END * 61 * 48 AS col1
----
-237140

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - CASE - 50 WHEN - - 79 / + 98 THEN AVG ( ALL 52 ) END + MAX( ALL + 4 ) - + ( ( - - 47 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - CASE - 50 WHEN - - 79 / + 98 THEN AVG ( ALL 52 ) END + MAX ( ALL + 4 ) - + ( ( - - 47 ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 86 + - - 63 AS col2, + 98 * + 51
----
149
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT NULLIF ( - - 58, 76 + + COUNT( 7 ) * 77 )
----
58

skipif mysql # not compatible
query I rowsort label-4680
SELECT NULLIF ( - - 58, 76 + + COUNT ( 7 ) * 77 )
----
58

query I rowsort
SELECT - 34 + - + 49 AS col1
----
-83

query I rowsort
SELECT ALL 8 * 4
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT + MAX( ALL 51 ) DIV - + 3
----
-17

skipif mysql # not compatible
query I rowsort label-4683
SELECT + MAX ( ALL 51 ) / - + 3
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT DISTINCT + 3 * - + COUNT( * ) col0, + COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-4684
SELECT DISTINCT + 3 * - + COUNT ( * ) col0, + COUNT ( * )
----
-3
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT ALL CAST( + + 65 AS SIGNED ) * + + 10 + 2 * + COUNT( * ) + 91 + + COALESCE ( + - 85, - 30 * - COUNT( * ) + - + 8, - 24 )
----
658

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL CAST ( + + 65 AS INTEGER ) * + + 10 + 2 * + COUNT ( * ) + 91 + + COALESCE ( + - 85, - 30 * - COUNT ( * ) + - + 8, - 24 )
----
658

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT - - 64 * - 70, 78 + + 18 + - - 34 + ( + + CASE 41 WHEN + 4 THEN NULL WHEN + 33 + - + COUNT( * ) + + + 19 + + 51 + - + 63 * + SUM( ALL + + 46 ) THEN 17 * - 24 END ) + + 30 / 69 AS col2
----
-4480
NULL

skipif mysql # not compatible
query II rowsort label-4686
SELECT - - 64 * - 70, 78 + + 18 + - - 34 + ( + + CASE 41 WHEN + 4 THEN NULL WHEN + 33 + - + COUNT ( * ) + + + 19 + + 51 + - + 63 * + SUM ( ALL + + 46 ) THEN 17 * - 24 END ) + + 30 / 69 AS col2
----
-4480
NULL

query II rowsort
SELECT + + 14 * + 22 * - 41 - + 18, - 89 AS col2
----
-12646
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT ALL + - 89 DIV 6 * - - 11 - - 54 AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + - 89 / 6 * - - 11 - - 54 AS col2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT + 60 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + 60 / + 21
----
2

query I rowsort
SELECT DISTINCT + - 82 AS col0
----
-82

query I rowsort
SELECT DISTINCT + 48 col2
----
48

query I rowsort
SELECT ALL + 12 * - + 26
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT 12 * + ( - COUNT( * ) ) - - + 43
----
31

skipif mysql # not compatible
query I rowsort label-4693
SELECT 12 * + ( - COUNT ( * ) ) - - + 43
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4694
SELECT ALL + COUNT( * ) * - MAX( DISTINCT - 50 ) AS col1, + COALESCE ( - - 81, - 76, - CAST( + 64 AS SIGNED ) + ( + COUNT( * ) ) * + 17 * - - MAX( + - 78 ) ) - - - ( + - ( - COUNT( * ) ) ) * + - 26
----
50
107

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT - 50 ) AS col1, + COALESCE ( - - 81, - 76, - CAST ( + 64 AS INTEGER ) + ( + COUNT ( * ) ) * + 17 * - - MAX ( + - 78 ) ) - - - ( + - ( - COUNT ( * ) ) ) * + - 26
----
50
107

query I rowsort
SELECT 76 * + 55
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT 12 * - MAX( 65 ) * COUNT( * ) + 90
----
-690

skipif mysql # not compatible
query I rowsort label-4696
SELECT 12 * - MAX ( 65 ) * COUNT ( * ) + 90
----
-690

query II rowsort
SELECT DISTINCT + 95 * + + 34 * + 70 AS col1, + 43
----
226100
43

query I rowsort
SELECT 28 + 87 * + 77
----
6727

query II rowsort
SELECT ALL 77 AS col1, - 87 AS col0
----
77
-87

query I rowsort
SELECT 2 * - 25
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) + SUM( DISTINCT - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - 9 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4702
SELECT ALL CAST( NULL AS SIGNED ) + - - 97 * + + 87 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL CAST ( NULL AS INTEGER ) + - - 97 * + + 87 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT DISTINCT - NULLIF ( + 95, + CAST( NULL AS SIGNED ) ) + + 30 + - 85 + + 33 * + - 90 AS col2
----
-3120

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - NULLIF ( + 95, + CAST ( NULL AS INTEGER ) ) + + 30 + - 85 + + 33 * + - 90 AS col2
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL - 5 + + COUNT( * ) + - 4
----
-8

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL - 5 + + COUNT ( * ) + - 4
----
-8

query I rowsort
SELECT 8 - + 11 - + 26 AS col2
----
-29

query II rowsort
SELECT 29 AS col0, + 93 AS col1
----
29
93

query I rowsort
SELECT 17 - 35
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT 53 * COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4708
SELECT 53 * COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT 6 * COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT 6 * COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL CASE 31 WHEN + 86 * ( - 31 ) THEN NULL ELSE + 86 * + ( 9 * - 91 ) END * 80 AS col1
----
-5634720

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT 27 * - MIN( 55 * ( - 49 * - 47 ) )
----
-3419955

skipif mysql # not compatible
query I rowsort label-4711
SELECT 27 * - MIN ( 55 * ( - 49 * - 47 ) )
----
-3419955

query I rowsort
SELECT DISTINCT 0 + 7
----
7

query I rowsort
SELECT DISTINCT + 87 * COALESCE ( - 25 * 50, + 94, - 43 ) AS col1
----
-108750

query I rowsort
SELECT DISTINCT - COALESCE ( 67, + 38 * + 5 ) * 60
----
-4020

query I rowsort
SELECT DISTINCT 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT COUNT( * ) + + 24 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4716
SELECT COUNT ( * ) + + 24 AS col1
----
25

query I rowsort
SELECT + 76 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL 99 - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 99 - COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4719
SELECT COUNT ( * ) * 33 AS col1
----
33

query I rowsort
SELECT ( 45 ) * 83
----
3735

query I rowsort
SELECT 51 + 66 * - 70
----
-4569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT CAST( ( + 6 ) AS SIGNED ) * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4722
SELECT CAST ( ( + 6 ) AS INTEGER ) * COUNT ( * )
----
6

query I rowsort
SELECT ALL 51 * 33
----
1683

query I rowsort
SELECT + NULLIF ( 23, 65 * 98 ) * + 78 + 32 * + 39
----
3042

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT 16 DIV 92 + 86 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-4725
SELECT 16 / 92 + 86 / + 56
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT DISTINCT 98 DIV 82 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT 98 / 82 AS col1
----
1

query I rowsort
SELECT ALL - 12 col0
----
-12

query I rowsort
SELECT ALL + 80 * + 98 AS col2
----
7840

query I rowsort
SELECT ALL 33 * 44 col0
----
1452

query I rowsort
SELECT DISTINCT 50 * - 93 AS col1
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT 17 * ( + COUNT( * ) ) + 92 * + 96 AS col0
----
8849

skipif mysql # not compatible
query I rowsort label-4731
SELECT 17 * ( + COUNT ( * ) ) + 92 * + 96 AS col0
----
8849

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT 12 DIV - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT 12 / - 23 AS col2
----
0

query I rowsort
SELECT 82 col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ( - MIN( + 75 ) ) + + 96 * + 39
----
3669

skipif mysql # not compatible
query I rowsort label-4734
SELECT ( - MIN ( + 75 ) ) + + 96 * + 39
----
3669

query I rowsort
SELECT DISTINCT 91 + - 65
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT 2 DIV - 2
----
-1

skipif mysql # not compatible
query I rowsort label-4736
SELECT 2 / - 2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT - NULLIF ( 35, COUNT( * ) ) + + 98
----
63

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - NULLIF ( 35, COUNT ( * ) ) + + 98
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL COUNT( * ) + + 90 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL COUNT ( * ) + + 90 AS col2
----
91

query I rowsort
SELECT ALL - 18 + + 94 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + ( + NULLIF ( - COUNT( * ), 97 ) ) * 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + ( + NULLIF ( - COUNT ( * ), 97 ) ) * 68 AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT - 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 37 * 9 AS col2
----
333

query I rowsort
SELECT ALL + 73 + 90
----
163

query I rowsort
SELECT DISTINCT + 64 * + 2 AS col2
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT 17 + 94 DIV ( 24 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-4745
SELECT 17 + 94 / ( 24 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL COUNT( ALL 94 )
----
1

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL COUNT ( ALL 94 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT ALL - 58 - - 58 DIV + 8 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - 58 - - 58 / + 8 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4748
SELECT ( 60 ) + + CAST( NULL AS SIGNED ) * COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ( 60 ) + + CAST ( NULL AS INTEGER ) * COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - ( 22 )
----
-22

query I rowsort
SELECT ALL COALESCE ( 34, - 70 * 41 )
----
34

query I rowsort
SELECT DISTINCT COALESCE ( 96, 27 ) * + 51 col1
----
4896

query I rowsort
SELECT 20 + 75 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + COUNT( * ) - - 91 col2
----
92

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + COUNT ( * ) - - 91 col2
----
92

query I rowsort
SELECT - 27 * - ( 0 ) AS col0
----
0

query I rowsort
SELECT 66 + + 5 * - 57 AS col0
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL - - 22 DIV + 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - - 22 / + 20 AS col1
----
1

query I rowsort
SELECT 97 * 56
----
5432

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT - COUNT( * ) * + 3
----
-3

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT - COUNT ( * ) * + 3
----
-3

query I rowsort
SELECT + 19 * - 85 AS col0
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - CASE - COALESCE ( 29, 27 - 37 ) WHEN - 39 THEN NULL WHEN 29 * + 61 THEN - 86 + + 21 * + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - CASE - COALESCE ( 29, 27 - 37 ) WHEN - 39 THEN NULL WHEN 29 * + 61 THEN - 86 + + 21 * + COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + 93 * COUNT( NULLIF ( 17, + 22 ) )
----
93

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 93 * COUNT ( NULLIF ( 17, + 22 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + MIN( DISTINCT COALESCE ( 40, 92 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4762
SELECT + MIN ( DISTINCT COALESCE ( 40, 92 ) ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT 76 DIV + 18
----
4

skipif mysql # not compatible
query I rowsort label-4764
SELECT 76 / + 18
----
4

query I rowsort
SELECT - ( + 78 ) AS col1
----
-78

query I rowsort
SELECT DISTINCT - + 80 * + 29
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + + COALESCE ( COUNT( * ), + 35 ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + + COALESCE ( COUNT ( * ), + 35 ) * + 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL - COALESCE ( - 62, - 13 + - CAST( NULL AS SIGNED ) * 68 ) * + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - COALESCE ( - 62, - 13 + - CAST ( NULL AS INTEGER ) * 68 ) * + COUNT ( * ) AS col0
----
62

query I rowsort
SELECT DISTINCT + + 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL + - MAX( - 43 ) * 11
----
473

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + - MAX ( - 43 ) * 11
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT + + COUNT( + 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + + COUNT ( + 72 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + COUNT( - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + COUNT ( - 10 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - 52 * COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 52 * COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT 40 DIV - COUNT( DISTINCT 51 ) + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4774
SELECT 40 / - COUNT ( DISTINCT 51 ) + COUNT ( * )
----
-39

query I rowsort
SELECT CASE 57 WHEN + 84 - + 67 * + 38 THEN - 28 ELSE 73 END
----
73

query I rowsort
SELECT COALESCE ( 38, - 64 * 4, 94 ) AS col2
----
38

query I rowsort
SELECT ( + + 0 ) * - 1 - - 67
----
67

query I rowsort
SELECT ALL + 57 col0
----
57

query I rowsort
SELECT + 85 * - 80 AS col1
----
-6800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT 11 * 10 + 83 DIV SUM( ALL - 63 DIV 91 + 36 )
----
112

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT 11 * 10 + 83 / SUM ( ALL - 63 / 91 + 36 )
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4781
SELECT DISTINCT + 53 * 94 + COUNT( DISTINCT CASE ( 37 ) WHEN + 94 + + CAST( + 87 - 77 * 40 AS DECIMAL ) * + 94 THEN + 57 - + 93 ELSE + 35 END ) col2
----
4983

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT + 53 * 94 + COUNT ( DISTINCT CASE ( 37 ) WHEN + 94 + + CAST ( + 87 - 77 * 40 AS REAL ) * + 94 THEN + 57 - + 93 ELSE + 35 END ) col2
----
4983

query I rowsort
SELECT + 20 * COALESCE ( - 63, + 84 * 1 ) AS col0
----
-1260

query I rowsort
SELECT ALL 32 * + - 21 AS col0
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT MAX( + CAST( 10 AS SIGNED ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4784
SELECT MAX ( + CAST ( 10 AS INTEGER ) ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL 43 * - - COUNT( - 38 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL 43 * - - COUNT ( - 38 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL - 59 * + SUM( DISTINCT - 69 ) / + CAST( NULL AS SIGNED ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - 59 * + SUM ( DISTINCT - 69 ) / + CAST ( NULL AS INTEGER ) + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + MAX( ALL + + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + MAX ( ALL + + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT - 26 * AVG ( + 85 ) + + 79 * + CASE WHEN NULL NOT BETWEEN NULL AND - 46 + - COUNT( * ) * 79 THEN - 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT - 26 * AVG ( + 85 ) + + 79 * + CASE WHEN NULL NOT BETWEEN NULL AND - 46 + - COUNT ( * ) * 79 THEN - 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT MAX( + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4789
SELECT MAX ( + - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( + 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( + 60 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + COUNT( 18 ) * 15 + - CASE 11 + + 16 WHEN 7 - 15 THEN + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + COUNT ( 18 ) * 15 + - CASE 11 + + 16 WHEN 7 - 15 THEN + 49 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT COUNT( + + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT COUNT ( + + 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL + COUNT( DISTINCT + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + COUNT ( DISTINCT + 58 )
----
1

query I rowsort
SELECT + 54 * + - 52
----
-2808

query I rowsort
SELECT - 60 * + + 82
----
-4920

query I rowsort
SELECT - NULLIF ( 88, 48 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL 77 - + - MIN( - 88 ) - + 3 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 77 - + - MIN ( - 88 ) - + 3 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 7 AS col1
----
NULL

query I rowsort
SELECT - ( - 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL + + COUNT( * ) * - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + + COUNT ( * ) * - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT + 44 * 76 + NULLIF ( COUNT( * ) + - COUNT( * ), + 91 ) AS col2
----
3344

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 44 * 76 + NULLIF ( COUNT ( * ) + - COUNT ( * ), + 91 ) AS col2
----
3344

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT ALL 14 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL 14 / 86 AS col1
----
0

query I rowsort
SELECT DISTINCT + ( CASE 42 WHEN 76 THEN NULL WHEN - 81 - 27 * 41 THEN NULL WHEN - 73 THEN + 90 END )
----
NULL

query I rowsort
SELECT ALL + 46 - - + 31
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT NULLIF ( COUNT( * ), 14 )
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT NULLIF ( COUNT ( * ), 14 )
----
1

query I rowsort
SELECT - - 35 col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT + - 66 - + 67 * ( - NULLIF ( - CASE + COUNT( * ) WHEN 75 - - 26 * - CAST( NULL AS SIGNED ) THEN COUNT( * ) + + 94 ELSE NULL END, 33 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + - 66 - + 67 * ( - NULLIF ( - CASE + COUNT ( * ) WHEN 75 - - 26 * - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + + 94 ELSE NULL END, 33 ) ) AS col1
----
NULL

query I rowsort
SELECT + + 8 * + 76
----
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT + + 91 - 86 + + CAST( NULL AS SIGNED ) * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT + + 91 - 86 + + CAST ( NULL AS INTEGER ) * 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - ( + - ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT - ( + - ( - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + SUM( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + SUM ( + 29 )
----
29

query I rowsort
SELECT - - 16 + 1 * - 47 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + + 16 + - COUNT( * ) + + 85 * 51 col2
----
4350

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + + 16 + - COUNT ( * ) + + 85 * 51 col2
----
4350

query I rowsort
SELECT DISTINCT + ( + - 45 )
----
-45

query I rowsort
SELECT + 27 + + 64 col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT - - CAST( - COALESCE ( 19, + 49 * COUNT( * ) ) AS SIGNED ) - - 94 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4816
SELECT - - CAST ( - COALESCE ( 19, + 49 * COUNT ( * ) ) AS INTEGER ) - - 94 AS col0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4817
SELECT ALL NULLIF ( + 94, 86 * + CAST( NULL AS DECIMAL ) + 89 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL NULLIF ( + 94, 86 * + CAST ( NULL AS REAL ) + 89 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - SUM( 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4818
SELECT - SUM ( 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - ( - 65 ) + - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4819
SELECT - ( - 65 ) + - COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + + NULLIF ( - 24, COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4820
SELECT + + NULLIF ( - 24, COUNT ( * ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + ( ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4821
SELECT + ( ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT + - 60
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT ALL 7 DIV - 47 + - + ( - 23 ) + - 62 * MIN( ALL 26 )
----
-1589

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL 7 / - 47 + - + ( - 23 ) + - 62 * MIN ( ALL 26 )
----
-1589

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL - MAX( + 56 ) * - 29 * ( - 42 * - ( 31 ) ) + + 74 AS col1
----
2114522

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - MAX ( + 56 ) * - 29 * ( - 42 * - ( 31 ) ) + + 74 AS col1
----
2114522

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT DISTINCT 45 DIV + 48 + 53
----
53

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT 45 / + 48 + 53
----
53

query I rowsort
SELECT ALL + 45 * + + 1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT ALL - 15 DIV 52 + + 61
----
61

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - 15 / 52 + + 61
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT + COUNT( * ) DIV + 93 + - + 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + COUNT ( * ) / + 93 + - + 49 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT - 26 + - - NULLIF ( 52, + 68 + CAST( NULL AS SIGNED ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 26 + - - NULLIF ( 52, + 68 + CAST ( NULL AS INTEGER ) ) AS col0
----
26

query I rowsort
SELECT + 72 col1
----
72

query I rowsort
SELECT ALL + ( - 59 ) AS col1
----
-59

query I rowsort
SELECT ( - + 7 ) AS col2
----
-7

query I rowsort
SELECT ( + 57 ) col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT 10 * 61 / - - CASE - COUNT( * ) WHEN - 48 THEN + 44 * - 46 ELSE NULL END + + 23 / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT 10 * 61 / - - CASE - COUNT ( * ) WHEN - 48 THEN + 44 * - 46 ELSE NULL END + + 23 / 60
----
NULL

query I rowsort
SELECT ( - + 12 ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT + ( CASE + 54 WHEN SUM( + CASE + 91 WHEN 90 THEN ( - 39 ) * 81 ELSE 14 * 98 END ) + 61 THEN ( AVG ( ALL CAST( NULL AS SIGNED ) ) ) ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + ( CASE + 54 WHEN SUM ( + CASE + 91 WHEN 90 THEN ( - 39 ) * 81 ELSE 14 * 98 END ) + 61 THEN ( AVG ( ALL CAST ( NULL AS INTEGER ) ) ) ELSE NULL END ) col0
----
NULL

query I rowsort
SELECT + 72 + 32
----
104

query I rowsort
SELECT + 30 * + + 27 AS col0
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL + MAX( ALL 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + MAX ( ALL 29 ) AS col2
----
29

query I rowsort
SELECT + NULLIF ( 26, - 46 - 57 ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL + MIN( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + MIN ( + 16 )
----
16

query I rowsort
SELECT + ( 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT MAX( - 38 ) * - ( + COUNT( * ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT MAX ( - 38 ) * - ( + COUNT ( * ) ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT + + COALESCE ( + ( - COALESCE ( COUNT( * ), 87, 80 ) ), + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + + COALESCE ( + ( - COALESCE ( COUNT ( * ), 87, 80 ) ), + 70 )
----
-1

query I rowsort
SELECT - - 87 * + 6 AS col1
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + - MAX( - - 0 ) + + 29 col0
----
29

skipif mysql # not compatible
query I rowsort label-4846
SELECT + - MAX ( - - 0 ) + + 29 col0
----
29

query I rowsort
SELECT ALL - 76 * - 64
----
4864

query I rowsort
SELECT + + 6 + 46
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + 4 + - - 3 * + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4849
SELECT + 4 + - - 3 * + COUNT ( * ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT + - 37 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-4850
SELECT + - 37 / + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + - COUNT( * ) * - + 24 * - 48
----
-1152

skipif mysql # not compatible
query I rowsort label-4851
SELECT + - COUNT ( * ) * - + 24 * - 48
----
-1152

query I rowsort
SELECT + 18 + + 99
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT ALL SUM( ALL 4 ) / - CAST( NULL AS SIGNED ) * AVG ( + 3 ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL SUM ( ALL 4 ) / - CAST ( NULL AS INTEGER ) * AVG ( + 3 ) + + 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT + 45 + + - CAST( - 58 AS SIGNED ) + + 35 * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-4854
SELECT + 45 + + - CAST ( - 58 AS INTEGER ) + + 35 * - COUNT ( * )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT - 58 * + COALESCE ( 3, - 4 ) - + CAST( + 71 AS SIGNED )
----
-245

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 58 * + COALESCE ( 3, - 4 ) - + CAST ( + 71 AS INTEGER )
----
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT ALL 28 + + 9 DIV 96
----
28

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL 28 + + 9 / 96
----
28

query I rowsort
SELECT ALL - ( - 41 ) + + - 59
----
-18

query I rowsort
SELECT 6 + + 36 * 89
----
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + MAX( ALL - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4859
SELECT + MAX ( ALL - + 39 ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT NULLIF ( 4, + 27 ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT NULLIF ( 4, + 27 ) / 42
----
0

query I rowsort
SELECT + CASE 35 WHEN + 48 / + 97 THEN NULL ELSE + 53 END + + 38
----
91

query II rowsort
SELECT ALL + 11 AS col0, - ( - + 58 ) AS col1
----
11
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT COUNT( - ( + - 36 ) ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4863
SELECT COUNT ( - ( + - 36 ) ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT + CAST( - ( - CASE 41 WHEN 31 THEN + COUNT( * ) ELSE NULL END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT + CAST ( - ( - CASE 41 WHEN 31 THEN + COUNT ( * ) ELSE NULL END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT + COUNT( * ) + - 86 * + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4865
SELECT + COUNT ( * ) + - 86 * + COUNT ( * ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + + MAX( DISTINCT - 49 ) + + + 22 * - 99
----
-2227

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + + MAX ( DISTINCT - 49 ) + + + 22 * - 99
----
-2227

onlyif mysql # DIV for integer division: 
query II rowsort label-4867
SELECT - + 31, - 8 DIV - - 6 AS col0
----
-31
-1

skipif mysql # not compatible
query II rowsort label-4867
SELECT - + 31, - 8 / - - 6 AS col0
----
-31
-1

query I rowsort
SELECT ALL - 80 * 32 + 59 * - 96
----
-8224

query II rowsort
SELECT DISTINCT 68 * + - 76 col1, 43 AS col1
----
-5168
43

query I rowsort
SELECT ALL 26 + - 2 AS col2
----
24

query I rowsort
SELECT DISTINCT - CASE - 95 WHEN + - 2 THEN - 97 ELSE NULL END
----
NULL

query I rowsort
SELECT 21 * - ( + + 78 ) col2
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - MAX( DISTINCT 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - MAX ( DISTINCT 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT ALL + CAST( NULL AS SIGNED ) * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + CAST ( NULL AS INTEGER ) * - 80 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT DISTINCT + 32 DIV + 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + 32 / + 58 col0
----
0

query I rowsort
SELECT 30 - 98
----
-68

query II rowsort
SELECT ALL + 87 * 33 AS col2, 50 - + 42 * 68 AS col1
----
2871
-2806

query I rowsort
SELECT 36 * + 68
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL + COUNT( * ) * + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT DISTINCT + CAST( - SUM( ALL - 86 ) AS SIGNED ) * + COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + CAST ( - SUM ( ALL - 86 ) AS INTEGER ) * + COUNT ( * ) col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4881
SELECT DISTINCT - COUNT( * ) * 23 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - COUNT ( * ) * 23 / 75
----
0

query I rowsort
SELECT 26 * 43 * - ( + 37 )
----
-41366

query II rowsort
SELECT - 79 * 46 col0, + 82 - + 50 AS col2
----
-3634
32

query I rowsort
SELECT + - 75 AS col0
----
-75

query I rowsort
SELECT ALL - - ( + 58 )
----
58

query I rowsort
SELECT DISTINCT - - 37 AS col1
----
37

query I rowsort
SELECT 64 * + 90 AS col2
----
5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT DISTINCT - + 74 + COALESCE ( ( - CASE CAST( 39 AS SIGNED ) WHEN 40 THEN 15 * 46 WHEN 89 THEN NULL ELSE + 7 END ), - COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT - + 74 + COALESCE ( ( - CASE CAST ( 39 AS INTEGER ) WHEN 40 THEN 15 * 46 WHEN 89 THEN NULL ELSE + 7 END ), - COUNT ( * ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT + 64 * + CAST( NULL AS SIGNED ) * + COUNT( * ) / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + 64 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL - MAX( ALL CASE - ( CAST( 13 AS SIGNED ) ) WHEN + 13 * 8 THEN + 54 ELSE NULL END ) + ( + COUNT( * ) + + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - MAX ( ALL CASE - ( CAST ( 13 AS INTEGER ) ) WHEN + 13 * 8 THEN + 54 ELSE NULL END ) + ( + COUNT ( * ) + + 39 )
----
NULL

query I rowsort
SELECT DISTINCT + 36 + 12 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT ALL + 14 + + 14, 84 + ( + COUNT( * ) ) AS col1
----
28
85

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL + 14 + + 14, 84 + ( + COUNT ( * ) ) AS col1
----
28
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT 74 * - - COUNT( * ) * + 77
----
5698

skipif mysql # not compatible
query I rowsort label-4893
SELECT 74 * - - COUNT ( * ) * + 77
----
5698

query I rowsort
SELECT + 95 + 26
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + SUM( ALL + + 9 ) * - + 43
----
-387

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + SUM ( ALL + + 9 ) * - + 43
----
-387

query I rowsort
SELECT 54 - 40 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL SUM( - 15 ) + - - 49 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL SUM ( - 15 ) + - - 49 AS col0
----
34

query II rowsort
SELECT - 31 - 74 AS col1, 64 col1
----
-105
64

query I rowsort
SELECT ALL + ( 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - 51 + + 11 - ( - 49 ) + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - 51 + + 11 - ( - 49 ) + + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT - + MIN( ALL - NULLIF ( + + 3, - 87 + - 78 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4901
SELECT - + MIN ( ALL - NULLIF ( + + 3, - 87 + - 78 ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT - ( CASE - 69 WHEN + - 56 + + 92 THEN NULL ELSE + 67 DIV - 94 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - ( CASE - 69 WHEN + - 56 + + 92 THEN NULL ELSE + 67 / - 94 END ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT 85 + + + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT 85 + + + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT 21 - - 51 + + MIN( + + ( + 90 ) ) + - 35 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-4904
SELECT 21 - - 51 + + MIN ( + + ( + 90 ) ) + - 35 AS col2
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT ALL 20 DIV 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 20 / 30 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4906
SELECT ( COUNT( * ) ) - + 99 + 44 + - 59 DIV - 92
----
-54

skipif mysql # not compatible
query I rowsort label-4906
SELECT ( COUNT ( * ) ) - + 99 + 44 + - 59 / - 92
----
-54

query I rowsort
SELECT DISTINCT 12 AS col2
----
12

query I rowsort
SELECT 5 + 9 + 34 + 34 * - 88
----
-2944

query I rowsort
SELECT 40 + - 78 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT - NULLIF ( 76, - 8 * - - 50 + - 83 + ( + 14 ) * 20 - 88 ) * + CAST( + ( SUM( - 90 ) ) + 48 AS SIGNED ) + 87 AS col1
----
3279

skipif mysql # not compatible
query I rowsort label-4910
SELECT - NULLIF ( 76, - 8 * - - 50 + - 83 + ( + 14 ) * 20 - 88 ) * + CAST ( + ( SUM ( - 90 ) ) + 48 AS INTEGER ) + 87 AS col1
----
3279

query I rowsort
SELECT 56 * + + 41 AS col1
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + ( + 45 ) * - COUNT( * ) * - + 51 AS col1
----
2295

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + ( + 45 ) * - COUNT ( * ) * - + 51 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT CASE + 16 WHEN - 57 THEN ( + + 57 ) * COUNT( DISTINCT 9 * + 10 ) + - 49 WHEN COUNT( * ) THEN + 1 WHEN + 3 + - 8 * + 61 THEN NULL END * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT CASE + 16 WHEN - 57 THEN ( + + 57 ) * COUNT ( DISTINCT 9 * + 10 ) + - 49 WHEN COUNT ( * ) THEN + 1 WHEN + 3 + - 8 * + 61 THEN NULL END * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - NULLIF ( - MAX( DISTINCT + 13 ), ( COUNT( * ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - NULLIF ( - MAX ( DISTINCT + 13 ), ( COUNT ( * ) ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT CAST( NULL AS SIGNED ) + + 73 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT CAST ( NULL AS INTEGER ) + + 73 + 66
----
NULL

query I rowsort
SELECT ALL ( - 86 ) * + - ( - 86 )
----
-7396

query I rowsort
SELECT ALL - ( - 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT - MIN( 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - MIN ( 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + MAX( DISTINCT 75 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-4919
SELECT + MAX ( DISTINCT 75 ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT + 4 * - - AVG ( ALL + - CASE 79 WHEN ( - 23 ) THEN - 95 + 46 WHEN 95 THEN NULL END ) / CASE COUNT( * ) * - 74 WHEN - AVG ( ALL + 21 ) THEN + 44 END + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT + 4 * - - AVG ( ALL + - CASE 79 WHEN ( - 23 ) THEN - 95 + 46 WHEN 95 THEN NULL END ) / CASE COUNT ( * ) * - 74 WHEN - AVG ( ALL + 21 ) THEN + 44 END + + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT 71 * - + 93
----
-6603

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL + 83 + - 66 + + 84 + + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + 83 + - 66 + + 84 + + COUNT ( * )
----
102

query I rowsort
SELECT ( + + 14 )
----
14

query I rowsort
SELECT ALL - 9 * - + 87 * 6 + + 52 AS col0
----
4750

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT 20 + + COALESCE ( + 95, - 86, - + 50 DIV + 24 - - 37 ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4925
SELECT 20 + + COALESCE ( + 95, - 86, - + 50 / + 24 - - 37 ) AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL + - 1 * MIN( ALL + 94 ) + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + - 1 * MIN ( ALL + 94 ) + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT ALL + - 84 + ( - - 87 ) - + CASE - CASE + 87 WHEN ( - COUNT( ALL + 91 ) ) THEN NULL ELSE 14 DIV + CAST( - 44 AS SIGNED ) END WHEN - 87 DIV - MAX( DISTINCT 96 ) THEN 9 + - 50 ELSE 23 * 68 - + 32 END + + 95 DIV ( SUM( DISTINCT 35 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + - 84 + ( - - 87 ) - + CASE - CASE + 87 WHEN ( - COUNT ( ALL + 91 ) ) THEN NULL ELSE 14 / + CAST ( - 44 AS INTEGER ) END WHEN - 87 / - MAX ( DISTINCT 96 ) THEN 9 + - 50 ELSE 23 * 68 - + 32 END + + 95 / ( SUM ( DISTINCT 35 ) ) AS col2
----
46

query I rowsort
SELECT DISTINCT + 41 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT 38 * + + CASE + COUNT( + 55 ) WHEN - 86 * 44 THEN - CAST( MIN( + 82 ) AS SIGNED ) WHEN 58 + ( 63 ) THEN + 79 + 94 ELSE NULL END + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT 38 * + + CASE + COUNT ( + 55 ) WHEN - 86 * 44 THEN - CAST ( MIN ( + 82 ) AS INTEGER ) WHEN 58 + ( 63 ) THEN + 79 + 94 ELSE NULL END + 73 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 71 * 95 col2
----
-6745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL + - 9 * CAST( + 50 AS SIGNED ) * - + 51
----
22950

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + - 9 * CAST ( + 50 AS INTEGER ) * - + 51
----
22950

query I rowsort
SELECT - + 92 AS col1
----
-92

query I rowsort
SELECT + 63 + - 38
----
25

query I rowsort
SELECT ALL - + 96 + + 60
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT - + 77 + + 16 * - - ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT - + 77 + + 16 * - - ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT + - 97 - + + CAST( + 54 AS SIGNED ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-4936
SELECT + - 97 - + + CAST ( + 54 AS INTEGER ) col0
----
-151

query I rowsort
SELECT ALL ( 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - + 27 + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4938
SELECT - + 27 + + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT ALL - + 4 - - 13 DIV 82 - - 98 * - MAX( ALL 70 ) col1
----
-6864

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - + 4 - - 13 / 82 - - 98 * - MAX ( ALL 70 ) col1
----
-6864

query I rowsort
SELECT ALL - 58 * 0 col0
----
0

query I rowsort
SELECT DISTINCT + 33 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL 82 - + COALESCE ( - + CAST( NULL AS SIGNED ), + 8 * + 33 * + 27 ) AS col0
----
-7046

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 82 - + COALESCE ( - + CAST ( NULL AS INTEGER ), + 8 * + 33 * + 27 ) AS col0
----
-7046

query I rowsort
SELECT - - ( - 57 )
----
-57

query II rowsort
SELECT ALL 48 AS col0, + 37 AS col1
----
48
37

query I rowsort
SELECT + 15 + + 62
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL CASE - + ( + - 98 ) WHEN CAST( NULL AS SIGNED ) THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL CASE - + ( + - 98 ) WHEN CAST ( NULL AS INTEGER ) THEN 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - NULLIF ( + - 21, - + 32 * + + 34 * + COALESCE ( + ( - ( 3 ) ), 5 + - COUNT( * ) * ( 34 ), 32 + + ( 33 ) ) + 62 ) * 28 AS col0
----
588

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - NULLIF ( + - 21, - + 32 * + + 34 * + COALESCE ( + ( - ( 3 ) ), 5 + - COUNT ( * ) * ( 34 ), 32 + + ( 33 ) ) + 62 ) * 28 AS col0
----
588

query II rowsort
SELECT 31, 42 AS col0
----
31
42

query I rowsort
SELECT - 3 * + 44
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT DISTINCT 32 * + CAST( NULL AS SIGNED ) * + 89 * - - 49 * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT 32 * + CAST ( NULL AS INTEGER ) * + 89 * - - 49 * + 49 AS col0
----
NULL

query I rowsort
SELECT + 43 * 67
----
2881

onlyif mysql # aggregate syntax: 
query II rowsort label-4952
SELECT DISTINCT 65 AS col0, COUNT( * ) * - + 66 * COUNT( * ) * - + 60 * - 97 + - 98 AS col2
----
65
-384218

skipif mysql # not compatible
query II rowsort label-4952
SELECT DISTINCT 65 AS col0, COUNT ( * ) * - + 66 * COUNT ( * ) * - + 60 * - 97 + - 98 AS col2
----
65
-384218

query I rowsort
SELECT ALL 16 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - NULLIF ( 10, 75 * + 30 + + + 18 ) * COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - NULLIF ( 10, 75 * + 30 + + + 18 ) * COUNT ( * )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT 2 DIV + + CASE + - 97 WHEN 43 THEN + 7 - - COUNT( * ) WHEN CASE + CASE + 52 WHEN 27 THEN NULL WHEN - 39 THEN - 80 DIV + 63 WHEN + 66 + ( 50 + 76 * + 38 ) THEN 25 ELSE NULL END WHEN 76 DIV + COUNT( * ) THEN - 91 DIV CAST( NULL AS SIGNED ) WHEN SUM( ALL + CAST( NULL AS SIGNED ) ) THEN 98 ELSE NULL END + 76 THEN 28 * + COALESCE ( - 7, - 68 * + 2 + 41, 81 * COUNT( * ) ) ELSE - CAST( 4 AS SIGNED ) + + 8 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT 2 / + + CASE + - 97 WHEN 43 THEN + 7 - - COUNT ( * ) WHEN CASE + CASE + 52 WHEN 27 THEN NULL WHEN - 39 THEN - 80 / + 63 WHEN + 66 + ( 50 + 76 * + 38 ) THEN 25 ELSE NULL END WHEN 76 / + COUNT ( * ) THEN - 91 / CAST ( NULL AS INTEGER ) WHEN SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN 98 ELSE NULL END + 76 THEN 28 * + COALESCE ( - 7, - 68 * + 2 + 41, 81 * COUNT ( * ) ) ELSE - CAST ( 4 AS INTEGER ) + + 8 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT + 8 * 84 * + CASE + AVG ( - 52 ) WHEN - + 15 / 49 THEN NULL ELSE MIN( - 49 ) END
----
-32928

skipif mysql # not compatible
query I rowsort label-4956
SELECT + 8 * 84 * + CASE + AVG ( - 52 ) WHEN - + 15 / 49 THEN NULL ELSE MIN ( - 49 ) END
----
-32928

query II rowsort
SELECT ALL 24 AS col2, 44
----
24
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ALL 19 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL 19 / - 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT + 25 DIV 74 DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT + 25 / 74 / 24 AS col0
----
0

query II rowsort
SELECT ALL + 81, 28 AS col2
----
81
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT 33 * + 15 + - + COUNT( * )
----
494

skipif mysql # not compatible
query I rowsort label-4961
SELECT 33 * + 15 + - + COUNT ( * )
----
494

query I rowsort
SELECT + 77 * - - 45
----
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT + 89 DIV - 4
----
-22

skipif mysql # not compatible
query I rowsort label-4963
SELECT + 89 / - 4
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4964
SELECT ( - 79 ) DIV + - 83 + 5 - + + COALESCE ( - COALESCE ( - CAST( NULL AS SIGNED ), - 37 - ( 99 ) * - 18 ), - 19 ) + 50 * + 40
----
3750

skipif mysql # not compatible
query I rowsort label-4964
SELECT ( - 79 ) / + - 83 + 5 - + + COALESCE ( - COALESCE ( - CAST ( NULL AS INTEGER ), - 37 - ( 99 ) * - 18 ), - 19 ) + 50 * + 40
----
3750

query I rowsort
SELECT DISTINCT 81 * + - 85 + - 99 AS col1
----
-6984

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT ALL + COUNT( * ) AS col2, + 12 AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + COUNT ( * ) AS col2, + 12 AS col0
----
1
12

query I rowsort
SELECT ( + + 86 ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT 97 DIV - 75 - - - 8 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4968
SELECT 97 / - 75 - - - 8 AS col1
----
-9

query I rowsort
SELECT + + 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL 36 * + COALESCE ( + ( - - 36 ), + COALESCE ( 4, 39, 98 ) ) + COUNT( * ) * - 97 col1
----
1199

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 36 * + COALESCE ( + ( - - 36 ), + COALESCE ( 4, 39, 98 ) ) + COUNT ( * ) * - 97 col1
----
1199

query I rowsort
SELECT ALL + - 41 col2
----
-41

query I rowsort
SELECT - - 67 + 7
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4973
SELECT + - 14 col2, - ( + - CASE - NULLIF ( - COUNT( * ), - CASE 69 WHEN ( + 77 ) + 0 * + 22 THEN 45 * COUNT( * ) WHEN + 79 THEN NULL END - + CASE 88 WHEN - CAST( NULL AS SIGNED ) + + 39 / - 64 THEN - SUM( DISTINCT CAST( NULL AS SIGNED ) ) ELSE NULL END ) WHEN - 34 THEN COUNT( * ) END ) + - CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col2
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-4973
SELECT + - 14 col2, - ( + - CASE - NULLIF ( - COUNT ( * ), - CASE 69 WHEN ( + 77 ) + 0 * + 22 THEN 45 * COUNT ( * ) WHEN + 79 THEN NULL END - + CASE 88 WHEN - CAST ( NULL AS INTEGER ) + + 39 / - 64 THEN - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ELSE NULL END ) WHEN - 34 THEN COUNT ( * ) END ) + - CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) AS col2
----
-14
NULL

query II rowsort
SELECT - + 92 * - 38 AS col0, 42
----
3496
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + SUM( ALL - + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4975
SELECT + SUM ( ALL - + 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL 56 * - + 9 + MIN( - 6 ) * + - CAST( + + 59 AS SIGNED ) * - 5 + + CASE - 42 WHEN + NULLIF ( + 52, + 99 + 20 ) * NULLIF ( + CASE 72 WHEN 65 THEN + 73 * + 16 WHEN 42 * - 47 THEN - 86 + - ( CASE + 25 WHEN 61 THEN 73 + 10 END ) * COUNT( * ) END * + 87, - 65 ) THEN COUNT( * ) * 30 WHEN 39 + COUNT( * ) THEN + 41 WHEN + 16 THEN NULL WHEN + 91 + + 61 * + 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL 56 * - + 9 + MIN ( - 6 ) * + - CAST ( + + 59 AS INTEGER ) * - 5 + + CASE - 42 WHEN + NULLIF ( + 52, + 99 + 20 ) * NULLIF ( + CASE 72 WHEN 65 THEN + 73 * + 16 WHEN 42 * - 47 THEN - 86 + - ( CASE + 25 WHEN 61 THEN 73 + 10 END ) * COUNT ( * ) END * + 87, - 65 ) THEN COUNT ( * ) * 30 WHEN 39 + COUNT ( * ) THEN + 41 WHEN + 16 THEN NULL WHEN + 91 + + 61 * + 86 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4977
SELECT + COALESCE ( + - ( + 14 ), + 96 DIV - 40, CAST( NULL AS SIGNED ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4977
SELECT + COALESCE ( + - ( + 14 ), + 96 / - 40, CAST ( NULL AS INTEGER ) ) AS col2
----
-14

query I rowsort
SELECT + - 48 * + - 70
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT MIN( DISTINCT - + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4979
SELECT MIN ( DISTINCT - + 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT + + 31 DIV - + COALESCE ( - + 34, + 72 + - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT + + 31 / - + COALESCE ( - + 34, + 72 + - 15 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT - 4 * CAST( + 69 AS SIGNED )
----
-276

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - 4 * CAST ( + 69 AS INTEGER )
----
-276

query II rowsort
SELECT 10 AS col2, 85 AS col0
----
10
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT - 36 DIV + 4
----
-9

skipif mysql # not compatible
query I rowsort label-4983
SELECT - 36 / + 4
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT - 60 * + 11 * + + NULLIF ( - - 89, COUNT( * ) ) + + 25 + 70 DIV - 83 AS col1
----
-58715

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - 60 * + 11 * + + NULLIF ( - - 89, COUNT ( * ) ) + + 25 + 70 / - 83 AS col1
----
-58715

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT - 54 DIV - 14 col0
----
3

skipif mysql # not compatible
query I rowsort label-4985
SELECT - 54 / - 14 col0
----
3

query I rowsort
SELECT ALL - + 2 * 8
----
-16

query I rowsort
SELECT 21 * + + 26 + + 66
----
612

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4988
SELECT - 3 DIV + + 33, COALESCE ( + CAST( NULL AS SIGNED ), + + 34, 54 ) - + + COALESCE ( 66, - 69, 64 ) * + 52 AS col0
----
0
-3398

skipif mysql # not compatible
query II rowsort label-4988
SELECT - 3 / + + 33, COALESCE ( + CAST ( NULL AS INTEGER ), + + 34, 54 ) - + + COALESCE ( 66, - 69, 64 ) * + 52 AS col0
----
0
-3398

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL ( - + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL ( - + ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 32 + + + 53 + 34
----
55

query II rowsort
SELECT ALL ( - - 59 ), 37 AS col0
----
59
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4992
SELECT DISTINCT ( + 27 ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4992
SELECT DISTINCT ( + 27 ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
27
NULL

query I rowsort
SELECT - 8 + + 28 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4994
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) * COALESCE ( 65, - - COUNT( * ) * COUNT( * ) ) * 23 + 68
----
-1
1563

skipif mysql # not compatible
query II rowsort label-4994
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) * COALESCE ( 65, - - COUNT ( * ) * COUNT ( * ) ) * 23 + 68
----
-1
1563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT ALL - CAST( NULL AS SIGNED ) + + 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL - CAST ( NULL AS INTEGER ) + + 36 col0
----
NULL

query I rowsort
SELECT + 2 - - 82
----
84

query I rowsort
SELECT - 13 * + + 10 AS col0
----
-130

query I rowsort
SELECT - 72 + - + 43
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - MAX( DISTINCT 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4999
SELECT - MAX ( DISTINCT 91 ) AS col1
----
-91

query I rowsort
SELECT + 54 + - 87 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5001
SELECT ALL MAX( - 13 ) DIV - ( + - 4 ) + - - 35 + SUM( DISTINCT 59 ) + - ( 71 ) * - 37
----
2718

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL MAX ( - 13 ) / - ( + - 4 ) + - - 35 + SUM ( DISTINCT 59 ) + - ( 71 ) * - 37
----
2718

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT 2 DIV 94 + ( - - 29 ) + - - 92 * 67 * 43 * - 43 AS col0
----
-11397207

skipif mysql # not compatible
query I rowsort label-5002
SELECT 2 / 94 + ( - - 29 ) + - - 92 * 67 * 43 * - 43 AS col0
----
-11397207

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL 14 DIV - CASE - 60 WHEN + 58 THEN - AVG ( DISTINCT + + 51 ) ELSE 29 END + + 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL 14 / - CASE - 60 WHEN + 58 THEN - AVG ( DISTINCT + + 51 ) ELSE 29 END + + 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT + 76 + 52 + 73 * + NULLIF ( - SUM( + + 4 ), - + CASE 90 WHEN - 23 THEN - COUNT( * ) - + 68 * 89 WHEN - 59 THEN NULL ELSE - ( - 46 ) / - 44 END )
----
-164

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT + 76 + 52 + 73 * + NULLIF ( - SUM ( + + 4 ), - + CASE 90 WHEN - 23 THEN - COUNT ( * ) - + 68 * 89 WHEN - 59 THEN NULL ELSE - ( - 46 ) / - 44 END )
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT DISTINCT 30 / + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT 30 / + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5006
SELECT DISTINCT 69 + - - CAST( - - 78 AS SIGNED ) + - CASE 41 WHEN 54 THEN NULL WHEN - - 47 THEN NULL ELSE - 46 END + 79 DIV + 92
----
193

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT 69 + - - CAST ( - - 78 AS INTEGER ) + - CASE 41 WHEN 54 THEN NULL WHEN - - 47 THEN NULL ELSE - 46 END + 79 / + 92
----
193

onlyif mysql # DIV for integer division: 
query II rowsort label-5007
SELECT 52 DIV 21 AS col2, + 30 AS col2
----
2
30

skipif mysql # not compatible
query II rowsort label-5007
SELECT 52 / 21 AS col2, + 30 AS col2
----
2
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + - 38 * - - 10 + + 50 AS col1
----
-330

query I rowsort
SELECT DISTINCT 88 + 37 + - ( - 95 )
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT ALL - + MIN( + 62 ) AS col1, + ( - 18 ) * - + 78
----
-62
1404

skipif mysql # not compatible
query II rowsort label-5011
SELECT ALL - + MIN ( + 62 ) AS col1, + ( - 18 ) * - + 78
----
-62
1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT CAST( + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-5012
SELECT CAST ( + 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT + ( + COUNT( * ) ), - ( - 11 ) AS col1
----
1
11

skipif mysql # not compatible
query II rowsort label-5013
SELECT + ( + COUNT ( * ) ), - ( - 11 ) AS col1
----
1
11

query I rowsort
SELECT - 84 + - 61
----
-145

query I rowsort
SELECT - CASE 72 WHEN - + 54 THEN + 92 * 30 WHEN ( + 36 ) + 71 * 43 THEN NULL END + + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT - 64 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 64 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5017
SELECT ALL - + CASE ( - 66 ) WHEN 35 THEN 6 WHEN - + CAST( - + CAST( - CASE 44 WHEN COUNT( * ) + - 66 THEN 90 * - 97 WHEN - 4 DIV 62 + + NULLIF ( - COUNT( * ) + 21 * 37, - MIN( 37 ) ) THEN NULL ELSE NULL END AS DECIMAL ) AS DECIMAL ) THEN NULL WHEN - 93 * 92 + CAST( - ( 4 ) AS SIGNED ) THEN + 85 DIV 80 ELSE - 30 END AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - + CASE ( - 66 ) WHEN 35 THEN 6 WHEN - + CAST ( - + CAST ( - CASE 44 WHEN COUNT ( * ) + - 66 THEN 90 * - 97 WHEN - 4 / 62 + + NULLIF ( - COUNT ( * ) + 21 * 37, - MIN ( 37 ) ) THEN NULL ELSE NULL END AS REAL ) AS REAL ) THEN NULL WHEN - 93 * 92 + CAST ( - ( 4 ) AS INTEGER ) THEN + 85 / 80 ELSE - 30 END AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT - COUNT( * ) * + 62 AS col2, + 46
----
-62
46

skipif mysql # not compatible
query II rowsort label-5018
SELECT - COUNT ( * ) * + 62 AS col2, + 46
----
-62
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL + CAST( NULL AS SIGNED ) * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL + CAST ( NULL AS INTEGER ) * 93 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - - SUM( DISTINCT - + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5021
SELECT - - SUM ( DISTINCT - + 80 ) AS col0
----
-80

query I rowsort
SELECT + 47 + - - 82 + 40 AS col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT COUNT( * ) + - 13 * - + 70 - - - ( + + 35 ) AS col1
----
876

skipif mysql # not compatible
query I rowsort label-5023
SELECT COUNT ( * ) + - 13 * - + 70 - - - ( + + 35 ) AS col1
----
876

query II rowsort
SELECT 86 AS col0, 4
----
86
4

query I rowsort
SELECT 50 + + 34
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5026
SELECT ALL 1 AS col0, CAST( NULL AS DECIMAL ) + - 46 + + 69 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5026
SELECT ALL 1 AS col0, CAST ( NULL AS REAL ) + - 46 + + 69 AS col2
----
1
NULL

query I rowsort
SELECT 21 + - 87 * + 15 AS col1
----
-1284

query I rowsort
SELECT ALL + 69 * + 49 AS col1
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT NULLIF ( + CASE 17 WHEN - 45 * - - 37 / COUNT( * ) THEN NULL WHEN - - 20 - - COALESCE ( ( + 97 ), - 62 * + ( - 66 / ( COALESCE ( - 80, 47 ) * + 75 ) ) ) THEN NULL WHEN COALESCE ( + COUNT( * ), 72 * 76 ) * - 86 THEN + MIN( ALL 55 ) END, - CASE - 30 WHEN - COUNT( ALL ( 9 ) ) THEN + 38 ELSE NULL END + CASE + 14 WHEN - ( + NULLIF ( 9, 65 ) ) * - 65 THEN - COUNT( * ) * - 66 WHEN MAX( 10 ) THEN NULL ELSE 92 END * 28 ) * - SUM( DISTINCT + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT NULLIF ( + CASE 17 WHEN - 45 * - - 37 / COUNT ( * ) THEN NULL WHEN - - 20 - - COALESCE ( ( + 97 ), - 62 * + ( - 66 / ( COALESCE ( - 80, 47 ) * + 75 ) ) ) THEN NULL WHEN COALESCE ( + COUNT ( * ), 72 * 76 ) * - 86 THEN + MIN ( ALL 55 ) END, - CASE - 30 WHEN - COUNT ( ALL ( 9 ) ) THEN + 38 ELSE NULL END + CASE + 14 WHEN - ( + NULLIF ( 9, 65 ) ) * - 65 THEN - COUNT ( * ) * - 66 WHEN MAX ( 10 ) THEN NULL ELSE 92 END * 28 ) * - SUM ( DISTINCT + 60 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT 37 DIV 15 * + 33
----
66

skipif mysql # not compatible
query I rowsort label-5030
SELECT 37 / 15 * + 33
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT 49 DIV - + 20 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5031
SELECT 49 / - + 20 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ( + 33 ) * 37 * - CASE - 16 WHEN + 53 * + 73 THEN + 30 END + 38 / + COUNT( DISTINCT 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ( + 33 ) * 37 * - CASE - 16 WHEN + 53 * + 73 THEN + 30 END + 38 / + COUNT ( DISTINCT 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 56 + + SUM( 13 ) + + ( + 62 ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-5033
SELECT 56 + + SUM ( 13 ) + + ( + 62 ) AS col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT 30 * + + ( + - CASE + 72 WHEN 59 / - + ( + - 79 ) * - + 19 THEN NULL WHEN COUNT( + COALESCE ( 92, 60 * 58 ) ) + + CAST( NULL AS SIGNED ) THEN NULL ELSE 81 END )
----
-2430

skipif mysql # not compatible
query I rowsort label-5034
SELECT 30 * + + ( + - CASE + 72 WHEN 59 / - + ( + - 79 ) * - + 19 THEN NULL WHEN COUNT ( + COALESCE ( 92, 60 * 58 ) ) + + CAST ( NULL AS INTEGER ) THEN NULL ELSE 81 END )
----
-2430

query I rowsort
SELECT 65 + - 25
----
40

query II rowsort
SELECT 34, 39 * - + 86 AS col2
----
34
-3354

query I rowsort
SELECT 84 * 6 AS col1
----
504

query I rowsort
SELECT ALL - 70 + + 78 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL - CASE 87 WHEN - COUNT( * ) THEN + + 93 END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - CASE 87 WHEN - COUNT ( * ) THEN + + 93 END * 58
----
NULL

query I rowsort
SELECT 61 + + 46
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5041
SELECT DISTINCT - 52 + 18 - + + SUM( ALL - - ( CAST( NULL AS SIGNED ) ) ) * + 61 / - SUM( ALL - 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - 52 + 18 - + + SUM ( ALL - - ( CAST ( NULL AS INTEGER ) ) ) * + 61 / - SUM ( ALL - 17 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 40, + 48 AS col0
----
40
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT - 42 AS col1, - SUM( + - 46 ) * 30 AS col2
----
-42
1380

skipif mysql # not compatible
query II rowsort label-5043
SELECT - 42 AS col1, - SUM ( + - 46 ) * 30 AS col2
----
-42
1380

query I rowsort
SELECT ALL 6 + + 50
----
56

query I rowsort
SELECT + 23 + - 20 AS col0
----
3

query I rowsort
SELECT + - 64 col2
----
-64

query II rowsort
SELECT - 54 AS col2, + 85 AS col1
----
-54
85

query II rowsort
SELECT ALL + + ( + 95 ) * - - 91 col2, - 32 * - 84 * + - 65 AS col0
----
8645
-174720

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT + - CASE SUM( ALL + 93 ) WHEN + ( COUNT( * ) ) THEN 29 WHEN AVG ( DISTINCT - 10 ) + MAX( ALL + 31 + 35 ) THEN 40 WHEN 99 - CASE + COUNT( * ) WHEN + 54 THEN 94 + 87 WHEN - 31 * 5 THEN 91 * 59 END THEN + 77 / ( 40 ) ELSE NULL END * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT + - CASE SUM ( ALL + 93 ) WHEN + ( COUNT ( * ) ) THEN 29 WHEN AVG ( DISTINCT - 10 ) + MAX ( ALL + 31 + 35 ) THEN 40 WHEN 99 - CASE + COUNT ( * ) WHEN + 54 THEN 94 + 87 WHEN - 31 * 5 THEN 91 * 59 END THEN + 77 / ( 40 ) ELSE NULL END * + 13
----
NULL

query I rowsort
SELECT DISTINCT - 95 col1
----
-95

query I rowsort
SELECT 13 * - ( + - CASE + 45 WHEN - 43 + - - 33 + + - 44 THEN - + 77 ELSE NULL END ) * + 97 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL + 54 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + 54 / - 39
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT COALESCE ( 74, - - 12 * 79 DIV + 96 * - COUNT( * ), + 8 * + COUNT( * ) ) + 23
----
97

skipif mysql # not compatible
query I rowsort label-5053
SELECT COALESCE ( 74, - - 12 * 79 / + 96 * - COUNT ( * ), + 8 * + COUNT ( * ) ) + 23
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + COALESCE ( NULLIF ( + MIN( DISTINCT 38 ), - + 92 * + - 96 ), - 91 ) * - - 82 * COUNT( * ) AS col1
----
3116

skipif mysql # not compatible
query I rowsort label-5054
SELECT + COALESCE ( NULLIF ( + MIN ( DISTINCT 38 ), - + 92 * + - 96 ), - 91 ) * - - 82 * COUNT ( * ) AS col1
----
3116

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT ALL + 10 DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + 10 / - 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT 36 * SUM( 37 )
----
1332

skipif mysql # not compatible
query I rowsort label-5056
SELECT 36 * SUM ( 37 )
----
1332

query I rowsort
SELECT 82 * - 24 AS col1
----
-1968

query I rowsort
SELECT ALL 28 * - NULLIF ( - + 50, 24 + COALESCE ( + 23, + 91 ) ) AS col0
----
1400

query I rowsort
SELECT + + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - CASE 50 WHEN - MAX( - 30 ) THEN - 3 * - 74 WHEN - 97 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - CASE 50 WHEN - MAX ( - 30 ) THEN - 3 * - 74 WHEN - 97 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT DISTINCT CASE + - 49 WHEN AVG ( 42 ) + - 55 THEN 51 * + COALESCE ( - ( + 27 ), 5 / - 5 ) - - 42 END + CAST( - 90 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT CASE + - 49 WHEN AVG ( 42 ) + - 55 THEN 51 * + COALESCE ( - ( + 27 ), 5 / - 5 ) - - 42 END + CAST ( - 90 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL COUNT( * ) + - - 15 + 12 * 48 * - 56 AS col1
----
-32240

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COUNT ( * ) + - - 15 + 12 * 48 * - 56 AS col1
----
-32240

query I rowsort
SELECT DISTINCT + 55 + + 88 + - 92
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT COUNT( * ) + 37 AS col1, + 85 + - + 52 AS col1
----
38
33

skipif mysql # not compatible
query II rowsort label-5065
SELECT COUNT ( * ) + 37 AS col1, + 85 + - + 52 AS col1
----
38
33

query I rowsort
SELECT ALL 84 + - + 93
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT - MAX( ALL 53 ), 22 * 28 + + 24 col0
----
-53
640

skipif mysql # not compatible
query II rowsort label-5067
SELECT - MAX ( ALL 53 ), 22 * 28 + + 24 col0
----
-53
640

query I rowsort
SELECT 39 + - ( 34 ) * - + ( 12 ) AS col1
----
447

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT 46 + - ( + + 42 ) * - CASE + + 36 WHEN - + 8 / + + 66 THEN SUM( + ( - 52 ) ) WHEN - 6 THEN NULL END * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT 46 + - ( + + 42 ) * - CASE + + 36 WHEN - + 8 / + + 66 THEN SUM ( + ( - 52 ) ) WHEN - 6 THEN NULL END * 40 AS col0
----
NULL

query I rowsort
SELECT ALL 37 + - + 42
----
-5

query I rowsort
SELECT ALL 1 + + 52
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT - CAST( NULL AS SIGNED ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT - CAST ( NULL AS INTEGER ) * - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5073
SELECT DISTINCT MIN( - + CAST( NULL AS SIGNED ) ) AS col2, 53 + + ( 76 ) AS col0
----
NULL
129

skipif mysql # not compatible
query II rowsort label-5073
SELECT DISTINCT MIN ( - + CAST ( NULL AS INTEGER ) ) AS col2, 53 + + ( 76 ) AS col0
----
NULL
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT + 83 + + 83 * + 61 * AVG ( ALL - 87 ) + - 64 / - - CASE - - 5 WHEN - 89 THEN NULL WHEN COUNT( * ) * 72 + CAST( + 79 AS SIGNED ) THEN 99 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT + 83 + + 83 * + 61 * AVG ( ALL - 87 ) + - 64 / - - CASE - - 5 WHEN - 89 THEN NULL WHEN COUNT ( * ) * 72 + CAST ( + 79 AS INTEGER ) THEN 99 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 94 * - 7 * - - 40 AS col1
----
-26320

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT + - 27 + - 9 DIV + 28 col1
----
-27

skipif mysql # not compatible
query I rowsort label-5076
SELECT + - 27 + - 9 / + 28 col1
----
-27

query I rowsort
SELECT ALL + 16 - 41 * + - COALESCE ( + 34, - + 32 ) col2
----
1410

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT + COUNT( * ) * 16, + 36 - + 0 col2
----
16
36

skipif mysql # not compatible
query II rowsort label-5078
SELECT + COUNT ( * ) * 16, + 36 - + 0 col2
----
16
36

query I rowsort
SELECT - 0 * + 58 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5080
SELECT - 44 * 76, CASE - AVG ( DISTINCT + + CAST( ( - 89 ) AS SIGNED ) ) WHEN - 93 * 29 + 67 THEN NULL WHEN CASE - ( 97 ) WHEN 13 THEN NULL WHEN + 25 THEN 50 END * - CAST( NULL AS SIGNED ) + 50 DIV - 61 THEN NULL ELSE 51 DIV 65 END AS col0
----
-3344
0

skipif mysql # not compatible
query II rowsort label-5080
SELECT - 44 * 76, CASE - AVG ( DISTINCT + + CAST ( ( - 89 ) AS INTEGER ) ) WHEN - 93 * 29 + 67 THEN NULL WHEN CASE - ( 97 ) WHEN 13 THEN NULL WHEN + 25 THEN 50 END * - CAST ( NULL AS INTEGER ) + 50 / - 61 THEN NULL ELSE 51 / 65 END AS col0
----
-3344
0

query I rowsort
SELECT ALL + - 88 col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + NULLIF ( - 4, + 71 + + + 9 + + - COUNT( * ) + COUNT( * ) * - 46 / 15 - - + 47 + 77 )
----
-4

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + NULLIF ( - 4, + 71 + + + 9 + + - COUNT ( * ) + COUNT ( * ) * - 46 / 15 - - + 47 + 77 )
----
-4

query I rowsort
SELECT ALL + 79 AS col2
----
79

query I rowsort
SELECT ALL + + ( - 6 )
----
-6

query I rowsort
SELECT 98 col2
----
98

query II rowsort
SELECT - 33 + - 39 * + + 67 * - 60 AS col0, + NULLIF ( + + 7, - + 75 ) AS col2
----
156747
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + + MAX( - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT + + MAX ( - 0 ) AS col2
----
0

query I rowsort
SELECT - 7 + + 61
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL + + 83 * + - 71 - + ( + MAX( ALL + 94 ) ) + - 26
----
-6013

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + + 83 * + - 71 - + ( + MAX ( ALL + 94 ) ) + - 26
----
-6013

query I rowsort
SELECT - 46 * - 31 * - 88
----
-125488

query II rowsort
SELECT + 3 * NULLIF ( 46, - - 50 ) + 36 col2, + 39 AS col2
----
174
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL + - COALESCE ( MIN( - + 33 ), - - 68, COALESCE ( - 97, + + 41 ), + 46 ) * - 6 + 1
----
-197

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + - COALESCE ( MIN ( - + 33 ), - - 68, COALESCE ( - 97, + + 41 ), + 46 ) * - 6 + 1
----
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT + + 53 DIV - + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT + + 53 / - + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - - COUNT( * ) + + 66 + + + 27 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5094
SELECT - - COUNT ( * ) + + 66 + + + 27 AS col1
----
94

query I rowsort
SELECT ALL + 97 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - MIN( ALL 30 ) ) * - 25 + - + 96 AS col2
----
654

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - MIN ( ALL 30 ) ) * - 25 + - + 96 AS col2
----
654

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT DISTINCT 38 DIV + 11 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT 38 / + 11 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT - 73 DIV 18
----
-4

skipif mysql # not compatible
query I rowsort label-5098
SELECT - 73 / 18
----
-4

query I rowsort
SELECT + 79 + 6
----
85

query I rowsort
SELECT - 90 * + + 66
----
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT - MAX( - - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-5101
SELECT - MAX ( - - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + CASE - 20 WHEN - + 21 THEN + - 96 * + ( + - 19 ) END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT + CASE - 20 WHEN - + 21 THEN + - 96 * + ( + - 19 ) END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL 61 + - COUNT( * ) * 78 * - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL 61 + - COUNT ( * ) * 78 * - COUNT ( * )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - MIN( ALL + + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-5104
SELECT - MIN ( ALL + + 90 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT 43 * - - ( 60 ) + + COALESCE ( - MIN( ALL + 84 ), 51 * + 35 + + 59 ) * 36 + + 43 DIV - 97 AS col0
----
-444

skipif mysql # not compatible
query I rowsort label-5105
SELECT 43 * - - ( 60 ) + + COALESCE ( - MIN ( ALL + 84 ), 51 * + 35 + + 59 ) * 36 + + 43 / - 97 AS col0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL 37 * ( + CASE + ( + - 21 ) WHEN - 48 THEN - 92 * - COUNT( * ) WHEN + 35 THEN - 50 + 65 ELSE - 35 END ) * - 32
----
41440

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL 37 * ( + CASE + ( + - 21 ) WHEN - 48 THEN - 92 * - COUNT ( * ) WHEN + 35 THEN - 50 + 65 ELSE - 35 END ) * - 32
----
41440

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT MAX( ALL - + 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5107
SELECT MAX ( ALL - + 87 ) AS col0
----
-87

query I rowsort
SELECT ALL 31 + + 21 + - 56 + - - 47 * - + 5 + - + 32 + + 56 AS col1
----
-215

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT ALL 28, + COUNT( * ) + + 2 AS col0
----
28
3

skipif mysql # not compatible
query II rowsort label-5109
SELECT ALL 28, + COUNT ( * ) + + 2 AS col0
----
28
3

query I rowsort
SELECT ALL 95 * 48
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5111
SELECT - COALESCE ( - NULLIF ( CAST( NULL AS SIGNED ), - CASE + + COUNT( DISTINCT - 0 ) WHEN - 41 THEN NULL ELSE 64 END + - 50 * - COUNT( * ) + 85 * + ( CAST( SUM( DISTINCT 29 ) AS DECIMAL ) ) ), + 91 * - 38, - 84 ) AS col1
----
3458

skipif mysql # not compatible
query I rowsort label-5111
SELECT - COALESCE ( - NULLIF ( CAST ( NULL AS INTEGER ), - CASE + + COUNT ( DISTINCT - 0 ) WHEN - 41 THEN NULL ELSE 64 END + - 50 * - COUNT ( * ) + 85 * + ( CAST ( SUM ( DISTINCT 29 ) AS REAL ) ) ), + 91 * - 38, - 84 ) AS col1
----
3458

query I rowsort
SELECT + 65 + - + 34 + 58 * - 63 AS col1
----
-3623

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT + + 64 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-5113
SELECT + + 64 / 53
----
1

query I rowsort
SELECT - + 59 * 71 col2
----
-4189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5115
SELECT ALL 39, + MAX( - + 52 ) * + COUNT( * ) * COUNT( * ) * - COALESCE ( - + 17, 89 DIV 90 + - 6 ) * COALESCE ( 6, + COUNT( * ) * - 44 ) col0
----
39
-5304

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL 39, + MAX ( - + 52 ) * + COUNT ( * ) * COUNT ( * ) * - COALESCE ( - + 17, 89 / 90 + - 6 ) * COALESCE ( 6, + COUNT ( * ) * - 44 ) col0
----
39
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - SUM( ALL + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-5116
SELECT - SUM ( ALL + 48 )
----
-48

query I rowsort
SELECT ALL - + 35 * 54
----
-1890

query I rowsort
SELECT DISTINCT - 87 * - 37 + - 13 * - 38 * 5 * - + 94
----
-228961

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT DISTINCT - COUNT( + 8 ) * COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - COUNT ( + 8 ) * COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT + CASE MAX( ALL - ( 15 ) ) WHEN + 41 THEN NULL ELSE + - 10 * + + COUNT( * ) + 61 DIV - 95 + - 12 END AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5120
SELECT + CASE MAX ( ALL - ( 15 ) ) WHEN + 41 THEN NULL ELSE + - 10 * + + COUNT ( * ) + 61 / - 95 + - 12 END AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL 61 * - ( NULLIF ( + ( + ( + + 13 ) ), + CAST( - - 36 AS SIGNED ) * 86 * + + COALESCE ( 28, 0 + 79 ) + 27 * MIN( ALL - 5 ) ) ) AS col1
----
-793

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL 61 * - ( NULLIF ( + ( + ( + + 13 ) ), + CAST ( - - 36 AS INTEGER ) * 86 * + + COALESCE ( 28, 0 + 79 ) + 27 * MIN ( ALL - 5 ) ) ) AS col1
----
-793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT + - 38 / + 49 + - CAST( NULL AS SIGNED ) * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT + - 38 / + 49 + - CAST ( NULL AS INTEGER ) * - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT CASE + 39 WHEN - ( 6 ) * - + 64 THEN NULL WHEN + + COUNT( * ) THEN - 30 - - - COUNT( * ) * 21 WHEN + 15 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT CASE + 39 WHEN - ( 6 ) * - + 64 THEN NULL WHEN + + COUNT ( * ) THEN - 30 - - - COUNT ( * ) * 21 WHEN + 15 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5124
SELECT - + 57 * 47 DIV + + 47 + + - 30 - - CAST( 8 AS SIGNED ) - 46 * COUNT( - - 39 ) * 41 + + 8
----
-1957

skipif mysql # not compatible
query I rowsort label-5124
SELECT - + 57 * 47 / + + 47 + + - 30 - - CAST ( 8 AS INTEGER ) - 46 * COUNT ( - - 39 ) * 41 + + 8
----
-1957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT ALL + + 68 DIV + + 58 + + + 41 + 73 * 64 * + 99 + + COUNT( * )
----
462571

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + + 68 / + + 58 + + + 41 + 73 * 64 * + 99 + + COUNT ( * )
----
462571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5126
SELECT ALL - + ( - 27 ) DIV + COUNT( * ) + - 2 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - + ( - 27 ) / + COUNT ( * ) + - 2 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5127
SELECT - ( + NULLIF ( - ( + 0 ), 26 ) ) col2, - COUNT( * ) + 99 + + 59 DIV NULLIF ( + 17, COUNT( * ) - + 74 ) * COALESCE ( + 28 + 4, - 86 )
----
0
194

skipif mysql # not compatible
query II rowsort label-5127
SELECT - ( + NULLIF ( - ( + 0 ), 26 ) ) col2, - COUNT ( * ) + 99 + + 59 / NULLIF ( + 17, COUNT ( * ) - + 74 ) * COALESCE ( + 28 + 4, - 86 )
----
0
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5128
SELECT + 67 DIV - + COALESCE ( 52, + 1 DIV 12 + - CASE ( 7 ) WHEN - SUM( + + 83 ) + 11 THEN 30 WHEN + 6 THEN NULL ELSE 66 END + - 27, 76 ) + + 97 * - 77 AS col1
----
-7470

skipif mysql # not compatible
query I rowsort label-5128
SELECT + 67 / - + COALESCE ( 52, + 1 / 12 + - CASE ( 7 ) WHEN - SUM ( + + 83 ) + 11 THEN 30 WHEN + 6 THEN NULL ELSE 66 END + - 27, 76 ) + + 97 * - 77 AS col1
----
-7470

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - + 13 - - 90 + - COUNT( * ) * - 99 col2
----
176

skipif mysql # not compatible
query I rowsort label-5129
SELECT - + 13 - - 90 + - COUNT ( * ) * - 99 col2
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5130
SELECT DISTINCT + 31 DIV + 61 + + - SUM( + 31 ) * - 92 AS col2, 60 AS col0
----
2852
60

skipif mysql # not compatible
query II rowsort label-5130
SELECT DISTINCT + 31 / + 61 + + - SUM ( + 31 ) * - 92 AS col2, 60 AS col0
----
2852
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5131
SELECT ALL - + COUNT( * ) DIV 77 * + + 46 - - 98 + - + CAST( MAX( ALL - 39 ) AS SIGNED ) * - 33 + + 97
----
-1092

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - + COUNT ( * ) / 77 * + + 46 - - 98 + - + CAST ( MAX ( ALL - 39 ) AS INTEGER ) * - 33 + + 97
----
-1092

query I rowsort
SELECT 18 col0
----
18

query I rowsort
SELECT + 97 * 40 col0
----
3880

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + MIN( ALL - - 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-5134
SELECT + MIN ( ALL - - 17 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL + SUM( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + SUM ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ( + MIN( DISTINCT 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-5136
SELECT ( + MIN ( DISTINCT 30 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + SUM( ALL + - CASE + 7 WHEN ( 38 ) THEN - 88 ELSE + 36 END )
----
-36

skipif mysql # not compatible
query I rowsort label-5137
SELECT + SUM ( ALL + - CASE + 7 WHEN ( 38 ) THEN - 88 ELSE + 36 END )
----
-36

query I rowsort
SELECT ( - - CASE + + 38 WHEN + 5 THEN - 73 * + 2 END )
----
NULL

query I rowsort
SELECT ALL 86 * - 85 * + 38 + ( + 60 )
----
-277720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT - 67 * 42 * 14 DIV COUNT( + 6 )
----
-39396

skipif mysql # not compatible
query I rowsort label-5140
SELECT - 67 * 42 * 14 / COUNT ( + 6 )
----
-39396

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL + MAX( - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL + MAX ( - 20 )
----
-20

query I rowsort
SELECT DISTINCT - 20 - - 61
----
41

query I rowsort
SELECT ALL - 38 - + - 54 col0
----
16

query II rowsort
SELECT DISTINCT - 20 - - 90 * + - 15 + - 72, + 37 + + 15 AS col1
----
-1442
52

query I rowsort
SELECT 84 * - - 15 AS col1
----
1260

query I rowsort
SELECT 61 * - 60 AS col1
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT 64 + - - MIN( ALL - 87 ) + + - COUNT( * ) + + - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5147
SELECT 64 + - - MIN ( ALL - 87 ) + + - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT 71 * - + 57
----
-4047

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT - 88, MIN( + + NULLIF ( - 23, + 8 ) ) * + + 7 AS col2
----
-88
-161

skipif mysql # not compatible
query II rowsort label-5149
SELECT - 88, MIN ( + + NULLIF ( - 23, + 8 ) ) * + + 7 AS col2
----
-88
-161

query I rowsort
SELECT 9 * - 84
----
-756

query I rowsort
SELECT ALL 47 * + + 47 * + 74
----
163466

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - ( + 76 ) + + COUNT( * ) * - 35 * + 30 AS col1
----
-1126

skipif mysql # not compatible
query I rowsort label-5152
SELECT - ( + 76 ) + + COUNT ( * ) * - 35 * + 30 AS col1
----
-1126

query I rowsort
SELECT - 35 * + 21 AS col0
----
-735

query I rowsort
SELECT DISTINCT 83 * - + 39
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL + COUNT( ALL - + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + COUNT ( ALL - + 35 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT + 1 * 13 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT + 1 * 13 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 21 + 50
----
71

query I rowsort
SELECT - - ( - 84 ) AS col0
----
-84

query I rowsort
SELECT ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT 54 + COUNT( - 9 ) * - 99 * + 45 AS col2
----
-4401

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT 54 + COUNT ( - 9 ) * - 99 * + 45 AS col2
----
-4401

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT 42 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5161
SELECT 42 * + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT + COUNT( * ) + - COUNT( + 43 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5162
SELECT + COUNT ( * ) + - COUNT ( + 43 ) AS col1
----
0

query I rowsort
SELECT ALL + 23 + 82
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT + COUNT( * ) + - + MIN( ALL 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-5164
SELECT + COUNT ( * ) + - + MIN ( ALL 74 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT - 53 + + + 54 * + + 63 + + 6 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT - 53 + + + 54 * + + 63 + + 6 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 21 DIV - 6
----
-3

skipif mysql # not compatible
query I rowsort label-5166
SELECT 21 / - 6
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL + 20 + + - ( + ( + 76 ) ) * 8 * + - MAX( ( - + ( 98 ) ) ) * - 58 + + COUNT( * ) - - 26 + 35
----
3455954

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + 20 + + - ( + ( + 76 ) ) * 8 * + - MAX ( ( - + ( 98 ) ) ) * - 58 + + COUNT ( * ) - - 26 + 35
----
3455954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL CAST( NULL AS SIGNED ) + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL CAST ( NULL AS INTEGER ) + + 34 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL - + 40 + - 17 * - 54 - ( CAST( NULL AS SIGNED ) ) * + + 70 + + - ( - 72 ) + - - NULLIF ( - + 71, - 77 * - 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - + 40 + - 17 * - 54 - ( CAST ( NULL AS INTEGER ) ) * + + 70 + + - ( - 72 ) + - - NULLIF ( - + 71, - 77 * - 84 ) AS col0
----
NULL

query I rowsort
SELECT ( + 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT ALL + MAX( + 85 ) * + 88 * - 43, COUNT( * ) * SUM( + - 45 ) AS col1
----
-321640
-45

skipif mysql # not compatible
query II rowsort label-5171
SELECT ALL + MAX ( + 85 ) * + 88 * - 43, COUNT ( * ) * SUM ( + - 45 ) AS col1
----
-321640
-45

query I rowsort
SELECT ( + 1 ) + - + 73
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT + COALESCE ( - + 86, + - 37 * - 87 ) DIV - + 15
----
5

skipif mysql # not compatible
query I rowsort label-5173
SELECT + COALESCE ( - + 86, + - 37 * - 87 ) / - + 15
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5174
SELECT + - 76 * - CAST( NULL AS DECIMAL ) * + 9 * + + 89 + + 93 * - CASE - - 75 WHEN + 4 THEN COALESCE ( - 58, + + 15, + 77 ) END + 25 * - COUNT( * ) + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT + - 76 * - CAST ( NULL AS REAL ) * + 9 * + + 89 + + 93 * - CASE - - 75 WHEN + 4 THEN COALESCE ( - 58, + + 15, + 77 ) END + 25 * - COUNT ( * ) + 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT COUNT( * ) * + + COUNT( * ) * 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5175
SELECT COUNT ( * ) * + + COUNT ( * ) * 67 AS col0
----
67

query I rowsort
SELECT ALL 32 * - COALESCE ( + 2, + - 21 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT CASE + - 12 WHEN + COUNT( * ) THEN - + COUNT( DISTINCT - 67 ) ELSE NULL END * 84 * + - 14 + - 69 + + + 68 + - COUNT( * ) * - 34 * + + ( + 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT CASE + - 12 WHEN + COUNT ( * ) THEN - + COUNT ( DISTINCT - 67 ) ELSE NULL END * 84 * + - 14 + - 69 + + + 68 + - COUNT ( * ) * - 34 * + + ( + 73 ) AS col2
----
NULL

query I rowsort
SELECT 65 + 86
----
151

query I rowsort
SELECT DISTINCT 84 - - 98 + 29 - 37 * - 70 * + + 21 - - - ( + 19 ) AS col2
----
54582

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT - NULLIF ( - 85, COUNT( * ) * + 76 + - 67 - + 26 )
----
85

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - NULLIF ( - 85, COUNT ( * ) * + 76 + - 67 - + 26 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT 70 * - - CAST( - 24 AS SIGNED ) + - - COUNT( * ) * - - 0 AS col2
----
-1680

skipif mysql # not compatible
query I rowsort label-5181
SELECT 70 * - - CAST ( - 24 AS INTEGER ) + - - COUNT ( * ) * - - 0 AS col2
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT 0 + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + MIN( ALL + + 34 ) * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT 0 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + MIN ( ALL + + 34 ) * + 35 AS col1
----
NULL

query I rowsort
SELECT ALL - 7 * 68 AS col1
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL 18 * - 72 * COUNT( * ) * 62
----
-80352

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL 18 * - 72 * COUNT ( * ) * 62
----
-80352

query I rowsort
SELECT 57 * + 59 - - - 88
----
3275

query I rowsort
SELECT ALL ( 75 ) AS col0
----
75

query I rowsort
SELECT ALL - - 88 + + 45 * + - 5 AS col1
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5188
SELECT + ( - CAST( 17 AS SIGNED ) ) AS col1, - 49 AS col1
----
-17
-49

skipif mysql # not compatible
query II rowsort label-5188
SELECT + ( - CAST ( 17 AS INTEGER ) ) AS col1, - 49 AS col1
----
-17
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT COUNT( * ) DIV + CASE + 89 WHEN + CASE - - 97 WHEN - + 9 THEN 69 WHEN 56 + + + 84 THEN NULL ELSE NULL END + - COUNT( DISTINCT 75 ) THEN + 9 ELSE COUNT( * ) END DIV - COUNT( * ) + + ( + 68 )
----
67

skipif mysql # not compatible
query I rowsort label-5189
SELECT COUNT ( * ) / + CASE + 89 WHEN + CASE - - 97 WHEN - + 9 THEN 69 WHEN 56 + + + 84 THEN NULL ELSE NULL END + - COUNT ( DISTINCT 75 ) THEN + 9 ELSE COUNT ( * ) END / - COUNT ( * ) + + ( + 68 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + CASE COUNT( * ) WHEN - 76 * COALESCE ( 83, - - 63 ) THEN NULL WHEN 0 * 62 THEN + CASE 40 WHEN + 6 THEN NULL WHEN - + 95 * + COUNT( + 58 ) THEN 71 * + 39 ELSE 83 * 15 END ELSE NULL END * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT + CASE COUNT ( * ) WHEN - 76 * COALESCE ( 83, - - 63 ) THEN NULL WHEN 0 * 62 THEN + CASE 40 WHEN + 6 THEN NULL WHEN - + 95 * + COUNT ( + 58 ) THEN 71 * + 39 ELSE 83 * 15 END ELSE NULL END * 12
----
NULL

query I rowsort
SELECT ALL + - 76 + + + 90 * - + 28 AS col1
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT COALESCE ( - 81, + COALESCE ( - 66, - 6 * + 72 * - 35 ), SUM( ALL + 24 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-5192
SELECT COALESCE ( - 81, + COALESCE ( - 66, - 6 * + 72 * - 35 ), SUM ( ALL + 24 ) ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT 26 * + + 62 * CASE COALESCE ( 13, - COUNT( * ) * - 33 / - COUNT( * ) - + - SUM( ALL + 79 ) / + CAST( - COALESCE ( 6, + 27 ) AS SIGNED ) ) WHEN + 70 THEN 70 WHEN - 63 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT 26 * + + 62 * CASE COALESCE ( 13, - COUNT ( * ) * - 33 / - COUNT ( * ) - + - SUM ( ALL + 79 ) / + CAST ( - COALESCE ( 6, + 27 ) AS INTEGER ) ) WHEN + 70 THEN 70 WHEN - 63 THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5194
SELECT ALL - SUM( - CAST( NULL AS DECIMAL ) ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - SUM ( - CAST ( NULL AS REAL ) ) * 32
----
NULL

query I rowsort
SELECT DISTINCT 84 * - 47 col1
----
-3948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL - 91 + - - 34 * - NULLIF ( + - 67, + - NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) ) ) AS col2
----
2187

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - 91 + - - 34 * - NULLIF ( + - 67, + - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ) AS col2
----
2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT DISTINCT + 69 + - - CAST( - + 79 AS SIGNED ) + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + 69 + - - CAST ( - + 79 AS INTEGER ) + + COUNT ( * )
----
-9

query II rowsort
SELECT ALL - 11 + + 64 AS col1, + 66 * - 15 AS col2
----
53
-990

query I rowsort
SELECT + - 82 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT - 42 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT - 42 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 89 * + 85 AS col1
----
7565

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5202
SELECT ( + CAST( NULL AS SIGNED ) ) / 34 * - + 58 + - 20 + - + 59 - 19, + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5202
SELECT ( + CAST ( NULL AS INTEGER ) ) / 34 * - + 58 + - 20 + - + 59 - 19, + 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT CASE - 25 WHEN ( + 18 ) * + - 20 - + - 96 THEN - - 11 WHEN CASE - 39 WHEN + 15 + + + MAX( DISTINCT - 42 ) * - + 91 THEN NULL WHEN 26 THEN NULL ELSE - SUM( 90 ) * - CASE 75 WHEN + AVG ( + 54 ) * 97 THEN COUNT( * ) / - COUNT( * ) + - 15 WHEN - 38 * 9 + 26 THEN + MIN( DISTINCT + 20 ) ELSE - 13 * + 5 + + 55 * 67 END END THEN NULL WHEN 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT CASE - 25 WHEN ( + 18 ) * + - 20 - + - 96 THEN - - 11 WHEN CASE - 39 WHEN + 15 + + + MAX ( DISTINCT - 42 ) * - + 91 THEN NULL WHEN 26 THEN NULL ELSE - SUM ( 90 ) * - CASE 75 WHEN + AVG ( + 54 ) * 97 THEN COUNT ( * ) / - COUNT ( * ) + - 15 WHEN - 38 * 9 + 26 THEN + MIN ( DISTINCT + 20 ) ELSE - 13 * + 5 + + 55 * 67 END END THEN NULL WHEN 75 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL COUNT( * ) * + + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL COUNT ( * ) * + + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT SUM( ALL + + COALESCE ( - COALESCE ( - 34, - 16 ), - - 5 * - 0 ) )
----
34

skipif mysql # not compatible
query I rowsort label-5205
SELECT SUM ( ALL + + COALESCE ( - COALESCE ( - 34, - 16 ), - - 5 * - 0 ) )
----
34

query I rowsort
SELECT + COALESCE ( + 65, + 99 )
----
65

query I rowsort
SELECT DISTINCT 37 * + - ( - 87 ) * + 60 * + 78 - + 34
----
15064886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT + ( - COUNT( * ) ) DIV + + 24
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT + ( - COUNT ( * ) ) / + + 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT + CASE - - MAX( DISTINCT - - 80 ) WHEN + + 50 + - 92 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN + COUNT( * ) + COALESCE ( 75, - + 21 ) DIV + ( + - COUNT( * ) ) THEN + 57 WHEN 24 - + 78 THEN 20 DIV + 5 ELSE - ( + 75 ) END * 22 AS col0
----
-1650

skipif mysql # not compatible
query I rowsort label-5209
SELECT + CASE - - MAX ( DISTINCT - - 80 ) WHEN + + 50 + - 92 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + COALESCE ( 75, - + 21 ) / + ( + - COUNT ( * ) ) THEN + 57 WHEN 24 - + 78 THEN 20 / + 5 ELSE - ( + 75 ) END * 22 AS col0
----
-1650

query I rowsort
SELECT + 66 * 28 AS col1
----
1848

query I rowsort
SELECT ALL 72 * - 46 AS col0
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL + MAX( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + MAX ( - 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT + CAST( NULL AS SIGNED ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT + CAST ( NULL AS INTEGER ) * - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-5214
SELECT + COUNT ( * ) * 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * + + 13
----
1
13

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + + 13
----
1
13

query I rowsort
SELECT - ( - - 67 )
----
-67

query I rowsort
SELECT ALL + 16 + + 75
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - 30 - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5218
SELECT - 30 - COUNT ( * )
----
-31

query I rowsort
SELECT ALL - 47 + + 24 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5220
SELECT + COUNT( * ) * + - 31 + 33 + - COUNT( * ) + - - 37 DIV - - 15 AS col2, 60 * 91 AS col0
----
3
5460

skipif mysql # not compatible
query II rowsort label-5220
SELECT + COUNT ( * ) * + - 31 + 33 + - COUNT ( * ) + - - 37 / - - 15 AS col2, 60 * 91 AS col0
----
3
5460

query I rowsort
SELECT - - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - - COUNT( + 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5222
SELECT - - COUNT ( + 81 ) AS col1
----
1

query I rowsort
SELECT - + 48 AS col2
----
-48

query I rowsort
SELECT ALL - 56 + - 2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - - SUM( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5225
SELECT - - SUM ( + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - ( + MIN( DISTINCT + - 64 ) ) * - - 3 * - + 68
----
-13056

skipif mysql # not compatible
query I rowsort label-5226
SELECT - ( + MIN ( DISTINCT + - 64 ) ) * - - 3 * - + 68
----
-13056

query I rowsort
SELECT - + 75 + + 65
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL + MAX( ALL + 43 ) * + ( - - MAX( - + 24 ) )
----
-1032

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + MAX ( ALL + 43 ) * + ( - - MAX ( - + 24 ) )
----
-1032

query I rowsort
SELECT ALL - COALESCE ( 38, + 48 - + 15 ) + + 3 * - 25 AS col2
----
-113

query I rowsort
SELECT - - 1 + + 72 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL + ( + 90 ) + + 12 * + 73 * - 93 + + - 19 * - 57 - - 49 * - 53 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + ( + 90 ) + + 12 * + 73 * - 93 + + - 19 * - 57 - - 49 * - 53 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT - + 26 + - ( + + CAST( NULL AS SIGNED ) ) * - COUNT( ALL 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT - + 26 + - ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( ALL 78 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 86, + 63 * + 50 + + + 72 ) + - 32 * 79 AS col2
----
-2614

query I rowsort
SELECT ALL + 4 * 70
----
280

onlyif mysql # aggregate syntax: 
query II rowsort label-5235
SELECT 6 AS col1, NULLIF ( - 27, - AVG ( - + 21 ) ) * + COUNT( * ) * + + 48
----
6
-1296

skipif mysql # not compatible
query II rowsort label-5235
SELECT 6 AS col1, NULLIF ( - 27, - AVG ( - + 21 ) ) * + COUNT ( * ) * + + 48
----
6
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT - 4 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT - 4 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5237
SELECT - 74 + + + SUM( ALL + ( COALESCE ( - 30, + 24, 7 ) ) ) + + CAST( NULL AS DECIMAL ) + + - 98 - - 9 * 62 / + 9 * + 88 + - 98 / COUNT( * ) * ( CAST( 47 AS SIGNED ) / 94 + ( COUNT( * ) ) / 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT - 74 + + + SUM ( ALL + ( COALESCE ( - 30, + 24, 7 ) ) ) + + CAST ( NULL AS REAL ) + + - 98 - - 9 * 62 / + 9 * + 88 + - 98 / COUNT ( * ) * ( CAST ( 47 AS INTEGER ) / 94 + ( COUNT ( * ) ) / 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - COUNT( DISTINCT + 91 ) + + NULLIF ( - - 76, + MAX( - - 97 ) )
----
75

skipif mysql # not compatible
query I rowsort label-5238
SELECT - COUNT ( DISTINCT + 91 ) + + NULLIF ( - - 76, + MAX ( - - 97 ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL - + CASE 19 WHEN + - 20 THEN NULL WHEN + NULLIF ( 88, + 23 * + 37 - 55 ) + CASE - 59 WHEN - 2 THEN - + 14 ELSE + + ( - COUNT( * ) ) END - ( + NULLIF ( + COUNT( * ), - COUNT( * ) / + 64 + NULLIF ( - CAST( NULL AS SIGNED ), 85 / + 55 ) ) + - 95 ) THEN 85 * 73 WHEN 5 THEN NULL END - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - + CASE 19 WHEN + - 20 THEN NULL WHEN + NULLIF ( 88, + 23 * + 37 - 55 ) + CASE - 59 WHEN - 2 THEN - + 14 ELSE + + ( - COUNT ( * ) ) END - ( + NULLIF ( + COUNT ( * ), - COUNT ( * ) / + 64 + NULLIF ( - CAST ( NULL AS INTEGER ), 85 / + 55 ) ) + - 95 ) THEN 85 * 73 WHEN 5 THEN NULL END - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + COALESCE ( - 82, + - NULLIF ( - - 58, + COUNT( * ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + COALESCE ( - 82, + - NULLIF ( - - 58, + COUNT ( * ) ) )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT + SUM( - 55 ), - 28 + + 74 AS col2
----
-55
46

skipif mysql # not compatible
query II rowsort label-5241
SELECT + SUM ( - 55 ), - 28 + + 74 AS col2
----
-55
46

query I rowsort
SELECT DISTINCT 32 * - 78
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT + NULLIF ( - 28, - - COUNT( * ) + ( - 80 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT + NULLIF ( - 28, - - COUNT ( * ) + ( - 80 ) ) AS col0
----
-28

query I rowsort
SELECT DISTINCT + 7 * + 74
----
518

query I rowsort
SELECT - COALESCE ( - 13, ( + - 10 ) ) * 6 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5246
SELECT + 80 / + CAST( NULL AS DECIMAL ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 80 / + CAST ( NULL AS REAL ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ( 97 ) col1
----
97

query I rowsort
SELECT + 92 * - 32 + + 52 + 47 * - NULLIF ( - ( 21 ), + 34 )
----
-1905

query I rowsort
SELECT ALL - 13 * 33 + - 82
----
-511

query I rowsort
SELECT + ( 31 ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL 10 * - + ( CASE + - 64 WHEN - 41 THEN + - 69 WHEN + + 84 * - CAST( + 34 AS SIGNED ) THEN NULL WHEN MIN( - 94 ) * + ( 1 ) * 89 + + 92 - - 79 - + 29 THEN NULL ELSE NULL END ) * ( - 98 ) + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL 10 * - + ( CASE + - 64 WHEN - 41 THEN + - 69 WHEN + + 84 * - CAST ( + 34 AS INTEGER ) THEN NULL WHEN MIN ( - 94 ) * + ( 1 ) * 89 + + 92 - - 79 - + 29 THEN NULL ELSE NULL END ) * ( - 98 ) + + 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT + 28 + - 41 * - + ( - + MAX( 11 ) )
----
-423

skipif mysql # not compatible
query I rowsort label-5252
SELECT + 28 + - 41 * - + ( - + MAX ( 11 ) )
----
-423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT ALL + + CAST( - + MIN( 43 ) AS SIGNED ) * - - COUNT( * ) + + - 6 + + 70
----
21

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + + CAST ( - + MIN ( 43 ) AS INTEGER ) * - - COUNT ( * ) + + - 6 + + 70
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5254
SELECT + 42 + - COUNT